Function at 0x43f090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
add eax, esi
sub eax, dword [esp + 0x3c]
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [esp + 0x14], eax
cmp eax, esi
jbe 0x43f2fd
mov ebp, dword [esp + 0x40]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 0xc], 0
jmp 0x43f120
mov ecx, dword [esp + 4]
mov ebx, ecx
mov edx, dword [esp]
sub ebx, edx
cmp ecx, dword [esp + 0xc]
je 0x43f178
mov dword [edx + ebx], esi
add ecx, 4
mov dword [esp + 4], ecx
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x3c]
add esi, ecx
dec esi
inc esi
cmp esi, dword [esp + 0x14]
jae 0x43f2fd
test ebp, ebp
je 0x43f12a
cmp byte [ebp], 0x3f
je 0x43f135
movzx ecx, byte [esi]
mov edx, dword [esp + 0x38]
cmp cl, byte [edx]
jne 0x43f115
cmp dword [esp + 0x3c], 2
jb 0x43f0f0
mov edx, 1
mov ecx, 2
jmp 0x43f16b
movzx ebx, byte [esi + edx]
mov eax, dword [esp + 0x38]
cmp bl, byte [eax + edx]
jne 0x43f26f
inc edx
add ecx, 2
cmp dword [esp + 0x3c], edx
je 0x43f0f0
test ebp, ebp
je 0x43f150
cmp byte [ebp + edx], 0x3f
jne 0x43f150
jmp 0x43f161
mov ecx, ebx
sar ecx, 2
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x43f18c
mov edx, eax
mov dword [esp + 0xc], edx
lea eax, [edx*4]
push eax
call fcn.0040c730
add esp, 4
mov edx, eax
mov eax, dword [esp]
test eax, eax
je 0x43f2df
cmp edx, eax
mov eax, dword [esp + 4]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], edx
jbe 0x43f27e
cmp eax, edx
jbe 0x43f27e
test ebx, ebx
je 0x43f2c8
mov eax, dword [esp]
mov edx, dword [esp + 8]
add eax, edx
dec eax
mov ecx, dword [esp + 0x10]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x43f204
neg edi
xor edx, edx
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x43f1f0
add eax, edx
add ecx, edx
add edx, dword [esp + 8]
mov edi, dword [esp]
sub edi, dword [esp + 4]
cmp edi, 0xfffffff8
ja 0x43f2c8
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 0x43f220
jmp 0x43f2c8
xor edx, 1
and ecx, 0xfffffffc
sub ecx, edx
add esi, ecx
jmp 0x43f115
mov ecx, ebx
shr ecx, 2
mov ebx, dword [esp]
mov eax, ebx
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
mov ecx, dword [esp + 8]
mov edx, ecx
and edx, 0xfffffffc
lea edi, [eax + edx]
add edx, ebx
mov eax, ecx
shr ecx, 1
and ecx, 1
mov ebx, edx
mov dword [esp + 4], edi
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test al, 1
je 0x43f2c8
mov ecx, dword [esp + 8]
and ecx, 2
movzx edx, byte [edx + ecx]
mov eax, dword [esp + 4]
mov byte [eax + ecx], dl
push dword [esp]
call fcn.0040c740
add esp, 4
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 8]
mov edx, dword [esp + 0x10]
mov dword [edi], edx
mov eax, dword [esp + 0xc]
lea eax, [edx + eax*4]
mov ecx, edx
add ecx, ebx
mov dword [esp + 0xc], eax
mov dword [edi + 8], eax
mov eax, edx
mov dword [esp], edx
jmp 0x43f101
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret