Function at 0x40a650
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, 0xe8
cmp dword [ecx + 0x20], 0
je 0x40a6b7
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x40a6be
cmp al, 0x64
jb 0x40a6cd
lea ecx, [eax + eax*4]
lea ecx, [eax + ecx*8]
movzx ecx, cx
shr ecx, 0xc
imul edx, ecx, 0x64
sub al, dl
movzx eax, al
mov edx, eax
and edx, 2
mov edi, eax
or eax, 2
imul eax, edx
xor edx, 2
and edi, 0x7d
imul edi, edx
movzx eax, word [edi + eax + 0x43f528]
mov word [esp + 0xd], ax
mov edx, 1
mov eax, ecx
jmp 0x40a6d6
mov bl, 1
jmp 0x40acf7
lea eax, [esp + 0xe]
mov dword [esp + 0x2c], eax
mov byte [esp + 0xe], 0x30
jmp 0x40a718
mov edx, 3
cmp al, 9
ja 0x40a6ed
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea ecx, [esp + edx]
add ecx, 0xb
mov dword [esp + 0x2c], ecx
mov byte [esp + edx + 0xb], al
jmp 0x40a718
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 + 0x43f528]
lea ecx, [esp + 0xd]
mov dword [esp + 0x2c], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00407140
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xb8], eax
lea eax, [esp + 0xc3]
push eax
call fcn.004350a0
add esp, 4
mov eax, edi
and eax, 0x400
mov dword [esp + 0xbc], edi
mov ecx, edi
xor ecx, 0x400
lea eax, [ecx + eax*2]
push eax
call fcn.00409230
add esp, 4
mov edi, eax
mov dword [esp + 0x30], 0x575b1624
mov byte [esp + 0x34], 0xf0
mov dword [esp + 0x39], 0
mov dword [esp + 0x35], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0x40a7e9
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 - 0x32599242]
lea ebx, [eax + 0xbe]
or edx, ebx
and ebx, ecx
and edx, ecx
add edx, ebx
add eax, ecx
add eax, 0xcda66dbe
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xce
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0x40a7a0
lea ebx, [esp + 0x30]
mov ecx, esi
lea eax, [esp + 0xc3]
push eax
push ebx
push edi
call fcn.00409e60
mov dword [esp + 0x30], 0xf356241c
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 8
ja 0x40a876
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]
mov edx, eax
xor edx, 0x722070be
and eax, 0xf22070be
lea eax, [edx + eax*2]
mov edx, eax
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xce
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 9
jb 0x40a830
mov ecx, esi
push dword [esp + 0x2c]
push ebx
push edi
call fcn.00409e60
mov eax, dword [str.JNrMLk__corp3007]
mov dword [esp + 0x30], 0xfb1c625a
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov byte [esp + 0x3c], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xc
ja 0x40a8f5
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]
add ecx, 0xb45fc79f
xor ecx, edx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
add cl, 0xa7
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xd
jb 0x40a8c0
mov ecx, esi
push eax
push ebx
push edi
call fcn.00409e60
mov dword [esp + 0x30], 0x8790889b
mov dword [esp + 0x34], 0x90839c83
mov dword [esp + 0x38], 0x9e818493
mov byte [esp + 0x3c], 0x38
mov word [esp + 0x3d], 0
mov byte [esp + 0x3f], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x40a97d
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 + 0xec86]
add eax, 0x86
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x56
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x40a940
mov dword [esp + 0x10], 0x23968a8d
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1b], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0xe
ja 0x40a9f0
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + ecx]
add edx, 0x9b7a0e86
add eax, 0x9b7a0e86
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0x56
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0xf
jb 0x40a9b0
lea eax, [esp + 0x10]
mov ecx, esi
push ebx
push eax
push edi
call fcn.00409e60
mov dword [esp + 0x30], 0xdcd4d2d0
mov byte [esp + 0x34], 0xba
mov dword [esp + 0x35], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 8
ja 0x40aa89
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 + ecx]
add edx, 0x10928d37
add eax, 0x10928d37
and eax, ecx
add eax, eax
mov ecx, eax
xor ecx, edx
not eax
and eax, edx
add eax, eax
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x7f
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
mov eax, dword [esp + 4]
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
cmp eax, 9
jb 0x40aa30
mov ecx, esi
push dword [esp + 0xbc]
push dword [esp + 0xbc]
push ebx
push edi
call fcn.0040a130
mov eax, dword [esi + 0x60]
mov dword [esp + 0x30], 0x8b059553
mov dword [esp + 0x34], 0x8f1c8918
mov dword [esp + 0x38], 0x831e8d15
mov dword [esp + 0x3c], 0x87538116
mov dword [esp + 0x40], 0x7b0b8532
mov dword [esp + 0x44], 0x7fe379ea
mov dword [esp + 0x48], 0x739c7db0
mov dword [esp + 0x4c], 0x77fb71e1
mov dword [esp + 0x50], 0x6be075ea
mov dword [esp + 0x54], 0x6ff869f5
mov dword [esp + 0x58], 0x63fa6dc9
mov dword [esp + 0x5c], 0x67b161f6
mov dword [esp + 0x60], 0x5bf565fc
mov dword [esp + 0x64], 0x5fcb59cc
mov dword [esp + 0x68], 0x53f85d8d
mov dword [esp + 0x6c], 0x57c451f5
mov dword [esp + 0x70], 0x4b9955f1
mov dword [esp + 0x74], 0x4fee49aa
mov dword [esp + 0x78], 0x43c74ddf
mov dword [esp + 0x7c], 0x47e441d0
mov dword [esp + 0x80], 0x3bd245e1
mov dword [esp + 0x84], 0x3ffb39b5
mov dword [esp + 0x88], 0x33a73d98
mov dword [esp + 0x8c], 0x37fb31fa
mov dword [esp + 0x90], 0x2baf3592
mov dword [esp + 0x94], 0x2fb729e1
mov dword [esp + 0x98], 0x23882dbe
mov dword [esp + 0x9c], 0x278521b3
mov dword [esp + 0xa0], 0x1bbf25b9
mov dword [esp + 0xa4], 0x1f8e198c
mov dword [esp + 0xa8], 0x13cb1d85
mov dword [esp + 0xac], 0x17ee11e1
mov word [esp + 0xb0], 0x1516
mov word [esp + 0xb6], 0
mov dword [esp + 0xb2], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x87
ja 0x40ac42
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 + 0x7a9963ed]
add ecx, 0xed
and ecx, edx
or ebx, edx
sub ebx, ecx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
add cl, 0x85
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x88
jb 0x40ac00
mov dword [esp + 0x10], 0x6b0b6d3f
mov dword [esp + 0x14], 0x67ff69f8
mov word [esp + 0x18], 0x6564
mov dword [esp + 0x1e], 0
mov dword [esp + 0x1a], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x11
ja 0x40acc2
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 8]
mov edx, dword [esp + 8]
movzx edx, byte [esp + edx + 0x10]
lea ebx, [ecx + edx]
add ebx, 0x46514172
add ecx, 0x46514172
and ecx, edx
add ecx, ecx
sub ebx, ecx
mov dword [esp + 4], ebx
mov ecx, dword [esp + 4]
add cl, 0xe2
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 0x12
jb 0x40ac80
push 0x493e0
push eax
push edi
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040e270
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00409240
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