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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xa8
cmp dword [ecx + 0x20], 0
je 0x40a969
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0x17], 0
test eax, eax
je 0x40a970
cmp al, 0x64
jb 0x40a97b
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 + 0x441318]
mov word [esp + 0x15], ax
mov ecx, 0xfffffffd
mov eax, edx
jmp 0x40a984
mov bl, 1
jmp 0x40ae50
lea ebp, [esp + 0x16]
mov byte [esp + 0x16], 0x30
jmp 0x40a9aa
mov ecx, 0xffffffff
cmp al, 9
ja 0x40a999
lea edx, [esp + 0x18]
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea ebp, [edx + ecx]
dec ebp
mov byte [esp + ecx + 0x17], al
jmp 0x40a9aa
lea ebp, [esp + 0x15]
movzx eax, word [eax + eax + 0x441318]
mov word [esp + 0x15], ax
lea eax, [esi + 0x10]
push eax
call fcn.004077d0
add esp, 4
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
lea eax, [ecx + 0x400]
push eax
call fcn.00409840
add esp, 4
mov edi, eax
mov dword [esp + 0x20], 0x6c6e516d
mov byte [esp + 0x24], 0xc9
mov dword [esp + 0x25], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x40aa2e
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x20]
add eax, 0x858b9575
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x50
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x40aa00
lea eax, [esp + 0x20]
mov ecx, esi
push 0x448a04
mov ebx, eax
push eax
push edi
call fcn.0040a2d0
mov dword [esp + 0x20], 0xdf323840
mov byte [esp + 0x24], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x40aa8e
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x20]
add eax, 0xb6a42706
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x2a
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x40aa60
mov ecx, esi
push ebp
push ebx
push edi
call fcn.0040a2d0
mov eax, dword [str.BFfKAH__PDF]
mov dword [esp], 0xd7484e4e
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 3
ja 0x40aaf3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 8]
mov edx, dword [esp + 8]
movzx edx, byte [esp + edx]
add ecx, 0xed546227
xor ecx, edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x20]
add cl, 3
mov edx, dword [esp + 8]
mov byte [esp + edx], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 4
jb 0x40aac0
mov edx, esp
mov ecx, esi
push eax
push edx
push edi
call fcn.0040a2d0
mov dword [esp + 0x20], 0x99a49cd5
mov dword [esp + 0x24], 0xac99a095
mov dword [esp + 0x28], 0x969790ad
mov byte [esp + 0x2c], 0x3c
mov dword [esp + 0x2d], 0
mov byte [esp + 0x31], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x11
ja 0x40ab6e
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x20]
add eax, 0xbde87dbf
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 9
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x12
jb 0x40ab40
mov dword [esp + 8], 0x8e030d0e
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 7
ja 0x40abc1
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 8]
add eax, 0x7e91a83e
xor eax, ecx
mov dword [esp], eax
mov eax, dword [esp]
add al, 0x31
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 8
jb 0x40ab90
lea ebp, [esp + 8]
mov ecx, esi
push ebx
push ebp
push edi
call fcn.0040a2d0
mov dword [esp + 0x20], 0xe6dae4e2
mov byte [esp + 0x24], 0x48
mov word [esp + 0x25], 0
mov byte [esp + 0x27], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x40ac2e
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x20]
add eax, 0xa993e479
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xcb
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x40ac00
mov ecx, esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebx
push edi
call fcn.0040a550
mov eax, dword [esi + 0x60]
mov dword [esp + 0x20], 0x821280c4
mov dword [esp + 0x24], 0x8613841b
mov dword [esp + 0x28], 0xba25b8de
mov dword [esp + 0x2c], 0xbee0bc29
mov dword [esp + 0x30], 0xb238b0c5
mov dword [esp + 0x34], 0xb6d0b425
mov dword [esp + 0x38], 0xaa8ba8e3
mov dword [esp + 0x3c], 0xae38ac32
mov dword [esp + 0x40], 0xa237a03d
mov dword [esp + 0x44], 0xa637a43e
mov dword [esp + 0x48], 0xda49d8ba
mov dword [esp + 0x4c], 0xde8edc49
mov dword [esp + 0x50], 0xd242d0b7
mov dword [esp + 0x54], 0xd648d447
mov dword [esp + 0x58], 0xcaafc896
mov dword [esp + 0x5c], 0xce5bccae
mov dword [esp + 0x60], 0xc28ec0a2
mov dword [esp + 0x64], 0xc6a5c4e5
mov dword [esp + 0x68], 0xfa6cf868
mov dword [esp + 0x6c], 0xfe9bfc63
mov dword [esp + 0x70], 0xf261f092
mov dword [esp + 0x74], 0xf6b8f47e
mov dword [esp + 0x78], 0xea8ce88b
mov dword [esp + 0x7c], 0xeeb8eca5
mov dword [esp + 0x80], 0xe284e085
mov dword [esp + 0x84], 0xe67ce4b2
mov dword [esp + 0x88], 0x1a7f1889
mov dword [esp + 0x8c], 0x1e7a1c8c
mov dword [esp + 0x90], 0x1274108a
mov dword [esp + 0x94], 0x16851487
mov dword [esp + 0x98], 0xa58086e
mov dword [esp + 0x9c], 0xe350c32
mov byte [esp + 0xa0], 1
mov word [esp + 0xa5], 0
mov dword [esp + 0xa1], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x86
ja 0x40adc3
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x20]
add ecx, 0xcbd9c798
xor ecx, edx
mov dword [esp + 8], ecx
mov ecx, dword [esp + 8]
add cl, 0xe7
mov edx, dword [esp]
mov byte [esp + edx + 0x20], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x87
jb 0x40ad90
mov dword [esp + 8], 0x9efc9ccc
mov dword [esp + 0xc], 0x82e88011
mov dword [esp + 0x10], 0x8485
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xb
ja 0x40ae23
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 8]
add ecx, 0x894f9f0c
xor ecx, edx
mov dword [esp], ecx
mov ecx, dword [esp]
add cl, 0x6f
mov edx, dword [esp + 4]
mov byte [esp + edx + 8], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xc
jb 0x40adf0
push 0x493e0
push eax
push edi
push 0
push 0
push ebx
push ebp
call fcn.0040cca0
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00409850
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
mov eax, ebx
add esp, 0xa8
pop esi
pop edi
pop ebx
pop ebp
ret