Function at 0x40d970
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x8c
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0xc], ecx
mov eax, dword [ecx + 0x60]
mov dword [esp], eax
mov dword [esp + 0x60], 0x65607e09
mov dword [esp + 0x64], 0x3a667d77
mov dword [esp + 0x68], 0x7e666c00
mov dword [esp + 0x6c], 0x69793b22
mov dword [esp + 0x70], 0x97b7c68
mov dword [esp + 0x74], 0x110c040f
mov dword [esp + 0x78], 0x18491f55
mov dword [esp + 0x7c], 0x80d010a
mov dword [esp + 0x80], 0xbea4a018
mov word [esp + 0x84], 0xb3ba
mov dword [esp + 0x86], 0
xor esi, esi
nop
nop
nop
lea edi, [esi + esi]
mov edx, edi
and edx, 0x5a
mov ebp, esi
or ebp, 0xd2
mov eax, esi
not eax
or eax, 0x2d
and eax, ebp
sub eax, edx
xor al, byte [esp + esi + 0x60]
mov dl, 0x1e
sub dl, al
mov byte [esp + esi + 0x60], dl
and edi, 2
xor esi, 1
add esi, edi
cmp esi, 0x2a
jb 0x40d9f0
mov dword [esp + 4], 0xd9c4c8e2
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
xor esi, esi
xor edi, edi
nop
nop
nop
nop
movzx edx, byte [esp + edi + 4]
mov eax, edi
xor eax, 0xa709354f
add eax, esi
xor eax, edx
lea edx, [eax + 0x14]
mov ebp, 0x8b
sub ebp, eax
and ebp, 0xee
and edx, 0x11
sub edx, ebp
and eax, 1
xor edx, 1
lea eax, [edx + eax*2]
add al, 0xee
mov byte [esp + edi + 4], al
inc edi
add esi, 2
cmp edi, 7
jne 0x40da40
mov dword [esp + 0x10], 0xfaf83c3d
mov dword [esp + 0x14], 0xfefe282c
mov dword [esp + 0x18], 0xf3eef82d
mov dword [esp + 0x1c], 0xf6f3f2ef
mov dword [esp + 0x20], 0xd60be7e6
mov dword [esp + 0x24], 0x10edb3b1
mov dword [esp + 0x28], 0x1d031d12
mov dword [esp + 0x2c], 0x2e6d810
mov dword [esp + 0x30], 0x8051917
mov dword [esp + 0x34], 0x1b091d
mov dword [esp + 0x38], 0x15def702
mov dword [esp + 0x3c], 0xce0f030f
mov dword [esp + 0x40], 0x263a1814
mov dword [esp + 0x44], 0x2230e5c3
mov dword [esp + 0x48], 0xe1cb2c35
mov dword [esp + 0x4c], 0x263e2426
mov dword [esp + 0x50], 0x3df6cee6
mov dword [esp + 0x54], 0x213f213d
mov dword [esp + 0x58], 0xda332431
mov dword [esp + 0x5c], 0x9df2
xor esi, esi
mov ecx, dword [esp + 0xa0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + esi + 0x10]
mov edi, esi
xor edi, 0x1edd2ef2
lea eax, [esi + esi]
mov ebp, eax
and ebp, 0x1a
sub ebp, edi
lea edi, [ebp + 0x68af72e0]
and edi, edx
add edx, ebp
add edx, 0x68af72e0
add edi, edi
sub edx, edi
add dl, 0x5a
mov byte [esp + esi + 0x10], dl
xor esi, 1
and eax, 2
add esi, eax
cmp esi, 0x50
jb 0x40db30
add ecx, dword [esp]
movzx eax, byte [esp + 0x10]
mov edx, ecx
test al, al
je 0x40db9b
lea esi, [esp + 0x11]
mov edx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [esi]
inc esi
test al, al
jne 0x40db90
mov byte [edx], 0
movzx eax, byte [ebx]
test al, al
je 0x40dbbb
inc ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ebx]
inc ebx
test al, al
jne 0x40dbb0
mov dword [esp], ecx
mov byte [edx], 0
movzx eax, byte [esp + 4]
test al, al
je 0x40dbdb
lea ecx, [esp + 5]
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40dbd0
mov byte [edx], 0
movzx eax, byte [esp + 0x60]
test al, al
je 0x40dbfb
lea ecx, [esp + 0x61]
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40dbf0
mov byte [edx], 0
mov ebx, dword [esp + 0xac]
mov ecx, ebx
shr ecx, 2
mov ebp, dword [esp + 0xa8]
mov eax, ebp
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
and eax, 0xfffffffc
lea esi, [edx + eax]
add eax, ebp
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov ebp, eax
mov edi, esi
xchg esi, ebp
rep movsw word es:[edi], word [esi]
xchg esi, ebp
test bl, 1
je 0x40dc4b
mov ecx, dword [esp + 0xac]
and ecx, 2
movzx eax, byte [eax + ecx]
mov byte [esi + ecx], al
mov dword [esp + 0x10], 0x46471b25
mov dword [esp + 0x14], 0x4246707e
mov dword [esp + 0x18], 0x72477474
mov dword [esp + 0x1c], 0x64916994
mov dword [esp + 0x20], 0x91906c69
mov dword [esp + 0x24], 0x53b5c61
mov dword [esp + 0x28], 0xa033d
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 4
xor cl, byte [esp + eax + 0x10]
add cl, 0xec
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x1c
jne 0x40dc90
add edx, dword [esp + 0xac]
movzx eax, byte [esp + 0x10]
test al, al
je 0x40dccb
lea ecx, [esp + 0x11]
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40dcc0
mov byte [edx], 0
mov eax, edx
mov ebx, dword [esp]
xor eax, ebx
not ebx
and ebx, edx
add ebx, ebx
sub ebx, eax
mov eax, dword [esp + 0xc]
add dword [eax + 0x60], ebx
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret 0x10