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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xd0
cmp dword [ecx + 0x20], 0
je 0x40a6e9
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xb], 0
test eax, eax
je 0x40a6f0
cmp al, 0x64
jb 0x40a6fb
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 + 0x43b318]
mov word [esp + 9], ax
mov ecx, 0xfffffffd
mov eax, edx
jmp 0x40a704
mov bl, 1
jmp 0x40ac14
lea ebx, [esp + 0xa]
mov byte [esp + 0xa], 0x30
jmp 0x40a72a
mov ecx, 0xffffffff
cmp al, 9
ja 0x40a719
lea edx, [esp + 0xc]
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea ebx, [edx + ecx]
dec ebx
mov byte [esp + ecx + 0xb], al
jmp 0x40a72a
movzx eax, word [eax + eax + 0x43b318]
lea ebx, [esp + 9]
mov word [esp + 9], ax
lea eax, [esi + 0x10]
push eax
call fcn.00407520
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x1c], eax
lea ebp, [esp + 0xaf]
push ebp
call fcn.00430c30
add esp, 4
mov dword [esp + 0x20], edi
lea eax, [edi + 0x400]
push eax
call fcn.00409690
add esp, 4
mov edi, eax
mov dword [esp + 0x24], 0xa7abd6a8
mov byte [esp + 0x28], 0x44
mov dword [esp + 0x29], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x40a7ca
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x24]
add eax, 0xb2a11110
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov ecx, eax
not ecx
and ecx, 0x50
and eax, 0xaf
sub eax, ecx
mov ecx, dword [esp]
mov byte [esp + ecx + 0x24], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x40a790
lea eax, [esp + 0x24]
mov ecx, esi
push ebp
mov ebp, eax
push eax
push edi
call fcn.0040a040
mov dword [esp + 0x24], 0x1fbab0a8
mov word [esp + 0x28], 0
mov byte [esp + 0x2a], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x40a82e
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x24]
add eax, 0xa442397a
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x9e
mov ecx, dword [esp]
mov byte [esp + ecx + 0x24], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x40a800
mov ecx, esi
push ebx
push ebp
push edi
call fcn.0040a040
mov eax, dword [str.LPnhqo__osrdtzjxvdsk]
mov dword [esp + 0x24], 0x611a1c10
mov byte [esp + 0x28], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 4
ja 0x40a890
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x24]
add ecx, 0x7fef1be9
xor ecx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0x73
mov edx, dword [esp]
mov byte [esp + edx + 0x24], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 5
jb 0x40a860
mov ecx, esi
push eax
push ebp
push edi
call fcn.0040a040
mov dword [esp + 0x24], 0x8d988091
mov dword [esp + 0x28], 0x98859c89
mov dword [esp + 0x2c], 0x9a9b9499
mov byte [esp + 0x30], 0x30
mov dword [esp + 0x31], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x10
ja 0x40a909
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x24]
mov edx, eax
and edx, 0x10ef8507
xor eax, 0x10ef8507
lea eax, [eax + edx*2]
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0xdd
mov ecx, dword [esp]
mov byte [esp + ecx + 0x24], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x11
jb 0x40a8d0
mov dword [esp + 0xc], 0x23b6c2c1
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 7
ja 0x40a961
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0xc]
add eax, 0xbf19c4f8
xor eax, ecx
mov dword [esp], eax
mov eax, dword [esp]
add al, 0x28
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0xc], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 8
jb 0x40a930
lea eax, [esp + 0xc]
mov ecx, esi
push ebp
push eax
push edi
call fcn.0040a040
mov dword [esp + 0x24], 0x1a121012
mov byte [esp + 0x28], 0xfc
mov dword [esp + 0x29], 0
mov byte [esp + 0x2d], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 9
ja 0x40a9ce
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x24]
add eax, 0x82f896aa
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0xae
mov ecx, dword [esp]
mov byte [esp + ecx + 0x24], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xa
jb 0x40a9a0
mov ecx, esi
push dword [esp + 0x20]
push dword [esp + 0x20]
push ebp
push edi
call fcn.0040a2a0
mov eax, dword [esi + 0x60]
mov dword [esp + 0x24], 0x79eb7b31
mov dword [esp + 0x28], 0x65fa67ea
mov dword [esp + 0x2c], 0x61f0630f
mov dword [esp + 0x30], 0x6d3d6ffc
mov dword [esp + 0x34], 0x69ed6b10
mov dword [esp + 0x38], 0x95fd97f8
mov dword [esp + 0x3c], 0x91b293d2
mov dword [esp + 0x40], 0x9d059f03
mov dword [esp + 0x44], 0x99069b08
mov dword [esp + 0x48], 0x8516870f
mov dword [esp + 0x4c], 0x811c83eb
mov dword [esp + 0x50], 0x8ddf8f1c
mov dword [esp + 0x54], 0x891b8be6
mov dword [esp + 0x58], 0xb525b716
mov dword [esp + 0x5c], 0xb1deb3e7
mov dword [esp + 0x60], 0xbd22bfdf
mov dword [esp + 0x64], 0xb9ffbbd3
mov dword [esp + 0x68], 0xa5c8a798
mov dword [esp + 0x6c], 0xa139a335
mov dword [esp + 0x70], 0xadc2af32
mov dword [esp + 0x74], 0xa934abc3
mov dword [esp + 0x78], 0xd595d72f
mov dword [esp + 0x7c], 0xd1b9d3ba
mov dword [esp + 0x80], 0xdd85df88
mov dword [esp + 0x84], 0xd9b1dbb0
mov dword [esp + 0x88], 0xc551c783
mov dword [esp + 0x8c], 0xc1aec354
mov dword [esp + 0x90], 0xcda3cf51
mov dword [esp + 0x94], 0xc9a1cb5b
mov dword [esp + 0x98], 0xf568f756
mov dword [esp + 0x9c], 0xf1adf39f
mov dword [esp + 0xa0], 0xfdc8ffc3
mov word [esp + 0xa4], 0xfbfc
mov byte [esp + 0xaa], 0
mov dword [esp + 0xa6], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x86
ja 0x40ab6d
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x24]
lea ebx, [ecx + edx]
add ecx, 0x6b
and ecx, edx
add ecx, ecx
sub ebx, ecx
add ebx, 0xfcfc056b
mov dword [esp + 0xc], ebx
mov ecx, dword [esp + 0xc]
add cl, 0xe9
mov edx, dword [esp]
mov byte [esp + edx + 0x24], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x87
jb 0x40ab30
mov dword [esp + 0xc], 0xf757f98b
mov dword [esp + 0x10], 0xf34bf544
mov word [esp + 0x14], 0xf1f0
mov dword [esp + 0x16], 0
mov byte [esp + 0x1a], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xe
ja 0x40abe3
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 + 0xc]
add ecx, 0x94167e56
xor ecx, edx
mov dword [esp], ecx
mov ecx, dword [esp]
add cl, 0x52
mov edx, dword [esp + 4]
mov byte [esp + edx + 0xc], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xf
jb 0x40abb0
push 0x493e0
push eax
push edi
push 0
push 0
push ebp
lea eax, [esp + 0x24]
push eax
call fcn.0040c890
add esp, 0x1c
mov ebx, eax
push edi
call fcn.004096a0
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
mov eax, ebx
add esp, 0xd0
pop esi
pop edi
pop ebx
pop ebp
ret