Function at 0x54f0e8
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x54f34e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x2f8]
mov edx, dword [eax]
call dword [edx + 0xd4]
lea edx, [ebp - 0xc]
mov eax, dword [0x596274]
mov eax, dword [eax]
call fcn.004e2c6c
push dword [ebp - 0xc]
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x10]
call fcn.00409380
push dword [ebp - 0x10]
push 0x54f364
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404ce0
mov edx, 0x40
mov eax, dword [ebp - 4]
call fcn.00409498
mov esi, eax
lea eax, [ebp - 4]
call fcn.00404968
test esi, esi
jl 0x54f31e
mov ecx, 2
xor edx, edx
mov eax, esi
call fcn.00409578
mov ecx, eax
mov eax, ecx
mov ecx, 0x140
cdq
idiv ecx
mov dword [ebx + 0x310], eax
cmp edi, dword [ebx + 0x310]
jl 0x54f1b8
mov eax, esi
call fcn.004095bc
jmp 0x54f31e
mov edx, edi
shl edx, 6
lea edx, [edx + edx*4]
xor ecx, ecx
mov eax, esi
call fcn.00409578
mov eax, dword [ebx + 0x310]
sub eax, edi
mov edi, eax
cmp edi, 0x3c
jle 0x54f1dd
mov edi, 0x3c
mov ecx, edi
shl ecx, 6
lea ecx, [ecx + ecx*4]
lea edx, [ebx + 0x318]
mov eax, esi
call fcn.00409520
mov eax, esi
call fcn.004095bc
dec edi
test edi, edi
jl 0x54f31e
inc edi
mov dword [ebp - 8], edi
xor esi, esi
mov eax, dword [ebx + 0x2f8]
mov eax, dword [eax + 0x22c]
call fcn.0047e2d8
mov edi, eax
mov eax, esi
and eax, 0xff
shl eax, 3
lea eax, [eax + eax*4]
push dword [ebx + eax*8 + 0x324]
push dword [ebx + eax*8 + 0x320]
lea edx, [ebp - 0x14]
mov eax, 0x54f378
call fcn.0040c138
mov edx, dword [ebp - 0x14]
mov eax, edi
call fcn.0047dd28
lea eax, [ebp - 0x18]
mov edx, esi
and edx, 0xff
shl edx, 3
lea edx, [edx + edx*4]
lea edx, [ebx + edx*8 + 0x3c1]
call fcn.00404bc4
mov edx, dword [ebp - 0x18]
mov eax, dword [edi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, esi
and eax, 0xff
shl eax, 3
lea eax, [eax + eax*4]
lea edx, [ebx + eax*8 + 0x38d]
lea eax, [ebp - 0x44]
call fcn.00403018
mov edx, 0x54f390
lea eax, [ebp - 0x44]
mov cl, 0x20
call fcn.00402fe8
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x20]
call fcn.00404bc4
push dword [ebp - 0x20]
mov eax, esi
and eax, 0xff
shl eax, 3
lea eax, [eax + eax*4]
movsx eax, byte [ebx + eax*8 + 0x38c]
inc eax
lea edx, [ebp - 0x48]
call fcn.00409350
push dword [ebp - 0x48]
push 0x54f39c
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404ce0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x4c]
mov edx, esi
and edx, 0xff
shl edx, 3
lea edx, [edx + edx*4]
lea edx, [ebx + edx*8 + 0x3ac]
call fcn.00404bc4
mov edx, dword [ebp - 0x4c]
mov eax, dword [edi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec dword [ebp - 8]
jne 0x54f208
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54f355
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.0040498c
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.0040498c
lea eax, [ebp - 4]
call fcn.00404968
ret