Function at 0x43df10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
add edx, ebp
sub edx, edi
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
cmp edx, ebp
jbe 0x43e1fa
mov ecx, dword [esp + 0x48]
lea eax, [edi - 1]
mov dword [esp + 0x1c], eax
xor eax, eax
xor esi, esi
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], edx
jmp 0x43df99
mov ebx, dword [esp + 4]
mov dword [ebx + esi], ebp
add edx, 4
mov eax, dword [esp + 0x34]
mov dword [eax + 4], edx
mov edi, dword [esp + 0x44]
add ebp, edi
dec ebp
mov eax, edx
mov edx, dword [esp + 0x18]
inc ebp
mov esi, ebx
cmp ebp, edx
jae 0x43e1fa
mov dword [esp], eax
test ecx, ecx
je 0x43dfa5
cmp byte [ecx], 0x3f
je 0x43dfb5
movzx eax, byte [ebp]
mov ebx, dword [esp + 0x40]
cmp al, byte [ebx]
jne 0x43e104
cmp edi, 2
jb 0x43dff0
xor eax, eax
jmp 0x43dfde
movzx ecx, byte [ebp + eax + 1]
mov ebx, dword [esp + 0x40]
cmp cl, byte [ebx + eax + 1]
mov ecx, dword [esp + 0x48]
jne 0x43e102
inc eax
cmp dword [esp + 0x1c], eax
je 0x43dff0
test ecx, ecx
je 0x43dfc0
cmp byte [ecx + eax + 1], 0x3f
jne 0x43dfc0
jmp 0x43dfd7
mov ebx, dword [esp]
mov edi, ebx
sub edi, esi
mov dword [esp + 4], esi
mov edx, ebx
cmp ebx, dword [esp + 0xc]
jne 0x43e1b9
mov ecx, edi
sar ecx, 2
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
add edx, ecx
cmp edx, eax
mov ebx, edi
ja 0x43e01d
mov edx, eax
mov dword [esp + 0xc], edx
lea eax, [edx*4]
push eax
call fcn.0040c690
add esp, 4
test esi, esi
mov dword [esp + 4], eax
je 0x43e196
cmp eax, esi
mov ecx, dword [esp]
mov dword [esp + 8], ebx
jbe 0x43e10e
cmp ecx, eax
jbe 0x43e10e
test ebx, ebx
je 0x43e185
mov edx, dword [esp + 8]
lea eax, [esi + edx]
dec eax
mov ecx, dword [esp + 4]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x43e094
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x43e080
add eax, edx
add ecx, edx
add edx, dword [esp + 8]
mov edi, esi
sub edi, dword [esp]
cmp edi, 0xfffffff8
ja 0x43e185
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
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 0x43e0b0
jmp 0x43e185
add ebp, eax
mov ebx, esi
mov eax, dword [esp]
jmp 0x43df8e
mov ecx, ebx
shr ecx, 2
mov edx, esi
mov edi, eax
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edx, ebx
and edx, 0xfffffffc
lea edi, [eax + edx]
add edx, esi
mov eax, ebx
and eax, 3
mov ecx, eax
shr ecx, 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edi
mov ebx, dword [esp + 0x14]
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ecx, eax
xor ecx, 0xfffffffe
or eax, 1
and eax, ecx
je 0x43e185
mov edi, dword [esp + 8]
and edi, 2
movzx ecx, byte [edx + edi]
mov ebx, dword [esp + 0x10]
mov byte [ebx + edi], cl
cmp eax, 1
je 0x43e185
movzx ecx, byte [edx + edi + 1]
mov ebx, dword [esp + 0x10]
mov byte [ebx + edi + 1], cl
cmp eax, 2
je 0x43e185
movzx eax, byte [edx + edi + 2]
mov ecx, dword [esp + 0x10]
mov byte [ecx + edi + 2], al
push esi
call fcn.0040c6a0
add esp, 4
mov eax, dword [esp + 4]
mov ebx, dword [esp + 8]
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
lea edx, [eax + ebx]
mov dword [ecx + 4], edx
mov edi, dword [esp + 0xc]
lea eax, [eax + edi*4]
mov dword [esp + 0xc], eax
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x48]
mov edi, ebx
mov ebx, dword [esp]
mov eax, ebx
not eax
and eax, esi
not esi
and esi, ebx
sub esi, eax
cmp esi, edi
jae 0x43df70
mov ecx, dword [esp + 4]
lea eax, [ecx + esi]
lea edi, [ecx + esi]
add edi, 4
mov dword [esp], edi
mov ebx, eax
xor ecx, ecx
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
xor ecx, ecx
mov edi, dword [esp]
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov ecx, dword [esp + 0x48]
jmp 0x43df70
mov eax, dword [esp + 0x34]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret