Function at 0x1006dbf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x10]
xorps xmm0, xmm0
mov dword [esp + 0x14], edx
lea edi, [esp + 0x40]
lea edx, [esp + 0x14]
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
lea ecx, [esp + 0x18]
add eax, dword [ebp + 8]
adc esi, dword [ebp + 0xc]
push edi
push 4
push 0x16abe58
push esi
push eax
call fcn.1006ac20
add esp, 0x14
xor ebx, ebx
lea edx, [0x16abb11]
lea esi, [0x16abb12]
mov eax, 0xfffffff9
mov dword [esp + 0xc], 0
nop word cs:[eax + eax]
nop
movzx ecx, byte [edx]
mov edx, esi
mov ch, cl
add ch, 0xd0
cmp ch, 0xa
jb 0x1006dc95
or cl, 0x20
mov ch, cl
add ch, 0x9f
cmp ch, 6
jae 0x1006de65
add cl, 0xa9
mov ch, cl
mov esi, ebx
movzx edi, ch
shl esi, 4
or edi, esi
lea esi, [edx + 1]
test eax, eax
cmove esi, edx
je 0x1006dcb6
shld dword [esp + 0xc], ebx, 4
inc eax
test edx, edx
mov ebx, edi
jne 0x1006dc70
cmp dword [esp + 0x18], 0
je 0x1006dd10
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
xor edi, 0x8d
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0xc], eax
mov eax, dword [0x16ad000]
push 4
push 8
push 0x16ac968
lea ecx, [esp + 0x4c]
push ecx
call dword [eax + 0xc]
add esp, 0x10
cmp byte [esp + 0x40], 0
je 0x1006dd48
lea ecx, [esp + 0x38]
call fcn.10006530
xor eax, eax
jmp 0x1006dd51
mov eax, dword [esp + 0x20]
xor ebx, ebx
or eax, dword [esp + 0x24]
je 0x1006dd78
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x10]
xor edx, edx
mov edi, dword [ebp + 0x10]
shl edx, 4
mov dword [esi + 8], 3
mov edx, dword [edi + edx + 8]
mov dword [esi + 0xc], edx
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
mov dword [esi], ebx
jmp 0x1006dd70
mov eax, dword [esp + 0x44]
mov dword [eax], ebx
mov dword [eax + 4], esi
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0xc]
mov dword [ecx + 0xc], edi
mov dword [ecx + 8], edx
mov edx, 1
mov dword [ecx + 0x10], eax
mov dword [ecx], edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x40], xmm0
add esi, dword [eax + 0x10]
adc edi, dword [eax + 0x14]
lea eax, [esp + 0x40]
push eax
push 4
push 0x16abe58
push edi
push esi
call fcn.1006ac20
add esp, 0x14
xor ebx, ebx
lea edx, [0x16abb11]
lea esi, [0x16abb12]
mov eax, 0xfffffff9
mov dword [esp + 0xc], 0
nop word [eax + eax]
movzx ecx, byte [edx]
mov edx, esi
mov ch, cl
add ch, 0xd0
cmp ch, 0xa
jb 0x1006de01
or cl, 0x20
mov ch, cl
add ch, 0x9f
cmp ch, 5
ja 0x1006de65
add cl, 0xa9
mov ch, cl
mov esi, ebx
movzx edi, ch
shl esi, 4
or edi, esi
lea esi, [edx + 1]
test eax, eax
cmove esi, edx
je 0x1006de22
shld dword [esp + 0xc], ebx, 4
inc eax
test edx, edx
mov ebx, edi
jne 0x1006dde0
cmp dword [esp + 0x18], 0
jne 0x1006dcbd
mov eax, dword [esp + 0x20]
or eax, dword [esp + 0x24]
je 0x1006de4f
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x10]
mov edx, 1
xor ebx, ebx
jmp 0x1006dd2a
mov eax, dword [esp + 0x10]
mov dword [eax + 8], 6
mov dword [eax], 0
jmp 0x1006dd70
mov ecx, 0x16ac7bc
mov edx, 0xe
push 0x16a4dc0
call fcn.10007ff0
add esp, 4
ud2