Function at 0x48e240
Capabilities:
Encrypt data using rc4 ksa
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4c5728
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebp
mov ebp, dword [esp + 0x68]
mov eax, dword [ebp]
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
mov ecx, ebp
mov dword [esp + 0x38], esi
call dword [eax + 0x20]
test eax, eax
je 0x48e292
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 8
push edi
lea ecx, [esp + 0x38]
call fcn.00495fb0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 1
lea ecx, [eax*4]
push 0x20
push ecx
lea eax, [edx*4]
xor edi, edi
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x78], edi
call fcn.00495d60
test eax, eax
lea ecx, [esp + 0x38]
je 0x48e2f5
mov dword [esp + 0x68], 0xffffffff
call fcn.00495c50
pop edi
pop esi
mov eax, 2
pop ebp
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 8
push ebx
push edi
call fcn.00495a50
lea ecx, [esi + 0x44]
call fcn.00483070
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x5c]
push ecx
mov ecx, eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call fcn.0048d9a0
mov ecx, dword [esi + 0x14]
movzx edx, byte [esi + 0x16]
mov eax, ecx
and eax, 0xff
shl eax, 0x10
add eax, edx
and ecx, 0xff00
add eax, ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
cmp eax, edi
mov dword [esp + 0x20], edi
jle 0x48e4d7
mov eax, dword [esp + 0x44]
lea ebx, [eax*4]
shl eax, 4
mov dword [esp + 0x30], eax
lea eax, [ecx*4]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x2c], eax
jmp 0x48e383
mov ebx, dword [esp + 0x24]
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x24]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x40]
add eax, edx
mov edx, dword [esp + 0x18]
add edx, ecx
mov ecx, dword [esp + 0x10]
lea esi, [ebx + edx]
lea edi, [ebx + esi]
add ebx, edi
test ecx, ecx
mov dword [esp + 0x1c], 0
jle 0x48e4a0
jmp 0x48e3c0
mov ecx, dword [ebx + 0xc]
mov ebp, dword [ebx + 8]
and ebp, 0xff
and ecx, 0xff
add ecx, ebp
mov ebp, dword [ebx + 4]
and ebp, 0xff
add ecx, ebp
mov ebp, dword [edi + 0xc]
and ebp, 0xff
add ecx, ebp
mov ebp, dword [edi + 8]
and ebp, 0xff
add ecx, ebp
mov ebp, dword [edi + 4]
and ebp, 0xff
add ecx, ebp
mov ebp, dword [esi + 0xc]
and ebp, 0xff
add ecx, ebp
mov ebp, dword [esi + 8]
and ebp, 0xff
add ecx, ebp
mov ebp, dword [esi + 4]
and ebp, 0xff
add ecx, ebp
mov ebp, dword [edx + 0xc]
and ebp, 0xff
add ecx, ebp
mov ebp, dword [edx + 8]
and ebp, 0xff
add ecx, ebp
mov ebp, dword [edx + 4]
and ebp, 0xff
add ecx, ebp
mov ebp, dword [esi]
and ebp, 0xff
add ecx, ebp
mov ebp, dword [edx]
and ebp, 0xff
add ecx, ebp
mov ebp, dword [ebx]
and ebp, 0xff
add ecx, ebp
mov ebp, dword [edi]
and ebp, 0xff
add ecx, ebp
mov ebp, dword [esp + 0x28]
and ecx, 0xfffffff0
shl ecx, 0x14
add ecx, ebp
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
add eax, 4
add edx, 0x10
add esi, 0x10
add edi, 0x10
add ebx, 0x10
inc ecx
cmp ecx, ebp
mov dword [esp + 0x1c], ecx
jl 0x48e3c0
mov ebp, dword [esp + 0x74]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
add edi, eax
mov eax, dword [esp + 0x14]
inc ecx
add esi, edx
cmp ecx, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x78], edi
mov dword [esp + 0x18], esi
jl 0x48e37f
mov esi, dword [esp + 0x38]
xor edi, edi
mov ecx, dword [esi + 0x18]
or ebx, 0xffffffff
cmp ecx, ebx
je 0x48e6f9
push 1
push 0x20
push eax
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x4c]
call fcn.00495d60
test eax, eax
lea ecx, [esp + 0x3c]
je 0x48e523
mov dword [esp + 0x6c], ebx
call fcn.00495c50
pop ebx
pop edi
pop esi
mov eax, 2
pop ebp
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 8
push edi
call fcn.00495a50
mov eax, dword [esi + 0x18]
movzx edx, byte [esi + 0x1a]
mov edi, dword [esi + 0x2c]
mov ecx, eax
and ecx, 0xff
shl ecx, 0x10
and eax, 0xff00
add ecx, edx
add ecx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x38], eax
cmp edi, dword [esp + 0x14]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x74], edi
jge 0x48e5e0
mov eax, dword [esp + 0x44]
mov ebx, eax
imul ebx, edi
mov dword [esp + 0x78], ebx
mov dword [esp + 0x2c], eax
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x24]
mov edx, dword [esi + 0x2c]
mov ecx, edi
sub ecx, edx
imul ecx, dword [esp + 0x38]
lea edx, [eax + ecx*4]
mov eax, dword [esi + 0x28]
lea ecx, [eax + ebx]
mov ebx, dword [esp + 0x40]
lea ecx, [ebx + ecx*4]
cmp eax, dword [esp + 0x10]
jge 0x48e5c5
jmp 0x48e5a0
mov ebx, dword [edx]
and ebx, 0xff000000
je 0x48e5b6
mov edi, dword [esp + 0x30]
add ebx, edi
mov edi, dword [esp + 0x74]
mov dword [ecx], ebx
mov ebx, dword [esp + 0x10]
add edx, 4
add ecx, 4
inc eax
cmp eax, ebx
jl 0x48e5a0
mov ebx, dword [esp + 0x78]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
inc edi
add ebx, ecx
cmp edi, eax
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], ebx
jl 0x48e571
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x24]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x14]
test eax, eax
jle 0x48e6f9
mov dword [esp + 0x1c], eax
lea esp, [esp]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov ebp, dword [edx]
mov ecx, dword [ecx]
mov edi, ecx
shr edi, 0x18
mov esi, ebp
shr esi, 0x18
mov eax, 0xff
sub eax, edi
imul esi, eax
mov eax, 0x80808081
imul esi
add edx, esi
sar edx, 7
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
lea esi, [ebx + edi]
test esi, esi
mov dword [esp + 0x20], ebp
je 0x48e6d1
test edi, edi
jne 0x48e65e
mov ecx, dword [esp + 0x74]
mov dword [ecx], ebp
jmp 0x48e6d1
test ebx, ebx
je 0x48e6d1
mov eax, ebp
and eax, 0xff0000
imul eax, ebx
mov edx, ecx
and edx, 0xff0000
imul edx, edi
add eax, edx
xor edx, edx
div esi
mov edx, ecx
and edx, 0xff00
imul edx, edi
and ecx, 0xff
imul ecx, edi
mov ebp, eax
mov eax, dword [esp + 0x20]
and eax, 0xff00
imul eax, ebx
add eax, edx
xor edx, edx
div esi
and ebp, 0xff0000
xor edx, edx
and eax, 0xff00
add ebp, eax
mov eax, dword [esp + 0x20]
and eax, 0xff
imul eax, ebx
add eax, ecx
div esi
shl esi, 0x18
add ebp, eax
mov eax, dword [esp + 0x74]
add esi, ebp
mov dword [eax], esi
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov eax, 4
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x1c], eax
jne 0x48e610
lea ecx, [esp + 0x3c]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00495c50
mov ecx, dword [esp + 0x64]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x60
ret 8