Function at 0x40a040
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, 0xb0
mov edi, dword [ebp + 8]
mov dword [esp + 0x74], ecx
add edi, dword [ecx + 0x60]
mov dword [esp + 0x78], 0xcfb6b09b
mov dword [esp + 0x7c], 0x68d0abbd
mov dword [esp + 0x80], 0xa4a8d2b2
mov dword [esp + 0x84], 0xdbb77590
mov dword [esp + 0x88], 0xabadb2da
mov dword [esp + 0x8c], 0xe39a92a5
mov dword [esp + 0x90], 0x9a5fe15f
mov dword [esp + 0x94], 0x9a9b9f88
mov dword [esp + 0x98], 0x747a76ea
mov word [esp + 0x9c], 0x7d78
mov dword [esp + 0xa2], 0
mov dword [esp + 0x9e], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x2d
ja 0x40a12e
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x78]
mov edx, 0xf4
sub edx, eax
add eax, 0xa383790b
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
add al, 0xb3
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x78], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x2e
jb 0x40a0f0
mov dword [esp + 8], 0x7b626644
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x40a199
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, 0xd0
sub edx, eax
add eax, 0x5547e2f
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x18]
add al, 0xb7
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x40a160
mov dword [esp + 0x18], 0xfcf22621
mov dword [esp + 0x1c], 0xf0f0222a
mov dword [esp + 0x20], 0xf7e8f221
mov dword [esp + 0x24], 0x80f08eb
mov dword [esp + 0x28], 0xd00f1314
mov dword [esp + 0x2c], 0x1ee1a7b5
mov dword [esp + 0x30], 0x1d071518
mov dword [esp + 0x34], 0x1cf8c216
mov dword [esp + 0x38], 0xe01010b
mov dword [esp + 0x3c], 0xe170119
mov dword [esp + 0x40], 0x15d8c308
mov dword [esp + 0x44], 0xf033370b
mov dword [esp + 0x48], 0x203c222a
mov dword [esp + 0x4c], 0x2c3aedc7
mov dword [esp + 0x50], 0xe9cf2639
mov dword [esp + 0x54], 0x38203e24
mov dword [esp + 0x58], 0x3df0d4f4
mov dword [esp + 0x5c], 0x29332939
mov dword [esp + 0x60], 0xdc372e3d
mov word [esp + 0x64], 0xe5f8
mov byte [esp + 0x68], 0
mov word [esp + 0x66], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x50
ja 0x40a29c
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 + 0x18]
mov edx, 0x8c
sub edx, eax
add eax, 0xaf496a73
xor edx, eax
and edx, ecx
xor edx, eax
mov dword [esp], edx
mov eax, dword [esp]
add al, 0xdb
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x18], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x51
jb 0x40a260
mov eax, dword [ebp + 0xc]
movzx ecx, byte [esp + 0x18]
mov edx, edi
test cl, cl
je 0x40a2bb
lea esi, [esp + 0x19]
mov edx, edi
mov byte [edx], cl
inc edx
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x40a2b0
mov byte [edx], 0
movzx ecx, byte [eax]
test cl, cl
je 0x40a2db
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [eax]
inc eax
test cl, cl
jne 0x40a2d0
mov byte [edx], 0
movzx eax, byte [esp + 8]
test al, al
je 0x40a2fb
lea ecx, [esp + 9]
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40a2f0
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov byte [edx], 0
movzx eax, byte [esp + 0x78]
test al, al
mov dword [esp + 0x70], edi
je 0x40a32b
lea ecx, [esp + 0x79]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40a320
mov byte [edx], 0
mov ecx, ebx
shr ecx, 2
mov eax, esi
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
and eax, 0xfffffffc
mov ecx, esi
lea esi, [edx + eax]
add eax, ecx
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov ebx, eax
mov edi, esi
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ebx, dword [ebp + 0x14]
test bl, 1
je 0x40a36d
mov ecx, ebx
and ecx, 2
movzx eax, byte [eax + ecx]
mov byte [esi + ecx], al
mov dword [esp + 0x18], 0xeeefd3cd
mov dword [esp + 0x1c], 0xdade0806
mov dword [esp + 0x20], 0xadf0c0c
mov dword [esp + 0x24], 0xc19011c
mov dword [esp + 0x28], 0x19180401
mov dword [esp + 0x2c], 0xfde3c419
mov word [esp + 0x30], 0xfbe5
mov byte [esp + 0x32], 0xf2
mov dword [esp + 0x33], 0
mov dword [esp + 0x37], 0
mov dword [esp + 0x3b], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x26
mov edi, dword [esp + 0x70]
ja 0x40a41e
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 + 0x18]
mov esi, 0xe3
sub esi, eax
add eax, 0xf733df1c
xor esi, eax
and esi, ecx
xor esi, eax
mov dword [esp + 0x78], esi
mov eax, dword [esp + 0x78]
add al, 0x3c
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x18], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x27
jb 0x40a3e0
add edx, ebx
movzx eax, byte [esp + 0x18]
test al, al
je 0x40a43b
lea ecx, [esp + 0x19]
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40a430
mov byte [edx], 0
sub edx, edi
mov eax, dword [esp + 0x74]
add dword [eax + 0x60], edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10