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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb8
mov edi, dword [ebp + 8]
mov dword [esp + 0x7c], ecx
add edi, dword [ecx + 0x60]
mov dword [esp + 0x80], 0x47787e93
mov dword [esp + 0x84], 0xb24a7b75
mov dword [esp + 0x88], 0x7e724c68
mov dword [esp + 0x8c], 0x537fa186
mov dword [esp + 0x90], 0x63657c50
mov dword [esp + 0x94], 0x5b64646d
mov dword [esp + 0x98], 0x60a75da7
mov dword [esp + 0x9c], 0x9093676e
mov dword [esp + 0xa0], 0x3e3c38a0
mov word [esp + 0xa4], 0x293e
mov dword [esp + 0xa6], 0
mov dword [esp + 0xa9], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x2c
ja 0x409a56
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx edx, byte [esp + ecx + 0x80]
mov ecx, 0xba85b89d
sub ecx, eax
add eax, 0x62
and eax, edx
or ecx, edx
not ecx
add ecx, edx
sub ecx, eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
add al, 0x52
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x80], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x2d
jb 0x409a10
mov dword [esp + 8], 0x4b6a6670
mov dword [esp + 0xc], 0
mov word [esp + 0x10], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 9
ja 0x409aba
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
lea edx, [eax + 0x6da1384d]
and edx, ecx
add eax, ecx
add eax, 0x6da1384d
add edx, edx
sub eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add al, 0xe5
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xa
jb 0x409a80
mov dword [esp + 0x18], 0x5c5a9699
mov dword [esp + 0x1c], 0x58586a62
mov dword [esp + 0x20], 0x47304a69
mov dword [esp + 0x24], 0x404f4033
mov dword [esp + 0x28], 0x784f3b34
mov dword [esp + 0x2c], 0x3e69a7a5
mov dword [esp + 0x30], 0xbdb7c540
mov dword [esp + 0x34], 0xbc907ac6
mov dword [esp + 0x38], 0xcec9c9c3
mov dword [esp + 0x3c], 0xceb7c9b1
mov dword [esp + 0x40], 0xa5609bb0
mov dword [esp + 0x44], 0x68abd7d3
mov dword [esp + 0x48], 0xa8dcaaa2
mov dword [esp + 0x4c], 0xaca26d97
mov dword [esp + 0x50], 0x51af96a1
mov dword [esp + 0x54], 0x90989e94
mov dword [esp + 0x58], 0x9d58a454
mov dword [esp + 0x5c], 0x919b9191
mov dword [esp + 0x60], 0xbc878e9d
mov word [esp + 0x64], 0x6540
mov byte [esp + 0x6a], 0
mov dword [esp + 0x66], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x52
ja 0x409bc7
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]
lea edx, [eax + 0x27dffee7]
lea esi, [eax + 0xe7]
or edx, esi
and esi, ecx
and edx, ecx
add edx, esi
add eax, ecx
add eax, 0x27dffee7
sub eax, edx
mov dword [esp], eax
mov eax, dword [esp]
add al, 0xaf
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x18], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x53
jb 0x409b80
mov eax, dword [ebp + 0xc]
movzx ecx, byte [esp + 0x18]
mov edx, edi
test cl, cl
je 0x409beb
lea esi, [esp + 0x19]
mov edx, edi
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x409be0
mov byte [edx], 0
movzx ecx, byte [eax]
test cl, cl
je 0x409c0b
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 0x409c00
mov byte [edx], 0
movzx eax, byte [esp + 8]
test al, al
je 0x409c2b
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 0x409c20
mov ebx, dword [ebp + 0x10]
mov byte [edx], 0
movzx eax, byte [esp + 0x80]
test al, al
mov dword [esp + 0x78], edi
je 0x409c5b
lea ecx, [esp + 0x81]
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x409c50
mov byte [edx], 0
mov esi, dword [ebp + 0x14]
mov ecx, esi
shr ecx, 2
mov eax, ebx
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, esi
mov eax, esi
and eax, 0xfffffffc
lea esi, [edx + eax]
add eax, ebx
mov ebx, ecx
and ebx, 3
mov ecx, ebx
shr ecx, 1
mov edi, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x70], esi
mov edi, esi
mov esi, dword [esp + 0x74]
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov ecx, dword [ebp + 0x14]
test cl, 1
je 0x409cbf
xor ebx, 1
mov edi, dword [ebp + 0x14]
mov ecx, edi
or ecx, 2
and ecx, ebx
mov ebx, edi
and ebx, 2
movzx eax, byte [eax + ecx]
mov ecx, dword [esp + 0x70]
mov byte [ecx + ebx], al
mov dword [esp + 0x18], 0xb0b75355
mov dword [esp + 0x1c], 0xb4b88a8c
mov dword [esp + 0x20], 0xfcb78682
mov dword [esp + 0x24], 0xfaf985fa
mov dword [esp + 0x28], 0x8d8afe81
mov dword [esp + 0x2c], 0x2923cef9
mov word [esp + 0x30], 0x2b2d
mov byte [esp + 0x32], 0x1c
mov dword [esp + 0x33], 0
mov byte [esp + 0x37], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x1f
mov edi, dword [esp + 0x78]
ja 0x409d65
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x18]
lea esi, [eax + 0xb1]
and esi, ecx
add eax, ecx
add esi, esi
sub eax, esi
add eax, 0xd4e993b1
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x80]
add al, 0x29
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x18], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x20
jb 0x409d20
add edx, dword [ebp + 0x14]
movzx eax, byte [esp + 0x18]
test al, al
je 0x409d8b
lea ecx, [esp + 0x19]
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 0x409d80
mov byte [edx], 0
sub edx, edi
mov eax, dword [esp + 0x7c]
add dword [eax + 0x60], edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10