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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10c
cmp dword [ecx + 0x20], 0
je 0x40a68d
mov esi, ecx
lea eax, [ecx + 0x10]
push eax
call fcn.00406980
add esp, 4
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 4], eax
movzx eax, byte [esi]
imul ecx, eax, 0xcd
shr ecx, 0xa
and ecx, 0xfffffffe
lea ecx, [ecx + ecx*4]
sub al, cl
movzx eax, al
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov byte [esp + 2], al
mov byte [esp + 3], 0
mov dword [esp + 8], edx
lea eax, [edx + 0x400]
push eax
call fcn.00408c10
add esp, 4
mov dword [esp + 0x70], 0x6f6b1e68
mov byte [esp + 0x74], 0xac
mov word [esp + 0x75], 0
mov byte [esp + 0x77], 0
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, edx
add cl, 0xdc
xor cl, byte [esp + edx + 0x70]
add cl, 0xb4
mov byte [esp + edx + 0x70], cl
inc edx
cmp edx, 8
jne 0x40a2a0
lea ebx, [esp + 0x70]
mov ecx, esi
push 0x44bc74
push ebx
mov dword [esp + 0x14], eax
push eax
call fcn.00409ae0
mov dword [esp + 0x70], 0x99766c6c
mov word [esp + 0x74], 0
mov byte [esp + 0x76], 0
mov eax, 0xdb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax - 0x6b]
lea ecx, [eax - 0xb2cef00]
mov ebp, eax
and ebp, edx
or ecx, edx
sub ecx, ebp
lea edx, [ecx + 0x37e0a6b8]
mov ebp, edx
xor ebp, 0xfe
mov edi, edx
or edi, 1
and edi, ebp
and ecx, 1
xor edx, 1
or edx, ecx
add edx, edi
mov byte [esp + eax - 0x6b], dl
inc eax
cmp eax, 0xe2
jne 0x40a2f0
lea eax, [esp + 2]
mov ecx, esi
push eax
push ebx
mov ebp, dword [esp + 0x14]
push ebp
call fcn.00409ae0
mov eax, dword [str.yau6Na__1285025705]
mov dword [esp + 0x70], 0x611a1c10
mov word [esp + 0x74], 0
mov ecx, 0x696db69
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx - 0x696daf9]
mov edi, ecx
and edi, 0x612121f
or edi, 0x40012480
xor edi, edx
mov edx, edi
and edx, 1
xor edi, 0xe1
lea edx, [edi + edx*2]
add dl, 0xf2
mov byte [esp + ecx - 0x696daf9], dl
inc ecx
cmp ecx, 0x696db6f
jne 0x40a360
mov ecx, esi
push eax
push ebx
push ebp
call fcn.00409ae0
mov dword [esp + 0x70], 0xafa4aca3
mov dword [esp + 0x74], 0x5c53584b
mov dword [esp + 0x78], 0x5655485b
mov byte [esp + 0x7c], 0xe4
mov dword [esp + 0x7d], 0
mov byte [esp + 0x81], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea ecx, [eax + 0x7c]
mov edx, 3
sub edx, eax
and edx, 0x55
and ecx, 0xaa
or ecx, edx
xor cl, byte [esp + eax + 0x70]
xor cl, 0x55
add cl, 0x94
mov byte [esp + eax + 0x70], cl
add eax, 0x8b9135a
mov ecx, eax
and ecx, 0x27
xor eax, 0xf746eca7
lea eax, [eax + ecx*2]
cmp eax, 0x12
jb 0x40a3e0
mov dword [esp + 0x10], 0xf9661613
mov word [esp + 0x14], 0
mov byte [esp + 0x16], 0
xor eax, eax
mov ecx, eax
add cl, 0x2b
xor cl, byte [esp + eax + 0x10]
add cl, 0x29
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 7
jne 0x40a430
lea eax, [esp + 0x10]
mov ecx, esi
push ebx
push eax
push ebp
call fcn.00409ae0
mov dword [esp + 0x70], 0xbeb2bcba
mov byte [esp + 0x74], 0x20
mov dword [esp + 0x75], 0
xor eax, eax
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x70]
lea edi, [eax + 0xb9]
mov ecx, 0x46
sub ecx, eax
xor ecx, edi
and ecx, edx
xor ecx, edi
add cl, 0x63
mov byte [esp + eax + 0x70], cl
mov ecx, eax
not ecx
or ecx, 1
add ecx, eax
inc ecx
lea edx, [eax + eax]
and edx, 2
neg edx
add eax, edx
inc eax
lea eax, [eax + ecx*2]
cmp eax, 9
jb 0x40a470
mov ecx, esi
push dword [esp + 8]
push dword [esp + 8]
push ebx
push ebp
call fcn.00409d70
mov dword [esp + 0x10], 0x8f3d894f
mov dword [esp + 0x14], 0x83368d3e
mov dword [esp + 0x18], 0x87348125
mov dword [esp + 0x1c], 0x9b678530
mov dword [esp + 0x20], 0x9f17994c
mov dword [esp + 0x24], 0x93379d2c
mov dword [esp + 0x28], 0x9776915e
mov dword [esp + 0x2c], 0x6bdf9529
mov dword [esp + 0x30], 0x6fda69d4
mov dword [esp + 0x34], 0x63d26dd5
mov dword [esp + 0x38], 0x67d061c1
mov dword [esp + 0x3c], 0x7b8965d0
mov dword [esp + 0x40], 0x7fcd79c2
mov dword [esp + 0x44], 0x73cf7dca
mov dword [esp + 0x48], 0x77d2718d
mov dword [esp + 0x4c], 0x4bfe75d5
mov dword [esp + 0x50], 0x4f8149e9
mov dword [esp + 0x54], 0x43e44dac
mov dword [esp + 0x58], 0x47f341f3
mov dword [esp + 0x5c], 0x5bfe45f6
mov dword [esp + 0x60], 0x5fe859f9
mov dword [esp + 0x64], 0x539f5dd5
mov word [esp + 0x68], 0x5150
mov dword [esp + 0x6a], 0
xor eax, eax
nop
nop
mov ecx, eax
add cl, 0x62
xor cl, byte [esp + eax + 0x10]
add cl, 0x16
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x5e
jne 0x40a580
movzx eax, word [esp + 0x10]
test ax, ax
je 0x40a5c1
lea ebx, [esp + 0x70]
lea ecx, [esp + 0x12]
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a5b0
mov word [ebx], 0
movzx ecx, byte [esi + 0x60]
test cl, cl
je 0x40a5f1
lea eax, [esi + 0x61]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movsx ecx, cl
mov word [ebx], cx
add ebx, 2
movzx ecx, byte [eax]
inc eax
test cl, cl
jne 0x40a5e0
mov dword [ebx], 0xa000d
mov word [ebx + 4], 0
mov eax, dword [esi + 0x80]
mov dword [esp + 0x10], 0x43a3416f
mov dword [esp + 0x14], 0x47af45d4
mov dword [esp + 0x18], 0x4948
xor ecx, ecx
nop
nop
nop
mov edi, ecx
and edi, 0xc
xor edi, 0x3c
add edi, 0xf0
mov ebx, ecx
xor ebx, 0x2c
mov edx, ecx
or edx, 3
and edx, ebx
or edx, edi
xor dl, byte [esp + ecx + 0x10]
xor dl, 0x3c
add dl, 0xb0
mov byte [esp + ecx + 0x10], dl
inc ecx
cmp ecx, 0xc
jne 0x40a620
lea ecx, [esp + 0x70]
push 0x493e0
push eax
push ebp
push 0
push 0
push ecx
lea eax, [esp + 0x28]
push eax
call fcn.0040cc60
add esp, 0x1c
mov ebx, eax
push ebp
call fcn.00408c20
add esp, 4
mov eax, dword [esi + 0x80]
add dword [esi + 4], eax
mov dword [esi + 0x80], 0
jmp 0x40a68f
mov bl, 1
mov eax, ebx
add esp, 0x10c
pop esi
pop edi
pop ebx
pop ebp
ret