Function at 0x18000fc50
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x748
mov rax, qword [0x1800530b8]
xor rax, rsp
mov qword [rsp + 0x730], rax
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov r8d, 0x104
lea rdx, [rsp + 0x100]
lea rcx, str.WINDIR
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov dword [rsp + 0x58], eax
mov r8d, dword [rsp + 0x758]
mov edx, dword [rsp + 0x750]
lea rcx, str.DetourProcessViaHelperDlls_pid_lu_dlls_lu__n
call fcn.18000bf90
cmp dword [rsp + 0x758], 1
jb 0x18000fcdc
cmp dword [rsp + 0x758], 0x1000
jbe 0x18000fcf0
mov ecx, 0x57
call sub.KERNEL32.dll_SetLastError
jmp 0x18000ff80
mov r9, qword [rsp + 0x760]
mov r8d, dword [rsp + 0x758]
mov edx, dword [rsp + 0x750]
lea rcx, [rsp + 0x68]
call fcn.18000bff0
test eax, eax
jne 0x18000fd1f
jmp 0x18000ff80
cmp dword [rsp + 0x58], 0
je 0x18000fd32
mov eax, dword [rsp + 0x58]
cmp rax, 0x104
jb 0x18000fd3c
jmp 0x18000ff80
lea r8, str._syswow64_rundll32.exe
mov edx, 0x104
lea rcx, [rsp + 0x100]
call fcn.18000cfd0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x18000fd6a
jmp 0x18000ff80
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x68]
lea rax, [rcx + rax + 0xc]
mov dword [rsp + 0x28], 0x104
lea rcx, [rsp + 0x520]
mov qword [rsp + 0x20], rcx
mov r9d, 0xffffffff
mov r8, rax
xor edx, edx
xor ecx, ecx
call sub.KERNEL32.dll_MultiByteToWideChar
mov dword [rsp + 0x5c], eax
movsxd rax, dword [rsp + 0x5c]
cmp rax, 0x104
jae 0x18000fdbc
cmp dword [rsp + 0x5c], 0
jg 0x18000fdc6
jmp 0x18000ff80
lea r9, [rsp + 0x520]
lea r8, str.rundll32.exe___s__1
mov edx, 0x104
lea rcx, [rsp + 0x310]
call fcn.18000d1d0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x18000fdfc
jmp 0x18000ff80
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.180015b40
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.180015b40
mov dword [rsp + 0x90], 0x68
lea r8, [rsp + 0x310]
lea rdx, [rsp + 0x100]
lea rcx, str.DetourProcessViaHelperDlls___ls_____ls___n
call fcn.18000bf90
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x310]
lea rcx, [rsp + 0x100]
call qword [rsp + 0x768]
test eax, eax
je 0x18000ff6d
mov rax, qword [rsp + 0x68]
mov r9d, dword [rax]
mov r8, qword [rsp + 0x68]
lea rdx, [0x18003d1d0]
mov rcx, qword [rsp + 0x70]
call fcn.18000ee10
test eax, eax
jne 0x18000ff04
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea rcx, str.DetourCopyPayloadToProcess_failed:__lu_n
call fcn.18000bf90
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x70]
call sub.KERNEL32.dll_TerminateProcess
mov rcx, qword [rsp + 0x70]
call sub.KERNEL32.dll_CloseHandle
mov rcx, qword [rsp + 0x78]
call sub.KERNEL32.dll_CloseHandle
jmp 0x18000ff80
mov rcx, qword [rsp + 0x78]
call sub.KERNEL32.dll_ResumeThread
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x70]
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [rsp + 0x54], 0x1f4
lea rdx, [rsp + 0x54]
mov rcx, qword [rsp + 0x70]
call sub.KERNEL32.dll_GetExitCodeProcess
mov rcx, qword [rsp + 0x70]
call sub.KERNEL32.dll_CloseHandle
mov rcx, qword [rsp + 0x78]
call sub.KERNEL32.dll_CloseHandle
cmp dword [rsp + 0x54], 0
je 0x18000ff63
mov edx, dword [rsp + 0x54]
lea rcx, str.Rundll32.exe_failed:_result_lu_n
call fcn.18000bf90
jmp 0x18000ff80
mov dword [rsp + 0x60], 1
jmp 0x18000ff80
call sub.KERNEL32.dll_GetLastError
mov edx, eax
lea rcx, str.CreateProcess_failed:__lu_n
call fcn.18000bf90
lea rcx, [rsp + 0x68]
call fcn.18000c740
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x730]
xor rcx, rsp
call fcn.180013440
add rsp, 0x748
ret