Function at 0x43ac80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x24
mov eax, ecx
xor ecx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov edx, dword [eax]
cmp dword [eax + 0x10], ecx
jle 0x43af5c
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
mov eax, dword [eax + 0x18]
mov esi, edx
lea edx, [edx + eax*4]
mov eax, dword [esi]
dec eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
test eax, eax
jle 0x43af3c
mov eax, dword [esp + 0x20]
add esi, 4
xor edi, edi
mov edx, dword [eax + 8]
mov ebx, dword [esi]
add edx, ecx
mov ecx, dword [ebp]
mov eax, dword [ecx + 0xc]
imul eax, edx
sub edx, dword [ebp + 0x10]
add eax, dword [ecx]
mov ecx, dword [ebp + 4]
mov dword [ebp + 0x14], eax
mov eax, edx
cdq
idiv dword [ecx + 0x18]
imul edx, dword [ecx + 0xc]
add edx, dword [ecx]
sub dword [esp + 0x14], 1
mov dword [ebp + 0x18], edx
js 0x43aec5
nop dword [eax + eax]
mov eax, dword [esi + 4]
add esi, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], esi
mov eax, dword [esi]
mov dword [esp + 0x28], eax
cdq
and edx, 0xff
lea esi, [edx + eax]
mov eax, ebx
cdq
and edx, 0xff
sar esi, 8
lea ecx, [edx + eax]
sar ecx, 8
cmp esi, ecx
jne 0x43ad48
mov ecx, dword [esp + 0x28]
mov eax, ecx
sub eax, ebx
imul eax, dword [esp + 0x10]
add edi, eax
jmp 0x43aeb4
movzx eax, bl
mov edx, 0x100
sub edx, eax
imul edx, dword [esp + 0x10]
lea eax, [edi + edx]
cdq
and edx, 0xff
add edx, eax
sar edx, 8
mov dword [esp + 0x38], edx
test edx, edx
jle 0x43add6
mov eax, dword [ebp]
mov ebx, dword [ebp + 4]
mov edi, dword [eax + 0x10]
mov eax, dword [ebp + 0x14]
imul edi, ecx
add edi, eax
mov eax, ecx
sub eax, dword [ebp + 0xc]
cmp edx, 0xff
cdq
jl 0x43ada1
idiv dword [ebx + 0x14]
mov eax, dword [ebp + 0x18]
imul edx, dword [ebx + 0x10]
movzx ebx, byte [edx + eax + 3]
mov eax, dword [ebp + 8]
jmp 0x43adbb
idiv dword [ebx + 0x14]
mov eax, dword [ebp + 0x18]
imul edx, dword [ebx + 0x10]
movzx ebx, byte [edx + eax + 3]
mov eax, dword [ebp + 8]
imul eax, dword [esp + 0x38]
sar eax, 8
inc eax
mov edx, 0x100
imul ebx, eax
movzx eax, byte [edi]
shr ebx, 8
sub edx, ebx
imul edx, eax
sar edx, 8
add dl, bl
mov byte [edi], dl
mov edx, dword [esp + 0x10]
test edx, edx
jle 0x43aeaa
inc ecx
sub esi, ecx
mov dword [esp + 0x38], esi
test esi, esi
jle 0x43aeaa
mov eax, dword [ebp]
mov eax, dword [eax + 0x10]
mov edi, eax
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
imul edi, ecx
sub ecx, dword [ebp + 0xc]
imul eax, edx
add edi, dword [ebp + 0x14]
sar eax, 8
cmp eax, 0xfe
jge 0x43ae67
inc eax
mov dword [esp + 0x2c], eax
nop dword [eax + eax]
mov esi, dword [ebp + 4]
mov eax, ecx
cdq
inc ecx
idiv dword [esi + 0x14]
mov esi, dword [esi + 0x10]
mov eax, dword [ebp + 0x18]
imul esi, edx
mov edx, 0x100
movzx ebx, byte [esi + eax + 3]
imul ebx, dword [esp + 0x2c]
movzx eax, byte [edi]
shr ebx, 8
sub edx, ebx
imul edx, eax
mov eax, dword [esp + 0x38]
dec eax
mov dword [esp + 0x38], eax
sar edx, 8
add dl, bl
mov byte [edi], dl
add edi, dword [esp + 0x24]
test eax, eax
jg 0x43ae20
jmp 0x43aea6
mov esi, dword [ebp + 4]
mov eax, ecx
cdq
inc ecx
idiv dword [esi + 0x14]
mov esi, dword [esi + 0x10]
mov eax, dword [ebp + 0x18]
imul esi, edx
mov edx, 0x100
mov bl, byte [esi + eax + 3]
movzx eax, bl
sub edx, eax
movzx eax, byte [edi]
imul edx, eax
mov eax, dword [esp + 0x38]
dec eax
mov dword [esp + 0x38], eax
sar edx, 8
add dl, bl
mov byte [edi], dl
add edi, dword [esp + 0x24]
test eax, eax
jg 0x43ae67
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
movzx edi, cl
imul edi, edx
sub dword [esp + 0x14], 1
mov ebx, ecx
mov esi, dword [esp + 0x30]
jns 0x43ad00
mov eax, edi
cdq
and edx, 0xff
lea edi, [edx + eax]
sar edi, 8
test edi, edi
jle 0x43af38
mov ecx, dword [ebp]
mov eax, ebx
mov ebx, dword [ebp + 0xc]
cdq
and edx, 0xff
mov esi, dword [ecx + 0x10]
add eax, edx
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 0x14]
sar eax, 8
imul esi, eax
sub eax, ebx
add esi, edx
cdq
idiv dword [ecx + 0x14]
mov eax, dword [ebp + 0x18]
imul edx, dword [ecx + 0x10]
mov ecx, 0x100
movzx edx, byte [edx + eax + 3]
mov eax, dword [ebp + 8]
cmp edi, 0xff
jge 0x43af22
imul eax, edi
sar eax, 8
inc eax
imul edx, eax
movzx eax, byte [esi]
shr edx, 8
sub ecx, edx
imul ecx, eax
sar ecx, 8
add cl, dl
mov byte [esi], cl
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [ecx + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x20]
jl 0x43aca2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4