Function at 0x40a090
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf0
cmp dword [ecx + 0x20], 0
je 0x40a0e1
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x40a0e8
cmp al, 0x64
jb 0x40a0f7
lea ecx, [eax + eax*4]
lea ecx, [eax + ecx*8]
movzx edx, cx
shr edx, 0xc
imul ecx, edx, 0x64
sub al, cl
movzx eax, al
movzx eax, word [eax + eax + 0x43c528]
mov word [esp + 0xd], ax
mov ecx, 1
mov eax, edx
jmp 0x40a100
mov bl, 1
jmp 0x40a748
lea eax, [esp + 0xe]
mov dword [esp + 0x28], eax
mov byte [esp + 0xe], 0x30
jmp 0x40a12c
mov ecx, 3
cmp al, 9
ja 0x40a117
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea edx, [esp + ecx]
add edx, 0xb
mov dword [esp + 0x28], edx
mov byte [esp + ecx + 0xb], al
jmp 0x40a12c
movzx eax, word [eax + eax + 0x43c528]
lea ecx, [esp + 0xd]
mov dword [esp + 0x28], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406ee0
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xc4], eax
lea ebx, [esp + 0xcb]
push ebx
call fcn.00433160
add esp, 4
mov dword [esp + 0x2c], edi
lea eax, [edi + 0x400]
push eax
call fcn.00409020
add esp, 4
mov edi, eax
mov dword [esp + 0x30], 0xf7f3e6f4
mov byte [esp + 0x34], 0x68
mov dword [esp + 0x35], 0
mov byte [esp + 0x39], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 9
ja 0x40a1df
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax + 0xd2]
add eax, ecx
and edx, ecx
add edx, edx
sub eax, edx
add eax, 0xd75cdbd2
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x42
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xa
jb 0x40a1a0
lea eax, [esp + 0x30]
mov ecx, esi
push ebx
push eax
push edi
call fcn.004099c0
mov dword [esp + 0x30], 0x3687276
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 8
ja 0x40a269
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax + 0x5c258081]
lea ebx, [eax + 0x81]
or edx, ebx
and ebx, ecx
and edx, ecx
add edx, ebx
add eax, ecx
add eax, 0x5c258081
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x79
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 9
jb 0x40a220
mov ecx, esi
push dword [esp + 0x28]
lea eax, [esp + 0x34]
push eax
push edi
call fcn.004099c0
mov eax, dword [str.MhMcwl__PUSHKIN]
mov dword [esp + 0x30], 0x73d6c4c0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov word [esp + 0x3c], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xd
ja 0x40a2f7
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x30]
mov ebx, ecx
and ebx, 0xf7c4e78e
xor ecx, 0x77c4e78e
lea ecx, [ecx + ebx*2]
lea ebx, [ecx + edx]
and ecx, edx
add ecx, ecx
sub ebx, ecx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
add cl, 0x1e
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xe
jb 0x40a2b0
mov ecx, esi
push eax
lea eax, [esp + 0x34]
push eax
push edi
call fcn.004099c0
mov dword [esp + 0x30], 0xaf868e83
mov dword [esp + 0x34], 0x9a939aab
mov dword [esp + 0x38], 0x9895aa9b
mov byte [esp + 0x3c], 2
mov dword [esp + 0x3d], 0
mov dword [esp + 0x41], 0
mov word [esp + 0x45], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x16
ja 0x40a3a2
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx edx, byte [esp + ecx + 0x30]
lea ebx, [eax + 0x7c36f9ad]
lea ecx, [eax + edx]
add ecx, 0x7c36f9ad
and ebx, edx
add eax, 0xad
and eax, edx
add eax, ebx
mov edx, eax
xor edx, ecx
not eax
and eax, ecx
add eax, eax
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x45
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x17
jb 0x40a350
mov dword [esp + 0x10], 0x5bc63a39
mov dword [esp + 0x14], 0
mov word [esp + 0x18], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 9
ja 0x40a41f
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + ecx]
add edx, 0xc07a7dcc
add eax, 0xc07a7dcc
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0x6c
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
mov eax, dword [esp + 8]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
cmp eax, 0xa
jb 0x40a3d0
lea edx, [esp + 0x10]
mov ecx, esi
lea eax, [esp + 0x30]
push eax
push edx
push edi
call fcn.004099c0
mov dword [esp + 0x30], 0x7c047a78
mov byte [esp + 0x34], 0x92
mov dword [esp + 0x39], 0
mov dword [esp + 0x35], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0x40a49f
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax + 0xd07e9c3]
add eax, 0xc3
or eax, edx
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0xab
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0x40a460
mov ecx, esi
push dword [esp + 0x2c]
push dword [esp + 0xc8]
lea eax, [esp + 0x38]
push eax
push edi
call fcn.00409c50
mov eax, dword [esi + 0x60]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0xcb79cd13
mov dword [esp + 0x34], 0xc74ac97a
mov dword [esp + 0x38], 0xc370c579
mov dword [esp + 0x3c], 0xdf2bc14c
mov dword [esp + 0x40], 0xdb53dd70
mov dword [esp + 0x44], 0xd76bd968
mov dword [esp + 0x48], 0xd332d512
mov dword [esp + 0x4c], 0xaf23d165
mov dword [esp + 0x50], 0xab26ad18
mov dword [esp + 0x54], 0xa716a911
mov dword [esp + 0x58], 0xa32ca505
mov dword [esp + 0x5c], 0xbf4da12c
mov dword [esp + 0x60], 0xbb09bd06
mov dword [esp + 0x64], 0xb703b936
mov dword [esp + 0x68], 0xb30eb541
mov dword [esp + 0x6c], 0x8f02b111
mov dword [esp + 0x70], 0x8b4d8d2d
mov dword [esp + 0x74], 0x87388968
mov dword [esp + 0x78], 0x830f8537
mov dword [esp + 0x7c], 0x9f228132
mov dword [esp + 0x80], 0x9b149d3d
mov dword [esp + 0x84], 0x97539911
mov dword [esp + 0x88], 0x932f952a
mov dword [esp + 0x8c], 0x6fa39158
mov dword [esp + 0x90], 0x6bd76dd0
mov dword [esp + 0x94], 0x67df69a5
mov dword [esp + 0x98], 0x63de65d4
mov dword [esp + 0x9c], 0x7fc161d3
mov dword [esp + 0xa0], 0x7bc77dc5
mov dword [esp + 0xa4], 0x77f879f6
mov dword [esp + 0xa8], 0x738375c9
mov dword [esp + 0xac], 0x4f587165
mov word [esp + 0xb0], 0x4d4c
mov dword [esp + 0xb5], 0
mov dword [esp + 0xb2], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x88
ja 0x40a674
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x30]
lea ebx, [ecx + 0xd72c22]
lea eax, [ecx + 0x22]
or ebx, eax
and eax, edx
and ebx, edx
add ebx, eax
lea eax, [ecx + edx]
add eax, 0xd72c22
sub eax, ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, eax
xor ecx, 0x11
and eax, 0x11
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x89
jb 0x40a620
mov dword [esp + 0x10], 0x7b9b7957
mov dword [esp + 0x14], 0x7f877d8a
mov word [esp + 0x18], 0x717e
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov word [esp + 0x22], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x13
ja 0x40a704
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 8]
mov eax, dword [esp + 8]
movzx eax, byte [esp + eax + 0x10]
lea edx, [ecx + 0x79c9fb2f]
mov ebx, edx
and ebx, eax
xor edx, eax
add ecx, 0x2f
and ecx, eax
add ecx, ebx
sub edx, ecx
lea eax, [edx + ebx*2]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xb7
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x14
jb 0x40a6c0
push 0x493e0
push dword [esp + 0x30]
push edi
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040d8f0
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00409030
add esp, 4
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x60]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [eax + edx*2]
mov dword [esi + 4], eax
mov dword [esi + 0x60], 0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret