Function at 0x1800e7160
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r14, rdx
mov rsi, rcx
cmp byte [rdx + 8], 0
mov r13, qword [rdx]
je 0x1800e73fd
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.kernel32.dll_CreateIoCompletionPort]
test rax, rax
je 0x1800e747c
mov rdi, rax
movzx eax, byte [0x180168bb8]
mov rcx, qword [0x180168b78]
test rcx, rcx
jne 0x1800e71d3
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800e78ee
mov rcx, rax
mov qword [0x180168b78], rax
mov r8d, 0x18
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800e78ee
mov rbx, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rdi
lock inc qword [rax]
jle 0x1800e78d9
movzx eax, byte [0x180168bb8]
mov rcx, qword [0x180168b78]
test rcx, rcx
jne 0x1800e7236
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800e78c3
mov rcx, rax
mov qword [0x180168b78], rax
mov r8d, 0x80
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800e78c3
mov rdi, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], 0
mov byte [rax + 0x28], 0
mov qword [rax + 0x30], 8
xorps xmm0, xmm0
movups xmmword [rax + 0x38], xmm0
movups xmmword [rax + 0x41], xmm0
mov qword [rax + 0x58], 8
movups xmmword [rax + 0x60], xmm0
movups xmmword [rax + 0x69], xmm0
lock inc qword [rbx]
jle 0x1800e78d9
mov rbp, qword [rdi + 0x10]
lock inc qword [rdi]
jle 0x1800e78d9
test r13, r13
je 0x1800e7499
xor r15d, r15d
mov rax, r13
shr rax, 0x3a
sete al
jne 0x1800e78d9
mov r12, r13
shl r12, 5
mov r15b, al
shl r15, 3
test r12, r12
je 0x1800e78b2
movzx eax, byte [0x180168bb8]
mov rcx, qword [0x180168b78]
test rcx, rcx
jne 0x1800e730d
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800e78be
mov rcx, rax
mov qword [0x180168b78], rax
xor edx, edx
mov r8, r12
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov rbx, rax
test rbx, rbx
je 0x1800e78be
cmp r13, 2
jb 0x1800e74aa
lea rdx, [r13 - 1]
lea r8, [r13 - 2]
mov eax, edx
and eax, 7
mov rcx, rbx
cmp r8, 7
jb 0x1800e73b4
and rdx, 0xfffffffffffffff8
xorps xmm0, xmm0
mov rcx, rbx
nop
movups xmmword [rcx + 0xc], xmm0
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x2c], xmm0
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x4c], xmm0
movups xmmword [rcx + 0x60], xmm0
movups xmmword [rcx + 0x6c], xmm0
movups xmmword [rcx + 0x80], xmm0
movups xmmword [rcx + 0x8c], xmm0
movups xmmword [rcx + 0xa0], xmm0
movups xmmword [rcx + 0xac], xmm0
movups xmmword [rcx + 0xc0], xmm0
movups xmmword [rcx + 0xcc], xmm0
movups xmmword [rcx + 0xec], xmm0
movups xmmword [rcx + 0xe0], xmm0
add rcx, 0x100
add rdx, 0xfffffffffffffff8
jne 0x1800e7350
test rax, rax
je 0x1800e73d0
xorps xmm0, xmm0
nop dword [rax]
movups xmmword [rcx + 0xc], xmm0
movups xmmword [rcx], xmm0
add rcx, 0x20
dec rax
jne 0x1800e73c0
xorps xmm0, xmm0
movups xmmword [rcx + 0xc], xmm0
movups xmmword [rcx], xmm0
mov r12, r13
shl r12, 4
movzx eax, byte [0x180168bb8]
mov rcx, qword [0x180168b78]
test rcx, rcx
jne 0x1800e74e6
jmp 0x1800e74cd
movzx eax, byte [0x180168bb8]
mov rcx, qword [0x180168b78]
test rcx, rcx
jne 0x1800e7429
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800e78ff
mov rcx, rax
mov qword [0x180168b78], rax
mov r8d, 0x30
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800e78ff
mov rbx, rax
mov qword [rax], 1
mov qword [rax + 8], 1
mov qword [rax + 0x10], 0
mov byte [rax + 0x18], 0
xorps xmm0, xmm0
movups xmmword [rax + 0x20], xmm0
lock inc qword [rax]
jle 0x1800e78d9
xor edi, edi
mov r8b, 2
mov rbp, rbx
jmp 0x1800e755f
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 2
jmp 0x1800e789e
mov ebx, 8
mov eax, 8
mov qword [rsp + 0x58], rax
jmp 0x1800e74ff
xorps xmm0, xmm0
movups xmmword [rbx + 0xc], xmm0
movups xmmword [rbx], xmm0
mov r12d, 0x10
movzx eax, byte [0x180168bb8]
mov rcx, qword [0x180168b78]
test rcx, rcx
jne 0x1800e74e6
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800e7910
mov rcx, rax
mov qword [0x180168b78], rax
xor edx, edx
mov r8, r12
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1800e7910
movzx eax, byte [0x180168bb8]
mov rcx, qword [0x180168b78]
test rcx, rcx
jne 0x1800e752b
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800e78c3
mov rcx, rax
mov qword [0x180168b78], rax
mov r8d, 0x80
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800e78c3
mov rdx, rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x70], 0
movaps xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x40], 0
xor r8d, r8d
movzx eax, byte [rsp + 0x70]
mov byte [rsp + 0xa0], al
movaps xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x90], xmm0
movaps xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0xb0], xmm0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xc0], rax
cmp byte [r14 + 9], 0
mov qword [rsp + 0x88], rbp
je 0x1800e7626
mov dword [rsp + 0x2c], r8d
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.kernel32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1800e78d4
mov r14, qword [rsp + 0x30]
mov rcx, qword [0x180168b90]
test rcx, rcx
jne 0x1800e7610
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1800e78d4
mov rcx, qword [rsp + 0x30]
mov qword [0x180168b90], rcx
test rcx, rcx
je 0x1800e78d9
mov rax, r14
or rax, rcx
shr rax, 0x20
je 0x1800e763a
mov rax, r14
xor edx, edx
div rcx
jmp 0x1800e7641
mov r15, r13
mov r12d, 1
mov r14d, 0x3b9aca00
jmp 0x1800e77a4
mov eax, r14d
xor edx, edx
div ecx
imul r8, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
mov rdx, rax
or rdx, rcx
mov r15, r13
shr rdx, 0x20
je 0x1800e7668
xor edx, edx
div rcx
mov r14, rax
jmp 0x1800e766f
xor edx, edx
div ecx
mov r14d, eax
add r14, r8
mov rax, r14
shr rax, 9
movabs rcx, 0x44b82fa09b5a53
mul rcx
mov r13, rdx
movzx eax, byte [0x180168bb8]
mov rcx, qword [0x180168b78]
test rcx, rcx
jne 0x1800e76b5
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800e78dd
mov rcx, rax
mov qword [0x180168b78], rax
mov r8d, 0x1860
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800e78dd
mov rbp, rax
shr r13, 0xb
imul eax, r13d, 0x3b9aca00
sub r14d, eax
xor r12d, r12d
mov r8d, 0x810
mov rcx, rbp
xor edx, edx
call fcn.1800f6c80
mov qword [rbp + 0x810], 1
lea rcx, [rbp + 0x818]
mov r8d, 0x408
xor edx, edx
call fcn.1800f6c80
mov qword [rbp + 0xc20], 2
lea rcx, [rbp + 0xc28]
mov r8d, 0x408
xor edx, edx
call fcn.1800f6c80
mov qword [rbp + 0x1030], 3
lea rcx, [rbp + 0x1038]
mov r8d, 0x408
xor edx, edx
call fcn.1800f6c80
mov qword [rbp + 0x1440], 4
mov rcx, rbp
add rcx, 0x1448
mov r8d, 0x408
xor edx, edx
call fcn.1800f6c80
mov qword [rbp + 0x1850], 5
mov qword [rbp + 0x1858], 0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x50], 0
mov rdx, qword [rsp + 0x80]
mov r8d, dword [rsp + 0x2c]
mov qword [rsi + 0x10], r15
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x20], r15
mov qword [rsi + 0x28], 0
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x63]
mov dword [rsi + 0x3c], ecx
mov dword [rsi + 0x39], eax
movzx eax, byte [rsp + 0x50]
mov byte [rsi + 0xe8], al
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movups xmmword [rsi + 0xd8], xmm1
movups xmmword [rsi + 0xc8], xmm0
movzx eax, byte [rsp + 0xa0]
mov byte [rsi + 0x68], al
movaps xmm0, xmmword [rsp + 0x90]
movups xmmword [rsi + 0x58], xmm0
mov rax, qword [rsp + 0xc0]
mov qword [rsi + 0x98], rax
movaps xmm0, xmmword [rsp + 0xb0]
movups xmmword [rsi + 0x88], xmm0
mov qword [rsi], r12
mov qword [rsi + 8], rbx
mov qword [rsi + 0x30], rdi
mov byte [rsi + 0x38], r8b
mov qword [rsi + 0x40], rdi
mov rax, qword [rsp + 0x88]
mov qword [rsi + 0x48], rax
mov qword [rsi + 0x50], 0
mov qword [rsi + 0x70], rdx
mov qword [rsi + 0x78], 0x10
mov qword [rsi + 0x80], 0
mov qword [rsi + 0xa0], 0
mov byte [rsi + 0xa8], 0
mov qword [rsi + 0xb0], rbp
mov qword [rsi + 0xb8], 6
mov qword [rsi + 0xc0], 6
mov qword [rsi + 0xf0], r13
mov dword [rsi + 0xf8], r14d
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, r15
test rbx, rbx
jne 0x1800e7324
mov rcx, r15
jmp 0x1800e7915
mov ecx, 8
mov edx, 0x80
call fcn.180103b10
ud2
call sub.kernel32.dll_GetLastError
ud2
mov ecx, 8
mov edx, 0x1860
call fcn.180103b10
ud2
mov ecx, 8
mov edx, 0x18
call fcn.180103b10
ud2
mov ecx, 8
mov edx, 0x30
call fcn.180103b10
ud2
mov ecx, 8
mov rdx, r12
call fcn.180103b10
ud2