Function at 0x40a290
Capabilities:
Contain obfuscated stackstrings
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, 0xf8
cmp dword [ecx + 0x20], 0
je 0x40a2e1
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 7], 0
test eax, eax
je 0x40a2e8
cmp al, 0x64
jb 0x40a2f6
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 + 0x443528]
mov word [esp + 5], ax
mov ecx, 1
mov eax, edx
jmp 0x40a2ff
mov bl, 1
jmp 0x40ab3a
lea eax, [esp + 6]
mov dword [esp], eax
mov byte [esp + 6], 0x30
jmp 0x40a329
mov ecx, 3
cmp al, 9
ja 0x40a315
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea edx, [esp + ecx]
add edx, 3
mov dword [esp], edx
mov byte [esp + ecx + 3], al
jmp 0x40a329
movzx eax, word [eax + eax + 0x443528]
lea ecx, [esp + 5]
mov dword [esp], ecx
mov word [esp + 5], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406b80
add esp, 4
mov edi, dword [esi + 0x10]
mov dword [esp + 0x24], esi
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xc4], eax
lea eax, [esp + 0xd3]
push eax
call fcn.00436d20
add esp, 4
mov dword [esp + 0xc8], edi
lea eax, [edi + 0x400]
push eax
call fcn.00408a60
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], 0xfffbe8fe
mov byte [esp + 0x34], 0x52
mov dword [esp + 0x35], 0
mov word [esp + 0x39], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x30]
mov edx, eax
and edx, 0x433cff31
mov esi, eax
and esi, 2
mov edi, esi
xor edi, 2
imul edi, edx
or edx, 2
imul edx, esi
mov esi, eax
xor esi, 0xc33cff33
add esi, edi
add esi, edx
xor esi, ecx
mov dword [esp + 8], esi
mov esi, dword [esp + 8]
lea ecx, [esi + 0x55cf2066]
xor ecx, 0xa955059a
mov edx, 0xaa30df99
sub edx, esi
mov edi, edx
not edi
mov esi, edi
and esi, 0xa9550598
and edx, 2
imul edx, esi
and edi, 2
or esi, 2
imul esi, edi
add edx, ecx
lea ecx, [esi + edx]
inc ecx
mov edx, ecx
and edx, 0x1a
xor ecx, 0x9a
lea ecx, [ecx + edx*2]
mov byte [esp + eax + 0x30], cl
inc eax
cmp eax, 0xb
jne 0x40a3a0
lea ebx, [esp + 0x30]
mov esi, dword [esp + 0x24]
mov ecx, esi
lea eax, [esp + 0xd3]
push eax
push ebx
mov edi, dword [esp + 0x28]
push edi
call fcn.00409730
mov dword [esp + 0x30], 0x3e6949c
mov dword [esp + 0x34], 0
mov word [esp + 0x38], 0
mov dword [esp + 8], 0xd0c466ca
mov eax, dword [esp + 8]
add al, 0xa6
mov byte [esp + 0x30], al
movzx eax, byte [esp + 0x31]
xor eax, 0xd0c46657
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xa6
mov byte [esp + 0x31], al
movzx eax, byte [esp + 0x32]
xor eax, 0xd0c46658
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xa6
mov byte [esp + 0x32], al
movzx eax, byte [esp + 0x33]
xor eax, 0xd0c46659
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xa6
mov byte [esp + 0x33], al
movzx eax, byte [esp + 0x34]
xor eax, 0xd0c4665a
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xa6
mov byte [esp + 0x34], al
movzx eax, byte [esp + 0x35]
xor eax, 0xd0c4665b
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xa6
mov byte [esp + 0x35], al
movzx eax, byte [esp + 0x36]
xor eax, 0xd0c4665c
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xa6
mov byte [esp + 0x36], al
movzx eax, byte [esp + 0x37]
xor eax, 0xd0c4665d
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xa6
mov byte [esp + 0x37], al
movzx eax, byte [esp + 0x38]
xor eax, 0xd0c4665e
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xa6
mov byte [esp + 0x38], al
movzx eax, byte [esp + 0x39]
xor eax, 0xd0c4665f
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0xa6
mov byte [esp + 0x39], al
mov ecx, esi
push dword [esp]
push ebx
push edi
call fcn.00409730
mov eax, dword [str.K8DY38__ner]
mov dword [esp + 0xc0], eax
mov dword [esp + 0x30], 0x23bcbab2
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov word [esp + 0x3c], 0
mov eax, 0xa97c9ba4
mov ebx, 0x5683645c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ebx - 0x5683642c]
mov dword [esp], edx
lea esi, [ebx - 1]
mov dword [esp + 0xcc], esi
mov ecx, edx
not ecx
mov dword [esp + 0x28], ecx
and esi, ecx
mov ecx, eax
and ecx, edx
or ecx, esi
mov edx, ecx
and edx, 0x7ffffffd
mov edi, ecx
and edi, 2
mov esi, ecx
or esi, 2
imul esi, edi
xor edi, 2
imul edi, edx
add esi, edi
not esi
add esi, ecx
or esi, eax
add esi, ebx
mov ecx, esi
and ecx, 0xfffffffd
mov edx, esi
and edx, 2
or esi, 2
imul esi, edx
xor edx, 2
imul edx, ecx
add esi, edx
mov ecx, esi
not ecx
and ecx, dword [esp + 0xcc]
and esi, eax
sub esi, ecx
mov ecx, dword [esp + 0x28]
and ecx, esi
not esi
and esi, dword [esp]
sub esi, ecx
mov dword [esp + 8], esi
mov ecx, dword [esp + 8]
add cl, 0x83
mov byte [esp + ebx - 0x5683642c], cl
dec eax
inc ebx
cmp eax, 0xa97c9b96
jne 0x40a590
mov ecx, dword [esp + 0x24]
push dword [esp + 0xc0]
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x28]
call fcn.00409730
mov dword [esp + 0x30], 0x5760a89b
mov dword [esp + 0x34], 0x60535c53
mov dword [esp + 0x38], 0x5e515463
mov byte [esp + 0x3c], 0xf8
mov dword [esp + 0x3d], 0
mov dword [esp + 0x41], 0
mov dword [esp + 0x44], 0
mov eax, 0x79b7301
mov ecx, 0xf8648cff
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx + 0x79b7331]
lea esi, [edx + edx]
not esi
add esi, edx
mov edi, esi
and edi, 0xa37536c8
mov ebx, edx
and ebx, 0xffffff80
and esi, 0x171047f
or esi, ebx
mov ebx, edx
and ebx, 0x37
or edi, ebx
xor esi, 0xa20432b7
xor ebx, 0x5c8ac937
or ebx, esi
not edi
and edi, ebx
and edx, 0xffffffc8
mov esi, eax
xor esi, 0x5c8ac937
mov ebx, eax
and ebx, 0xa37536c8
sub esi, ebx
mov ebx, eax
xor ebx, 0xa37536c8
add esi, eax
and esi, ebx
mov ebx, eax
or ebx, 0xa37536c8
add ebx, ecx
or ebx, esi
lea esi, [edx - 0x3be0a2ee]
and edx, edi
and edi, 0xbbf5b6ff
xor esi, edi
or edx, esi
xor edx, ebx
xor edx, 0x80151412
mov dword [esp + 8], edx
mov edx, dword [esp + 8]
add edx, 0xe02042ef
mov esi, edx
and esi, 0x1f
xor edx, 0x1f
lea edx, [edx + esi*2]
mov byte [esp + ecx + 0x79b7331], dl
dec eax
inc ecx
cmp eax, 0x79b72e9
jne 0x40a690
mov dword [esp + 8], 0xbb0c1c15
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov eax, 0x17
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax - 0xf]
mov ecx, eax
and ecx, edx
mov edi, ecx
and edi, 0xfffffffd
mov esi, ecx
or esi, 0xfffffffd
inc esi
imul esi, edi
mov edi, ecx
and edi, 2
or ecx, 2
imul ecx, edi
add esi, edx
sub esi, ecx
lea ecx, [eax + esi]
add ecx, 0xaefca500
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x2c]
mov edx, ecx
not edx
mov esi, edx
or esi, 0xa1
or edx, 0x5e
add edx, esi
lea ecx, [edx + ecx*2]
add cl, 0x61
mov byte [esp + eax - 0xf], cl
inc eax
cmp eax, 0x27
jne 0x40a770
lea edx, [esp + 8]
mov ebx, dword [esp + 0x24]
mov ecx, ebx
lea eax, [esp + 0x30]
push eax
push edx
push dword [esp + 0x28]
call fcn.00409730
mov dword [esp + 0x30], 0x3c343a38
mov byte [esp + 0x34], 0xa2
mov dword [esp + 0x35], 0
mov dword [esp + 0x39], 0
mov word [esp + 0x3d], 0
mov eax, 0xe4
mov ecx, 0xb445381b
nop
movzx edx, byte [esp + ecx + 0x4bbac815]
mov esi, eax
and esi, 0xad
mov edi, ecx
and edi, 0x52
or edi, esi
xor edi, ecx
xor edi, 0x52
and edi, edx
xor edi, ecx
mov dword [esp + 8], edi
mov edx, dword [esp + 8]
add dl, 0x43
mov byte [esp + ecx + 0x4bbac815], dl
dec eax
inc ecx
cmp eax, 0xd5
jne 0x40a810
mov ecx, ebx
push dword [esp + 0xc8]
push dword [esp + 0xc8]
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x2c]
call fcn.00409bb0
mov eax, dword [ebx + 0x60]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 0x2b552563
mov dword [esp + 0x34], 0x2f5c2958
mov dword [esp + 0x38], 0x335e2d45
mov dword [esp + 0x3c], 0x37033146
mov dword [esp + 0x40], 0x3b4b3562
mov dword [esp + 0x44], 0x3f53394a
mov dword [esp + 0x48], 0x431c3d00
mov dword [esp + 0x4c], 0x473b4131
mov dword [esp + 0x50], 0x4b30452a
mov dword [esp + 0x54], 0x4f384925
mov dword [esp + 0x58], 0x533a4d29
mov dword [esp + 0x5c], 0x57615126
mov dword [esp + 0x60], 0x5b25553c
mov dword [esp + 0x64], 0x5f2b592c
mov dword [esp + 0x68], 0x63385d6d
mov dword [esp + 0x6c], 0x67146105
mov dword [esp + 0x70], 0x6b596501
mov dword [esp + 0x74], 0x6f0e694a
mov dword [esp + 0x78], 0x73176d1f
mov dword [esp + 0x7c], 0x77147100
mov dword [esp + 0x80], 0x7b027511
mov dword [esp + 0x84], 0x7f3b7905
mov dword [esp + 0x88], 0x83177d18
mov dword [esp + 0x8c], 0x87bb81ba
mov dword [esp + 0x90], 0x8bef85e2
mov dword [esp + 0x94], 0x8fe789b1
mov dword [esp + 0x98], 0x93e88dfe
mov dword [esp + 0x9c], 0x97f591e3
mov dword [esp + 0xa0], 0x9bff95f9
mov dword [esp + 0xa4], 0x9fee99ec
mov dword [esp + 0xa8], 0xa3ab9df5
mov dword [esp + 0xac], 0xa7aea1b1
mov word [esp + 0xb0], 0xa5a6
mov dword [esp + 0xba], 0
mov dword [esp + 0xb6], 0
mov dword [esp + 0xb2], 0
mov ecx, 0x814338a5
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [esp], eax
movzx edi, byte [esp + ecx + 0x7ebcc78b]
mov eax, dword [esp]
and eax, 0x286714a
mov edx, ecx
sub edx, eax
mov esi, edx
and esi, eax
xor edx, eax
lea esi, [edx + esi*2]
lea eax, [edi + edi]
not eax
add eax, edi
or eax, 0x89fbaf0e
mov ebx, eax
not ebx
lea edx, [ebx + ebx]
not edx
add edx, ebx
and eax, 0x404006d
and ebx, 0x72005090
or ebx, eax
xor ebx, 0x72005092
or ebx, edx
or edi, 0x760450f1
and ebx, edi
not ebx
xor esi, 0x89fbaf0e
mov eax, esi
and eax, ebx
add esi, ebx
add eax, eax
sub esi, eax
mov dword [esp + 8], esi
mov eax, dword [esp + 8]
add eax, 0x5d5f4c5e
mov edx, eax
xor edx, 0x1e
and eax, 0x1e
lea eax, [edx + eax*2]
inc al
mov byte [esp + ecx + 0x7ebcc78b], al
mov eax, dword [esp]
inc ecx
add eax, 2
cmp ecx, 0x81433933
jne 0x40a9d0
mov dword [esp + 8], 0xcb6bcdbf
mov dword [esp + 0xc], 0xc77fc978
mov word [esp + 0x10], 0xc5c4
mov dword [esp + 0x12], 0
mov dword [esp + 0x16], 0
mov dword [esp + 0x19], 0
mov ecx, 0x951d7d3b
mov edx, 0xaa8b0e54
mov esi, 0x9d
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [esp + edx + 0x5574f1b4]
mov edi, eax
not edi
lea ebx, [esi - 0x35714200]
and ebx, esi
or ebx, edi
lea eax, [eax + ebx*2]
add eax, edx
mov edi, eax
xor edi, 0x8ae6330f
and eax, 0xae6330f
lea eax, [edi + eax*2]
inc eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
add al, 0x52
mov byte [esp + edx + 0x5574f1b4], al
add ecx, 0xfffffffe
inc edx
dec esi
cmp ecx, 0x951d7d11
jne 0x40aab0
push 0x493e0
push dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
push esi
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0040cba0
add esp, 0x1c
mov ebx, eax
push esi
call fcn.00408a70
add esp, 4
mov ecx, dword [esp + 0x24]
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