Function at 0x5368c9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x2c]
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
mov edx, dword [ebp + 8]
sub eax, dword [edx + 0x74]
mov ecx, dword [ebp + 8]
sub eax, dword [ecx + 0x6c]
mov dword [ebp - 0x10], eax
jmp 0x536916
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x2c]
sub edx, 0x106
add edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx + 0x6c]
ja 0x5369f0
push dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x38]
add edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
push dword [ecx + 0x38]
call fcn.0051eae4
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
sub dword [edx + 0x70], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
sub dword [eax + 0x6c], ecx
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
sub dword [ecx + 0x5c], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x4c]
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 4]
add ecx, ecx
mov eax, dword [ebp + 8]
add ecx, dword [eax + 0x44]
mov dword [ebp - 0xc], ecx
sub dword [ebp - 0xc], 2
mov edx, dword [ebp - 0xc]
movzx ecx, word [edx]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jb 0x53699d
mov dx, word [ebp - 8]
sub dx, word [ebp - 0x14]
jmp 0x53699f
xor edx, edx
mov eax, dword [ebp - 0xc]
mov word [eax], dx
dec dword [ebp - 4]
jne 0x53697e
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, eax
mov edx, dword [ebp + 8]
add eax, dword [edx + 0x40]
mov dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 2
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x14]
jb 0x5369dd
mov cx, word [ebp - 8]
sub cx, word [ebp - 0x14]
jmp 0x5369df
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov word [eax], cx
dec dword [ebp - 4]
jne 0x5369be
mov edx, dword [ebp - 0x14]
add dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0
je 0x536a95
push dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x38]
mov edx, dword [ebp + 8]
add eax, dword [edx + 0x6c]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x74]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.005363a0
add esp, 0xc
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add dword [ecx + 0x74], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x74], 3
jb 0x536a7a
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x38]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x6c]
movzx ecx, byte [ecx + edx]
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x58]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x48]
shl edx, cl
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x38]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x6c]
movzx eax, byte [eax + ecx + 1]
xor edx, eax
mov eax, dword [ebp + 8]
and edx, dword [eax + 0x54]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x48], edx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x74], 0x106
jae 0x536a95
mov eax, dword [ebp + 8]
mov edx, dword [eax]
cmp dword [edx + 4], 0
jne 0x5368d8
mov esp, ebp
pop ebp
ret