Function at 0x43d840
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add eax, esi
sub eax, dword [esp + 0x44]
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
mov dword [esp + 0x1c], eax
cmp eax, esi
jbe 0x43da9d
mov ebp, dword [esp + 0x48]
xor edi, edi
mov dword [esp], 0
mov dword [esp + 4], 0
jmp 0x43d8b8
mov ecx, edi
mov edx, dword [esp]
sub ecx, edx
cmp edi, dword [esp + 4]
je 0x43d905
mov dword [edx + ecx], esi
add edi, 4
mov dword [ebx + 4], edi
mov ecx, dword [esp + 0x44]
add esi, ecx
dec esi
inc esi
cmp esi, dword [esp + 0x1c]
jae 0x43da9d
test ebp, ebp
je 0x43d8c2
cmp byte [ebp], 0x3f
je 0x43d8cd
movzx ecx, byte [esi]
mov edx, dword [esp + 0x40]
cmp cl, byte [edx]
jne 0x43d8ad
cmp dword [esp + 0x44], 2
jb 0x43d890
mov ecx, 1
jmp 0x43d8f8
movzx edx, byte [esi + ecx]
mov eax, dword [esp + 0x40]
cmp dl, byte [eax + ecx]
jne 0x43da13
inc ecx
cmp dword [esp + 0x44], ecx
je 0x43d890
test ebp, ebp
je 0x43d8e0
cmp byte [ebp + ecx], 0x3f
jne 0x43d8e0
jmp 0x43d8f1
mov dword [esp + 0x18], ecx
sar ecx, 2
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x43d91b
mov edx, eax
mov dword [esp + 4], edx
lea eax, [edx*4]
push eax
call fcn.0040cb80
add esp, 4
mov edx, eax
mov ecx, dword [esp]
test ecx, ecx
je 0x43da7b
mov eax, ecx
xor eax, edi
mov ebx, ecx
not ebx
and ebx, edi
add ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 8], eax
sub ebx, eax
cmp edx, ecx
mov dword [esp + 0xc], edx
jbe 0x43da26
lea eax, [ecx + ebx]
cmp eax, edx
jbe 0x43da26
test ebx, ebx
je 0x43da68
mov eax, dword [esp + 0xc]
add eax, ebx
dec eax
mov ecx, dword [esp]
add ecx, ebx
dec ecx
mov edx, ebx
and edx, 7
je 0x43d9a6
mov dword [esp + 0x10], ebx
neg edx
xor edi, edi
nop
nop
nop
movzx ebx, byte [ecx + edi]
mov byte [eax + edi], bl
dec edi
cmp edx, edi
jne 0x43d990
add ecx, edi
add eax, edi
mov ebx, dword [esp + 0x10]
add ebx, edi
mov edx, dword [esp + 8]
sub edx, dword [esp + 0x14]
cmp edx, 0xfffffff8
ja 0x43da68
neg ebx
xor edx, edx
nop
nop
nop
nop
nop
mov edi, ebx
movzx ebx, byte [ecx + edx]
mov byte [eax + edx], bl
movzx ebx, byte [ecx + edx - 1]
mov byte [eax + edx - 1], bl
movzx ebx, byte [ecx + edx - 2]
mov byte [eax + edx - 2], bl
movzx ebx, byte [ecx + edx - 3]
mov byte [eax + edx - 3], bl
movzx ebx, byte [ecx + edx - 4]
mov byte [eax + edx - 4], bl
movzx ebx, byte [ecx + edx - 5]
mov byte [eax + edx - 5], bl
movzx ebx, byte [ecx + edx - 6]
mov byte [eax + edx - 6], bl
movzx ebx, byte [ecx + edx - 7]
mov byte [eax + edx - 7], bl
mov ebx, edi
add edx, 0xfffffff8
cmp edi, edx
jne 0x43d9c0
jmp 0x43da68
mov edx, ecx
not edx
and edx, 1
and ecx, 0xfffffffe
sub ecx, edx
add esi, ecx
jmp 0x43d8ad
mov eax, ecx
mov dword [esp], ecx
mov ecx, ebx
shr ecx, 2
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
mov edx, ebx
and edx, 0xfffffffc
lea edi, [eax + edx]
add edx, dword [esp]
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov eax, edx
mov dword [esp + 8], edi
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
test bl, 1
je 0x43da68
and ebx, 2
movzx eax, byte [edx + ebx]
mov ecx, dword [esp + 8]
mov byte [ecx + ebx], al
push dword [esp]
call fcn.0040cb90
add esp, 4
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0xc]
mov dword [ebx], edx
mov eax, dword [esp + 4]
lea eax, [edx + eax*4]
mov edi, edx
mov ecx, dword [esp + 0x18]
add edi, ecx
mov dword [esp + 4], eax
mov dword [ebx + 8], eax
mov eax, edx
mov dword [esp], edx
jmp 0x43d89d
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret