Function at 0x5242b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
add ecx, dword [edx]
sar ecx, 1
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 0x10]
add ecx, dword [edx + 4]
sar ecx, 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x101
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x5c]
mov dx, word [ecx + eax*2 + 0x68]
mov word [ebp - 0x32], dx
movzx eax, word [ebp - 0x32]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0xff
jle 0x524314
mov dword [ebp - 0x3c], 0xff
cmp dword [ebp - 0x38], 0xff
jle 0x524324
mov dword [ebp - 0x38], 0xff
mov eax, dword [ebp - 0x38]
shl eax, 8
add eax, dword [ebp - 0x3c]
mov cx, word [eax*2 + 0x723b88]
mov word [ebp - 0x3e], cx
mov dx, word [ebp - 0x3e]
mov word [ebp - 8], dx
mov eax, dword [0x6e525c]
shl eax, 1
mov dword [0x6e525c], eax
cmp dword [0x6e525c], 0x10000
jge 0x5243d7
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x5c]
call fcn.005242b0
mov edx, dword [eax]
mov dword [ebp - 0x18], edx
mov eax, dword [0x6e525c]
add eax, 1
mov dword [0x6e525c], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x5c]
call fcn.005242b0
mov edx, dword [eax]
mov dword [ebp - 4], edx
movzx eax, word [ebp - 0x18]
movzx ecx, word [ebp - 4]
cmp eax, ecx
jle 0x5243b6
mov dx, word [ebp - 0x18]
mov word [ebp - 0x5e], dx
jmp 0x5243be
mov ax, word [ebp - 4]
mov word [ebp - 0x5e], ax
movzx ecx, word [ebp - 0x5e]
mov dword [ebp - 0x1c], ecx
movzx edx, byte [ebp - 2]
movzx eax, byte [ebp - 0x16]
or eax, edx
mov byte [ebp - 0x16], al
jmp 0x524544
movzx ecx, word [ebp - 8]
mov edx, dword [ebp + 0x14]
movzx eax, word [edx + 0xc]
or ecx, eax
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x44], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x14]
add edx, dword [eax]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x48], edx
cmp dword [ebp - 0x48], 0xff
jle 0x524419
mov dword [ebp - 0x48], 0xff
cmp dword [ebp - 0x44], 0xff
jle 0x524429
mov dword [ebp - 0x44], 0xff
mov ecx, dword [ebp - 0x44]
shl ecx, 8
add ecx, dword [ebp - 0x48]
mov dx, word [ecx*2 + 0x723b88]
mov word [ebp - 0x4a], dx
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + 0xc]
or ecx, dword [ebp - 0x24]
movzx edx, word [ebp - 0x4a]
or ecx, edx
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
sar eax, 8
mov ecx, dword [ebp - 0x28]
and ecx, dword [eax*4 + 0x723780]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x3c]
mov ecx, dword [0x6e525c]
mov dl, byte [ebp - 0x28]
mov byte [eax + ecx*2 + 1], dl
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x3c]
mov edx, dword [0x6e525c]
mov byte [ecx + edx*2], 0
mov eax, dword [0x6e525c]
add eax, 1
mov dword [0x6e525c], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x50], edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x14]
add edx, dword [eax]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x54], edx
cmp dword [ebp - 0x54], 0xff
jle 0x5244c6
mov dword [ebp - 0x54], 0xff
cmp dword [ebp - 0x50], 0xff
jle 0x5244d6
mov dword [ebp - 0x50], 0xff
mov ecx, dword [ebp - 0x50]
shl ecx, 8
add ecx, dword [ebp - 0x54]
mov dx, word [ecx*2 + 0x723b88]
mov word [ebp - 0x56], dx
mov eax, dword [ebp + 0x10]
movzx ecx, word [eax + 0xc]
or ecx, dword [ebp - 0x24]
movzx edx, word [ebp - 0x56]
or ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
sar eax, 8
mov ecx, dword [ebp - 0x20]
and ecx, dword [eax*4 + 0x723780]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x3c]
mov ecx, dword [0x6e525c]
mov dl, byte [ebp - 0x20]
mov byte [eax + ecx*2 + 1], dl
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x3c]
mov edx, dword [0x6e525c]
mov byte [ecx + edx*2], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x28]
or eax, dword [ebp - 0x20]
mov byte [ebp - 0x16], al
mov ecx, dword [0x6e525c]
sar ecx, 1
mov dword [0x6e525c], ecx
mov eax, dword [ebp - 0xc]
shl eax, 1
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 8]
mov edx, dword [ebp + 0x10]
add ecx, dword [edx + 8]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add eax, 1
sar eax, 1
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xff
jle 0x524585
mov dword [ebp - 0x1c], 0xff
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax + 0x3c]
mov edx, dword [0x6e525c]
mov al, byte [ebp - 0x1c]
mov byte [ecx + edx*2], al
mov cx, word [ebp - 0x1c]
mov word [ebp - 0x18], cx
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x3c]
mov ecx, dword [0x6e525c]
mov dl, byte [ebp - 0x16]
mov byte [eax + ecx*2 + 1], dl
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 0x10