Function at 0x43f330
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, ecx
push esi
xor esi, esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
mov ecx, dword [eax]
cmp dword [eax + 0x10], esi
jle 0x43f77c
push ebx
push edi
nop
mov eax, dword [eax + 0x18]
mov edi, ecx
lea ecx, [ecx + eax*4]
mov eax, dword [edi]
dec eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x43f760
mov eax, dword [edi + 4]
add edi, 4
mov dword [ebp - 0x28], eax
xor ebx, ebx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], ebx
mov edx, dword [eax + 8]
add edx, esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
imul eax, edx
sub edx, dword [esi + 0x10]
add eax, dword [ecx]
mov ecx, dword [esi + 4]
mov dword [esi + 0x14], eax
mov eax, edx
cdq
idiv dword [ecx + 0x18]
imul edx, dword [ecx + 0xc]
add edx, dword [ecx]
sub dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0x28]
mov dword [esi + 0x18], edx
js 0x43f66b
mov eax, dword [edi + 4]
add edi, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x30], edi
mov eax, dword [edi]
mov dword [ebp - 0x1c], eax
cdq
and edx, 0xff
lea edi, [edx + eax]
mov eax, ecx
cdq
and edx, 0xff
sar edi, 8
mov dword [ebp - 8], edi
lea ebx, [edx + eax]
sar ebx, 8
mov dword [ebp - 0x10], ebx
cmp edi, ebx
jne 0x43f3fe
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0xc]
sub eax, ecx
imul eax, dword [ebp - 0x14]
add ebx, eax
mov eax, dword [ebp - 0x1c]
jmp 0x43f659
movzx eax, cl
mov ecx, 0x100
sub ecx, eax
imul ecx, dword [ebp - 0x14]
add ecx, dword [ebp - 0xc]
mov eax, ecx
cdq
and edx, 0xff
lea ecx, [edx + eax]
sar ecx, 8
test ecx, ecx
jle 0x43f501
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov eax, dword [eax + 0x10]
imul eax, ebx
add eax, dword [esi + 0x14]
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [esi + 0xc]
cdq
idiv dword [edi + 0x14]
mov eax, dword [esi + 4]
mov ebx, dword [esi + 8]
mov edi, edx
mov edx, 0x100
imul edi, dword [eax + 0x10]
add edi, dword [esi + 0x18]
movzx esi, byte [edi + 2]
shl esi, 0x10
cmp ecx, 0xff
jge 0x43f469
imul ebx, ecx
sar ebx, 8
movzx ecx, byte [edi + 1]
or ecx, 0xff0000
imul ecx, ebx
shr ecx, 8
and ecx, 0xff00ff
mov eax, ecx
shr eax, 0x10
sub edx, eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + 1]
imul eax, edx
shr eax, 8
add eax, ecx
mov dword [ebp - 0x28], eax
movzx eax, byte [edi]
or esi, eax
mov edi, dword [ebp - 8]
imul esi, ebx
mov ebx, dword [ebp - 0xc]
movzx ecx, byte [ebx + 2]
movzx eax, byte [ebx]
shl ecx, 0x10
or ecx, eax
shr esi, 8
imul ecx, edx
and esi, 0xff00ff
mov edx, dword [ebp - 0x28]
shr ecx, 8
and ecx, 0xff00ff
add esi, ecx
mov ecx, 0x100
mov eax, esi
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, edx
shr eax, 8
or ecx, esi
mov esi, dword [ebp + 8]
neg al
or al, dl
and ecx, 0xff00ff
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 2], al
mov byte [ebx], cl
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
test edx, edx
jle 0x43f64d
inc ebx
sub edi, ebx
mov dword [ebp - 8], edi
test edi, edi
jle 0x43f64d
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
mov ecx, eax
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 8]
imul ecx, ebx
sub ebx, dword [esi + 0xc]
imul eax, edx
add ecx, dword [esi + 0x14]
sar eax, 8
mov dword [ebp - 0xc], eax
cmp eax, 0xfe
jge 0x43f610
mov esi, dword [esi + 4]
mov eax, ebx
cdq
inc ebx
mov dword [ebp - 0x10], ebx
idiv dword [esi + 0x14]
mov ebx, dword [esi + 0x10]
mov esi, 0x100
mov eax, dword [ebp + 8]
imul ebx, edx
add ebx, dword [eax + 0x18]
movzx edx, byte [ebx + 1]
or edx, 0xff0000
movzx edi, byte [ebx + 2]
imul edx, dword [ebp - 0xc]
shl edi, 0x10
shr edx, 8
and edx, 0xff00ff
mov eax, edx
shr eax, 0x10
sub esi, eax
movzx eax, byte [ecx + 1]
imul eax, esi
shr eax, 8
add eax, edx
movzx edx, byte [ecx + 2]
mov dword [ebp - 0x2c], eax
movzx eax, byte [ebx]
or edi, eax
mov ebx, dword [ebp - 0x2c]
movzx eax, byte [ecx]
imul edi, dword [ebp - 0xc]
shl edx, 0x10
or edx, eax
imul edx, esi
mov esi, dword [ebp + 8]
shr edi, 8
and edi, 0xff00ff
shr edx, 8
and edx, 0xff00ff
add edi, edx
mov edx, 0x100
mov eax, edi
shr eax, 8
and eax, 0xff00ff
sub edx, eax
mov eax, ebx
shr eax, 8
or edx, edi
neg al
and edx, 0xff00ff
or al, bl
mov byte [ecx], dl
mov ebx, dword [ebp - 0x10]
mov byte [ecx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, dword [ebp - 8]
add ecx, dword [ebp - 0x28]
dec eax
mov dword [ebp - 8], eax
test eax, eax
jg 0x43f544
jmp 0x43f64a
mov esi, dword [esi + 4]
mov eax, ebx
cdq
dec edi
inc ebx
idiv dword [esi + 0x14]
mov esi, dword [esi + 0x10]
mov eax, dword [ebp + 8]
imul esi, edx
add esi, dword [eax + 0x18]
mov ax, word [esi]
mov dl, byte [esi + 2]
mov esi, dword [ebp + 8]
mov word [ebp - 4], ax
movzx eax, al
mov byte [ecx], al
movzx eax, byte [ebp - 3]
mov byte [ecx + 1], al
mov byte [ecx + 2], dl
add ecx, dword [ebp - 0x28]
test edi, edi
jg 0x43f610
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp + 8]
movzx ebx, al
imul ebx, edx
sub dword [ebp - 0x18], 1
mov ecx, eax
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0xc], ebx
jns 0x43f3b1
mov eax, ebx
cdq
and edx, 0xff
lea edi, [edx + eax]
sar edi, 8
test edi, edi
jle 0x43f760
mov eax, ecx
mov ebx, dword [esi + 8]
cdq
and edx, 0xff
lea ecx, [edx + eax]
mov eax, dword [esi]
sar ecx, 8
mov eax, dword [eax + 0x10]
imul eax, ecx
sub ecx, dword [esi + 0xc]
add eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov eax, ecx
mov ecx, dword [esi + 4]
cdq
idiv dword [ecx + 0x14]
cmp edi, 0xff
jge 0x43f6bc
imul ebx, edi
sar ebx, 8
mov edi, edx
mov edx, 0x100
imul edi, dword [ecx + 0x10]
add edi, dword [esi + 0x18]
movzx ecx, byte [edi + 1]
or ecx, 0xff0000
movzx esi, byte [edi + 2]
imul ecx, ebx
shl esi, 0x10
shr ecx, 8
and ecx, 0xff00ff
mov eax, ecx
shr eax, 0x10
sub edx, eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + 1]
imul eax, edx
shr eax, 8
add eax, ecx
mov dword [ebp - 0x30], eax
movzx eax, byte [edi]
or esi, eax
imul esi, ebx
mov ebx, dword [ebp - 0x18]
movzx ecx, byte [ebx + 2]
movzx eax, byte [ebx]
shl ecx, 0x10
or ecx, eax
shr esi, 8
imul ecx, edx
and esi, 0xff00ff
mov edx, dword [ebp - 0x30]
shr ecx, 8
and ecx, 0xff00ff
add esi, ecx
mov ecx, 0x100
mov eax, esi
shr eax, 8
and eax, 0xff00ff
sub ecx, eax
mov eax, edx
shr eax, 8
or ecx, esi
neg al
and ecx, 0xff00ff
or al, dl
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx], cl
mov byte [ebx + 2], al
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
mov esi, eax
cmp eax, dword [ecx + 0x10]
mov eax, ecx
mov ecx, dword [ebp - 0x34]
jl 0x43f350
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4