Function at 0x43e8b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add eax, esi
sub eax, dword [esp + 0x44]
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov dword [esp + 0x1c], eax
cmp eax, esi
jbe 0x43ebd4
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
lea ebp, [eax - 1]
xor edi, edi
mov dword [esp + 4], 0
mov dword [esp + 0x10], 0
jmp 0x43e939
mov ecx, edi
mov eax, dword [esp + 4]
sub ecx, eax
cmp edi, dword [esp + 0x10]
je 0x43e989
mov dword [eax + ecx], esi
add edi, 4
mov dword [ebx + 4], edi
mov ecx, dword [esp + 0x44]
add esi, ecx
dec esi
inc esi
cmp esi, dword [esp + 0x1c]
jae 0x43ebd4
test edx, edx
je 0x43e942
cmp byte [edx], 0x3f
je 0x43e94d
movzx ecx, byte [esi]
mov eax, dword [esp + 0x40]
cmp cl, byte [eax]
jne 0x43e92e
cmp dword [esp + 0x44], 2
jb 0x43e910
xor ecx, ecx
jmp 0x43e97c
movzx edx, byte [esi + ecx + 1]
mov eax, dword [esp + 0x40]
cmp dl, byte [eax + ecx + 1]
mov edx, dword [esp + 0x48]
jne 0x43eaa2
inc ecx
cmp ebp, ecx
je 0x43e910
test edx, edx
je 0x43e960
cmp byte [edx + ecx + 1], 0x3f
jne 0x43e960
jmp 0x43e977
mov dword [esp + 0x18], ecx
sar ecx, 2
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x43e99f
mov edx, eax
mov dword [esp + 0x10], edx
lea eax, [edx*4]
push eax
call fcn.0040cbd0
add esp, 4
mov ecx, dword [esp + 4]
test ecx, ecx
mov dword [esp + 8], eax
je 0x43eba1
mov edx, ecx
xor edx, edi
mov ebx, ecx
not ebx
and ebx, edi
add ebx, ebx
mov dword [esp + 0xc], ebx
mov edi, ebx
sub edi, edx
cmp eax, ecx
mov ebx, eax
jbe 0x43eaa9
lea eax, [ecx + edi]
cmp eax, ebx
jbe 0x43eaa9
test edi, edi
je 0x43eb8d
mov dword [esp + 0x14], edx
mov eax, edi
and eax, 0xfffffffe
mov ecx, edi
not ecx
and ecx, 1
sub eax, ecx
mov ecx, dword [esp + 8]
add ecx, eax
add eax, dword [esp + 4]
mov edx, edi
and edx, 7
je 0x43ea37
mov dword [esp], edi
neg edx
xor edi, edi
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
dec edi
cmp edx, edi
jne 0x43ea20
add eax, edi
add ecx, edi
mov edx, dword [esp]
add edx, edi
mov edi, edx
mov edx, dword [esp + 0x14]
sub edx, dword [esp + 0xc]
cmp edx, 0xfffffff8
ja 0x43eb8d
neg edi
xor edx, edx
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
movzx ebx, byte [eax + edx - 1]
mov byte [ecx + edx - 1], bl
movzx ebx, byte [eax + edx - 2]
mov byte [ecx + edx - 2], bl
movzx ebx, byte [eax + edx - 3]
mov byte [ecx + edx - 3], bl
movzx ebx, byte [eax + edx - 4]
mov byte [ecx + edx - 4], bl
movzx ebx, byte [eax + edx - 5]
mov byte [ecx + edx - 5], bl
movzx ebx, byte [eax + edx - 6]
mov byte [ecx + edx - 6], bl
movzx ebx, byte [eax + edx - 7]
mov byte [ecx + edx - 7], bl
add edx, 0xfffffff8
cmp edi, edx
jne 0x43ea50
jmp 0x43eb8d
add esi, ecx
jmp 0x43e92e
mov eax, ecx
mov dword [esp + 4], ecx
mov ecx, edi
shr ecx, 2
mov dword [esp], edi
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov edx, dword [esp]
and edx, 0xfffffffc
lea eax, [ebx + edx]
add edx, dword [esp + 4]
mov ecx, dword [esp]
and ecx, 3
mov edi, ecx
not edi
or edi, 1
add edi, ecx
mov dword [esp + 0xc], edi
shr ecx, 1
mov dword [esp + 0x14], edx
mov edi, eax
mov ebx, dword [esp + 0x14]
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ecx, dword [esp]
mov ebx, dword [esp + 0xc]
inc ebx
je 0x43eb8d
and ecx, 2
add edx, ecx
add eax, ecx
mov ecx, ebx
and ecx, 7
je 0x43eb35
mov dword [esp], ebx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [edx + edi]
mov byte [eax + edi], bl
inc edi
cmp ecx, edi
jne 0x43eb20
add edx, edi
add eax, edi
mov ebx, dword [esp]
sub ebx, edi
cmp dword [esp + 0xc], 7
jb 0x43eb8d
xor edi, edi
nop
nop
movzx ecx, byte [edx + edi]
mov byte [eax + edi], cl
movzx ecx, byte [edx + edi + 1]
mov byte [eax + edi + 1], cl
movzx ecx, byte [edx + edi + 2]
mov byte [eax + edi + 2], cl
movzx ecx, byte [edx + edi + 3]
mov byte [eax + edi + 3], cl
movzx ecx, byte [edx + edi + 4]
mov byte [eax + edi + 4], cl
movzx ecx, byte [edx + edi + 5]
mov byte [eax + edi + 5], cl
movzx ecx, byte [edx + edi + 6]
mov byte [eax + edi + 6], cl
movzx ecx, byte [edx + edi + 7]
mov byte [eax + edi + 7], cl
add edi, 8
cmp ebx, edi
jne 0x43eb40
push dword [esp + 4]
call fcn.0040cbe0
add esp, 4
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 8]
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
lea eax, [ecx + eax*4]
mov edi, dword [esp + 8]
mov ecx, dword [esp + 0x18]
add edi, ecx
mov dword [esp + 0x10], eax
mov dword [ebx + 8], eax
mov eax, dword [esp + 8]
mov dword [esp + 4], eax
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x48]
jmp 0x43e91e
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret