Function at 0x43af60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
add ecx, ebp
sub ecx, dword [esp + 0x48]
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [esp + 0x20], ecx
cmp ecx, ebp
jbe 0x43b2a8
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov eax, ecx
not eax
and eax, 1
mov edi, ecx
and edi, 0xfffffffe
sub edi, eax
mov dword [esp + 0x1c], edi
lea edi, [ecx - 1]
xor edx, edx
mov dword [esp], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], edi
jmp 0x43b00d
push eax
push edx
push ecx
call fcn.0040cfe0
add esp, 0xc
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [ecx + eax], ebp
add esi, 4
mov eax, dword [esp + 0x38]
mov dword [eax + 4], esi
add ebp, dword [esp + 0x1c]
mov edx, esi
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x44]
inc ebp
mov dword [esp], ecx
cmp ebp, dword [esp + 0x20]
jae 0x43b2a8
test esi, esi
je 0x43b016
cmp byte [esi], 0x3f
je 0x43b01e
movzx eax, byte [ebp]
cmp al, byte [ebx]
jne 0x43b090
cmp dword [esp + 0x48], 2
jb 0x43b060
xor eax, eax
jmp 0x43b044
movzx ecx, byte [ebp + eax + 1]
cmp cl, byte [ebx + eax + 1]
jne 0x43b19f
inc eax
cmp edi, eax
je 0x43b060
test esi, esi
je 0x43b030
cmp byte [esi + eax + 1], 0x3f
jne 0x43b030
jmp 0x43b03f
mov esi, dword [esp]
mov eax, esi
xor eax, edx
mov ebx, esi
not ebx
and ebx, edx
add ebx, ebx
sub ebx, eax
cmp edx, dword [esp + 0xc]
je 0x43b098
mov eax, edx
sub eax, esi
mov dword [esp + 8], esi
mov esi, edx
cmp eax, ebx
jae 0x43afe0
jmp 0x43b22e
mov ecx, dword [esp]
jmp 0x43afff
mov eax, ebx
sar eax, 2
inc eax
mov dword [esp + 0x10], edx
mov ecx, edx
sub ecx, esi
mov dword [esp + 4], ecx
sar ecx, 2
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
ja 0x43b0b9
mov edx, eax
mov dword [esp + 0xc], edx
lea eax, [edx*4]
push eax
call fcn.0040cf60
add esp, 4
mov ecx, eax
test esi, esi
mov dword [esp + 8], eax
je 0x43b204
mov dword [esp + 0x18], ebx
cmp ecx, esi
mov eax, dword [esp + 0x10]
jbe 0x43b1a9
cmp eax, ecx
jbe 0x43b1a9
cmp dword [esp + 4], 0
je 0x43b1f1
mov ebx, dword [esp]
mov edx, dword [esp + 4]
lea eax, [ebx + edx]
dec eax
mov ecx, dword [esp + 8]
add ecx, edx
dec ecx
mov esi, edx
and esi, 7
je 0x43b137
neg esi
xor edx, edx
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp esi, edx
jne 0x43b120
add eax, edx
add ecx, edx
add edx, dword [esp + 4]
mov ebx, dword [esp]
mov esi, ebx
sub esi, dword [esp + 0x10]
cmp esi, 0xfffffff8
ja 0x43b1f1
neg edx
xor esi, esi
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + esi]
mov byte [ecx + esi], bl
movzx ebx, byte [eax + esi - 1]
mov byte [ecx + esi - 1], bl
movzx ebx, byte [eax + esi - 2]
mov byte [ecx + esi - 2], bl
movzx ebx, byte [eax + esi - 3]
mov byte [ecx + esi - 3], bl
movzx ebx, byte [eax + esi - 4]
mov byte [ecx + esi - 4], bl
movzx ebx, byte [eax + esi - 5]
mov byte [ecx + esi - 5], bl
movzx ebx, byte [eax + esi - 6]
mov byte [ecx + esi - 6], bl
movzx ebx, byte [eax + esi - 7]
mov byte [ecx + esi - 7], bl
add esi, 0xfffffff8
cmp edx, esi
jne 0x43b150
jmp 0x43b1f1
add ebp, eax
mov ecx, dword [esp]
jmp 0x43afff
mov ebx, ecx
mov edx, dword [esp + 4]
mov ecx, edx
shr ecx, 2
mov eax, esi
mov edi, ebx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, edx
and eax, 0xfffffffc
lea ecx, [esi + eax]
add eax, ebx
mov ebx, ecx
mov ecx, edx
shr ecx, 1
and ecx, 1
mov esi, ebx
mov edi, eax
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov edi, dword [esp + 0x14]
test dl, 1
je 0x43b1f1
mov ecx, dword [esp + 4]
and ecx, 2
movzx edx, byte [ebx + ecx]
mov byte [eax + ecx], dl
push dword [esp]
call fcn.0040cf70
add esp, 4
mov ecx, dword [esp + 8]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
mov dword [eax], ecx
lea esi, [ecx + ebx]
mov dword [eax + 4], esi
mov edx, dword [esp + 0xc]
lea ecx, [ecx + edx*4]
mov dword [esp + 0xc], ecx
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 4]
cmp eax, ebx
jae 0x43afe0
mov ecx, ebx
mov ebx, eax
mov eax, dword [esp]
add eax, ecx
sub eax, edx
mov ecx, dword [esp + 8]
lea edx, [ecx + ebx]
mov dword [esp + 4], ebx
add ecx, ebx
add ecx, 4
cmp eax, 4
jg 0x43afd1
mov dword [esp], ecx
mov ecx, eax
shr ecx, 2
mov ebx, edx
mov edi, dword [esp]
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edx, eax
and edx, 0xfffffffc
add ebx, edx
add edx, dword [esp]
mov ecx, eax
shr ecx, 1
and ecx, 1
mov dword [esp], ebx
mov edi, edx
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov edi, dword [esp + 0x14]
mov ecx, eax
test al, 1
mov eax, dword [esp + 4]
je 0x43afe0
mov eax, ecx
and eax, 2
mov ecx, dword [esp]
movzx ecx, byte [ecx + eax]
mov byte [edx + eax], cl
jmp 0x43afdc
mov eax, dword [esp + 0x38]
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret