Function at 0x43e9c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, ecx
push edi
xor edi, edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
mov ecx, dword [eax]
cmp dword [eax + 0x10], edi
jle 0x43ee63
push ebx
push esi
nop
mov eax, dword [eax + 0x18]
mov esi, ecx
lea ecx, [ecx + eax*4]
mov eax, dword [esi]
dec eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x43ee47
mov eax, dword [esi + 4]
add esi, 4
mov dword [ebp - 0x24], eax
xor ebx, ebx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], ebx
mov edx, dword [eax + 8]
add edx, edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov eax, dword [ecx + 0xc]
imul eax, edx
sub edx, dword [edi + 0x10]
add eax, dword [ecx]
mov ecx, dword [edi + 4]
mov dword [edi + 0x14], eax
mov eax, edx
cdq
idiv dword [ecx + 0x18]
imul edx, dword [ecx + 0xc]
add edx, dword [ecx]
sub dword [ebp - 0x14], 1
mov ecx, dword [ebp - 0x24]
mov dword [edi + 0x18], edx
js 0x43ed53
mov eax, dword [esi + 4]
add esi, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], esi
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
cdq
and edx, 0xff
lea esi, [edx + eax]
mov eax, ecx
cdq
and edx, 0xff
sar esi, 8
mov dword [ebp - 4], esi
lea ebx, [edx + eax]
sar ebx, 8
mov dword [ebp - 8], ebx
cmp esi, ebx
jne 0x43ea8e
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0xc]
sub eax, ecx
imul eax, dword [ebp - 0x10]
add ebx, eax
mov eax, dword [ebp - 0x18]
jmp 0x43ed41
movzx eax, cl
mov ecx, 0x100
sub ecx, eax
imul ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0xc]
mov eax, ecx
cdq
and edx, 0xff
lea ecx, [edx + eax]
sar ecx, 8
test ecx, ecx
jle 0x43eb87
mov eax, dword [edi]
mov esi, dword [edi + 4]
mov eax, dword [eax + 0x10]
imul eax, ebx
sub ebx, dword [edi + 0xc]
add eax, dword [edi + 0x14]
mov dword [ebp - 0xc], eax
mov eax, ebx
cdq
idiv dword [esi + 0x14]
mov eax, dword [ebp + 8]
imul edx, dword [esi + 0x10]
mov edi, dword [edi + 8]
mov eax, dword [eax + 0x18]
mov esi, dword [edx + eax]
mov edx, esi
shr edx, 8
and esi, 0xff00ff
and edx, 0xff00ff
cmp ecx, 0xff
jge 0x43eaff
imul edi, ecx
sar edi, 8
imul edx, edi
mov ecx, 0x100
imul esi, edi
mov edi, dword [ebp + 8]
shr edx, 8
and edx, 0xff00ff
shr esi, 8
mov eax, edx
and esi, 0xff00ff
shr eax, 0x10
sub ecx, eax
mov eax, dword [ebp - 0xc]
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 [ebp - 4]
mov eax, edx
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, ebx
shr eax, 8
or ecx, edx
mov edx, dword [ebp - 0xc]
neg al
or al, bl
and ecx, 0xff00ff
mov ebx, dword [ebp - 8]
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [edx], cl
mov byte [edx + 2], al
mov edx, dword [ebp - 0x10]
test edx, edx
jle 0x43ed35
inc ebx
sub esi, ebx
mov dword [ebp - 4], esi
test esi, esi
jle 0x43ed35
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
mov ecx, eax
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 8]
imul ecx, ebx
sub ebx, dword [edi + 0xc]
imul eax, edx
add ecx, dword [edi + 0x14]
sar eax, 8
mov dword [ebp - 0xc], eax
cmp eax, 0xfe
jge 0x43ec92
nop word [eax + eax]
mov esi, dword [edi + 4]
mov eax, ebx
cdq
inc ebx
mov dword [ebp - 8], ebx
movzx ebx, byte [ecx + 1]
idiv dword [esi + 0x14]
mov esi, dword [esi + 0x10]
mov eax, dword [edi + 0x18]
imul esi, edx
mov edx, 0x100
mov edi, dword [esi + eax]
mov esi, edi
shr esi, 8
and edi, 0xff00ff
and esi, 0xff00ff
imul edi, dword [ebp - 0xc]
imul esi, dword [ebp - 0xc]
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 edi, dword [ebp + 8]
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 [ebp - 8]
mov byte [ecx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, dword [ebp - 4]
add ecx, dword [ebp - 0x24]
dec eax
mov dword [ebp - 4], eax
test eax, eax
jg 0x43ebd0
jmp 0x43ed32
mov esi, dword [edi + 4]
mov eax, ebx
cdq
inc ebx
mov dword [ebp - 8], ebx
mov ebx, 0x100
idiv dword [esi + 0x14]
mov esi, dword [esi + 0x10]
imul esi, edx
movzx edx, byte [ecx + 2]
shl edx, 0x10
add esi, dword [edi + 0x18]
mov edi, 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 edi, dword [ebp + 8]
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 [ebp - 8]
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, dword [ebp - 4]
add ecx, dword [ebp - 0x24]
dec eax
mov dword [ebp - 4], eax
test eax, eax
jg 0x43ec92
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
movzx ebx, al
imul ebx, edx
sub dword [ebp - 0x14], 1
mov ecx, eax
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0xc], ebx
jns 0x43ea41
mov eax, ebx
cdq
and edx, 0xff
lea esi, [edx + eax]
sar esi, 8
test esi, esi
jle 0x43ee47
mov eax, ecx
cdq
and edx, 0xff
lea ecx, [edx + eax]
mov eax, dword [edi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [edi]
sar ecx, 8
mov ebx, dword [eax + 0x10]
imul ebx, ecx
sub ecx, dword [edi + 0xc]
mov eax, ecx
mov ecx, dword [ebp - 0x24]
cdq
add ebx, dword [edi + 0x14]
idiv dword [ecx + 0x14]
mov eax, dword [ebp + 8]
imul edx, dword [ecx + 0x10]
mov ecx, 0x100
mov edi, dword [edi + 8]
mov dword [ebp - 0x14], ebx
movzx ebx, byte [ebx + 1]
mov eax, dword [eax + 0x18]
cmp esi, 0xff
jge 0x43edbd
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
mov eax, dword [ebp - 0x14]
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 eax, edx
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, ebx
shr eax, 8
or ecx, edx
mov edx, dword [ebp - 0x14]
neg al
or al, bl
and ecx, 0xff00ff
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [edx], cl
mov byte [edx + 2], al
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov edi, eax
cmp eax, dword [ecx + 0x10]
mov eax, ecx
mov ecx, dword [ebp - 0x2c]
jl 0x43e9e0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4