Function at 0x43ba70
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 8]
sub esp, 0x20
push ebx
push esi
test eax, eax
jne 0x43bad7
cmp dword [ebp + 0x10], eax
je 0x43baa7
mov eax, dword [edi + 0x10]
mov byte [edi + 4], 6
mov dword [edi + 8], 0x40
mov ecx, dword [eax]
push 0x100
call ecx
add esp, 4
mov dword [edi], eax
test eax, eax
jne 0x43baaf
mov dword [edi + 8], eax
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x100
push 0
push eax
call fcn.0046b6f0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add esp, 0xc
call fcn.0043ba40
mov edx, dword [edi + 8]
mov esi, eax
dec edx
and esi, edx
jmp 0x43bce5
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0x1f0]
mov al, byte [ecx]
mov dword [ebp - 8], edx
mov byte [ebp - 2], al
test al, al
je 0x43bb09
nop
mov edx, dword [ebp - 8]
imul edx, edx, 0xf4243
movzx eax, al
xor edx, eax
mov al, byte [ecx + 1]
inc ecx
mov dword [ebp - 8], edx
test al, al
jne 0x43baf0
mov ebx, dword [edi + 8]
mov esi, dword [ebp - 8]
mov edx, dword [edi]
dec ebx
and esi, ebx
cmp dword [edx + esi*4], 0
mov byte [ebp - 1], 0
mov dword [ebp - 0x10], edx
je 0x43bb81
mov ecx, dword [edx + esi*4]
mov eax, dword [ecx]
mov cl, byte [ebp - 2]
cmp cl, byte [eax]
jne 0x43bb46
mov edx, dword [ebp + 0xc]
sub edx, eax
test cl, cl
je 0x43bc4f
mov cl, byte [edx + eax + 1]
inc eax
cmp cl, byte [eax]
je 0x43bb32
mov edx, dword [ebp - 0x10]
cmp byte [ebp - 1], 0
jne 0x43bb66
movzx ecx, byte [edi + 4]
mov eax, ebx
not eax
and eax, dword [ebp - 8]
dec ecx
shr eax, cl
mov ecx, ebx
shr ecx, 2
and al, cl
or al, 1
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
cmp esi, eax
jae 0x43bb77
mov ecx, dword [edi + 8]
sub ecx, eax
add esi, ecx
jmp 0x43bb79
sub esi, eax
mov eax, dword [edi]
cmp dword [eax + esi*4], 0
jne 0x43bb21
cmp dword [ebp + 0x10], 0
je 0x43baa7
mov al, byte [edi + 4]
mov edx, dword [edi + 0xc]
movzx ecx, al
dec ecx
shr edx, cl
test edx, edx
je 0x43bce5
inc al
movzx ecx, al
mov esi, 1
shl esi, cl
mov byte [ebp - 2], al
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
lea eax, [esi*4]
push eax
mov dword [ebp - 0x10], esi
lea ebx, [esi - 1]
call edx
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
je 0x43baa7
lea ecx, [esi*4]
push ecx
push 0
push eax
call fcn.0046b6f0
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x14], ecx
cmp dword [edi + 8], ecx
jbe 0x43bc7f
mov eax, dword [edi]
cmp dword [eax + ecx*4], 0
lea eax, [eax + ecx*4]
je 0x43bc72
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
call fcn.0043ba40
mov edx, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
and edx, ebx
xor cl, cl
cmp dword [eax + edx*4], 0
je 0x43bc66
test cl, cl
jne 0x43bc3f
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov eax, ebx
not eax
and eax, dword [ebp - 0x1c]
dec ecx
shr eax, cl
mov ecx, ebx
shr ecx, 2
and cl, al
or cl, 1
movzx eax, cl
cmp edx, eax
jae 0x43bc5b
sub esi, eax
add edx, esi
mov esi, dword [ebp - 0x10]
jmp 0x43bc5d
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + esi*4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub edx, eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx*4], 0
jne 0x43bc21
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov dword [eax + edx*4], ecx
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, dword [edi + 8]
jb 0x43bbf5
mov ecx, dword [edi + 0x10]
mov edx, dword [edi]
mov eax, dword [ecx + 8]
push edx
call eax
mov ecx, dword [ebp - 0xc]
mov dl, byte [ebp - 2]
mov eax, dword [ebp - 0xc]
mov dword [edi + 8], esi
mov esi, dword [ebp - 8]
mov dword [edi], ecx
and esi, ebx
add esp, 4
mov byte [edi + 4], dl
xor cl, cl
cmp dword [eax + esi*4], 0
je 0x43bce5
jmp 0x43bcb0
test cl, cl
jne 0x43bccb
mov ecx, dword [ebp - 0x18]
mov edx, ebx
not edx
and edx, dword [ebp - 8]
dec ecx
shr edx, cl
mov ecx, ebx
shr ecx, 2
and cl, dl
or cl, 1
movzx eax, cl
cmp esi, eax
jae 0x43bcdb
mov edx, dword [ebp - 0x10]
sub edx, eax
add esi, edx
jmp 0x43bcdd
sub esi, eax
mov eax, dword [edi]
cmp dword [eax + esi*4], 0
jne 0x43bcb0
mov eax, dword [edi + 0x10]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [eax]
push ebx
call ecx
mov edx, dword [edi]
mov dword [edx + esi*4], eax
mov eax, dword [edi]
lea eax, [eax + esi*4]
add esp, 4
cmp dword [eax], 0
je 0x43baa7
mov ecx, dword [eax]
push ebx
push 0
push ecx
call fcn.0046b6f0
mov edx, dword [edi]
mov eax, dword [edx + esi*4]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [edi]
add esp, 0xc
inc dword [edi + 0xc]
mov eax, dword [edx + esi*4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret