Function at 0x409940
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
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, 0xa8
mov edi, dword [ebp + 8]
mov dword [esp + 0x6c], ecx
add edi, dword [ecx + 0x60]
mov dword [esp + 0x70], 0x67605e8b
mov dword [esp + 0x74], 0xda626395
mov dword [esp + 0x78], 0x9e6a6c80
mov dword [esp + 0x7c], 0x6b9fd9a6
mov dword [esp + 0x80], 0x8b859c68
mov dword [esp + 0x84], 0x7374848d
mov dword [esp + 0x88], 0x78c77db7
mov dword [esp + 0x8c], 0x888b878e
mov dword [esp + 0x90], 0x1e1ce078
mov word [esp + 0x94], 0x111e
mov dword [esp + 0x96], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x29
ja 0x409a18
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x70]
lea edx, [eax - 0x7d881122]
add eax, 0xde
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0xee
mov ecx, dword [esp]
mov byte [esp + ecx + 0x70], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x2a
jb 0x4099e0
mov dword [esp], 0x4b5c5862
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 7
ja 0x409a8d
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx]
lea edx, [eax + ecx]
add edx, 0xd7e4e70a
add eax, 0xd7e4e70a
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
mov ecx, eax
or ecx, 0xb9
and eax, 0xb9
add eax, ecx
inc al
mov ecx, dword [esp + 8]
mov byte [esp + ecx], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 8
jb 0x409a40
mov dword [esp + 0x10], 0x25655
mov dword [esp + 0x14], 0x40c5252
mov dword [esp + 0x18], 0x171c0255
mov dword [esp + 0x1c], 0x1c1f1403
mov dword [esp + 0x20], 0x4c1f0300
mov dword [esp + 0x24], 0xe7db7a9
mov dword [esp + 0x28], 0x3117090c
mov dword [esp + 0x2c], 0x28447236
mov dword [esp + 0x30], 0x3e353533
mov dword [esp + 0x34], 0x3e273d25
mov dword [esp + 0x38], 0x396c733c
mov dword [esp + 0x3c], 0x64232723
mov dword [esp + 0x40], 0x3c203232
mov dword [esp + 0x44], 0x382a7967
mov dword [esp + 0x48], 0x855f362d
mov dword [esp + 0x4c], 0xcccccec8
mov dword [esp + 0x50], 0xc1849880
mov dword [esp + 0x54], 0xddc3c5c5
mov dword [esp + 0x58], 0xb0c7dec9
mov word [esp + 0x5c], 0x7194
mov word [esp + 0x66], 0
mov dword [esp + 0x62], 0
mov dword [esp + 0x5e], 0
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
cmp eax, 0x57
ja 0x409ba5
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
movzx ecx, byte [esp + ecx + 0x10]
mov edx, eax
and edx, 0x3b9c2cc5
xor eax, 0xbb9c2cc5
lea eax, [eax + edx*2]
lea edx, [eax + ecx]
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
add al, 0x9d
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, 0x58
jb 0x409b60
mov eax, dword [ebp + 0xc]
movzx ecx, byte [esp + 0x10]
mov edx, edi
test cl, cl
je 0x409bcb
lea esi, [esp + 0x11]
mov edx, edi
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], cl
inc edx
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x409bc0
mov byte [edx], 0
movzx ecx, byte [eax]
test cl, cl
je 0x409beb
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 0x409be0
mov byte [edx], 0
movzx eax, byte [esp]
test al, al
je 0x409c0b
lea ecx, [esp + 1]
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x409c00
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov byte [edx], 0
movzx ecx, byte [esp + 0x70]
test cl, cl
mov dword [esp + 0x68], edi
je 0x409c3b
lea eax, [esp + 0x71]
nop
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 0x409c30
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
not eax
or eax, 0xfffffffc
add eax, ebx
mov ecx, esi
lea esi, [edx + eax]
inc esi
mov eax, ebx
and eax, 0xfffffffc
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 0x409c87
mov ecx, ebx
and ecx, 2
movzx eax, byte [eax + ecx]
mov byte [esi + ecx], al
mov dword [esp + 0x10], 0xa4a75b41
mov dword [esp + 0x14], 0xa0a4f2f0
mov dword [esp + 0x18], 0xf0a7f6f2
mov dword [esp + 0x1c], 0x8a9589ea
mov dword [esp + 0x20], 0x91928e8d
mov dword [esp + 0x24], 0x253bde8d
mov word [esp + 0x28], 0x2339
mov byte [esp + 0x2a], 0x28
mov dword [esp + 0x2b], 0
mov dword [esp + 0x2e], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x21
mov edi, dword [esp + 0x68]
ja 0x409d2a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x10]
lea esi, [eax - 0x71faa24d]
and esi, ecx
add eax, ecx
add eax, 0x8e055db3
add esi, esi
sub eax, esi
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x70]
add al, 0x1b
mov ecx, dword [esp]
mov byte [esp + ecx + 0x10], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x22
jb 0x409cf0
add edx, ebx
movzx eax, byte [esp + 0x10]
test al, al
je 0x409d4b
lea ecx, [esp + 0x11]
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x409d40
mov byte [edx], 0
sub edx, edi
mov eax, dword [esp + 0x6c]
add dword [eax + 0x60], edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10