Function at 0x1400e5810
Capabilities:
Create thread
Get windows directory from kuser_shared_data
Inject dll
Inject thread

Disassembly:
mov qword [rsp + 0x18], r8
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
mov rsi, r8
mov r15, rdx
xor r14d, r14d
lea r8, [rbp - 0x21]
mov edx, 0x1a
mov qword [rbp - 0x39], r14
mov r9d, 8
mov qword [rsp + 0x20], r14
mov r13, rcx
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov rbx, 0xffffffffffffffff
test eax, eax
js 0x1400e5aaf
cmp qword [rbp - 0x21], r14
je 0x1400e5aaf
lea rax, [rbp - 9]
mov rcx, r15
lea r9, [rbp - 0x11]
mov qword [rsp + 0x20], rax
call fcn.14010dd90
mov edi, eax
test eax, eax
js 0x1400e58b4
mov r8, qword [rbp - 9]
lea rcx, [rbp - 0x11]
mov rdx, qword [rbp - 0x11]
call fcn.14010dc80
mov edi, eax
test eax, eax
jns 0x1400e58b4
mov rdx, qword [rbp - 0x11]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, edi
jmp 0x1400e5c3b
test edi, edi
jns 0x1400e58bf
mov eax, edi
jmp 0x1400e5c3b
mov rdx, qword [rbp - 0x11]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, 0x10b
cmp word [rbp + 0x17], ax
jne 0x1400e5aaf
mov rdi, qword [0x140190280]
test rdi, rdi
jne 0x1400e5ad9
movzx r8d, byte [0x14018dbaa]
mov qword [rsp + 0xf0], r12
mov r12d, 0x7ffe0030
cmp r8b, 1
jb 0x1400e595c
xorps xmm0, xmm0
mov ecx, r12d
pcmpeqw xmm0, xmmword [r12]
xorps xmm1, xmm1
pmovmskb eax, xmm0
bsf edx, eax
mov dword [rbp + 0x7f], edx
jne 0x1400e5948
nop dword [rax]
nop word [rax + rax]
add rcx, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rcx]
pmovmskb eax, xmm0
bsf edx, eax
mov dword [rbp + 0x7f], edx
je 0x1400e5930
add rcx, 0xffffffff8001ffd0
mov eax, edx
sar rcx, 1
shr rax, 1
add rcx, rax
jmp 0x1400e596a
mov rcx, rbx
nop
inc rcx
cmp word [r12 + rcx*2], r14w
jne 0x1400e5960
lea rdx, [rcx + rcx]
mov qword [rbp - 0x19], rdx
lea r9, str.SysWow64kernel32.dll
cmp r8b, 1
jb 0x1400e59f8
mov rsi, r9
mov rcx, r9
and rsi, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x1400e59b1
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rsi]
pmovmskb eax, xmm0
sar eax, cl
bsf ecx, eax
mov dword [rbp + 0x7f], ecx
je 0x1400e59ad
mov esi, ecx
shr rsi, 1
jmp 0x1400e59fd
add rsi, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rsi]
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rbp + 0x7f], ecx
jne 0x1400e59e8
nop dword [rax]
nop dword [rax + rax]
add rsi, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rsi]
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rbp + 0x7f], ecx
je 0x1400e59d0
sub rsi, r9
mov eax, ecx
sar rsi, 1
shr rax, 1
add rsi, rax
jmp 0x1400e59fd
mov esi, 0x16
add rsi, rsi
lea rdi, [rsi + rdx]
mov rdx, qword [0x140191180]
lea rcx, [rdi + 0x12]
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhCreateObject
mov r8, qword [rbp - 0x19]
mov r14, rax
mov rdx, r12
lea rcx, [rax + 0x10]
mov qword [rax], rdi
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + rdi], ax
mov rcx, qword [r14 + 8]
call fcn.1401317c0
mov rcx, qword [r14 + 8]
lea rdx, str.SysWow64kernel32.dll
add rcx, qword [rbp - 0x19]
mov r8, rsi
call fcn.1401317c0
mov rdx, qword [r14 + 8]
lea r8, [0x140166f28]
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov rcx, r13
lea rax, [0x140190280]
mov qword [rsp + 0x20], rax
call sym.4yUlCM3HuVsHzW5CaCX.exe_PhGetProcedureAddressRemote
mov edi, eax
lea rcx, [r14 - 0x10]
mov edx, ebx
lock xadd dword [rcx + 8], edx
mov r12, qword [rsp + 0xf0]
cmp edx, 1
jne 0x1400e5a97
call fcn.1400d9400
test edi, edi
js 0x1400e58b8
mov rdi, qword [0x140190280]
xor r14d, r14d
mov rsi, qword [rbp + 0x77]
jmp 0x1400e5ad9
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400e5ad6
lea rdx, [0x140166f28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
jmp 0x1400e5ad9
mov rdi, r14
cmp byte [0x14018dbaa], 1
jb 0x1400e5b55
mov rbx, r15
mov ecx, r15d
and rbx, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x1400e5b11
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rbx]
pmovmskb eax, xmm0
sar eax, cl
bsf ecx, eax
je 0x1400e5b0d
mov ebx, ecx
shr rbx, 1
jmp 0x1400e5b60
add rbx, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rbx]
pmovmskb eax, xmm0
bsf ecx, eax
jne 0x1400e5b45
nop dword [rax]
nop word [rax + rax]
add rbx, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rbx]
pmovmskb eax, xmm0
bsf ecx, eax
je 0x1400e5b30
sub rbx, r15
mov eax, ecx
sar rbx, 1
shr rax, 1
add rbx, rax
jmp 0x1400e5b60
inc rbx
cmp word [r15 + rbx*2], 0
jne 0x1400e5b55
lea rbx, [rbx*2 + 2]
mov dword [rsp + 0x28], 4
lea r9, [rbp - 0x29]
mov qword [rbp - 0x29], rbx
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rbp - 0x39]
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
js 0x1400e5c3b
mov rdx, qword [rbp - 0x39]
mov r9, rbx
mov r8, r15
mov qword [rsp + 0x20], r14
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
mov ebx, eax
test eax, eax
js 0x1400e5c1e
xor edx, edx
mov rcx, r13
cmp dword [sym.4yUlCM3HuVsHzW5CaCX.exe_WindowsVersion], 0x3c
jb 0x1400e5c4d
mov qword [rsp + 0x48], r14
lea rax, [rbp - 0x31]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov rax, qword [rbp - 0x39]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
mov ebx, eax
test eax, eax
js 0x1400e5c1e
mov rax, qword [rbp - 0x31]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.ntdll.dll_NtWaitForSingleObject]
mov rcx, qword [rbp - 0x31]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
mov r9d, 0x8000
mov qword [rbp - 0x29], r14
lea r8, [rbp - 0x29]
mov rcx, r13
lea rdx, [rbp - 0x39]
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
mov eax, ebx
add rsp, 0xb0
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rax, qword [rbp - 0x39]
mov r9, rdi
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp - 0x31], rax
test rax, rax
jne 0x1400e5c04
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jle 0x1400e5c1e
movzx ebx, ax
or ebx, 0xc0070000
jmp 0x1400e5c1e