Function at 0x43f610
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
add eax, esi
sub eax, dword [esp + 0x40]
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov dword [esp + 0x18], eax
cmp eax, esi
jbe 0x43f880
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
lea ebp, [eax - 1]
xor edi, edi
mov dword [esp], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], ebp
jmp 0x43f698
mov ecx, edi
mov eax, dword [esp]
sub ecx, eax
cmp edi, dword [esp + 0xc]
je 0x43f6e9
mov dword [eax + ecx], esi
add edi, 4
mov dword [ebx + 4], edi
mov ecx, dword [esp + 0x40]
add esi, ecx
dec esi
inc esi
cmp esi, dword [esp + 0x18]
jae 0x43f880
test edx, edx
je 0x43f6a1
cmp byte [edx], 0x3f
je 0x43f6ac
movzx ecx, byte [esi]
mov eax, dword [esp + 0x3c]
cmp cl, byte [eax]
jne 0x43f68d
cmp dword [esp + 0x40], 2
jb 0x43f670
xor ecx, ecx
jmp 0x43f6dc
movzx edx, byte [esi + ecx + 1]
mov eax, dword [esp + 0x3c]
cmp dl, byte [eax + ecx + 1]
mov edx, dword [esp + 0x44]
jne 0x43f78a
inc ecx
cmp ebp, ecx
je 0x43f670
test edx, edx
je 0x43f6c0
cmp byte [edx + ecx + 1], 0x3f
jne 0x43f6c0
jmp 0x43f6d7
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
sar ecx, 2
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x43f703
mov edx, eax
mov dword [esp + 0xc], edx
lea eax, [edx*4]
push eax
call fcn.0040cbb0
add esp, 4
mov edi, eax
mov eax, dword [esp]
test eax, eax
je 0x43f850
mov ebp, dword [esp + 8]
lea ebx, [ebp - 0x20db78e0]
cmp edi, eax
mov dword [esp + 0x10], edi
jbe 0x43f791
cmp dword [esp + 4], edi
jbe 0x43f791
test ebp, ebp
je 0x43f83d
mov edx, dword [esp + 8]
mov eax, edx
and eax, 0xfffffffe
add eax, eax
mov ecx, edx
xor ecx, 1
sub eax, ecx
mov ecx, dword [esp]
add ecx, eax
and ebx, 7
je 0x43f7d6
add eax, dword [esp + 0x10]
neg ebx
xor edx, edx
mov edi, dword [esp + 4]
nop
nop
nop
nop
mov ebp, ebx
movzx ebx, byte [ecx + edx]
mov byte [eax + edx], bl
mov ebx, ebp
dec edx
cmp ebp, edx
jne 0x43f770
add ecx, edx
add eax, edx
add edx, dword [esp + 8]
jmp 0x43f7de
add esi, ecx
jmp 0x43f68d
mov ecx, ebp
shr ecx, 2
mov dword [esp + 4], ebx
mov ebx, edi
mov edx, dword [esp]
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edx, ebp
and edx, 0xfffffffc
lea ebp, [ebx + edx]
mov ebx, dword [esp + 4]
add edx, dword [esp]
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov eax, edx
mov edi, ebp
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test bl, 1
je 0x43f83d
and ebx, 2
movzx eax, byte [edx + ebx]
mov byte [ebp + ebx], al
jmp 0x43f83d
add eax, dword [esp + 0x10]
mov edi, dword [esp + 4]
mov ebx, dword [esp]
sub ebx, edi
cmp ebx, 0xfffffff8
ja 0x43f83d
neg edx
xor edi, edi
nop
nop
nop
nop
movzx ebx, byte [ecx + edi]
mov byte [eax + edi], bl
movzx ebx, byte [ecx + edi - 1]
mov byte [eax + edi - 1], bl
movzx ebx, byte [ecx + edi - 2]
mov byte [eax + edi - 2], bl
movzx ebx, byte [ecx + edi - 3]
mov byte [eax + edi - 3], bl
movzx ebx, byte [ecx + edi - 4]
mov byte [eax + edi - 4], bl
movzx ebx, byte [ecx + edi - 5]
mov byte [eax + edi - 5], bl
movzx ebx, byte [ecx + edi - 6]
mov byte [eax + edi - 6], bl
movzx ebx, byte [ecx + edi - 7]
mov byte [eax + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x43f7f0
push dword [esp]
call fcn.0040cbc0
add esp, 4
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
mov ebp, ebx
mov dword [ebx], edi
mov eax, dword [esp + 0xc]
lea eax, [edi + eax*4]
mov ebx, edi
mov ecx, dword [esp + 8]
add ebx, ecx
mov dword [esp + 0xc], eax
mov dword [ebp + 8], eax
mov eax, edi
mov dword [esp], edi
mov edx, dword [esp + 0x44]
mov edi, ebx
mov ebx, ebp
mov ebp, dword [esp + 0x14]
jmp 0x43f67d
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret