Function at 0x43b3d0
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 0x43b640
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
lea ebp, [eax - 1]
xor edi, edi
mov dword [esp], 0
mov dword [esp + 8], 0
mov dword [esp + 0x14], ebp
jmp 0x43b458
mov ecx, edi
mov eax, dword [esp]
sub ecx, eax
cmp edi, dword [esp + 8]
je 0x43b4a9
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 0x43b640
test edx, edx
je 0x43b461
cmp byte [edx], 0x3f
je 0x43b46c
movzx ecx, byte [esi]
mov eax, dword [esp + 0x3c]
cmp cl, byte [eax]
jne 0x43b44d
cmp dword [esp + 0x40], 2
jb 0x43b430
xor ecx, ecx
jmp 0x43b49c
movzx edx, byte [esi + ecx + 1]
mov eax, dword [esp + 0x3c]
cmp dl, byte [eax + ecx + 1]
mov edx, dword [esp + 0x44]
jne 0x43b546
inc ecx
cmp ebp, ecx
je 0x43b430
test edx, edx
je 0x43b480
cmp byte [edx + ecx + 1], 0x3f
jne 0x43b480
jmp 0x43b497
mov dword [esp + 0xc], edi
mov dword [esp + 4], ecx
sar ecx, 2
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x43b4c3
mov edx, eax
mov dword [esp + 8], edx
lea eax, [edx*4]
push eax
call fcn.004084d0
add esp, 4
mov edi, eax
mov eax, dword [esp]
test eax, eax
je 0x43b610
mov edx, dword [esp + 4]
lea ebp, [edx + 0x44e05e90]
cmp edi, eax
mov dword [esp + 0x10], edi
jbe 0x43b54d
cmp dword [esp + 0xc], edi
jbe 0x43b54d
test edx, edx
je 0x43b5fd
mov eax, dword [esp]
add eax, ebp
add eax, 0xbb1fa16f
mov ecx, dword [esp + 0x10]
add ecx, ebp
add ecx, 0xbb1fa16f
and ebp, 7
je 0x43b595
neg ebp
xor edx, edx
mov edi, dword [esp + 0xc]
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp ebp, edx
jne 0x43b530
add eax, edx
add ecx, edx
add edx, dword [esp + 4]
jmp 0x43b59d
add esi, ecx
jmp 0x43b44d
mov eax, edx
mov ecx, edx
shr ecx, 2
mov ebx, edi
mov edx, dword [esp]
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
xor eax, 3
mov edx, ebp
or edx, 0xfffffffc
and edx, eax
lea eax, [ebx + edx]
mov ebx, ebp
mov ebp, eax
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 0x43b5fd
and ebx, 2
movzx eax, byte [edx + ebx]
mov byte [ebp + ebx], al
jmp 0x43b5fd
mov edx, dword [esp + 4]
mov edi, dword [esp + 0xc]
mov ebx, dword [esp]
sub ebx, edi
cmp ebx, 0xfffffff8
ja 0x43b5fd
neg edx
xor edi, edi
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 0x43b5b0
push dword [esp]
call fcn.004084e0
add esp, 4
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
mov ebp, ebx
mov dword [ebx], edi
mov eax, dword [esp + 8]
lea eax, [edi + eax*4]
mov ebx, edi
mov ecx, dword [esp + 4]
add ebx, ecx
mov dword [esp + 8], 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 0x43b43d
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret