Function at 0x180002388
Capabilities:
Create process on windows
Get windows directory from kuser_shared_data
Map section object

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x570]
sub rsp, 0x670
xor r14d, r14d
mov ebx, 0x1000
mov qword [rsp + 0x58], r14
mov qword [rbp + 0x5a8], r14
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], r14
cmp edx, 1
jne 0x18000271e
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea rdi, [rbp + 0x50]
mov esi, 0x100
lea rdx, [rbp + 0x50]
mov ecx, esi
rep stosb byte [rdi], al
mov ecx, 0x3066
call fcn.180001258
lea rdx, str.Sessions_
lea rcx, [rbp + 0x150]
call fcn.180001c10
lea rdx, [rbp + 0x150]
cmp word [rbp + 0x150], r14w
je 0x18000241d
add rdx, 2
cmp word [rdx], r14w
jne 0x180002413
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov ecx, dword [rcx + 0x2c0]
call fcn.1800010e8
lea rdx, str.BaseNamedObjects_
lea rcx, [rbp + 0x150]
call fcn.180001b64
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x150]
call fcn.180001b64
lea rdx, [rbp + 0x150]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x78], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x78], rax
lea r8, [rsp + 0x78]
mov qword [rbp - 0x80], r14
mov edx, 0xf001f
mov dword [rbp - 0x70], 0x40
lea rcx, [rsp + 0x58]
movdqu xmmword [rbp - 0x68], xmm0
call qword [sym.imp.ntdll.dll_NtOpenSection]
test eax, eax
js 0x18000271e
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x48], 4
lea r8, [rbp + 0x5a8]
mov dword [rsp + 0x40], 0x100000
xor r9d, r9d
mov dword [rsp + 0x38], 2
or rdx, 0xffffffffffffffff
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
js 0x180002713
mov r8, qword [rbp + 0x5a8]
test r8, r8
je 0x180002713
xor eax, eax
lea rdi, [rbp + 0x360]
mov ecx, 0x20a
add r8, 4
rep stosb byte [rdi], al
lea rcx, [rbp + 0x360]
call fcn.180001c70
xor eax, eax
lea rdi, [rbp + 0x50]
mov rcx, rsi
lea rdx, str.BaseNamedObjects_
rep stosb byte [rdi], al
lea rcx, [rbp + 0x150]
call fcn.180001c10
lea rdx, [rbp + 0x50]
mov ecx, 0x3166
call fcn.180001258
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x150]
call fcn.180001b64
lea rdx, [rbp + 0x150]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x78], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x78], rax
lea r8, [rsp + 0x78]
mov qword [rbp - 0x80], r14
mov edx, 2
mov dword [rbp - 0x70], 0x40
lea rcx, [rsp + 0x50]
movdqu xmmword [rbp - 0x68], xmm0
call qword [sym.imp.ntdll.dll_NtOpenEvent]
test eax, eax
js 0x180002702
xor eax, eax
lea rdi, [0x180008040]
mov ecx, 0x834
rep stosb byte [rdi], al
lea rcx, [0x180008040]
call fcn.18000144c
mov esi, eax
test eax, eax
je 0x180002602
cmp word [0x18000804c], r14w
lea rdi, [0x18000804c]
mov rcx, rdi
je 0x1800025f7
add rcx, 2
cmp word [rcx], r14w
jne 0x1800025ed
sub rcx, rdi
sar rcx, 1
lea ebx, [rcx + rcx]
jmp 0x180002608
mov rdi, r14
mov ebx, r14d
lea rdx, str.windir
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeStringEx]
test eax, eax
js 0x180002640
mov edx, 0x7ffe0030
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeStringEx]
test eax, eax
js 0x180002640
lea r8, [rbp - 0x58]
xor ecx, ecx
lea rdx, [rbp - 0x48]
call qword [sym.imp.ntdll.dll_RtlSetEnvironmentVariable]
mov edx, ebx
mov rcx, rdi
call fcn.180001778
test eax, eax
je 0x18000265b
mov rax, qword [rbp + 0x5a8]
mov dword [rax], 1
xor eax, eax
mov dword [rbp + 0x598], 0x32
lea rdi, [rbp - 0x20]
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 0x68]
mov ecx, edx
rep stosb byte [rdi], al
lea rax, [rbp - 0x38]
mov dword [rbp - 0x20], edx
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x598]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], rax
lea rcx, [rbp + 0x360]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1800026da
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x5a8]
or dword [rax], 2
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ntdll.dll_NtSetEvent]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
test esi, esi
je 0x180002702
lea rcx, [0x18000866a]
call fcn.1800015fc
mov rdx, qword [rbp + 0x5a8]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
lea r11, [rsp + 0x670]
mov eax, 1
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret