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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xac
cmp dword [ecx + 0x20], 0
je 0x40ab29
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xb], 0
test eax, eax
je 0x40ab30
cmp al, 0x64
jb 0x40ab3b
lea ecx, [eax + eax*4]
lea edx, [eax + ecx*8]
shr edx, 0xc
imul ecx, edx, 0x64
sub al, cl
movzx eax, al
movzx eax, word [eax + eax + 0x442318]
mov word [esp + 9], ax
mov ecx, 0xfffffffd
mov eax, edx
jmp 0x40ab44
mov bl, 1
jmp 0x40b060
lea ebx, [esp + 0xa]
mov byte [esp + 0xa], 0x30
jmp 0x40ab6a
mov ecx, 0xffffffff
cmp al, 9
ja 0x40ab59
lea edx, [esp + 0xc]
lea ebx, [edx + ecx]
dec ebx
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov byte [esp + ecx + 0xb], al
jmp 0x40ab6a
movzx eax, word [eax + eax + 0x442318]
lea ebx, [esp + 9]
mov word [esp + 9], ax
lea eax, [esi + 0x10]
push eax
call fcn.004077c0
add esp, 4
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
lea eax, [ecx + 0x400]
push eax
call fcn.00409a00
add esp, 4
mov edi, eax
mov dword [esp + 0x24], 0x212ddc2e
mov byte [esp + 0x28], 0x4a
mov dword [esp + 0x29], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x40abee
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x24]
add eax, 0x909d7dd4
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x6e
mov ecx, dword [esp]
mov byte [esp + ecx + 0x24], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x40abc0
lea eax, [esp + 0x24]
mov ecx, esi
push 0x449818
mov ebp, eax
push eax
push edi
call fcn.0040a480
mov dword [esp + 0x24], 0xec09017b
mov word [esp + 0x28], 0
mov byte [esp + 0x2a], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x40ac5e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x24]
add eax, 0x8820b9ba
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0xaf
mov ecx, dword [esp]
mov byte [esp + ecx + 0x24], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x40ac30
mov ecx, esi
push ebx
push ebp
push edi
call fcn.0040a480
mov eax, dword [str.k99eRC__NO]
mov dword [esp + 0x24], 0x4deef0f4
mov dword [esp + 0x28], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 7
ja 0x40acce
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x24]
mov ebx, 0x9e
sub ebx, ecx
add ecx, edx
not edx
or ebx, edx
lea ecx, [ecx + ebx*2]
add ecx, 0x4e283d63
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0xd7
mov edx, dword [esp]
mov byte [esp + edx + 0x24], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 8
jb 0x40ac90
mov ecx, esi
push eax
mov ebx, ebp
push ebp
push edi
call fcn.0040a480
mov dword [esp + 0x24], 0xf2e9f3e0
mov dword [esp + 0x28], 0xdfccd7c8
mov dword [esp + 0x2c], 0xc9d6cfd8
mov byte [esp + 0x30], 0xa1
mov dword [esp + 0x31], 0
mov word [esp + 0x35], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x12
ja 0x40ad4e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x24]
add eax, 0x4af69e1c
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x77
mov ecx, dword [esp]
mov byte [esp + ecx + 0x24], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x13
jb 0x40ad20
mov dword [esp + 0xc], 0x6e1b090e
mov word [esp + 0x10], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x40adae
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0xc]
lea edx, [eax + ecx]
add eax, 0xe4
and eax, ecx
add eax, eax
sub edx, eax
add edx, 0x499e74e4
mov dword [esp], edx
mov eax, dword [esp]
add al, 0x77
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0xc], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 6
jb 0x40ad70
lea ebp, [esp + 0xc]
mov ecx, esi
push ebx
push ebp
push edi
call fcn.0040a480
mov dword [esp + 0x24], 0x216181e
mov byte [esp + 0x28], 0xbc
mov dword [esp + 0x29], 0
mov dword [esp + 0x2c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x40ae29
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x24]
lea edx, [eax + ecx]
add eax, 0xd
and eax, ecx
add eax, eax
sub edx, eax
add edx, 0x6fb6070d
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add al, 0x53
mov ecx, dword [esp]
mov byte [esp + ecx + 0x24], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x40adf0
mov ecx, esi
push dword [esp + 0x20]
push dword [esp + 0x20]
push ebx
push edi
call fcn.0040a710
mov eax, dword [esi + 0x60]
mov dword [esp + 0x24], 0x77e571b7
mov dword [esp + 0x28], 0x7bee75e6
mov dword [esp + 0x2c], 0x7fec799d
mov dword [esp + 0x30], 0x634f7de8
mov dword [esp + 0x34], 0x67ff6194
mov dword [esp + 0x38], 0x6b8f65f4
mov dword [esp + 0x3c], 0x6f4e69b6
mov dword [esp + 0x40], 0x13876d81
mov dword [esp + 0x44], 0x178211fc
mov dword [esp + 0x48], 0x1b8a15fd
mov dword [esp + 0x4c], 0x1f8819f9
mov dword [esp + 0x50], 0x3d11d88
mov dword [esp + 0x54], 0x79501ea
mov dword [esp + 0x58], 0xbe70592
mov dword [esp + 0x5c], 0xfea0925
mov dword [esp + 0x60], 0x33a60ded
mov dword [esp + 0x64], 0x37e931d1
mov dword [esp + 0x68], 0x3bdc3514
mov dword [esp + 0x6c], 0x3fab39ab
mov dword [esp + 0x70], 0x23c63dae
mov dword [esp + 0x74], 0x27b021c1
mov dword [esp + 0x78], 0x2bf725bd
mov dword [esp + 0x7c], 0x2fcb29ce
mov dword [esp + 0x80], 0xd3072df4
mov dword [esp + 0x84], 0xd733d134
mov dword [esp + 0x88], 0xdb33d501
mov dword [esp + 0x8c], 0xdf3ad948
mov dword [esp + 0x90], 0xc325dd4f
mov dword [esp + 0x94], 0xc723c129
mov dword [esp + 0x98], 0xcb5cc552
mov dword [esp + 0x9c], 0xcf1fc92d
mov dword [esp + 0xa0], 0xf3fccdc1
mov word [esp + 0xa4], 0xf1f0
mov byte [esp + 0xa8], 0
mov word [esp + 0xa6], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x84
ja 0x40afc3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x24]
add ecx, 0x92d5cf22
xor ecx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0xae
mov edx, dword [esp]
mov byte [esp + edx + 0x24], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x85
jb 0x40af90
mov dword [esp + 0xc], 0xc3a3c197
mov dword [esp + 0x10], 0xcfa7cd5c
mov word [esp + 0x14], 0xc9c8
mov dword [esp + 0x16], 0
mov word [esp + 0x1a], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xf
ja 0x40b033
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0xc]
add ecx, 0xa6186054
xor ecx, edx
mov dword [esp], ecx
mov ecx, dword [esp]
add cl, 0x6c
mov edx, dword [esp + 4]
mov byte [esp + edx + 0xc], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x10
jb 0x40b000
push 0x493e0
push eax
push edi
push 0
push 0
push ebx
push ebp
call fcn.0040cd60
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00409a10
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
mov eax, ebx
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret