Function at 0x43ac40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
add edx, ebp
sub edx, edi
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
cmp edx, ebp
jbe 0x43af0c
mov ecx, dword [esp + 0x48]
lea eax, [edi - 1]
mov dword [esp + 0x1c], eax
mov dword [esp + 8], 0
xor esi, esi
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], edx
jmp 0x43acc9
mov esi, dword [esp + 4]
mov dword [esi + ebx], ebp
add edx, 4
mov eax, dword [esp + 0x34]
mov dword [eax + 4], edx
mov edi, dword [esp + 0x44]
add ebp, edi
dec ebp
mov dword [esp + 8], edx
mov edx, dword [esp + 0x18]
inc ebp
cmp ebp, edx
jae 0x43af0c
test ecx, ecx
je 0x43acd2
cmp byte [ecx], 0x3f
je 0x43acde
movzx eax, byte [ebp]
mov ebx, dword [esp + 0x40]
cmp al, byte [ebx]
jne 0x43acc0
cmp edi, 2
jb 0x43ad20
xor eax, eax
jmp 0x43ad0e
movzx ecx, byte [ebp + eax + 1]
mov ebx, dword [esp + 0x40]
cmp cl, byte [ebx + eax + 1]
mov ecx, dword [esp + 0x48]
jne 0x43ae3f
inc eax
cmp dword [esp + 0x1c], eax
je 0x43ad20
test ecx, ecx
je 0x43acf0
cmp byte [ecx + eax + 1], 0x3f
jne 0x43acf0
jmp 0x43ad07
mov edx, dword [esp + 8]
mov edi, edx
sub edi, esi
mov ebx, esi
not ebx
cmp edx, dword [esp + 0xc]
je 0x43ad3f
and ebx, edx
mov dword [esp + 4], esi
mov eax, edx
jmp 0x43aeca
mov dword [esp], edi
sar edi, 2
inc edi
mov ecx, edx
xor ecx, esi
and ebx, edx
lea edx, [ebx + ebx]
sub edx, ecx
sar edx, 2
mov ecx, edx
shr ecx, 1
add ecx, edx
cmp ecx, edi
ja 0x43ad60
mov ecx, edi
mov dword [esp + 0xc], ecx
lea eax, [ecx*4]
push eax
call fcn.00407ff0
add esp, 4
test esi, esi
mov dword [esp + 4], eax
je 0x43ae9d
cmp eax, esi
mov dword [esp + 0x14], ebx
jbe 0x43ae46
cmp dword [esp + 8], eax
jbe 0x43ae46
cmp dword [esp], 0
je 0x43ae8c
mov edx, dword [esp]
lea eax, [esi + edx]
dec eax
mov ecx, dword [esp + 4]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x43add3
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x43adc0
add eax, edx
add ecx, edx
add edx, dword [esp]
mov edi, esi
sub edi, dword [esp + 8]
cmp edi, 0xfffffff8
ja 0x43ae8c
neg edx
xor edi, edi
nop
nop
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 0x43adf0
jmp 0x43ae8c
add ebp, eax
jmp 0x43acc0
mov ebx, dword [esp]
mov ecx, ebx
shr ecx, 2
mov edi, eax
mov eax, esi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov edx, ebx
and edx, 0xfffffffc
mov eax, dword [esp + 4]
lea edi, [eax + edx]
add edx, esi
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov eax, edx
mov dword [esp + 0x10], edi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test bl, 1
je 0x43ae8c
mov eax, dword [esp]
and eax, 2
movzx ecx, byte [edx + eax]
mov edx, dword [esp + 0x10]
mov byte [edx + eax], cl
push esi
call fcn.00408000
add esp, 4
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
mov edi, dword [esp]
lea edx, [eax + edi]
mov dword [ecx + 4], edx
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0xc]
lea eax, [eax + esi*4]
mov esi, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 8]
not eax
and esi, eax
sub ebx, esi
cmp ebx, edi
jae 0x43aca0
mov eax, dword [esp + 4]
lea esi, [eax + ebx]
add eax, ebx
add eax, 4
mov dword [esp + 0x14], ebx
mov ebx, esi
mov edi, eax
xor ecx, ecx
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
mov ebx, dword [esp + 0x14]
mov edi, eax
xor ecx, ecx
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov ecx, dword [esp + 0x48]
jmp 0x43aca0
mov eax, dword [esp + 0x34]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret