Function at 0x545840
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x38
call fcn.005bd7a0
mov eax, dword [0x6ce8d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx]
shl edx, 0x18
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx]
shl edx, 0x10
or edx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx]
shl edx, 8
or edx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx]
or edx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx]
shl edx, 0x18
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx]
shl edx, 0x10
or edx, dword [ebp - 0x18]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx]
shl edx, 8
or edx, dword [ebp - 0x18]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx]
or edx, dword [ebp - 0x18]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp + edx - 0x2c], eax
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 0x18]
mov dword [ebp + ecx - 0x2c], edx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x18
and ecx, 0xff
mov edx, dword [ebp - 0x10]
mov byte [edx], cl
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ebp - 0x10]
mov byte [edx], cl
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
shr ecx, 8
and ecx, 0xff
mov edx, dword [ebp - 0x10]
mov byte [edx], cl
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
and ecx, 0xff
mov edx, dword [ebp - 0x10]
mov byte [edx], cl
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
shr ecx, 0x18
and ecx, 0xff
mov edx, dword [ebp - 0x10]
mov byte [edx], cl
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ebp - 0x10]
mov byte [edx], cl
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
shr ecx, 8
and ecx, 0xff
mov edx, dword [ebp - 0x10]
mov byte [edx], cl
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
and ecx, 0xff
mov edx, dword [ebp - 0x10]
mov byte [edx], cl
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x30]
sub edx, 1
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x38], 0
je 0x545b72
cmp dword [ebp - 0x24], 0
jne 0x545b3a
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00544c00
add esp, 8
lea edx, [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + ecx - 0x2c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x20]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x20]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x20]
and eax, 0xff
mov ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + eax - 0x2c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
shr edx, 0x18
and edx, 0xff
mov eax, dword [ebp - 0x10]
mov byte [eax], dl
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x20]
shr edx, 0x10
and edx, 0xff
mov eax, dword [ebp - 0x10]
mov byte [eax], dl
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x20]
shr edx, 8
and edx, 0xff
mov eax, dword [ebp - 0x10]
mov byte [eax], dl
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x20]
and edx, 0xff
mov eax, dword [ebp - 0x10]
mov byte [eax], dl
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
mov edx, dword [ebp - 0x24]
movzx eax, byte [ebp + edx - 0xc]
xor ecx, eax
mov edx, dword [ebp + 0xc]
mov byte [edx], cl
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 0x24]
add edx, 1
and edx, 7
mov dword [ebp - 0x24], edx
jmp 0x545a14
cmp dword [ebp - 0x34], 0
je 0x545c62
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + ecx - 0x2c]
mov dword [ebp - 0x1c], edx
mov eax, 4
shl eax, 0
mov ecx, dword [ebp + eax - 0x2c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x1c]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x14]
mov byte [ecx], al
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp - 0x14]
mov byte [ecx], al
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x1c]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x14]
mov byte [ecx], al
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x1c]
and eax, 0xff
mov ecx, dword [ebp - 0x14]
mov byte [ecx], al
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
shr eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x14]
mov byte [ecx], al
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [ebp - 0x14]
mov byte [ecx], al
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
shr eax, 8
and eax, 0xff
mov ecx, dword [ebp - 0x14]
mov byte [ecx], al
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
and eax, 0xff
mov ecx, dword [ebp - 0x14]
mov byte [ecx], al
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, 4
shl eax, 0
mov dword [ebp + eax - 0x2c], 0
mov ecx, 4
imul edx, ecx, 0
mov dword [ebp + edx - 0x2c], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x24]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005bd4a0
mov esp, ebp
pop ebp
ret