Function at 0x1400e5c90
Capabilities:
Create thread
Get windows directory from kuser_shared_data

Disassembly:
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0xd8
mov rsi, r8
mov r12, rdx
xor r14d, r14d
lea r8, [rbp - 0x51]
mov edx, 0x1a
mov qword [rsp + 0x20], r14
mov r9d, 8
mov r15, rcx
xor dil, dil
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400e5cdf
cmp qword [rbp - 0x51], r14
setne dil
cmp dword [sym.4yUlCM3HuVsHzW5CaCX.exe_WindowsVersion], 0x3e
mov qword [rsp + 0x110], rbx
jae 0x1400e5f47
lea r8, [rbp - 0x41]
mov dword [rbp - 0x41], 0xc0000135
lea rdx, [0x1400e8200]
mov qword [rbp - 0x39], r12
mov rcx, r15
mov dword [rbp - 0x31], 1
call fcn.1400e7df0
mov ebx, dword [rbp - 0x41]
test eax, eax
cmovs ebx, eax
test dil, dil
je 0x1400e5f3d
cmp ebx, 0xc0000135
jne 0x1400e5f3d
lea r8, [rbp - 0x29]
mov dword [rbp - 0x29], ebx
lea rdx, [0x1400e8780]
mov qword [rbp - 0x21], r12
mov rcx, r15
mov dword [rbp - 0x19], 1
call fcn.1400e8250
mov ebx, eax
test eax, eax
js 0x1400e6033
mov ebx, dword [rbp - 0x29]
test ebx, ebx
js 0x1400e6033
mov rax, qword [0x1401902b0]
test rax, rax
jne 0x1400e5f71
movzx r8d, byte [0x14018dbaa]
mov r14d, 0x7ffe0030
mov qword [rsp + 0xd0], r13
mov r13, 0xffffffffffffffff
cmp r8b, 1
jb 0x1400e5dec
xorps xmm0, xmm0
mov ecx, r14d
pcmpeqw xmm0, xmmword [r14]
xorps xmm1, xmm1
pmovmskb eax, xmm0
bsf edx, eax
mov dword [rbp + 0x7f], edx
jne 0x1400e5dd8
nop dword [rax]
add rcx, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rcx]
pmovmskb eax, xmm0
bsf edx, eax
mov dword [rbp + 0x7f], edx
je 0x1400e5dc0
add rcx, 0xffffffff8001ffd0
mov eax, edx
sar rcx, 1
shr rax, 1
add rcx, rax
jmp 0x1400e5dfb
mov rcx, r13
nop
inc rcx
cmp word [r14 + rcx*2], 0
jne 0x1400e5df0
lea rdx, [rcx + rcx]
mov qword [rbp - 0x49], rdx
lea r9, str.SysWow64_ntdll.dll
cmp r8b, 1
jb 0x1400e5e88
mov rdi, r9
mov rcx, r9
and rdi, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x1400e5e42
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdi]
pmovmskb eax, xmm0
sar eax, cl
bsf ecx, eax
mov dword [rbp + 0x7f], ecx
je 0x1400e5e3e
mov edi, ecx
shr rdi, 1
jmp 0x1400e5e8d
add rdi, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdi]
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rbp + 0x7f], ecx
jne 0x1400e5e78
nop word [rax + rax]
add rdi, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rdi]
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rbp + 0x7f], ecx
je 0x1400e5e60
sub rdi, r9
mov eax, ecx
sar rdi, 1
shr rax, 1
add rdi, rax
jmp 0x1400e5e8d
mov edi, 0x13
add rdi, rdi
lea rbx, [rdi + rdx]
mov rdx, qword [0x140191180]
lea rcx, [rbx + 0x12]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhCreateObject
mov r8, qword [rbp - 0x49]
mov rsi, rax
mov rdx, r14
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + rbx], ax
mov rcx, qword [rsi + 8]
call fcn.1401317c0
mov rcx, qword [rsi + 8]
lea rdx, str.SysWow64_ntdll.dll
add rcx, qword [rbp - 0x49]
mov r8, rdi
call fcn.1401317c0
mov rdx, qword [rsi + 8]
lea rax, [0x1401902b0]
xor r14d, r14d
lea r8, [0x140166f68]
mov qword [rsp + 0x28], r14
xor r9d, r9d
mov rcx, r15
mov qword [rsp + 0x20], rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhGetProcedureAddressRemote
mov ebx, eax
lea rcx, [rsi - 0x10]
lock xadd dword [rcx + 8], r13d
cmp r13d, 1
mov r13, qword [rsp + 0xd0]
jne 0x1400e5f28
call fcn.1400d9400
test ebx, ebx
js 0x1400e6033
mov rax, qword [0x1401902b0]
mov rsi, qword [rbp + 0x77]
jmp 0x1400e5f71
test ebx, ebx
js 0x1400e6033
jmp 0x1400e5f4a
mov ebx, dword [rbp + 0x7f]
lea rcx, [0x140158a10]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400e5f6e
lea rdx, [0x140166f68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x1400e5f71
mov rax, r14
xor edx, edx
cmp dword [sym.4yUlCM3HuVsHzW5CaCX.exe_WindowsVersion], 0x3c
jb 0x1400e5fb1
mov qword [rsp + 0x48], r14
lea rcx, [rbp - 0x59]
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], r12
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov rcx, r15
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov ebx, eax
jmp 0x1400e5fed
mov qword [rsp + 0x30], r14
mov r9, rax
mov dword [rsp + 0x28], r14d
xor r8d, r8d
mov rcx, r15
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp - 0x59], rax
test rax, rax
jne 0x1400e5fed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400e5fed
movzx ebx, ax
or ebx, 0xc0070000
test ebx, ebx
js 0x1400e6033
mov rcx, qword [rbp - 0x59]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov ebx, eax
test eax, eax
jne 0x1400e6029
mov rcx, qword [rbp - 0x59]
lea r8, [rbp - 0x11]
mov r9d, 0x30
mov qword [rsp + 0x20], r14
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
mov ebx, eax
cmovns ebx, dword [rbp - 0x11]
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rbx, qword [rsp + 0x110]
add rsp, 0xd8
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret