Function at 0x43e630
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
add ecx, ebp
sub ecx, dword [esp + 0x44]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x1c], ecx
cmp ecx, ebp
jbe 0x43e8ed
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
mov esi, edi
not esi
and esi, 1
mov ecx, edi
and ecx, 0xfffffffe
sub ecx, esi
mov dword [esp + 0x18], ecx
lea esi, [edi - 1]
mov dword [esp], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
jmp 0x43e6d3
mov ebx, dword [esp]
mov edi, ebx
mov ecx, dword [esp + 8]
sub edi, ecx
cmp ebx, dword [esp + 0x10]
je 0x43e729
mov ebx, dword [esp]
mov eax, dword [esp + 0x34]
mov dword [ecx + edi], ebp
add ebx, 4
mov dword [esp], ebx
mov dword [eax + 4], ebx
add ebp, dword [esp + 0x18]
inc ebp
cmp ebp, dword [esp + 0x1c]
jae 0x43e8ed
test edx, edx
je 0x43e6dc
cmp byte [edx], 0x3f
je 0x43e6e8
movzx ecx, byte [ebp]
mov ebx, dword [esp + 0x40]
cmp cl, byte [ebx]
jne 0x43e6c8
cmp dword [esp + 0x44], 2
jb 0x43e6a0
xor ecx, ecx
jmp 0x43e71c
movzx edx, byte [ebp + ecx + 1]
mov ebx, dword [esp + 0x40]
cmp dl, byte [ebx + ecx + 1]
mov edx, dword [esp + 0x48]
jne 0x43e85f
inc ecx
cmp esi, ecx
je 0x43e6a0
test edx, edx
je 0x43e700
cmp byte [edx + ecx + 1], 0x3f
jne 0x43e700
jmp 0x43e717
mov ecx, edi
sar ecx, 2
lea eax, [ecx + 1]
mov ebx, ecx
shr ebx, 1
add ebx, ecx
cmp ebx, eax
ja 0x43e73d
mov ebx, eax
mov dword [esp + 0xc], edi
mov eax, ebx
and eax, 0xfffffffb
mov ecx, ebx
and ecx, 4
mov edx, ebx
or edx, 4
imul edx, ecx
xor ecx, 4
imul ecx, eax
add edx, ecx
push edx
call fcn.0040c4b0
add esp, 4
mov ecx, eax
mov edx, dword [esp + 8]
test edx, edx
mov eax, dword [esp + 0x34]
mov dword [esp + 4], ecx
je 0x43e8c4
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0xc]
lea eax, [ebx - 0x3268fccc]
mov dword [esp + 0x14], eax
cmp ecx, edx
mov eax, dword [esp]
jbe 0x43e866
cmp eax, ecx
jbe 0x43e866
test ebx, ebx
mov edx, dword [esp + 0x14]
je 0x43e8ac
mov eax, dword [esp + 8]
add eax, edx
add eax, 0x3268fccb
mov ecx, dword [esp + 4]
add ecx, edx
add ecx, 0x3268fccb
mov edx, dword [esp + 0xc]
mov edi, edx
and edi, 7
je 0x43e7f4
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 0x43e7e0
add eax, edx
add ecx, edx
add edx, dword [esp + 0xc]
mov edi, dword [esp + 8]
sub edi, dword [esp]
cmp edi, 0xfffffff8
ja 0x43e8ac
neg edx
xor edi, edi
nop
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 0x43e810
jmp 0x43e8ac
add ebp, ecx
jmp 0x43e6c8
mov ecx, ebx
shr ecx, 2
mov eax, edx
mov edi, dword [esp + 4]
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
and eax, 0xfffffffc
mov ecx, dword [esp + 4]
lea edi, [ecx + eax]
add eax, edx
mov ebx, dword [esp + 0x14]
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov edx, eax
mov dword [esp], edi
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
test bl, 1
je 0x43e8ac
and ebx, 2
movzx eax, byte [eax + ebx]
mov ecx, dword [esp]
mov byte [ecx + ebx], al
push dword [esp + 8]
call fcn.0040c4c0
add esp, 4
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 4]
mov dword [eax], ecx
lea edx, [ecx + ebx*4]
mov ebx, ecx
mov edi, dword [esp + 0xc]
add ebx, edi
mov dword [esp + 0x10], edx
mov dword [eax + 8], edx
mov ecx, dword [esp + 4]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x48]
jmp 0x43e6b8
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret