Function at 0x43beb0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
add eax, esi
sub eax, dword [esp + 0x44]
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [esp + 0x1c], eax
cmp eax, esi
jbe 0x43c19b
mov ebp, dword [esp + 0x48]
xor ecx, ecx
mov dword [esp], 0
mov dword [esp + 0xc], 0
jmp 0x43bf30
mov ecx, dword [esp + 4]
mov ebx, ecx
mov eax, dword [esp]
sub ebx, eax
cmp ecx, dword [esp + 0xc]
je 0x43c019
mov dword [eax + ebx], esi
add ecx, 4
mov dword [edi + 4], ecx
mov eax, dword [esp + 0x44]
add esi, eax
dec esi
inc esi
cmp esi, dword [esp + 0x1c]
jae 0x43c19b
mov dword [esp + 4], ecx
test ebp, ebp
je 0x43bf84
movzx ecx, byte [ebp]
mov byte [esp + 0x10], 0x7d
mov dword [esp + 0x11], 0
mov eax, 0xc5f79735
nop
nop
movzx ebx, byte [esp + eax + 0x3a0868db]
mov edx, eax
and edx, ebx
add edx, edx
sub ebx, edx
add ebx, eax
mov edx, ebx
and edx, 1
or ebx, 1
add ebx, edx
add bl, 0xf6
mov byte [esp + eax + 0x3a0868db], bl
inc eax
cmp eax, 0xc5f7973a
jne 0x43bf50
cmp cl, byte [esp + 0x10]
je 0x43bf93
movzx eax, byte [esi]
mov ecx, dword [esp + 0x40]
cmp al, byte [ecx]
jne 0x43c010
cmp dword [esp + 0x44], 2
jb 0x43bf00
mov ecx, 1
jmp 0x43bfcc
movzx eax, byte [esi + ecx]
mov edx, dword [esp + 0x40]
cmp al, byte [edx + ecx]
jne 0x43c10f
inc ecx
cmp ecx, dword [esp + 0x44]
je 0x43bf00
test ebp, ebp
je 0x43bfb0
movzx edx, byte [ebp + ecx]
mov byte [esp + 0x10], 0xbb
lea eax, [esp + 0x11]
mov dword [eax + 3], 0
mov dword [eax], 0
xor ebx, ebx
nop
nop
nop
mov eax, ebx
add al, 0x16
xor al, byte [esp + ebx + 0x10]
add al, 0x92
mov byte [esp + ebx + 0x10], al
inc ebx
cmp ebx, 8
jne 0x43bff0
cmp dl, byte [esp + 0x10]
jne 0x43bfb0
jmp 0x43bfc1
mov ecx, dword [esp + 4]
jmp 0x43bf25
mov ecx, ebx
sar ecx, 2
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x43c02d
mov edx, eax
mov dword [esp + 0xc], edx
lea eax, [edx*4]
push eax
call fcn.00408220
add esp, 4
mov ebp, eax
mov edx, dword [esp]
test edx, edx
je 0x43c173
cmp ebp, edx
mov eax, dword [esp + 4]
mov dword [esp + 8], ebx
mov dword [esp + 0x18], ebp
jbe 0x43c11b
cmp eax, ebp
jbe 0x43c11b
test ebx, ebx
je 0x43c15c
mov eax, dword [esp]
mov edx, dword [esp + 8]
add eax, edx
dec eax
mov ecx, dword [esp + 0x18]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x43c0a4
neg edi
xor edx, edx
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x43c090
add eax, edx
add ecx, edx
add edx, dword [esp + 8]
mov edi, dword [esp]
sub edi, dword [esp + 4]
cmp edi, 0xfffffff8
ja 0x43c15c
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 0x43c0c0
jmp 0x43c15c
add esi, ecx
dec esi
mov ecx, dword [esp + 4]
jmp 0x43bf25
mov ecx, ebx
shr ecx, 2
mov eax, edx
mov dword [esp], edx
mov edi, ebp
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
mov edx, ebx
and edx, 0xfffffffc
add ebp, edx
add edx, dword [esp]
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov ebx, edx
mov edi, ebp
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test al, 1
je 0x43c15c
mov ecx, dword [esp + 8]
and ecx, 2
movzx edx, byte [edx + ecx]
mov byte [ebp + ecx], dl
push dword [esp]
call fcn.00408230
add esp, 4
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0x18]
mov dword [edi], ebp
mov eax, dword [esp + 0xc]
lea eax, [eax*4]
add eax, ebp
mov ecx, ebp
add ecx, ebx
mov dword [esp + 0xc], eax
mov dword [edi + 8], eax
mov eax, ebp
mov dword [esp], ebp
mov ebp, dword [esp + 0x48]
jmp 0x43bf15
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret