Function at 0x10006370
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b7dd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1003d050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 0x10
call fcn.1000b7ba
xorps xmm0, xmm0
mov dword [ebp - 0x14], eax
add esp, 4
or ebx, 0xffffffff
movq qword [eax], xmm0
lea ecx, [eax + 0xc]
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_obj2_struct__I3API_MODULE_TABLE_.0
mov dword [ecx], 0
mov esi, dword [0x1003eda8]
mov dword [0x1003eda4], ecx
mov dword [0x1003eda8], eax
test esi, esi
je 0x10006410
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1000640a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1000640a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [0x1003eda4]
test ecx, ecx
je 0x100065aa
push 0x58
call fcn.1000b7ba
mov esi, eax
add esp, 4
xorps xmm0, xmm0
mov dword [ebp - 0x14], esi
movq qword [esi], xmm0
lea edi, [esi + 0xc]
push 0x4c
mov dword [esi + 8], 0
push 0
push edi
mov dword [esi + 4], 1
mov dword [esi + 8], 1
mov dword [esi], vtable.std::_Ref_count_obj2_struct__I3API_API_TABLE_.0
call fcn.1000d450
mov ebx, dword [0x1003edb0]
add esp, 0xc
mov dword [0x1003edac], edi
mov dword [0x1003edb0], esi
test ebx, ebx
je 0x10006496
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ebx + 4], eax
jne 0x10006490
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
lock xadd dword [ebx + 8], esi
dec esi
jne 0x10006490
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
mov edi, dword [0x1003edac]
test edi, edi
je 0x1000658d
mov ecx, 0x3b
xor edx, edx
mov al, byte [edx + 0x10038780]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x24], al
and ecx, 0x800000ff
jns 0x100064c2
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0xe
jl 0x100064a5
mov byte [ebp - 0x16], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
mov esi, dword [0x1003eda4]
push eax
mov eax, dword [0x1003edbc]
mov eax, dword [eax + 8]
call eax
mov dword [esi], eax
xorps xmm0, xmm0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x1003eda4]
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x18], 0
mov byte [ebp - 0x16], 0
cmp dword [eax], 0
jne 0x10006550
mov esi, dword [0x1003edbc]
push 1
call fcn.1000b7ba
mov eax, dword [esi + 0xd4]
call eax
push eax
push 0x4e21
call fcn.10001200
mov esi, dword [0x1003edbc]
push 1
call fcn.1000b7ba
mov eax, dword [esi + 0xd4]
call eax
push eax
push 0x4e24
jmp 0x100065c5
mov ecx, dword [ebp - 0x10]
call fcn.10005910
test al, al
jne 0x10006579
mov esi, dword [0x1003edbc]
push 1
call fcn.1000b7ba
mov eax, dword [esi + 0xd4]
call eax
push eax
push 0x4e25
jmp 0x100065c5
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [0x1003edbc]
push 1
call fcn.1000b7ba
mov eax, dword [esi + 0xd4]
call eax
push eax
push 0x4e23
jmp 0x100065c5
mov esi, dword [0x1003edbc]
push 1
call fcn.1000b7ba
mov eax, dword [esi + 0xd4]
call eax
push eax
push 0x4e22
call fcn.10001200
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret