Function at 0x404000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xd0
mov eax, dword [ebp + 8]
mov byte [ebp - 0x32], 1
mov dl, byte [ebp - 0x32]
mov dword [ebp - 0x24], 0xfff
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x90], 0xc
mov edi, dword [ebp - 0x90]
mov dword [ebp - 0x58], 0
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x8c], 2
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x70], 8
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x7c]
mov word [ebp - 0x96], 0x28d7
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x10]
mov byte [ebp - 0x39], 0
mov dh, byte [ebp - 0x39]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 0x31], 1
mov dword [ebp - 0xbc], eax
mov al, byte [ebp - 0x31]
mov dword [ebp - 0x50], 0
mov word [ebp - 0x26], 0x214e
mov byte [ebp - 0xbd], al
mov eax, dword [ebp - 0x50]
mov byte [ebp - 0x3a], 0
mov dword [ebp - 0xc4], eax
mov al, byte [ebp - 0x3a]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x84], 0
mov word [ebp - 0x42], 0x7d2
mov dword [ebp - 0x88], ecx
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x88]
mov byte [ebp - 0xc5], al
mov byte [ebp - 0xc6], dh
mov byte [ebp - 0xc7], dl
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xd4], ebx
call fcn.00403340
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x40419d
mov eax, 0
mov cl, byte [ebp - 0xc5]
and cl, 1
mov byte [ebp - 0x69], cl
mov edx, dword [ebp - 0x94]
add edx, 0
sub eax, dword [ebp - 0x30]
mov word [ebp - 0x42], 0x6b17
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x94], edx
jmp 0x4044a2
mov eax, dword [ebp - 0x20]
mov word [ebp - 0x26], 0x4462
mov ecx, dword [ebp - 0xc4]
cmp eax, ecx
jne 0x4041d9
mov ax, 0
mov cl, byte [ebp - 0xbd]
and cl, 1
mov byte [ebp - 0x69], cl
mov edx, dword [ebp - 0x64]
add edx, 0
mov dword [ebp - 0x64], edx
sub ax, word [ebp - 0x42]
mov word [ebp - 0x42], ax
jmp 0x4044a2
mov eax, 0
mov ecx, dword [ebp - 0x54]
mov ecx, dword [ecx + 0xa0]
mov dword [ebp - 0x68], ecx
sub eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x54]
mov ecx, dword [ecx + 0xa4]
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xbc]
cmp ecx, eax
jne 0x404232
lea eax, [ebp - 0x94]
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x84], 0
or ecx, eax
mov dword [ebp - 0x60], ecx
mov dl, byte [ebp - 0xc6]
and dl, 1
mov byte [ebp - 0x69], dl
jmp 0x4044a2
mov eax, 0
lea ecx, [ebp - 0x64]
mov edx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x64]
add edx, dword [ebp - 0x68]
mov edi, dword [ebp - 0x64]
sub ecx, edi
mov dword [ebp - 0x48], edx
sub eax, esi
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0x96]
mov edx, 0
mov esi, dword [ebp - 0x48]
sub edx, dword [ebp - 0x94]
mov dword [ebp - 0x94], edx
mov edx, dword [ebp - 0x30]
and edx, ecx
mov dword [ebp - 0x30], edx
mov di, word [ebp - 0x96]
mov bx, ax
and di, bx
mov word [ebp - 0x96], di
mov eax, dword [ebp - 0xb8]
cmp dword [esi + 4], eax
seta al
and al, 1
movzx ecx, al
mov edx, dword [ebp - 0xb4]
cmp dword [ebp - 0x78], edx
setg al
and al, 1
movzx esi, al
and ecx, esi
mov esi, dword [ebp - 0xb0]
cmp ecx, esi
je 0x404488
mov eax, 0
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx]
mov dword [ebp - 0x80], ecx
mov ecx, dword [ebp - 0x48]
add ecx, 8
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx + 4]
sub eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xac]
sub ecx, edx
mov dword [ebp - 0xd8], eax
mov eax, ecx
xor edx, edx
mov ecx, dword [ebp - 0xa8]
div ecx
mov edx, dword [ebp - 0xd8]
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov ecx, eax
mov edx, dword [ebp - 0xa4]
add ecx, edx
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x84]
add ecx, 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0xd4]
cmp eax, ecx
je 0x404447
mov eax, dword [ebp - 0x14]
mov cx, word [ebp - 0x96]
lea edx, [ebp - 0x26]
mov si, dx
and cx, si
movzx eax, word [eax]
mov word [ebp - 0x96], cx
mov edx, dword [ebp - 0xd0]
mov bl, dl
mov cl, bl
shr eax, cl
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x64], 0
movzx eax, word [eax]
mov edx, dword [ebp - 0xcc]
and eax, edx
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x5c]
sub eax, 3
mov dword [ebp - 0xdc], eax
jne 0x4043c7
jmp 0x40439a
mov eax, dword [ebp - 0x80]
add eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0x88]
add ecx, eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx]
add edx, eax
mov eax, dword [ebp - 0x60]
and eax, 0
mov dword [ebp - 0x60], eax
mov dword [ecx], edx
jmp 0x4043fc
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x94]
mov edx, dword [ebp - 0x94]
mov si, word [ebp - 0x96]
mov edi, dword [ebp - 0x84]
or edi, eax
mov dword [ebp - 0x64], edi
or si, 0x57d6
mov word [ebp - 0x96], si
xor edx, ecx
mov dword [ebp - 0x94], edx
mov ax, 0
sub ax, word [ebp - 0x26]
mov word [ebp - 0x26], ax
mov ax, word [ebp - 0x96]
add ax, 0x4b9
mov word [ebp - 0x96], ax
mov eax, 0
lea ecx, [ebp - 0x64]
mov edx, dword [ebp - 0x84]
sub ecx, edx
mov edx, dword [ebp - 0x14]
add edx, 2
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x14], edx
jmp 0x40430c
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x42]
mov dx, word [ebp - 0x42]
mov si, cx
and dx, si
mov word [ebp - 0x42], dx
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx + 4]
mov edi, dword [ebp - 0x78]
sub edi, ecx
mov dword [ebp - 0x78], edi
mov ecx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x48]
mov dx, word [ebp - 0x42]
mov si, ax
or dx, si
mov word [ebp - 0x42], dx
add ecx, dword [edi + 4]
mov dword [ebp - 0x48], ecx
jmp 0x404256
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0x94]
or ecx, eax
mov dword [ebp - 0x64], ecx
mov dl, byte [ebp - 0xc7]
and dl, 1
mov byte [ebp - 0x69], dl
movzx eax, byte [ebp - 0x69]
mov word [ebp - 0x42], 0x1a2d
add esp, 0xd0
pop esi
pop edi
pop ebx
pop ebp
ret 4