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

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x14007d080]
xor rax, rsp
mov qword [rbp + 0x200], rax
xor ebx, ebx
lea eax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rsi, r9
cmp eax, 0xfff
ja 0x14006935b
mov r9, r8
mov qword [rsp + 0x330], rdi
mov r8d, edx
mov edx, ecx
lea rcx, [rsp + 0x50]
call fcn.14006a730
mov rdi, qword [rsp + 0x50]
test eax, eax
je 0x14006932a
mov r8d, 0x104
lea rdx, [rbp - 0x20]
lea rcx, str.WINDIR
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
dec eax
cmp eax, 0x102
ja 0x14006932a
mov ecx, 0x104
lea rax, [rbp - 0x20]
cmp byte [rax], bl
je 0x14006918d
inc rax
sub rcx, 1
jne 0x140069180
mov eax, 0x104
sub rax, rcx
test rcx, rcx
cmove rax, rbx
je 0x14006932a
mov r8d, 0x104
lea rcx, [rbp - 0x20]
lea rcx, [rcx + rax]
sub r8, rax
je 0x1400691e0
lea r9, str._syswow64_rundll32.exe
mov eax, 0x7ffffffe
sub r9, rcx
test rax, rax
je 0x1400691e0
movzx edx, byte [r9 + rcx]
test dl, dl
je 0x1400691e0
mov byte [rcx], dl
dec rax
inc rcx
sub r8, 1
jne 0x1400691c4
test r8, r8
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], bl
je 0x14006932a
lea r9, [rdi + 0xc]
mov edx, 0x104
lea r8, str.rundll32.exe___hs__1
lea rcx, [rbp + 0xf0]
call fcn.140068ec0
test eax, eax
js 0x14006932a
xorps xmm1, xmm1
mov dword [rsp + 0x70], 0x68
xor eax, eax
lea rdx, [rbp + 0xf0]
mov qword [rsp + 0x68], rax
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x2c], eax
xorps xmm0, xmm0
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], ebx
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x74], xmm1
movups xmmword [rbp - 0x7c], xmm1
movups xmmword [rbp - 0x6c], xmm1
movups xmmword [rbp - 0x5c], xmm1
movups xmmword [rbp - 0x4c], xmm1
movups xmmword [rbp - 0x3c], xmm1
call rsi
test eax, eax
je 0x14006932a
mov r9d, dword [rdi]
lea rdx, [0x140078508]
mov rcx, qword [rsp + 0x58]
mov r8, rdi
call fcn.1400697a0
test eax, eax
jne 0x1400692d5
mov rcx, qword [rsp + 0x58]
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x14006932a
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.kernel32.dll_ResumeThread]
mov rcx, qword [rsp + 0x58]
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x1f4
call qword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [rsp + 0x50], ebx
mov eax, 1
cmove ebx, eax
test rdi, rdi
je 0x140069337
mov rcx, rdi
call fcn.14006aa38
mov rdi, qword [rsp + 0x330]
mov eax, ebx
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14006ab80
add rsp, 0x310
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x57
call qword [sym.imp.kernel32.dll_SetLastError]
mov eax, ebx
jmp 0x140069341