Адрес                          Команда
-------------------------------------------------------------------------------------------
.text:00401094                 xor     edx, edx
.text:00401096                 lea     esi, «адрес буфера для ключа»
.text:0040109C
.text:0040109C loc_40109C:                             
.text:0040109C                                         
.text:0040109C                 movzx   ecx, byte ptr [esi]
.text:0040109F                 test    cl, cl
.text:004010A1                 jz      short loc_4010EC
.text:004010A3                 inc     esi
.text:004010A4                 mov     ebx, ecx
.text:004010A6                 and     ebx, 3
.text:004010A9                 cmp     ebx, 3
.text:004010AC                 jz      short loc_4010CB
.text:004010AE                 cmp     ebx, 2
.text:004010B1                 jz      short loc_4010C7
.text:004010B3                 cmp     ebx, 1
.text:004010B6                 jz      short loc_4010C2
.text:004010B8                 mov     edx, ecx
.text:004010BA                 shr     edx, 2
.text:004010BD                 and     edx, 7
.text:004010C0                 jmp     short loc_40109C
.text:004010C2 ; ---------------------------------------------------------------------------
.text:004010C2
.text:004010C2 loc_4010C2:                             
.text:004010C2                 ror     eax, 8
.text:004010C5                 jmp     short loc_40109C
.text:004010C7 ; ---------------------------------------------------------------------------
.text:004010C7
.text:004010C7 loc_4010C7:                             
.text:004010C7                 dec     al
.text:004010C9                 jmp     short loc_40109C
.text:004010CB ; ---------------------------------------------------------------------------
.text:004010CB
.text:004010CB loc_4010CB:                            
.text:004010CB                 cmp     edx, 0
.text:004010CE                 jz      short loc_40109C
.text:004010D0                 dec     edx
.text:004010D1                 mov     ebx, ecx
.text:004010D3                 shr     ebx, 2
.text:004010D6                 and     ebx, 7
.text:004010D9                 sub     esi, ebx
.text:004010DB                 lea     ebx, unk_40B788
.text:004010E1                 push    esi
.text:004010E2                 sub     esi, ebx
.text:004010E4                 pop     esi
.text:004010E5                 jno     short loc_40109C
.text:004010E7                 mov     eax, 0FFFFFFFFh
.text:004010EC
.text:004010EC loc_4010EC:                            
.text:004010EC                 mov     [ebp+var_4], eax
.text:004010EF                 mov     eax, [ebp+var_4]
.text:004010F2                 pop     esi
.text:004010F3                 pop     ebx
.text:004010F4                 mov     esp, ebp
.text:004010F6                 pop     ebp
.text:004010F7                 retn