Function at 0x1400d03f8
Capabilities:
Create thread
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x14033f038]
xor rax, rsp
mov qword [rsp + 0xc8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x90]
mov qword [rcx], rax
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400d0870
mov rcx, qword [rsp + 0x90]
movaps xmm0, xmmword [0x140301d60]
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
mov eax, 0x10
lea rbx, [0x1402fd450]
mov qword [rsp + rax + 0x80], rbx
mov qword [rsp + rax + 0x88], 0
mov byte [rsp + rax + 0x90], 0
add rax, 0x18
cmp rax, 0x40
jne 0x1400d0485
mov qword [rsp + 0x38], rcx
lea rax, [rsi + 0x50]
mov qword [rsp + 0x40], rax
lea rdi, [rsi + 0x48]
mov bpl, 1
xor r15d, r15d
lea r12, [rsp + 0x58]
mov r13, qword [rsi + 0x38]
cmp r13, 0xffffffffffffffff
jne 0x1400d04ed
mov edx, ebp
and dl, 1
mov rcx, rsi
call fcn.1400d0b91
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x1400d04f5
jmp 0x1400d0873
mov qword [rsi + 0x38], 0xffffffffffffffff
mov ecx, 0x40
call fcn.14016ecd4
mov rcx, qword [rsi + 0x20]
mov qword [rax], rcx
mov qword [rax + 8], rbx
mov qword [rax + 0x10], r13
mov byte [rax + 0x18], 0
mov qword [rax + 0x20], r14
mov qword [rax + 0x28], rdi
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x30], rcx
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x38], rcx
lea rcx, [r15 + r15*2]
lea r13, [rsp + rcx*8]
add r13, 0x90
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
lea r8, [0x140107e40]
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x58], rax
mov rcx, r13
mov rdx, r12
call fcn.1400d0b4c
cmp qword [r13 + 8], 0
je 0x1400d0817
mov r15d, 1
test bpl, 1
mov ebp, 0
jne 0x1400d04c8
xor eax, eax
lea r9, [rsp + 0x58]
mov qword [r9], rax
lea r14, [rsp + 0x48]
mov qword [r14], rax
lea rdx, [rsp + 0x8c]
mov dword [rdx], 0
mov rcx, qword [rsi + 0x20]
mov dword [rsp + 0x20], 0xffffffff
mov r8, r14
call qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov rbp, qword [r14]
test rbp, rbp
je 0x1400d0684
mov rbx, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
lea r14, [rsp + 0x80]
xor r15d, r15d
lea r13, [rsp + 0x58]
mov r12, qword [sym.imp.KERNEL32.dll_GetQueuedCompletionStatus]
mov qword [rsp + 0x80], rbp
mov rcx, rdi
call rbx
test al, al
je 0x1400d080a
mov rcx, qword [rsp + 0x40]
mov rdx, r14
call fcn.1400d08e2
mov rcx, rbp
call fcn.1400d09de
mov rcx, rbp
call fcn.14016eccc
cmp byte [rsi + 0x68], 0
jne 0x1400d062e
cmp qword [rsi + 0x60], 0
je 0x1400d067b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x8c], 0
mov rcx, qword [rsi + 0x20]
mov dword [rsp + 0x20], 0xffffffff
lea rdx, [rsp + 0x8c]
lea r8, [rsp + 0x48]
mov r9, r13
call r12
mov rbp, qword [rsp + 0x48]
test rbp, rbp
jne 0x1400d05ef
jmp 0x1400d0684
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov bpl, 1
lea r15, [rsp + 0x64]
xorps xmm6, xmm6
lea rbx, [rsp + 0x58]
lea r14, [rsp + 0x48]
movabs r12, 0xaaaaaaaaaaaaaaaa
mov r13, qword [rsp + 0x38]
movups xmmword [r15], xmm6
mov qword [r15 + 0x10], 0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x5c], r13
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], 0xaaaaaaaa
mov rcx, rsi
mov rdx, rbx
mov r8, r14
call fcn.1400d0c6e
test bpl, 1
mov ebp, 0
jne 0x1400d06a8
mov ebx, 8
mov r14, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + rbx + 0x90]
mov edx, 0xffffffff
call r14
add rbx, 0x18
cmp rbx, 0x38
jne 0x1400d06f3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400d08d0
mov r15, qword [rsi + 0x50]
lea r14, [rsi + 0x58]
cmp r15, r14
lea rbx, [0x1402fd450]
jne 0x1400d07bb
mov rcx, qword [rsi + 0x58]
call fcn.1400e6310
mov qword [rsi + 0x50], r14
xorps xmm0, xmm0
movups xmmword [rsi + 0x58], xmm0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov esi, 0x30
mov qword [rsp + rsi + 0x78], rbx
cmp byte [rsp + rsi + 0x88], 0
jne 0x1400d086d
mov rcx, qword [rsp + rsi + 0x80]
test rcx, rcx
je 0x1400d0789
call fcn.1400d0a94
mov qword [rsp + rsi + 0x80], 0
add rsi, 0xffffffffffffffe8
jne 0x1400d0758
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140171860
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [r15 + 0x20]
test rbx, rbx
je 0x1400d07d4
mov rcx, rbx
call fcn.1400d09de
mov rcx, rbx
call fcn.14016eccc
test r15, r15
je 0x1400d08dd
mov rcx, qword [r15 + 8]
test rcx, rcx
jne 0x1400d07f4
mov rax, qword [r15 + 0x10]
cmp qword [rax], r15
mov r15, rax
je 0x1400d07ff
jmp 0x1400d07e6
mov rax, rcx
mov rcx, qword [rcx]
test rcx, rcx
jne 0x1400d07f4
mov r15, rax
cmp rax, r14
jmp 0x1400d0729
mov rcx, rdi
call fcn.140047ff0
jmp 0x1400d0604
lea rdx, [0x140319be8]
lea r9, [0x1403026a4]
lea r13, [rsp + 0x58]
mov rcx, r13
mov r8d, 0x14a
call fcn.1402264d0
lea rdx, [0x140319c70]
mov rcx, r13
call fcn.14021ab94
mov rcx, qword [r13]
test rcx, rcx
je 0x1400d0861
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x140211850.0]
lea rbx, [0x1402fd450]
jmp 0x1400d057b
int3
int3
lea rdx, [0x140319be8]
lea r9, [0x1403026a4]
lea r13, [rsp + 0x58]
mov rcx, r13
mov r8d, 0x13b
call fcn.1402264d0
lea rdx, str.CreateNamedPipe
mov rcx, r13
call fcn.14021ab94
mov rcx, qword [r13]
test rcx, rcx
je 0x1400d08bd
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x140211850.0]
mov r13, 0xffffffffffffffff
lea rbx, [0x1402fd450]
jmp 0x1400d04f5
mov rcx, rdi
call fcn.140047ff0
jmp 0x1400d071e
int3