Function at 0x40d940
Capabilities:
Contain obfuscated stackstrings
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x8c
mov ebp, dword [esp + 0xa0]
mov dword [esp + 0x88], ecx
add ebp, dword [ecx + 0x60]
mov dword [esp + 0x5c], 0xa5a8aa71
mov dword [esp + 0x60], 0x76bab593
mov dword [esp + 0x64], 0x8ab2a498
mov dword [esp + 0x68], 0xb1814f66
mov dword [esp + 0x6c], 0x818784b0
mov dword [esp + 0x70], 0x8984bcbb
mov dword [esp + 0x74], 0x80418b45
mov dword [esp + 0x78], 0xb0b589be
mov dword [esp + 0x7c], 0x6a6c6880
mov word [esp + 0x80], 0x76e
mov dword [esp + 0x82], 0
mov byte [esp + 0x86], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x2a
ja 0x40da0b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
movzx eax, byte [esp + eax + 0x5c]
push dword [esp + 8]
push eax
call fcn.0040e670
add esp, 8
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x5c], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x2b
jb 0x40d9e0
mov dword [esp + 4], 0xcf30342e
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 3
ja 0x40da5b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
movzx eax, byte [esp + eax + 4]
push dword [esp + 8]
push eax
call fcn.0040e600
add esp, 8
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 4], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 4
jb 0x40da30
mov dword [esp + 8], 0x5254181f
mov dword [esp + 0xc], 0x5e5a0c00
mov dword [esp + 0x10], 0x5d52540f
mov dword [esp + 0x14], 0x26292251
mov dword [esp + 0x18], 0x76213532
mov dword [esp + 0x1c], 0x240b414b
mov dword [esp + 0x20], 0x23293f26
mov dword [esp + 0x24], 0x3a127c3c
mov dword [esp + 0x28], 0x243b3b21
mov dword [esp + 0x2c], 0x34312b3f
mov dword [esp + 0x30], 0x3b426536
mov dword [esp + 0x34], 0x4e0d1131
mov dword [esp + 0x38], 0x6160400
mov dword [esp + 0x3c], 0xa04775d
mov dword [esp + 0x40], 0x4f510807
mov dword [esp + 0x44], 0x161a180a
mov dword [esp + 0x48], 0x136a4e52
mov dword [esp + 0x4c], 0x171d131f
mov dword [esp + 0x50], 0x4219101b
mov word [esp + 0x54], 0x7f5e
mov word [esp + 0x5a], 0
mov dword [esp + 0x56], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x53
ja 0x40db46
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 8]
push dword [esp]
push eax
call fcn.0040e580
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x54
jb 0x40db20
mov eax, dword [esp + 0xa4]
movzx ecx, byte [esp + 8]
mov ebx, ebp
test cl, cl
je 0x40db6b
lea edx, [esp + 9]
mov ebx, ebp
nop
nop
mov byte [ebx], cl
inc ebx
movzx ecx, byte [edx]
inc edx
test cl, cl
jne 0x40db60
mov byte [ebx], 0
movzx ecx, byte [eax]
test cl, cl
je 0x40db8b
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [ebx], cl
inc ebx
movzx ecx, byte [eax]
inc eax
test cl, cl
jne 0x40db80
mov byte [ebx], 0
movzx eax, byte [esp + 4]
test al, al
je 0x40dbab
lea ecx, [esp + 5]
nop
nop
nop
nop
nop
mov byte [ebx], al
inc ebx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40dba0
mov edx, dword [esp + 0xa8]
mov byte [ebx], 0
movzx eax, byte [esp + 0x5c]
test al, al
je 0x40dbdb
lea ecx, [esp + 0x5d]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [ebx], al
inc ebx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40dbd0
mov byte [ebx], 0
mov esi, dword [esp + 0xac]
mov ecx, esi
shr ecx, 2
mov eax, edx
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, esi
mov eax, esi
xor eax, 3
or esi, 0xfffffffc
and esi, eax
lea eax, [ebx + esi]
add esi, edx
shr ecx, 1
and ecx, 1
mov edx, esi
mov edi, eax
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
mov ecx, dword [esp + 0xac]
test cl, 1
je 0x40dc29
and ecx, 2
movzx edx, byte [esi + ecx]
mov byte [eax + ecx], dl
mov dword [esp + 8], 0x6a694557
mov dword [esp + 0xc], 0x9696a4be
mov dword [esp + 0x10], 0xae99a8b8
mov dword [esp + 0x14], 0xb0a7b3a0
mov dword [esp + 0x18], 0x9f9c90ab
mov dword [esp + 0x1c], 0x737d5893
mov word [esp + 0x20], 0x7d7f
mov byte [esp + 0x22], 0x62
mov word [esp + 0x23], 0
mov byte [esp + 0x25], 0
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x5c]
cmp eax, 0x1d
ja 0x40dcbb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x5c]
movzx eax, byte [esp + eax + 8]
push dword [esp + 0x5c]
push eax
call fcn.0040e6e0
add esp, 8
mov ecx, dword [esp + 0x5c]
mov byte [esp + ecx + 8], al
inc dword [esp + 0x5c]
mov eax, dword [esp + 0x5c]
cmp eax, 0x1e
jb 0x40dc90
add ebx, dword [esp + 0xac]
movzx eax, byte [esp + 8]
test al, al
je 0x40dcdb
lea ecx, [esp + 9]
nop
mov byte [ebx], al
inc ebx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x40dcd0
mov byte [ebx], 0
mov eax, ebx
xor eax, ebp
not ebp
and ebp, ebx
add ebp, ebp
sub ebp, eax
mov eax, dword [esp + 0x88]
add dword [eax + 0x60], ebp
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret 0x10