Function at 0x423d90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0xffffffffffffffff
push 0x4b6718
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebp
mov ebp, dword [esp + 0x58]
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 + 0x28], esi
call dword [eax + 0x20]
test eax, eax
je 0x423de2
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 8
push edi
lea ecx, [esp + 0x28]
call fcn.00488fe0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 1
lea ecx, [eax + eax]
push 0x20
push ecx
lea eax, [edx + edx]
xor edi, edi
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x68], edi
call fcn.00488d90
test eax, eax
lea ecx, [esp + 0x28]
je 0x423e3d
mov dword [esp + 0x58], 0xffffffff
call fcn.00488c90
pop edi
pop esi
mov eax, 2
pop ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 8
push ebx
push edi
call fcn.00488ae0
lea ecx, [esi + 0x44]
call fcn.00403010
mov edx, dword [esp + 0x68]
lea ecx, [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x4c]
push ecx
mov ecx, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.004238c0
mov eax, dword [esi + 0x14]
movzx edx, byte [esi + 0x16]
mov ebx, eax
and ebx, 0xff
shl ebx, 0x10
and eax, 0xff00
add ebx, edx
add ebx, eax
mov eax, dword [esp + 0x14]
cmp eax, edi
mov dword [esp + 0x68], edi
jle 0x423f50
mov eax, dword [esp + 0x34]
lea ecx, [eax*4]
lea edx, [eax*8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edx
mov eax, dword [ebp]
mov esi, dword [ebp + 8]
mov ecx, ebp
call dword [eax + 0x24]
imul esi, dword [esp + 0x68]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
lea esi, [eax + esi*4]
mov eax, dword [esp + 0x1c]
add ecx, edx
lea edx, [eax + ecx]
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x423f27
nop
mov eax, dword [edx + 4]
mov ebp, dword [ecx + 4]
and eax, 0xff
and ebp, 0xff
add eax, ebp
mov ebp, dword [edx]
and ebp, 0xff
add eax, ebp
mov ebp, dword [ecx]
and ebp, 0xff
add eax, ebp
and eax, 0xfffffffc
shl eax, 0x16
add eax, ebx
mov dword [esi], eax
mov eax, dword [esp + 0x10]
add esi, 4
add ecx, 8
add edx, 8
inc edi
cmp edi, eax
jl 0x423ee0
mov ebp, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
inc ecx
add esi, edx
xor edi, edi
cmp ecx, eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x18], esi
jl 0x423eb3
mov esi, dword [esp + 0x28]
mov ecx, dword [esi + 0x18]
or ebx, 0xffffffff
cmp ecx, ebx
je 0x424175
push 1
push 0x20
push eax
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
call fcn.00488d90
test eax, eax
lea ecx, [esp + 0x2c]
je 0x423f9c
mov dword [esp + 0x5c], ebx
call fcn.00488c90
pop ebx
pop edi
pop esi
mov eax, 2
pop ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 8
push edi
call fcn.00488ae0
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 + 0x28], eax
cmp edi, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x64], edi
jge 0x424060
mov eax, dword [esp + 0x34]
mov ebx, eax
imul ebx, edi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x1c], eax
lea ebx, [ebx]
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 + 0x28]
lea edx, [eax + ecx*4]
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x30]
add ebx, eax
lea ecx, [ecx + ebx*4]
cmp eax, dword [esp + 0x10]
jge 0x424045
lea esp, [esp]
mov ebx, dword [edx]
and ebx, 0xff000000
je 0x424036
mov edi, dword [esp + 0x20]
add ebx, edi
mov edi, dword [esp + 0x64]
mov dword [ecx], ebx
mov ebx, dword [esp + 0x10]
add edx, 4
add ecx, 4
inc eax
cmp eax, ebx
jl 0x424020
mov ebx, dword [esp + 0x68]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
inc edi
add ebx, ecx
cmp edi, eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], ebx
jl 0x423ff0
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x24]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0x14]
test eax, eax
jle 0x424175
mov dword [esp + 0x1c], eax
lea esp, [esp]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
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 + 0x18], ebp
je 0x42414d
test edi, edi
jne 0x4240da
mov ecx, dword [esp + 0x64]
mov dword [ecx], ebp
jmp 0x42414d
test ebx, ebx
je 0x42414d
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 + 0x18]
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 + 0x18]
and eax, 0xff
imul eax, ebx
add eax, ecx
div esi
shl esi, 0x18
add ebp, eax
mov eax, dword [esp + 0x64]
add esi, ebp
mov dword [eax], esi
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov eax, 4
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x1c], eax
jne 0x424090
lea ecx, [esp + 0x2c]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00488c90
mov ecx, dword [esp + 0x54]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x50
ret 8