Function at 0x40a460
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, 0x100
cmp dword [ecx + 0x20], 0
je 0x40a4b1
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x40a4b8
cmp al, 0x64
jb 0x40a4c7
movzx ecx, al
lea edx, [ecx + ecx*4]
lea edx, [ecx + edx*8]
shr edx, 0xc
imul ecx, edx, 0x64
sub al, cl
movzx eax, al
movzx eax, word [eax + eax + 0x444520]
mov word [esp + 0xd], ax
mov ecx, 0xfffffffd
mov eax, edx
jmp 0x40a4d0
mov bl, 1
jmp 0x40ae46
lea eax, [esp + 0xe]
mov dword [esp + 8], eax
mov byte [esp + 0xe], 0x30
jmp 0x40a500
mov ecx, 0xffffffff
cmp al, 9
ja 0x40a4eb
lea edx, [esp + 0x10]
movzx eax, al
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
add edx, ecx
dec edx
mov dword [esp + 8], edx
mov byte [esp + ecx + 0xf], al
jmp 0x40a500
movzx eax, word [eax + eax + 0x444520]
lea ecx, [esp + 0xd]
mov dword [esp + 8], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406f80
add esp, 4
mov edi, dword [esi + 0x10]
mov dword [esp + 0x14], esi
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xd0], eax
lea eax, [esp + 0xdb]
push eax
call fcn.00438540
add esp, 4
mov dword [esp + 0xd4], edi
lea eax, [edi + 0x400]
push eax
call fcn.00408fc0
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], 0x9f93809e
mov byte [esp + 0x3c], 0x3a
mov dword [esp + 0x3d], 0
mov dword [esp + 0x41], 0
mov byte [esp + 0x45], 0
mov eax, 0x110aaa8
mov ecx, 0x72ef5557
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx - 0x72ef551f]
mov edi, edx
not edi
mov esi, edi
and esi, 0x83341d52
or edi, 0x7ccbe2ad
add edx, edi
inc edx
mov ebx, eax
and ebx, 0x1100812
mov edi, ecx
and edi, 0x70cb402d
or edi, ebx
mov ebx, edx
not ebx
and ebx, esi
xor edx, esi
add edx, esi
sub edx, ebx
xor edx, edi
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x18]
mov ebx, edx
and ebx, 0x248b5561
add ebx, ebx
mov esi, edx
and esi, 0x5b74aa9e
mov edi, edx
xor edi, 2
and edi, esi
sub ebx, edx
and edx, 2
or esi, 2
imul esi, edx
xor edx, 2
imul edx, edi
add esi, edx
mov edx, esi
xor esi, 0x9d3046d0
add esi, ebx
and edx, 0x1d3046d0
lea edx, [esi + edx*2]
add edx, 0x5b74aa9f
mov esi, edx
xor esi, 0xd0
and edx, 0x2f
add edx, edx
sub edx, esi
mov byte [esp + ecx - 0x72ef551f], dl
dec eax
inc ecx
cmp eax, 0x110aa9a
jne 0x40a580
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xdb]
push edx
push eax
push dword [esp + 0x18]
call fcn.00409ba0
mov dword [esp + 0x38], 0x2b808a96
mov dword [esp + 0x3c], 0
mov dword [esp + 0x3f], 0
xor esi, esi
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp + 4], esi
movzx edx, byte [esp + ecx + 0x38]
mov esi, dword [esp + 4]
and esi, 0x10
mov edi, ecx
xor edi, 0x338a8e98
lea ebx, [esi + edi]
add esi, edi
add esi, 0x2d
lea edi, [edx + edx]
not edi
add edi, edx
mov eax, 0x2133f912
sub eax, ebx
or edi, eax
add edi, ebx
add edi, 0xdecc06ee
and eax, 0xd8
and esi, 0x27
or esi, eax
xor esi, edx
xor esi, 0xd8
and esi, edx
or esi, edi
mov dword [esp + 0x18], esi
mov esi, dword [esp + 4]
mov edx, dword [esp + 0x18]
mov eax, edx
not eax
and edx, 0x5c
and eax, 0xa3
sub edx, eax
mov byte [esp + ecx + 0x38], dl
inc ecx
add esi, 2
cmp ecx, 0xb
jne 0x40a670
mov ecx, dword [esp + 0x14]
push dword [esp + 8]
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x18]
call fcn.00409ba0
mov eax, dword [str.yau6Na__6955970016]
mov dword [esp + 0xcc], eax
mov dword [esp + 0x38], 0x3e69490
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov word [esp + 0x44], 0
xor edi, edi
mov ecx, 0xffffffff
nop
nop
nop
mov dword [esp + 4], ecx
movzx ebx, byte [esp + edi + 0x38]
mov edx, edi
and edx, 6
lea eax, [edx*2 + 2]
sub eax, edx
add eax, 0xfffffffe
mov edx, ecx
and edx, 9
mov esi, edi
and esi, 9
xor esi, 0x25bb5829
or esi, edx
not esi
mov edx, eax
and edx, esi
xor esi, eax
lea ecx, [esi + edx*2]
mov edx, ebx
mov eax, ebx
not eax
or eax, 0x809af7be
lea esi, [ebx + eax]
inc esi
mov eax, ebx
and eax, 0x41
xor eax, 0x7f650841
or eax, esi
mov esi, eax
xor esi, 0x7f650841
mov ebx, esi
and ebx, 0x800a8276
and eax, 0x4cf07589
or eax, ebx
mov dword [esp + 8], edx
xor eax, edx
xor eax, 0x4c600001
or esi, edx
not esi
or esi, eax
mov ebx, esi
not ebx
or ebx, ecx
add ebx, esi
mov eax, 0xfffffffe
sub eax, ebx
mov esi, ecx
and esi, 2
mov ebx, ecx
or ebx, 2
imul ebx, esi
xor esi, 2
mov edx, ecx
and edx, 0xfffffffd
imul edx, esi
add ebx, edx
mov edx, ebx
not edx
add edx, ecx
lea esi, [edx + edx]
not esi
add esi, edx
mov edx, esi
and edx, 0xb956dc2b
sub ebx, ecx
and ebx, 0x46a923d4
or ebx, edx
xor ebx, ecx
or esi, ecx
not esi
or esi, ebx
mov ecx, dword [esp + 8]
lea edx, [ecx + ecx]
not edx
add edx, ecx
mov ecx, esi
and ecx, 0x7fb8ce2f
or ecx, 0x80430100
and esi, 0x804731d0
xor esi, ecx
xor esi, 0x7fbcfeff
or esi, edx
and esi, eax
not esi
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x18]
mov ecx, eax
xor ecx, 0xda
and eax, 0x25
add eax, eax
sub eax, ecx
mov ecx, dword [esp + 4]
mov byte [esp + edi + 0x38], al
inc edi
dec ecx
cmp edi, 0xe
jne 0x40a730
mov ecx, dword [esp + 0x14]
push dword [esp + 0xcc]
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x18]
call fcn.00409ba0
mov dword [esp + 0x38], 0xf7f8f0e3
mov dword [esp + 0x3c], 0xe8fbfccb
mov dword [esp + 0x40], 0xfef9c4eb
mov byte [esp + 0x44], 0x60
mov dword [esp + 0x45], 0
mov eax, 0xad
mov ecx, 0x32355352
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + ecx - 0x3235531a]
lea edi, [ecx - 0x32355350]
and edi, 0xf
mov edx, eax
and edx, 0xb0
or edx, edi
xor edx, 0xf
and edx, esi
not esi
and esi, ecx
lea edi, [esi + esi]
not edi
add edi, esi
mov ebx, esi
and ebx, 0x22315246
and edi, 0x10040139
or edi, ebx
xor edi, 0x10040139
and edi, esi
or edi, edx
mov dword [esp + 0x18], edi
mov edx, dword [esp + 0x18]
add dl, 0xc2
mov byte [esp + ecx - 0x3235531a], dl
dec eax
inc ecx
cmp eax, 0x9c
jne 0x40a8a0
mov dword [esp + 0x18], 0x8316eaed
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov word [esp + 0x24], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x18]
lea ecx, [eax + eax]
mov edi, ecx
not edi
add edi, eax
or edi, 0x31ee0969
mov ebx, eax
and ebx, 6
lea esi, [edi + edi]
not esi
add esi, edi
xor esi, ebx
add esi, ebx
mov ebx, esi
or ebx, 0xfffffffd
lea edi, [ebx + ebx]
not edi
add edi, ebx
mov ebx, esi
and ebx, 0xfffffffc
imul edi, ebx
mov ebx, esi
and ebx, 2
or esi, 2
imul esi, ebx
mov ebx, eax
xor ebx, 0xce11f696
add ebx, esi
add ebx, edi
mov edi, edx
not edi
mov esi, ebx
and esi, edi
not ebx
or ebx, edi
lea edi, [edx + ebx]
inc edi
mov ebx, esi
xor ebx, 0xaf02b494
mov edx, edi
xor edx, 0x50fd4b6b
and edx, ebx
mov ebx, esi
and esi, edi
xor ebx, 0x50fd4b6b
xor edi, 0xaf02b494
and edi, ebx
or esi, edi
or esi, edx
mov dword [esp + 0x34], esi
mov edx, dword [esp + 0x34]
add dl, 0xe6
mov byte [esp + eax + 0x18], dl
and ecx, 2
xor eax, 1
add eax, ecx
cmp eax, 0xe
jb 0x40a930
lea edx, [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x38]
push eax
push edx
push dword [esp + 0x18]
call fcn.00409ba0
mov dword [esp + 0x38], 0xe61e1416
mov byte [esp + 0x3c], 0x80
mov dword [esp + 0x3d], 0
mov dword [esp + 0x40], 0
mov eax, 0x45928696
mov esi, 0xba6d7969
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp + 8], esi
mov dword [esp + 4], eax
movzx edi, byte [esp + eax - 0x4592865e]
mov eax, edi
not eax
lea edx, [edi + edi]
lea ebx, [edi*2 + 1]
and ebx, eax
mov ecx, edx
xor ecx, 0xfe
and ecx, edi
sub ecx, ebx
mov ebx, ecx
not ebx
lea esi, [edi + eax*2]
inc esi
and ebx, esi
xor ecx, esi
lea eax, [edi + eax*2]
add eax, ecx
inc eax
sub eax, ebx
mov ecx, eax
and ecx, 2
mov ebx, eax
or ebx, 2
imul ebx, ecx
xor ecx, 2
mov esi, eax
and esi, 0x7ffffffd
imul esi, ecx
add ebx, esi
mov esi, dword [esp + 8]
not ebx
add ebx, eax
mov ecx, esi
and ecx, 0x90294046
mov eax, dword [esp + 4]
and eax, 0x44800439
or eax, ecx
mov ecx, eax
xor ecx, 0x6ec43d39
not edx
add edx, edi
and edx, 0x1614f01e
and edi, 0xffffffe1
or edx, edi
add edi, edi
sub edx, edi
lea edi, [ecx + ecx]
not edi
add edi, ecx
and ecx, 0x3a6c3103
and edi, 0xc4114efc
or edi, ecx
add edx, 0xe9eb0fe1
xor edi, edx
xor eax, 0x913bc2c6
and eax, edx
xor edi, 0x3beeb103
or eax, edi
or ebx, esi
and eax, ebx
not eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add al, 0xe6
mov ecx, dword [esp + 4]
mov byte [esp + ecx - 0x4592865e], al
mov eax, dword [esp + 4]
inc eax
dec esi
cmp eax, 0x459286a2
jne 0x40aa20
mov esi, dword [esp + 0x14]
mov ecx, esi
push dword [esp + 0xd4]
push dword [esp + 0xd4]
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x1c]
call fcn.00409fb0
mov eax, dword [esi + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 0x38], 0x8b1585c3
mov dword [esp + 0x3c], 0x8f1c8918
mov dword [esp + 0x40], 0xb31e8de5
mov dword [esp + 0x44], 0xb7e3b126
mov dword [esp + 0x48], 0xbb2bb5c2
mov dword [esp + 0x4c], 0xbfd3b92a
mov dword [esp + 0x50], 0xa39cbde0
mov dword [esp + 0x54], 0xa73ba131
mov dword [esp + 0x58], 0xab30a5ca
mov dword [esp + 0x5c], 0xaf38a9c5
mov dword [esp + 0x60], 0xd33aadc9
mov dword [esp + 0x64], 0xd781d146
mov dword [esp + 0x68], 0xdb45d5bc
mov dword [esp + 0x6c], 0xdf4bd94c
mov dword [esp + 0x70], 0xc3b8dd8d
mov dword [esp + 0x74], 0xc754c1a5
mov dword [esp + 0x78], 0xcb99c5a1
mov dword [esp + 0x7c], 0xcfaec9ea
mov dword [esp + 0x80], 0xf357cd5f
mov dword [esp + 0x84], 0xf794f160
mov dword [esp + 0x88], 0xfb62f591
mov dword [esp + 0x8c], 0xffbbf965
mov dword [esp + 0x90], 0xe397fd98
mov dword [esp + 0x94], 0xe7bbe1ba
mov dword [esp + 0x98], 0xeb8fe582
mov dword [esp + 0x9c], 0xef87e9b1
mov dword [esp + 0xa0], 0x1388ed7e
mov dword [esp + 0xa4], 0x17751183
mov dword [esp + 0xa8], 0x1b7f1579
mov dword [esp + 0xac], 0x1f8e198c
mov dword [esp + 0xb0], 0x34b1d75
mov dword [esp + 0xb4], 0x70e0131
mov word [esp + 0xb8], 0x506
mov dword [esp + 0xc2], 0
mov dword [esp + 0xbe], 0
mov dword [esp + 0xba], 0
mov ecx, 0xce120695
mov edx, 0x31edf96a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp + 4], edx
movzx eax, byte [esp + ecx + 0x31edf9a3]
mov edi, eax
not edi
lea esi, [eax + eax]
not esi
add esi, eax
and esi, edi
mov ebx, esi
mov edx, dword [esp + 4]
and edx, 0x3009013c
mov edi, ecx
and edi, 0xc3
or edi, edx
mov edx, esi
xor edx, 0x6e0188b
or esi, 0xf91fe774
and esi, edx
not ebx
xor edi, 0x1e4f8c3
and ebx, 0x6e0188b
or esi, ebx
or eax, ecx
lea ebx, [eax + eax]
not ebx
add ebx, eax
mov eax, esi
xor eax, 0x6e0188b
xor esi, 0xff1fe774
and edi, dword [esp + 4]
and edi, esi
add edi, eax
lea eax, [ebx + ebx]
not eax
add eax, ebx
mov edx, eax
and edx, 0xb25b4c92
and ebx, 0x4da4b36d
or ebx, edx
or eax, edi
xor edi, 0x4da4b36d
mov edx, edi
and edx, ebx
add edx, edx
sub ebx, edx
add ebx, edi
mov edx, ebx
not edx
or edx, eax
sub ebx, eax
add ebx, edx
mov edx, dword [esp + 4]
not ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x18]
add al, 0xed
mov byte [esp + ecx + 0x31edf9a3], al
inc ecx
dec edx
cmp ecx, 0xce120723
jne 0x40aca0
mov dword [esp + 0x18], 0x43e34d9f
mov dword [esp + 0x1c], 0x47df41d0
mov word [esp + 0x20], 0x4544
mov dword [esp + 0x22], 0
mov dword [esp + 0x25], 0
xor ecx, ecx
nop
nop
mov eax, ecx
xor eax, 0x2f7b7b5b
mov edx, eax
and edx, ecx
mov esi, edx
and esi, 0x1d
mov edi, edx
and edi, 2
or edx, 2
imul edx, edi
xor edi, 2
imul edi, esi
movzx esi, byte [esp + ecx + 0x18]
sub edx, eax
lea eax, [edx + edi]
add edx, edi
add edx, 0xdb682891
and edx, esi
add eax, esi
add eax, 0xdb682891
add edx, edx
sub eax, edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
mov edx, eax
and edx, 0x84
mov esi, eax
and esi, 2
mov edi, esi
xor edi, 2
imul edi, edx
or edx, 2
imul edx, esi
xor eax, 0x86
add eax, edi
add eax, edx
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x11
jne 0x40ad90
push 0x493e0
push dword [esp + 0xc]
mov esi, dword [esp + 0x18]
push esi
push 0
push 0
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0040cf80
add esp, 0x1c
mov ebx, eax
push esi
call fcn.00408fd0
add esp, 4
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x60]
add dword [ecx + 4], eax
mov dword [ecx + 0x60], 0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret