Function at 0x40a250
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 0x40a2a1
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x40a2a8
cmp al, 0x64
jb 0x40a2b7
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 0x40a2c0
mov bl, 1
jmp 0x40a8d8
lea eax, [esp + 0xe]
mov dword [esp + 0x2c], eax
mov byte [esp + 0xe], 0x30
jmp 0x40a2ec
mov ecx, 3
cmp al, 9
ja 0x40a2d7
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea edx, [esp + ecx]
add edx, 0xb
mov dword [esp + 0x2c], edx
mov byte [esp + ecx + 0xb], al
jmp 0x40a2ec
movzx eax, word [eax + eax + 0x43e528]
lea ecx, [esp + 0xd]
mov dword [esp + 0x2c], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.004071c0
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x34], eax
lea ebx, [esp + 0xcb]
push ebx
call fcn.00434360
add esp, 4
mov dword [esp + 0x30], edi
lea eax, [edi + 0x400]
push eax
call fcn.004090b0
add esp, 4
mov edi, eax
mov dword [esp + 0x38], 0xafcbdcce
mov byte [esp + 0x3c], 0x4a
mov dword [esp + 0x41], 0
mov dword [esp + 0x3d], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0x40a3a0
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x38]
lea edx, [eax + ecx]
add edx, 0x5b0efd0d
add eax, 0x5b0efd0d
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0xa5
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0x40a360
lea eax, [esp + 0x38]
mov ecx, esi
push ebx
mov ebx, eax
push eax
push edi
call fcn.00409ab0
mov dword [esp + 0x38], 0x4bb0cac6
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov byte [esp + 0x44], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0x40a420
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x38]
lea edx, [eax + ecx]
add edx, 0x72e0400d
add eax, 0x72e0400d
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0xa5
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0x40a3e0
mov ecx, esi
push dword [esp + 0x2c]
push ebx
push edi
call fcn.00409ab0
mov eax, dword [str.test784__]
mov dword [esp + 0x38], 0xf396a4a0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov word [esp + 0x44], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xd
ja 0x40a4b2
nop
nop
nop
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 + 0x38]
lea ebx, [ecx + edx]
add ebx, 0xdbb3df5e
add ecx, 0xdbb3df5e
and ecx, edx
add ecx, ecx
sub ebx, ecx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
add cl, 0x6e
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x38], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xe
jb 0x40a470
mov ecx, esi
push eax
lea ebx, [esp + 0x3c]
push ebx
push edi
call fcn.00409ab0
mov dword [esp + 0x38], 0x87b880b3
mov dword [esp + 0x3c], 0x88bbbc8b
mov dword [esp + 0x40], 0xbeb9b48b
mov byte [esp + 0x44], 0x10
mov dword [esp + 0x45], 0
mov word [esp + 0x49], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x12
ja 0x40a540
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x38]
lea edx, [eax + ecx]
add edx, 0xd78e77da
add eax, 0xd78e77da
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0xa
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x13
jb 0x40a500
mov dword [esp + 0x10], 0x53ecfcf5
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0xf
ja 0x40a5c0
nop
nop
nop
nop
nop
nop
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 edx, 0x12c55d33
add eax, 0x12c55d33
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0x9b
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x10
jb 0x40a580
lea eax, [esp + 0x10]
mov ecx, esi
push ebx
push eax
push edi
call fcn.00409ab0
mov dword [esp + 0x38], 0x6870726c
mov byte [esp + 0x3c], 0xc2
mov dword [esp + 0x3d], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 8
ja 0x40a63d
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 + 0x38]
lea edx, [eax + 0x44a239a1]
add eax, 0xa1
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x99
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 9
jb 0x40a600
mov ecx, esi
push dword [esp + 0x30]
push dword [esp + 0x38]
push ebx
push edi
call fcn.00409d70
mov eax, dword [esi + 0x60]
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 0x13e111db
mov dword [esp + 0x3c], 0x1fe01de4
mov dword [esp + 0x40], 0x1bee19f1
mov dword [esp + 0x44], 0x271325e6
mov dword [esp + 0x48], 0x23db21fa
mov dword [esp + 0x4c], 0x2fc32dd2
mov dword [esp + 0x50], 0x2b082914
mov dword [esp + 0x54], 0x37cb35dd
mov dword [esp + 0x58], 0x33cc31c2
mov dword [esp + 0x5c], 0x3fcc3dd9
mov dword [esp + 0x60], 0x3bca39dd
mov dword [esp + 0x64], 0xc7f5c5c6
mov dword [esp + 0x68], 0xc331c128
mov dword [esp + 0x6c], 0xcf3bcd30
mov dword [esp + 0x70], 0xcb24c9f9
mov dword [esp + 0x74], 0xd728d529
mov dword [esp + 0x78], 0xd315d135
mov dword [esp + 0x7c], 0xdf3eddf2
mov dword [esp + 0x80], 0xdb27d92f
mov dword [esp + 0x84], 0xe708e52c
mov dword [esp + 0x88], 0xe312e105
mov dword [esp + 0x8c], 0xef2bed19
mov dword [esp + 0x90], 0xeb07e90c
mov dword [esp + 0x94], 0xf7cbf5d2
mov dword [esp + 0x98], 0xf31ff11a
mov dword [esp + 0x9c], 0xff17fdcd
mov dword [esp + 0xa0], 0xfb14f90e
mov dword [esp + 0xa4], 0x8769850b
mov dword [esp + 0xa8], 0x836f816d
mov dword [esp + 0xac], 0x8f7e8d70
mov dword [esp + 0xb0], 0x8bbb8961
mov dword [esp + 0xb4], 0x979e959d
mov word [esp + 0xb8], 0x9196
mov dword [esp + 0xbe], 0
mov dword [esp + 0xba], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x89
ja 0x40a820
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx eax, byte [esp + ecx + 0x38]
lea ecx, [ebx - 0x14a161ad]
lea edx, [ebx + eax]
add edx, 0xeb5e9e53
add ebx, 0x53
and ebx, eax
and ecx, eax
add ecx, ebx
mov eax, edx
not eax
and eax, ecx
not ecx
and ecx, edx
sub ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
mov ecx, eax
xor ecx, 0xba
and eax, 0x3a
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x8a
jb 0x40a7c0
mov dword [esp + 0x10], 0x8be385d7
mov dword [esp + 0x14], 0x8fe7891a
mov word [esp + 0x18], 0x8d8e
mov dword [esp + 0x1e], 0
mov dword [esp + 0x1a], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x11
ja 0x40a8a0
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 edx, 0x859b8915
add eax, 0x859b8915
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0x6d
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x12
jb 0x40a860
push 0x493e0
push dword [esp + 0x34]
push edi
push 0
push 0
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040d650
add esp, 0x1c
mov ebx, eax
push edi
call fcn.004090c0
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