Function at 0x5f3e2c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov dword [ebp - 8], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
movzx eax, byte [eax + 0x461]
cmp eax, 6
ja case.0x5f3ed5.0
jmp dword [eax*4 + 0x5f3e60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov al, byte [eax + 0x460]
sub al, 8
je 0x5f3e95
sub al, 8
je 0x5f3ea7
jmp case.0x5f3ed5.0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0x5f3904
jmp case.0x5f3ed5.0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0x5f3990
jmp case.0x5f3ed5.0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
movzx eax, byte [eax + 0x460]
cmp eax, 0x10
ja case.0x5f3ed5.0
mov al, byte [eax + 0x5f3edc]
jmp dword [eax*4 + 0x5f3eed]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0x5f3a7c
jmp case.0x5f3ed5.0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
cmp byte [eax + 0x461], 3
jne 0x5f3f30
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0x5f3b18
jmp case.0x5f3ed5.0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0x5f3aa8
jmp case.0x5f3ed5.0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0x5f3b8c
jmp case.0x5f3ed5.0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov al, byte [eax + 0x460]
sub al, 8
je 0x5f3f64
sub al, 8
je 0x5f3f73
jmp case.0x5f3ed5.0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0x5f3bdc
jmp case.0x5f3ed5.0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0x5f3c78
jmp case.0x5f3ed5.0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov al, byte [eax + 0x460]
sub al, 8
je 0x5f3f98
sub al, 8
je 0x5f3fa7
jmp case.0x5f3ed5.0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0x5f3d74
jmp case.0x5f3ed5.0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0x5f3dc8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x468]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1c]
dec edx
imul edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x14]
add eax, dword [edx + 0x450]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x454]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x468]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1c]
dec edx
imul edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x14]
add eax, dword [edx + 0x44c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
dec eax
test eax, eax
jb 0x5f40c0
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
inc eax
push eax
mov eax, dword [ebp - 4]
add eax, 0x4c
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x48]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + eax*4 + 0x40]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005f2af4
test eax, eax
je 0x5f40c0
mov eax, dword [ebp - 4]
call fcn.005f40c8
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x48]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
call dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x48]
xor al, 1
mov edx, dword [ebp - 4]
mov byte [edx + 0x48], al
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
add dword [ebp - 0x10], eax
inc dword [ebp - 0xc]
dec dword [ebp - 0x24]
jne 0x5f4025
mov esp, ebp
pop ebp
ret 8