Function at 0x43b9f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
add eax, esi
sub eax, dword [esp + 0x48]
mov dword [ecx + 8], 0
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov dword [esp + 0x20], eax
cmp eax, esi
jbe 0x43bc7d
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
lea ebp, [eax - 1]
xor edi, edi
mov dword [esp], 0
xor eax, eax
mov dword [esp + 0x1c], ebp
jmp 0x43ba80
mov ebp, edi
mov ecx, dword [esp]
sub ebp, ecx
cmp edi, eax
je 0x43bac9
mov ebx, ecx
mov ecx, dword [esp + 0x38]
mov dword [ebx + ebp], esi
add edi, 4
mov dword [ecx + 4], edi
mov ecx, dword [esp + 0x48]
add esi, ecx
dec esi
mov ebp, dword [esp + 0x1c]
inc esi
cmp esi, dword [esp + 0x20]
jae 0x43bc7d
test edx, edx
je 0x43ba89
cmp byte [edx], 0x3f
je 0x43ba94
movzx ecx, byte [esi]
mov ebx, dword [esp + 0x44]
cmp cl, byte [ebx]
jne 0x43ba75
cmp dword [esp + 0x48], 2
jb 0x43ba50
xor ecx, ecx
jmp 0x43babc
movzx edx, byte [esi + ecx + 1]
mov ebx, dword [esp + 0x44]
cmp dl, byte [ebx + ecx + 1]
mov edx, dword [esp + 0x4c]
jne 0x43bbff
inc ecx
cmp ebp, ecx
je 0x43ba50
test edx, edx
je 0x43baa0
cmp byte [edx + ecx + 1], 0x3f
jne 0x43baa0
jmp 0x43bab7
mov dword [esp + 8], ebp
sar ebp, 2
lea edx, [ebp + 1]
mov eax, ebp
shr eax, 1
add eax, ebp
cmp eax, edx
ja 0x43badf
mov eax, edx
mov ebx, eax
and ebx, 4
mov ecx, eax
or ecx, 4
imul ecx, ebx
xor ebx, 4
mov dword [esp + 0x18], eax
and eax, 0xfffffffb
imul eax, ebx
add ecx, eax
push ecx
call fcn.00409d90
add esp, 4
mov edx, dword [esp]
test edx, edx
mov ebp, dword [esp + 8]
je 0x43bc59
mov ecx, edi
not ecx
and ecx, edx
mov ebx, edx
not ebx
and ebx, edi
mov dword [esp + 4], ebx
sub ebx, ecx
cmp eax, edx
mov edi, eax
mov dword [esp + 0x10], eax
jbe 0x43bc06
lea eax, [edx + ebx]
cmp eax, edi
jbe 0x43bc06
test ebx, ebx
je 0x43bc4a
mov dword [esp + 0x14], ecx
mov eax, dword [esp]
add eax, ebx
dec eax
mov ecx, dword [esp + 0x10]
add ecx, ebx
dec ecx
mov dword [esp + 0xc], ebx
mov edx, ebx
and edx, 7
je 0x43bb88
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
dec edi
cmp edx, edi
jne 0x43bb70
add eax, edi
add ecx, edi
add dword [esp + 0xc], edi
mov ebp, dword [esp + 8]
mov edx, dword [esp + 0x14]
sub edx, dword [esp + 4]
cmp edx, 0xfffffff8
mov ebx, dword [esp + 0xc]
ja 0x43bc4a
neg ebx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [eax + edi]
mov byte [ecx + edi], dl
movzx edx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], dl
movzx edx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], dl
movzx edx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], dl
movzx edx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], dl
movzx edx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], dl
movzx edx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], dl
movzx edx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], dl
add edi, 0xfffffff8
cmp ebx, edi
jne 0x43bbb0
jmp 0x43bc4a
add esi, ecx
jmp 0x43ba75
mov ebp, edx
mov ecx, ebx
shr ecx, 2
mov eax, edx
mov edx, edi
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
and eax, 0xfffffffc
lea edi, [edx + eax]
add eax, ebp
mov ebp, dword [esp + 8]
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov edx, eax
mov dword [esp + 4], edi
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
test bl, 1
je 0x43bc4a
and ebx, 2
movzx eax, byte [eax + ebx]
mov ecx, dword [esp + 4]
mov byte [ecx + ebx], al
push dword [esp]
call fcn.00409da0
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
mov ebx, eax
mov eax, dword [esp + 0x18]
lea eax, [ebx + eax*4]
mov edi, ebx
add edi, ebp
mov dword [ecx + 8], eax
mov edx, ebx
mov dword [esp], ebx
mov edx, dword [esp + 0x4c]
jmp 0x43ba61
mov eax, dword [esp + 0x38]
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret