Function at 0x5baaf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
push edi
lea edi, [ebp - 0x150]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x38], edx
jmp 0x5bab46
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x2c]
jge 0x5bacca
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 4]
jg 0x5bacca
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
movzx ecx, byte [eax]
cmp ecx, 0x97
jne 0x5bab82
mov eax, dword [ebp - 0x50]
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp + 0x14]
je 0x5bab87
jmp 0x5bacca
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0058f2b0
add esp, 8
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x5baba9
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 4]
jge 0x5babfc
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x74]
cmp edx, dword [ecx + 8]
jne 0x5babd8
mov dword [ebp - 0x74], 0xffffffff
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x28]
mov edx, dword [ebp - 8]
movzx eax, byte [ecx + edx]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x8c], eax
jmp 0x5bac15
mov dword [ebp - 0x74], 0xffffffff
mov dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp - 0x50]
movsx ecx, word [eax + 0x1c]
cmp ecx, dword [ebp - 0x74]
jne 0x5bac3a
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ecx]
push edx
call fcn.00545e70
add esp, 8
test eax, eax
je 0x5bac5f
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x1c]
jge 0x5bac49
jmp 0x5bab3d
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 4]
jne 0x5bac58
jmp 0x5bacca
xor eax, eax
jmp 0x5bad22
mov eax, dword [ebp - 0x38]
movzx ecx, byte [eax + 0xc]
xor ecx, dword [ebp - 0x80]
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x1c]
jle 0x5bac85
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x20]
je 0x5bac83
xor eax, eax
jmp 0x5bad22
jmp 0x5bac8b
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
add eax, 0x14
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x74], 0
jge 0x5bacc5
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.005badd0
add esp, 0x10
test eax, eax
jne 0x5bacc5
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
jmp 0x5bab3d
xor eax, eax
cmp dword [ebp - 0x20], 0
setne al
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x2c]
jl 0x5bace7
mov eax, 1
jmp 0x5bad22
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + 0x18]
test ecx, ecx
je 0x5bad20
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 4]
jne 0x5bad20
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.005badd0
add esp, 0x10
test eax, eax
jne 0x5bad20
mov eax, 1
jmp 0x5bad22
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x150
cmp ebp, esp
call fcn.0052a55b
mov esp, ebp
pop ebp
ret