Function at 0x10067020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov dword [esp], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
lea edx, [esp + 4]
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
lea ecx, [esp + 8]
add eax, dword [ebp + 8]
adc esi, dword [ebp + 0xc]
push 4
push 0x3fa61c0
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push eax
call fcn.10063d80
add esp, 0x18
xor ebx, ebx
lea esi, [0x3fa5e75]
lea edx, [0x3fa5e76]
mov eax, 0xfffffff9
mov dword [esp + 0x20], 0
nop dword [eax]
movzx ecx, byte [esi]
mov esi, edx
mov edx, ecx
add dl, 0xd0
cmp dl, 0xa
jb 0x100670a5
or cl, 0x20
mov edx, ecx
add dl, 0x9f
cmp dl, 6
jae 0x10067243
add cl, 0xa9
mov edx, ecx
mov ecx, ebx
movzx edi, dl
lea edx, [esi + 1]
shl ecx, 4
or edi, ecx
test eax, eax
cmove edx, esi
je 0x100670c6
shld dword [esp + 0x20], ebx, 4
inc eax
test esi, esi
mov ebx, edi
jne 0x10067080
cmp dword [esp + 8], 0
je 0x10067118
mov esi, dword [esp + 0x14]
movsd xmm0, qword [esp + 0xc]
mov ebx, dword [esp + 0x18]
mov eax, dword [0x3fa8000]
xor edi, 0x5d
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], esi
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x40], ebx
push 4
push 8
push 0x3fa78d4
push ecx
call dword [eax + 0xc]
add esp, 0x10
cmp byte [esp + 0x44], 0
je 0x1006714f
lea ecx, [esp + 0x3c]
call fcn.10005440
xor eax, eax
jmp 0x10067158
mov eax, dword [esp + 0x10]
xor ebx, ebx
or eax, dword [esp + 0x14]
je 0x10067179
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp]
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], eax
mov dword [esi + 0x10], ecx
mov dword [esi], ebx
jmp 0x10067171
mov eax, dword [esp + 0x48]
mov dword [eax], esi
mov dword [eax + 4], ebx
mov ecx, dword [esp]
movaps xmm0, xmmword [esp + 0x20]
mov edx, 1
movlps qword [ecx + 4], xmm0
mov dword [ecx + 0xc], edi
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]
lea edx, [esp + 4]
lea ecx, [esp + 8]
add esi, dword [eax + 0x10]
adc edi, dword [eax + 0x14]
push 4
push 0x3fa61c0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
push esi
call fcn.10063d80
add esp, 0x18
xor ebx, ebx
lea edx, [0x3fa5e75]
lea esi, [0x3fa5e76]
mov eax, 0xfffffff9
mov dword [esp + 0x20], 0
movzx ecx, byte [edx]
mov edx, esi
mov ch, cl
add ch, 0xd0
cmp ch, 0xa
jb 0x100671e1
or cl, 0x20
mov ch, cl
add ch, 0x9f
cmp ch, 5
ja 0x10067243
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 0x10067202
shld dword [esp + 0x20], ebx, 4
inc eax
test edx, edx
mov ebx, edi
jne 0x100671c0
cmp dword [esp + 8], 0
jne 0x100670cd
mov eax, dword [esp + 0x10]
or eax, dword [esp + 0x14]
je 0x1006722e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp]
mov edx, 1
xor ebx, ebx
jmp 0x10067131
mov eax, dword [esp]
mov dword [eax + 8], 6
mov dword [eax], 0
jmp 0x10067171
mov ecx, 0x3fa6484
mov edx, 0xe
push 0x3f9fdfc
call fcn.10007180
add esp, 4
ud2