Function at 0x427d43
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x64
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jns 0x427d5d
add dword [ebp - 0x34], 7
mov eax, dword [ebp - 0x34]
sar eax, 3
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jns 0x427d7f
add dword [ebp - 0x3c], 7
mov eax, dword [ebp - 0x3c]
sar eax, 3
shl eax, 3
mov edx, dword [ebp - 0x38]
sub edx, eax
mov eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
sub eax, edx
lea edx, [eax*8]
mov eax, dword [ebp + 8]
cmp edx, dword [eax + 8]
je 0x427dbe
mov dword [ebp - 0x30], 0
jmp 0x428014
cmp dword [ebp - 0xc], 0
jle 0x427def
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x427def
mov dword [ebp - 0x30], 0
jmp 0x428014
cmp dword [ebp - 0x10], 0
jle 0x427e2c
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0xc]
add edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, dword [ebp - 0xc]
movzx eax, byte [eax]
xor al, byte [edx]
movzx edx, al
mov ecx, dword [ebp - 0x10]
mov eax, 0x100
sar eax, cl
dec eax
not eax
and eax, edx
test eax, eax
je 0x427e2c
mov dword [ebp - 0x30], 0
jmp 0x428014
mov eax, dword [ebp + 8]
add eax, 0xc
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
add edx, 0xc
mov eax, dword [ebp + 8]
add eax, 0xc
mov eax, dword [eax + 4]
shl eax, 2
add eax, dword [edx]
cmp eax, dword [ebp - 8]
je 0x42800d
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax + 4], 0
je 0x427e8d
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
sub eax, 0x10
mov edx, dword [eax]
lea eax, [ebp + 0x1c]
add dword [eax], edx
jmp 0x428002
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [eax + 8]
sub eax, edx
dec eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004277d0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
je 0x427f0e
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x40], eax
lea eax, [ebp + 0x1c]
inc dword [eax]
mov eax, dword [ebp - 0x1c]
cmp byte [eax], 0
jns 0x427ed3
mov byte [ebp - 0x41], 0x2a
jmp 0x427ed7
mov byte [ebp - 0x41], 0x24
movzx eax, byte [ebp - 0x41]
mov edx, dword [ebp - 0x40]
mov byte [edx], al
mov eax, dword [ebp + 0x1c]
mov byte [eax], 0
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
and eax, 0x40
test eax, eax
je 0x427eff
mov dword [ebp - 0x30], 1
jmp 0x428014
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
lea eax, [ebp - 0x14]
add dword [eax], edx
jmp 0x428002
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jns 0x427f2d
add dword [ebp - 0x48], 7
mov eax, dword [ebp - 0x48]
sar eax, 3
add eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x50], 0
jns 0x427f4f
add dword [ebp - 0x50], 7
mov eax, dword [ebp - 0x50]
sar eax, 3
shl eax, 3
mov edx, dword [ebp - 0x4c]
sub edx, eax
mov eax, 8
sub eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x2c]
jg 0x427f9f
mov eax, dword [ebp - 0x28]
movzx ebx, byte [eax]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
sub ecx, edx
mov edx, ebx
sar edx, cl
mov ecx, dword [ebp - 0x24]
mov eax, 1
shl eax, cl
dec eax
and edx, eax
lea eax, [ebp - 0x20]
or dword [eax], edx
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x14]
add dword [eax], edx
jmp 0x427fe1
mov eax, dword [ebp - 0x28]
movzx edx, byte [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, 1
shl eax, cl
dec eax
mov ebx, edx
and ebx, eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x24]
mov ecx, eax
sub ecx, edx
mov edx, ebx
shl edx, cl
lea eax, [ebp - 0x20]
or dword [eax], edx
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
add dword [eax], edx
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub dword [eax], edx
lea eax, [ebp - 0x28]
inc dword [eax]
jmp 0x427f39
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4c49d0
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
mov edx, eax
lea eax, [ebp + 0x1c]
add dword [eax], edx
lea eax, [ebp - 8]
add dword [eax], 4
jmp 0x427e37
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x30]
add esp, 0x64
pop ebx
pop ebp
ret