Function at 0x40a1a0
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 0x40a1f1
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x40a1f8
cmp al, 0x64
jb 0x40a207
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 + 0x43e528]
mov word [esp + 0xd], ax
mov ecx, 1
mov eax, edx
jmp 0x40a210
mov bl, 1
jmp 0x40a869
lea eax, [esp + 0xe]
mov dword [esp + 0x28], eax
mov byte [esp + 0xe], 0x30
jmp 0x40a252
mov ecx, 3
cmp al, 9
ja 0x40a227
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 0x40a252
mov ecx, eax
and ecx, 0x7d
mov edx, eax
and edx, 2
or eax, 2
imul eax, edx
xor edx, 2
imul edx, ecx
movzx eax, word [edx + eax + 0x43e528]
lea ecx, [esp + 0xd]
mov dword [esp + 0x28], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406cc0
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xc0], eax
lea ebx, [esp + 0xcb]
push ebx
call fcn.00434b00
add esp, 4
mov dword [esp + 0xc4], edi
lea eax, [edi + 0x800]
push eax
call fcn.00408ea0
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x8f8b9c8e
mov byte [esp + 0x34], 0x2a
mov dword [esp + 0x35], 0
mov word [esp + 0x39], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x40a30d
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 - 0x3f8da57b]
add eax, 0x85
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x5d
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xb
jb 0x40a2d0
lea eax, [esp + 0x30]
mov ecx, esi
push ebx
push eax
push dword [esp + 0x34]
call fcn.00409ad0
mov dword [esp + 0x30], 0x8b300a06
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov byte [esp + 0x3c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0x40a3ba
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax + 0x2f1f076d]
mov ebx, ecx
not ebx
or ebx, edx
lea edx, [ecx + ebx]
inc edx
mov ebx, 0xd0e0f892
sub ebx, eax
or ebx, ecx
add ebx, eax
add ebx, 0x2f1f076e
mov edi, edx
and edi, ebx
xor edx, ebx
add eax, ecx
add eax, 0x2f1f076d
lea ecx, [edx + edi*2]
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, eax
xor ecx, 4
and eax, 4
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, 0xd
jb 0x40a350
mov ecx, esi
push dword [esp + 0x28]
lea eax, [esp + 0x34]
push eax
mov ebx, dword [esp + 0x34]
push ebx
call fcn.00409ad0
mov eax, dword [str.MhMcwl__BEM]
mov dword [esp + 0x30], 0x7b9c829a
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xf
ja 0x40a461
nop
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]
mov edi, ecx
and edi, 0x136bc8af
xor ecx, 0x136bc8af
lea ecx, [ecx + edi*2]
lea edi, [ecx + edx]
and ecx, edx
add ecx, ecx
mov edx, ecx
xor edx, edi
not ecx
and ecx, edi
add ecx, ecx
sub ecx, edx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
add cl, 0x37
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x10
jb 0x40a410
mov ecx, esi
push eax
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.00409ad0
mov dword [esp + 0x30], 0xdfc6ded3
mov dword [esp + 0x34], 0xcadbc2db
mov dword [esp + 0x38], 0xd4c9d2cb
mov byte [esp + 0x3c], 0x72
mov dword [esp + 0x41], 0
mov dword [esp + 0x3d], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x14
ja 0x40a4fe
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax + ecx]
add edx, 0x858f44f
add eax, 0x858f44f
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
mov ecx, eax
xor ecx, 0xd6
and eax, 0x56
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, 0x15
jb 0x40a4b0
mov dword [esp + 0x10], 0x1ba6bab9
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0xb
ja 0x40a56e
nop
nop
nop
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 eax, 0x7c
and eax, ecx
add eax, eax
sub edx, eax
add edx, 0x8ac5fb7c
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0x9c
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0xc
jb 0x40a530
lea edx, [esp + 0x10]
mov ecx, esi
lea eax, [esp + 0x30]
push eax
push edx
push ebx
call fcn.00409ad0
mov dword [esp + 0x30], 0x5c545250
mov byte [esp + 0x34], 0xba
mov dword [esp + 0x35], 0
mov byte [esp + 0x39], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 9
ja 0x40a5ed
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax + 0x5cc97ee7]
add eax, 0xe7
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0xaf
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xa
jb 0x40a5b0
mov ecx, esi
push dword [esp + 0xc4]
push dword [esp + 0xc4]
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.00409d70
mov eax, dword [esi + 0x60]
mov dword [esp + 0x30], 0xfb69f903
mov dword [esp + 0x34], 0xff68fd64
mov dword [esp + 0x38], 0xf36ef119
mov dword [esp + 0x3c], 0xf72bf566
mov dword [esp + 0x40], 0xeb63e902
mov dword [esp + 0x44], 0xef0bed7a
mov dword [esp + 0x48], 0xe3c0e124
mov dword [esp + 0x4c], 0xe773e57d
mov dword [esp + 0x50], 0x9b0c997a
mov dword [esp + 0x54], 0x9f0c9d01
mov dword [esp + 0x58], 0x9302917d
mov dword [esp + 0x5c], 0x97459506
mov dword [esp + 0x60], 0x8b198970
mov dword [esp + 0x64], 0x8f138d18
mov dword [esp + 0x68], 0x83648151
mov dword [esp + 0x6c], 0x87108561
mov dword [esp + 0x70], 0xbb75b965
mov dword [esp + 0x74], 0xbf5ebd9a
mov dword [esp + 0x78], 0xb327b12f
mov dword [esp + 0x7c], 0xb750b52c
mov dword [esp + 0x80], 0xab3aa955
mov dword [esp + 0x84], 0xaf63ad21
mov dword [esp + 0x88], 0xa347a14c
mov dword [esp + 0x8c], 0xa773a56a
mov dword [esp + 0x90], 0x5bbf5942
mov dword [esp + 0x94], 0x5fc75d8d
mov dword [esp + 0x98], 0x53b451ce
mov dword [esp + 0x9c], 0x57b155c3
mov dword [esp + 0xa0], 0x4baf49cd
mov dword [esp + 0xa4], 0x4fde4dd8
mov dword [esp + 0xa8], 0x439341a9
mov dword [esp + 0xac], 0x477e457d
mov word [esp + 0xb0], 0x7946
mov dword [esp + 0xb9], 0
mov dword [esp + 0xb6], 0
mov dword [esp + 0xb2], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x8c
ja 0x40a7b4
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x30]
lea edi, [ecx + 0x3b2a641f]
and edi, edx
add ecx, edx
add ecx, 0x3b2a641f
add edi, edi
sub ecx, edi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
add cl, 0x27
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x8d
jb 0x40a770
mov dword [esp + 0x10], 0x1bfb192f
mov dword [esp + 0x14], 0x17ef15e4
mov word [esp + 0x18], 0x1110
mov dword [esp + 0x1e], 0
mov dword [esp + 0x1a], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x11
ja 0x40a832
nop
nop
nop
nop
mov ecx, dword [esp + 8]
mov edx, dword [esp + 8]
movzx edx, byte [esp + edx + 0x10]
lea edi, [ecx + edx]
add edi, 0xdd899354
add ecx, 0xdd899354
and ecx, edx
add ecx, ecx
sub edi, ecx
mov dword [esp + 4], edi
mov ecx, dword [esp + 4]
add cl, 0xb4
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 0x12
jb 0x40a7f0
push 0x493e0
push eax
push ebx
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040e260
add esp, 0x1c
mov ecx, ebx
mov ebx, eax
push ecx
call fcn.00408eb0
add esp, 4
mov eax, dword [esi + 0x60]
add 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