Function at 0x427170
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593108
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x612120]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x14]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
movzx edx, word [ebx]
mov dword [ebp - 0x40], eax
test dx, dx
je 0x4271c7
mov eax, edx
cmp ax, dx
jne 0x4271bc
inc esi
movzx eax, word [ebx + ecx*2 + 2]
inc ecx
test ax, ax
jne 0x4271b6
push 0
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00417f80
mov dword [ebp - 4], 0
mov eax, 0xfffffffe
mov dword [ebp - 0x30], 1
xor edx, edx
mov dword [ebp - 0x34], eax
xor esi, esi
mov byte [ebp - 0x29], 0
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x3c], edx
jbe 0x4273af
movzx eax, word [ebx + esi*2]
test ax, ax
je 0x427230
movzx ecx, word [ebx]
nop dword [eax]
cmp ax, cx
je 0x427230
movzx eax, word [ebx + esi*2 + 2]
inc esi
test ax, ax
jne 0x427220
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x28]
cmp byte [eax + edx], 0
je 0x42725b
cmp ecx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
movsx eax, byte [eax + edx]
add esi, eax
mov eax, dword [ebp - 0x34]
jmp 0x42732e
add esi, dword [ebp - 0x30]
movzx eax, word [ebx + esi*2]
cmp ax, word [ebx]
je 0x427308
test ax, ax
je 0x427308
push dword [ebp - 0x40]
mov ecx, edi
call fcn.00427790
test al, al
jne 0x4272df
cmp byte [edi + 4], al
jne 0x4272c8
mov ecx, dword [edi]
test ecx, ecx
je 0x4272be
mov eax, dword [ecx + 0x1c]
mov edx, dword [eax]
test edx, edx
je 0x4272a3
mov eax, dword [ecx + 0x2c]
cmp dword [eax], 0
jle 0x4272a3
movzx eax, word [edx]
jmp 0x4272ab
mov eax, dword [ecx]
call dword [eax + 0x18]
movzx eax, ax
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x4272be
mov word [edi + 6], ax
jmp 0x4272c4
mov dword [edi], 0
mov byte [edi + 4], 1
mov ax, word [ebx + esi*2]
cmp ax, word [edi + 6]
jne 0x4272df
mov edx, dword [ebp - 0x38]
mov cl, 1
mov eax, dword [ebp - 0x34]
mov byte [ebp - 0x29], cl
jmp 0x427331
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x30]
mov ecx, 0x7f
cmovae edx, dword [ebp - 0x28]
cmp dword [ebp - 0x30], ecx
movzx eax, al
cmovb ecx, eax
mov eax, dword [ebp - 0x38]
mov byte [edx + eax], cl
mov edx, eax
mov eax, dword [ebp - 0x34]
jmp 0x42732e
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
cmp ecx, 0x10
movzx eax, al
mov ecx, 0x7f
cmovae edx, dword [ebp - 0x28]
cmp dword [ebp - 0x30], ecx
cmovb ecx, eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov byte [edx + eax], cl
mov edx, eax
mov cl, byte [ebp - 0x29]
inc edx
mov dword [ebp - 0x38], edx
cmp edx, dword [ebp - 0x3c]
jb 0x427211
test cl, cl
je 0x4273af
push dword [ebp - 0x40]
mov ecx, edi
call fcn.00427790
test al, al
jne 0x4273ac
inc dword [ebp - 0x30]
mov ecx, dword [edi]
test ecx, ecx
je 0x42739a
mov eax, dword [ecx + 0x1c]
cmp dword [eax], 0
je 0x42737c
mov edx, dword [ecx + 0x2c]
mov eax, dword [edx]
test eax, eax
jle 0x42737c
dec eax
mov dword [edx], eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
lea eax, [edx + 2]
mov dword [ecx], eax
movzx eax, word [edx]
jmp 0x427384
mov eax, dword [ecx]
call dword [eax + 0x1c]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
je 0x42739a
mov byte [edi + 4], 0
or eax, 0xffffffff
jmp 0x4271fa
mov dword [edi], 0
or eax, 0xffffffff
mov byte [edi + 4], 1
jmp 0x4271fa
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4273c7
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004032e0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00564ee1
mov esp, ebp
pop ebp
ret