Function at 0x14004c420
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
movaps xmmword [rsp + 0x240], xmm6
mov rdi, r8
mov r12, rdx
mov r14, rcx
mov rax, qword [0x140134028]
xor rax, rsp
mov qword [rsp + 0x238], rax
cmp byte [r8 + 0x21], 0
jne 0x14004ca11
movabs r15, 0xaaaaaaaaaaaaaaaa
mov al, byte [0x140136040]
xor ebx, ebx
mov byte [rsp + 0x67], al
test al, 0x19
jne 0x14004ca70
mov qword [rsp + 0x88], r15
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], r15
lea rsi, [rsp + 0x1a0]
mov qword [rsi + 0x10], r15
movaps xmm6, xmmword [0x14011b1d0]
movaps xmmword [rsi], xmm6
lea rdx, str.LaunchProcess
lea r8, str....._baseprocesslaunch_win.cc
lea rbp, [rsp + 0x110]
mov rcx, rbp
mov r9d, 0x104
call fcn.14006cbc0
lea r8, [0x140146108]
mov rcx, rsi
mov rdx, rbp
call fcn.140053f90
xorps xmm0, xmm0
movaps xmmword [rsp + 0x220], xmm0
mov qword [rbp + 0x70], r15
movaps xmmword [rbp + 0x60], xmm6
movaps xmmword [rbp + 0x50], xmm6
movaps xmmword [rbp + 0x40], xmm6
movaps xmmword [rbp + 0x30], xmm6
movaps xmmword [rbp + 0x20], xmm6
movaps xmmword [rbp + 0x10], xmm6
movaps xmmword [rbp], xmm6
lea rcx, [rsp + 0x110]
call fcn.1400541e0
cmp byte [rdi + 0x72], 0
je 0x14004c52d
call fcn.1400770a0
xor ebx, ebx
cmp eax, 0x10
setge bl
mov qword [rsp + 0x70], r12
mov rax, qword [rdi + 0x28]
xor edx, edx
cmp rax, qword [rdi + 0x30]
setne dl
add edx, ebx
je 0x14004cad9
lea rcx, [rsp + 0x110]
call fcn.140054260
mov r13d, 0x80000
test al, al
je 0x14004c98c
mov qword [rsp + 0x68], r14
cmp byte [rdi + 0x72], 0
je 0x14004c5a4
call fcn.1400770a0
cmp eax, 0x10
jl 0x14004c5a4
lea r8, [rsp + 0x220]
or byte [r8 + 0xb], 0x20
lea rcx, [rsp + 0x110]
mov edx, 0x20007
mov r9d, 0x10
call fcn.140054330
test al, al
je 0x14004c987
cmp dword [rdi + 0x24], 1
sete r14b
mov rbp, qword [rdi + 0x28]
mov rsi, qword [rdi + 0x30]
cmp rbp, rsi
je 0x14004c631
mov rax, rsi
sub rax, rbp
mov ecx, 0xfffffff8
cmp rax, rcx
ja 0x14004c987
mov rbx, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
lea r15, str....._baseprocesslaunch_win.cc
lea r12, [rsp + 0x1c0]
mov rcx, qword [rbp]
mov edx, 1
mov r8d, 1
call rbx
test eax, eax
je 0x14004c938
add rbp, 8
cmp rbp, rsi
jne 0x14004c5e3
mov r9d, dword [rdi + 0x30]
mov r8, qword [rdi + 0x28]
sub r9d, r8d
and r9d, 0xfffffff8
lea rcx, [rsp + 0x110]
mov edx, 0x20002
call fcn.140054330
mov r14b, 1
test al, al
je 0x14004c987
cmp byte [rdi + 0x22], 0
jne 0x14004cae1
cmp byte [rdi + 0x48], 0
jne 0x14004caee
mov eax, dword [rsp + 0x154]
mov ecx, eax
or ecx, 1
mov dword [rsp + 0x154], ecx
movzx ecx, byte [rdi + 0x20]
xor ecx, 1
mov word [rsp + 0x158], cx
mov rcx, qword [rdi + 0x58]
mov rdx, qword [rdi + 0x60]
mov rbp, qword [rdi + 0x68]
test rcx, rcx
jne 0x14004c95e
test rdx, rdx
jne 0x14004c95e
test rbp, rbp
jne 0x14004c95e
cmp qword [rdi + 0x50], 0
jne 0x14004c8bd
mov r15d, r13d
or r15d, 0x1000000
cmp byte [rdi + 0x70], 0
cmove r15d, r13d
xorps xmm0, xmm0
movaps xmmword [rsp + 0xf0], xmm0
mov qword [rsp + 0x100], 0
movzx eax, byte [rdi + 0x1f]
test al, al
jns 0x14004c6d4
mov rax, qword [rdi + 0x10]
mov r12, qword [rdi + 8]
jmp 0x14004c6db
lea r12, [rdi + 8]
and eax, 0x7f
mov rbp, qword [rsp + 0x70]
test rax, rax
cmove r12, rax
movabs r13, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xe0], r13
movaps xmmword [rsp + 0xd0], xmm6
cmp byte [rbp + 0x17], 0
jns 0x14004cb02
mov rdx, qword [rbp]
mov r8, qword [rbp + 8]
lea rcx, [rsp + 0xd0]
call fcn.14006a790
lea rbx, [rsp + 0x118]
mov rdx, qword [rdi + 0x40]
test rdx, rdx
jne 0x14004cb1f
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1c0], xmm0
mov qword [rsp + 0x1d0], 0
mov al, byte [rdi + 0x90]
test al, al
jne 0x14004c99f
cmp qword [rdi + 0x88], 0
jne 0x14004c99f
xor eax, eax
movzx ecx, r14b
cmp byte [rsp + 0xe7], 0
jns 0x14004c782
mov rdx, qword [rsp + 0xd0]
jmp 0x14004c78a
lea rdx, [rsp + 0xd0]
lea rsi, [rsp + 0xf0]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], ecx
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14004ccc3
cmp byte [rsp + 0x1d7], 0
js 0x14004cb6c
mov r14, qword [rsp + 0x68]
mov bl, byte [rsp + 0x67]
lea rcx, [rsp + 0xb0]
mov qword [rcx + 0x10], r13
movaps xmmword [rcx], xmm6
lea rdx, [rsp + 0xf0]
call fcn.140054b30
mov rcx, qword [rdi + 0x50]
test rcx, rcx
jne 0x14004c8d8
cmp byte [rdi + 0x71], 0
jne 0x14004cb7e
cmp byte [rdi], 0
jne 0x14004cb98
mov edx, dword [rsp + 0xc0]
mov rcx, qword [0x140146690]
test rcx, rcx
jne 0x14004cc09
lea rcx, [rsp + 0xb0]
call fcn.140054d10
mov rcx, r14
mov rdx, rax
call fcn.1400711c0
lea rcx, [rsp + 0xb0]
call fcn.140054c60
cmp byte [rsp + 0xe7], 0
jns 0x14004c86b
mov rcx, qword [rsp + 0xd0]
call fcn.1400871a0
lea rcx, [rsp + 0x110]
call fcn.140054220
lea rcx, [rsp + 0x1a0]
call fcn.1400540a0
test bl, 0x19
jne 0x14004cc16
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.1400884b0
mov rax, r14
movaps xmm6, xmmword [rsp + 0x240]
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400770a0
lea ecx, [r13 + 0x1000000]
cmp eax, 5
cmovge ecx, r13d
mov r13d, ecx
jmp 0x14004c699
mov rdx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x14004c805
lea rsi, [rsp + 0x1c0]
movaps xmmword [rsi], xmm6
lea rcx, [rsp + 0xb0]
call fcn.140054d10
mov rcx, rsi
mov rdx, rax
call fcn.1400711c0
mov rcx, rsi
mov edx, 1
mov r8b, 1
call fcn.1400d9f70
mov rcx, r14
xor edx, edx
call fcn.1400711c0
mov rcx, rsi
call fcn.140071240
jmp 0x14004c847
mov rcx, r12
mov rdx, r15
mov r8d, 0x13f
call fcn.1400e0080
mov rcx, r12
call fcn.1400e00a0
mov rcx, r12
call fcn.1400e00b0
jmp 0x14004c5fc
or eax, 0x101
mov dword [rsp + 0x154], eax
mov qword [rsp + 0x168], rcx
mov qword [rsp + 0x170], rdx
mov qword [rsp + 0x178], rbp
jmp 0x14004c68e
mov r14, qword [rsp + 0x68]
mov rcx, r14
xor edx, edx
call fcn.1400711c0
mov bl, byte [rsp + 0x67]
jmp 0x14004c86b
test al, al
je 0x14004cc5c
lea r8, [rdi + 0x78]
lea rdx, [0x14011dc58]
lea rcx, [rsp + 0x90]
call fcn.1400e00d0
cmp byte [rsp + 0x1d7], 0
jns 0x14004c9d6
mov rcx, qword [rsp + 0x1c0]
call fcn.1400871a0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x1d0], rax
movups xmm0, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x1c0], xmm0
cmp byte [rsp + 0x1d7], 0
jns 0x14004cc43
mov rax, qword [rsp + 0x1c0]
jmp 0x14004cc4b
mov sil, byte [rdi]
mov dil, byte [rdi + 0x20]
movzx eax, byte [r12 + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [r12]
cmovns rax, r12
lea rdx, [rsp + 0x190]
mov qword [rdx], rax
cmovs rcx, qword [r12 + 8]
mov qword [rdx + 8], rcx
lea rbx, [rsp + 0x110]
mov rcx, rbx
call fcn.1400d7cb0
mov rcx, r14
mov rdx, rbx
mov r8d, edi
mov r9d, esi
call fcn.1400d9c30
mov rcx, rbx
call fcn.140045af0
jmp 0x14004c88e
lea rsi, [rsp + 0x110]
mov rcx, rsi
call fcn.1400718e0
call sub.KERNEL32.dll_GetCurrentThreadId
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rdx, [0x140136040]
lea r8, str.LaunchProcess
mov cl, 0x58
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x88], r8
xor r9d, r9d
call fcn.1400725f0
mov qword [rsp + 0x80], rax
jmp 0x14004c496
xor r13d, r13d
jmp 0x14004c562
or byte [rsp + 0x154], 0x80
jmp 0x14004c63b
lea rax, [0x14011b5fc]
mov qword [rsp + 0x128], rax
jmp 0x14004c645
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0xe0], rax
movups xmm0, xmmword [rbp]
movaps xmmword [rsp + 0xd0], xmm0
jmp 0x14004c720
lea rcx, [rsp + 0x1c0]
mov qword [rcx], 0
xor r8d, r8d
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x14004cd5f
or r15d, 0x400
mov rdx, qword [rsp + 0x1c0]
movzx eax, r14b
cmp byte [rsp + 0xe7], 0
jns 0x14004ccf4
mov r8, qword [rsp + 0xd0]
jmp 0x14004ccfc
mov rcx, qword [rsp + 0x1c0]
call fcn.1400871a0
jmp 0x14004c7d3
mov rcx, qword [rsp + 0xb0]
call fcn.1400522d0
mov ecx, eax
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x14004c80f
lea rsi, [rsp + 0x1c0]
mov qword [rsi + 0x50], r13
movaps xmmword [rsi + 0x40], xmm6
movaps xmmword [rsi + 0x30], xmm6
movaps xmmword [rsi + 0x20], xmm6
movaps xmmword [rsi + 0x10], xmm6
movaps xmmword [rsi], xmm6
lea rdx, str.LaunchProcess
lea r8, str....._baseprocesslaunch_win.cc
lea rdi, [rsp + 0x90]
mov rcx, rdi
mov r9d, 0x1bc
call fcn.14006cbc0
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
call fcn.140070820
mov rcx, qword [rsp + 0xb0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call fcn.140070880
jmp 0x14004c818
mov r8, rbp
call fcn.1400de520
jmp 0x14004c82f
mov rax, qword [rsp + 0x78]
cmp byte [rax], 0
je 0x14004c88e
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x88]
mov r8, qword [rsp + 0x80]
call fcn.140073120
jmp 0x14004c88e
lea rax, [rsp + 0x1c0]
or r15d, 0x400
mov rbp, qword [rsp + 0x70]
jmp 0x14004c76a
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x14004ccc3
mov rsi, rax
lea r8, [rdi + 0x78]
lea rcx, [rsp + 0x90]
mov rdx, rax
call fcn.1400e00d0
cmp byte [rsp + 0x1d7], 0
jns 0x14004cc95
mov rcx, qword [rsp + 0x1c0]
call fcn.1400871a0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x1d0], rax
movups xmm0, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x1c0], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004c9f6
mov rcx, qword [rsp + 0x68]
xor edx, edx
call fcn.1400711c0
cmp byte [rsp + 0x1d7], 0
jns 0x14004cce6
mov rcx, qword [rsp + 0x1c0]
call fcn.1400871a0
mov r14, qword [rsp + 0x68]
mov bl, byte [rsp + 0x67]
jmp 0x14004c854
lea r8, [rsp + 0xd0]
mov rcx, qword [rdi + 0x40]
lea rsi, [rsp + 0xf0]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], 0
xor edx, edx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov rcx, qword [rsp + 0x1c0]
call sub.USERENV.dll_DestroyEnvironmentBlock
test esi, esi
je 0x14004cd5f
mov r14, qword [rsp + 0x68]
mov bl, byte [rsp + 0x67]
mov rbp, qword [rsp + 0x70]
jmp 0x14004c7dc
mov r14, qword [rsp + 0x68]
mov rcx, r14
xor edx, edx
call fcn.1400711c0
jmp 0x14004cceb