Function at 0x18000f450
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 [0x1800546d8]
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 + 0x54], eax
cmp dword [rsp + 0x758], 1
jb 0x18000f4c1
cmp dword [rsp + 0x758], 0x1000
jbe 0x18000f4d5
mov ecx, 0x57
call sub.KERNEL32.dll_SetLastError
jmp 0x18000f711
mov r9, qword [rsp + 0x760]
mov r8d, dword [rsp + 0x758]
mov edx, dword [rsp + 0x750]
lea rcx, [rsp + 0x68]
call fcn.18000bee0
test eax, eax
jne 0x18000f504
jmp 0x18000f711
cmp dword [rsp + 0x54], 0
je 0x18000f517
mov eax, dword [rsp + 0x54]
cmp rax, 0x104
jb 0x18000f521
jmp 0x18000f711
lea r8, str._syswow64_rundll32.exe
mov edx, 0x104
lea rcx, [rsp + 0x100]
call fcn.18000cbf0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x18000f54f
jmp 0x18000f711
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 + 0x310]
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 + 0x58], eax
movsxd rax, dword [rsp + 0x58]
cmp rax, 0x104
jae 0x18000f5a1
cmp dword [rsp + 0x58], 0
jg 0x18000f5ab
jmp 0x18000f711
lea r9, [rsp + 0x310]
lea r8, str.rundll32.exe___s__1
mov edx, 0x104
lea rcx, [rsp + 0x520]
call fcn.18000cdf0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x18000f5e1
jmp 0x18000f711
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.1800151c0
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.1800151c0
mov dword [rsp + 0x90], 0x68
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 + 0x520]
lea rcx, [rsp + 0x100]
call qword [rsp + 0x768]
test eax, eax
je 0x18000f711
mov rax, qword [rsp + 0x68]
mov r9d, dword [rax]
mov r8, qword [rsp + 0x68]
lea rdx, [0x18003ef20]
mov rcx, qword [rsp + 0x70]
call fcn.18000e550
test eax, eax
jne 0x18000f6ba
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 0x18000f711
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 + 0x5c], 0x1f4
lea rdx, [rsp + 0x5c]
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 + 0x5c], 0
je 0x18000f709
jmp 0x18000f711
mov dword [rsp + 0x60], 1
lea rcx, [rsp + 0x68]
call fcn.18000c580
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x730]
xor rcx, rsp
call fcn.180012ac0
add rsp, 0x748
ret