Function at 0x43fbc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
add eax, esi
sub eax, dword [esp + 0x3c]
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov dword [esp + 0x14], eax
cmp eax, esi
jbe 0x43fe5f
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
lea ebp, [eax - 1]
xor ecx, ecx
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
jmp 0x43fc4d
mov ecx, dword [esp + 4]
mov edi, ecx
mov eax, dword [esp + 8]
sub edi, eax
cmp ecx, dword [esp + 0x10]
je 0x43fca6
mov dword [eax + edi], esi
add ecx, 4
mov dword [ebx + 4], ecx
mov eax, dword [esp + 0x3c]
add esi, eax
dec esi
inc esi
cmp esi, dword [esp + 0x14]
jae 0x43fe5f
mov dword [esp + 4], ecx
test edx, edx
je 0x43fc5a
cmp byte [edx], 0x3f
je 0x43fc65
movzx ecx, byte [esi]
mov eax, dword [esp + 0x38]
cmp cl, byte [eax]
jne 0x43fca0
cmp dword [esp + 0x3c], 2
jb 0x43fc20
xor ecx, ecx
jmp 0x43fc8c
movzx edx, byte [esi + ecx + 1]
mov eax, dword [esp + 0x38]
cmp dl, byte [eax + ecx + 1]
mov edx, dword [esp + 0x40]
jne 0x43fdcf
inc ecx
cmp ebp, ecx
je 0x43fc20
test edx, edx
je 0x43fc70
cmp byte [edx + ecx + 1], 0x3f
jne 0x43fc70
jmp 0x43fc87
mov ecx, dword [esp + 4]
jmp 0x43fc42
mov dword [esp + 0xc], edi
sar edi, 2
lea eax, [edi + 1]
mov edx, edi
shr edx, 1
add edx, edi
cmp edx, eax
ja 0x43fcbc
mov edx, eax
mov eax, edx
and eax, 4
mov ecx, edx
or ecx, 4
imul ecx, eax
xor eax, 4
mov edi, edx
mov dword [esp + 0x10], edx
and edx, 0xfffffffb
imul edx, eax
add ecx, edx
push ecx
call fcn.0040ce70
add esp, 4
mov edx, dword [esp + 8]
test edx, edx
mov dword [esp], eax
je 0x43fe30
mov ebx, dword [esp + 0xc]
lea ecx, [ebx + 0x6491d4ce]
cmp eax, edx
mov edi, eax
mov eax, dword [esp + 4]
jbe 0x43fdda
cmp eax, edi
jbe 0x43fdda
test ebx, ebx
je 0x43fe1d
mov eax, dword [esp + 8]
add eax, ecx
add eax, 0x9b6e2b31
mov edx, ecx
mov ecx, dword [esp]
add ecx, edx
add ecx, 0x9b6e2b31
mov edx, dword [esp + 0xc]
mov edi, edx
and edi, 7
je 0x43fd64
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x43fd50
add eax, edx
add ecx, edx
add edx, dword [esp + 0xc]
mov edi, dword [esp + 8]
sub edi, dword [esp + 4]
cmp edi, 0xfffffff8
ja 0x43fe1d
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x43fd80
jmp 0x43fe1d
add esi, ecx
mov ecx, dword [esp + 4]
jmp 0x43fc42
mov dword [esp + 4], ecx
mov ecx, ebx
shr ecx, 2
mov eax, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
and eax, 0xfffffffc
mov ecx, dword [esp]
lea edi, [ecx + eax]
add eax, edx
mov ecx, ebx
mov ebx, edi
shr ecx, 1
and ecx, 1
mov edx, eax
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
test byte [esp + 4], 1
je 0x43fe1d
mov ecx, dword [esp + 0xc]
and ecx, 2
movzx eax, byte [eax + ecx]
mov byte [ebx + ecx], al
push dword [esp + 8]
call fcn.0040ce80
add esp, 4
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp]
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp]
lea eax, [ecx + eax*4]
mov ecx, dword [esp]
mov edi, dword [esp + 0xc]
add ecx, edi
mov dword [esp + 0x10], eax
mov dword [ebx + 8], eax
mov eax, dword [esp]
mov dword [esp + 8], eax
mov eax, dword [esp]
mov edx, dword [esp + 0x40]
jmp 0x43fc32
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret