Function at 0x43c6c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x28
mov eax, ecx
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov edx, dword [eax]
cmp dword [eax + 0x10], ecx
jle 0x43cb5b
push ebx
push ebp
push esi
push edi
nop
mov eax, dword [eax + 0x18]
mov esi, edx
mov ebp, dword [esi]
lea edx, [edx + eax*4]
dec ebp
mov dword [esp + 0x20], edx
test ebp, ebp
jle 0x43cb3b
mov eax, dword [esi + 4]
add esi, 4
mov ebx, dword [esp + 0x3c]
xor edi, edi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 8]
add edx, ecx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0xc]
imul eax, edx
sub edx, dword [ebx + 0x10]
add eax, dword [ecx]
mov ecx, dword [ebx + 4]
mov dword [ebx + 0x14], eax
mov eax, edx
cdq
idiv dword [ecx + 0x18]
imul edx, dword [ecx + 0xc]
add edx, dword [ecx]
sub ebp, 1
mov ecx, dword [esp + 0x2c]
mov dword [ebx + 0x18], edx
mov dword [esp + 0x30], ebp
js 0x43ca54
mov eax, dword [esi + 4]
add esi, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], esi
mov eax, dword [esi]
mov dword [esp + 0x1c], eax
cdq
and edx, 0xff
lea esi, [edx + eax]
mov eax, ecx
cdq
and edx, 0xff
sar esi, 8
mov dword [esp + 0x10], esi
lea ebp, [edx + eax]
sar ebp, 8
cmp esi, ebp
jne 0x43c791
mov eax, dword [esp + 0x1c]
sub eax, ecx
imul eax, dword [esp + 0x18]
add edi, eax
mov eax, dword [esp + 0x1c]
jmp 0x43ca43
movzx eax, cl
mov ecx, 0x100
sub ecx, eax
imul ecx, dword [esp + 0x18]
lea eax, [edi + ecx]
cdq
and edx, 0xff
lea ecx, [edx + eax]
sar ecx, 8
test ecx, ecx
jle 0x43c88a
mov eax, dword [ebx]
mov edx, dword [ebx + 0x14]
mov esi, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov eax, dword [eax + 0x10]
imul eax, ebp
add eax, edx
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [ebx + 0xc]
cdq
idiv dword [esi + 0x14]
mov eax, dword [ebx + 0x18]
imul edx, dword [esi + 0x10]
mov esi, dword [edx + eax]
mov edx, esi
shr edx, 8
and esi, 0xff00ff
and edx, 0xff00ff
cmp ecx, 0xff
jge 0x43c801
imul edi, ecx
sar edi, 8
imul edx, edi
mov ecx, 0x100
imul esi, edi
shr edx, 8
and edx, 0xff00ff
shr esi, 8
mov eax, edx
and esi, 0xff00ff
shr eax, 0x10
sub ecx, eax
mov eax, dword [esp + 0x14]
movzx ebx, byte [eax + 1]
imul ebx, ecx
shr ebx, 8
add ebx, edx
movzx edx, byte [eax + 2]
movzx eax, byte [eax]
shl edx, 0x10
or edx, eax
imul edx, ecx
mov ecx, 0x100
shr edx, 8
and edx, 0xff00ff
add edx, esi
mov esi, dword [esp + 0x10]
mov eax, edx
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, ebx
shr eax, 8
or ecx, edx
mov edx, dword [esp + 0x14]
neg al
or al, bl
and ecx, 0xff00ff
mov ebx, dword [esp + 0x3c]
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [edx], cl
mov byte [edx + 2], al
mov edx, dword [esp + 0x18]
test edx, edx
jle 0x43ca35
inc ebp
sub esi, ebp
mov dword [esp + 0x10], esi
test esi, esi
jle 0x43ca35
mov eax, dword [ebx]
mov eax, dword [eax + 0x10]
mov ecx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 8]
imul ecx, ebp
sub ebp, dword [ebx + 0xc]
imul eax, edx
add ecx, dword [ebx + 0x14]
sar eax, 8
mov dword [esp + 0x14], eax
cmp eax, 0xfe
jge 0x43c993
mov esi, dword [ebx + 4]
mov eax, ebp
cdq
inc ebp
idiv dword [esi + 0x14]
mov esi, dword [esi + 0x10]
mov eax, dword [ebx + 0x18]
imul esi, edx
mov edx, 0x100
movzx ebx, byte [ecx + 1]
mov edi, dword [esi + eax]
mov esi, edi
shr esi, 8
and edi, 0xff00ff
and esi, 0xff00ff
imul edi, dword [esp + 0x14]
imul esi, dword [esp + 0x14]
shr edi, 8
shr esi, 8
and edi, 0xff00ff
and esi, 0xff00ff
mov eax, esi
shr eax, 0x10
sub edx, eax
movzx eax, byte [ecx]
imul ebx, edx
shr ebx, 8
add ebx, esi
movzx esi, byte [ecx + 2]
shl esi, 0x10
or esi, eax
imul esi, edx
mov edx, 0x100
shr esi, 8
and esi, 0xff00ff
add esi, edi
mov eax, esi
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, ebx
shr eax, 8
or edx, esi
neg al
and edx, 0xff00ff
or al, bl
mov byte [ecx], dl
mov ebx, dword [esp + 0x3c]
mov byte [ecx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, dword [esp + 0x10]
add ecx, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x10], eax
test eax, eax
jg 0x43c8d1
jmp 0x43ca31
mov esi, dword [ebx + 4]
mov eax, ebp
cdq
mov edi, 0x100
inc ebp
idiv dword [esi + 0x14]
mov esi, dword [esi + 0x10]
imul esi, edx
movzx edx, byte [ecx + 2]
shl edx, 0x10
add esi, dword [ebx + 0x18]
mov ebx, 0x100
movzx eax, byte [esi + 3]
mov esi, dword [esi]
sub edi, eax
movzx eax, byte [ecx]
or edx, eax
mov eax, esi
imul edx, edi
and eax, 0xff00ff
shr esi, 8
and esi, 0xff00ff
shr edx, 8
and edx, 0xff00ff
add edx, eax
mov eax, edx
shr eax, 8
and eax, 0xff00ff
sub ebx, eax
or ebx, edx
movzx edx, byte [ecx + 1]
imul edx, edi
and ebx, 0xff00ff
mov byte [ecx], bl
shr edx, 8
add edx, esi
mov eax, edx
shr eax, 8
neg al
or al, dl
mov byte [ecx + 1], al
mov eax, ebx
mov ebx, dword [esp + 0x3c]
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, dword [esp + 0x10]
add ecx, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x10], eax
test eax, eax
jg 0x43c993
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x3c]
movzx edi, al
imul edi, edx
sub dword [esp + 0x30], 1
mov ecx, eax
mov esi, dword [esp + 0x34]
jns 0x43c743
mov eax, edi
cdq
and edx, 0xff
lea esi, [edx + eax]
sar esi, 8
test esi, esi
jle 0x43cb37
mov eax, ecx
mov edi, dword [ebx + 8]
mov ecx, dword [ebx]
cdq
and edx, 0xff
add eax, edx
mov edx, dword [ebx + 0x14]
mov ebp, dword [ecx + 0x10]
mov ecx, dword [ebx + 4]
sar eax, 8
imul ebp, eax
sub eax, dword [ebx + 0xc]
add ebp, edx
cdq
idiv dword [ecx + 0x14]
mov eax, dword [ebx + 0x18]
imul edx, dword [ecx + 0x10]
mov ecx, 0x100
movzx ebx, byte [ebp + 1]
cmp esi, 0xff
jge 0x43cab1
imul edi, esi
sar edi, 8
mov esi, dword [edx + eax]
mov edx, esi
shr edx, 8
and esi, 0xff00ff
and edx, 0xff00ff
imul esi, edi
imul edx, edi
shr esi, 8
shr edx, 8
and esi, 0xff00ff
and edx, 0xff00ff
mov eax, edx
shr eax, 0x10
sub ecx, eax
movzx eax, byte [ebp]
imul ebx, ecx
shr ebx, 8
add ebx, edx
movzx edx, byte [ebp + 2]
shl edx, 0x10
or edx, eax
imul edx, ecx
mov ecx, 0x100
shr edx, 8
and edx, 0xff00ff
add edx, esi
mov eax, edx
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, ebx
shr eax, 8
or ecx, edx
neg al
and ecx, 0xff00ff
or al, bl
mov byte [ebp + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp], cl
mov byte [ebp + 2], al
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [ecx + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x28]
jl 0x43c6e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4