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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x6e8
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x6f0]
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.14001f430
nop
mov rax, qword [rsp + 0x6f0]
add rax, 8
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.14001f430
nop
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
call fcn.14001f650
nop
mov dword [rsp + 0x48], 0
lea rax, [rsp + 0x598]
mov qword [rsp + 0x108], rax
lea rdx, str._app__:___ws__:__exec_program_result__:__microsoftId_:__ws____status__:__d
mov rcx, qword [rsp + 0x108]
call fcn.140022000
mov qword [rsp + 0x110], rax
mov rdx, qword [rsp + 0x110]
lea rcx, [rsp + 0x100]
call fcn.14007c360
nop
mov rax, qword [rsp + 0x6f0]
add rax, 0x10
mov rcx, rax
call fcn.1400370d0
movzx eax, al
test eax, eax
jne 0x140031718
lea rax, [rsp + 0x5b8]
mov qword [rsp + 0x118], rax
lea rdx, str.winget_list
mov rcx, qword [rsp + 0x118]
call fcn.140022000
mov qword [rsp + 0x120], rax
mov rdx, qword [rsp + 0x120]
lea rcx, [rsp + 0xb8]
call fcn.14007c360
nop
lea rax, [rsp + 0x450]
mov qword [rsp + 0x128], rax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x128]
call fcn.14001f430
mov qword [rsp + 0x130], rax
mov rdx, qword [rsp + 0x130]
lea rcx, [rsp + 0x148]
call fcn.14007b950
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x140], rax
mov rcx, qword [rsp + 0x140]
call fcn.140013a90
mov rdx, rax
lea rcx, [rsp + 0x4b8]
call fcn.140022000
nop
lea rcx, [rsp + 0x148]
call fcn.140026c10
nop
mov rax, qword [rsp + 0x6f0]
add rax, 0x10
mov rcx, rax
call fcn.140013a90
mov r8, rax
lea rdx, [rsp + 0x4b8]
lea rcx, [rsp + 0x518]
call fcn.14000c9a0
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x158], rax
mov rdx, qword [rsp + 0x158]
lea rcx, [rsp + 0x428]
call fcn.1400ae130
nop
lea rcx, [rsp + 0x518]
call fcn.140028230
nop
movzx eax, byte [rsp + 0x428]
test eax, eax
je 0x1400316e9
mov rax, qword [rsp + 0x6f0]
add rax, 0x10
mov rcx, rax
call fcn.140013a90
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x430]
call fcn.140054870
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0xffffffffffffffff
je 0x1400316e9
lea rcx, [rsp + 0x430]
call fcn.14002b4d0
sub rax, 2
mov r8, rax
lea rdx, [0x140254134]
lea rcx, [rsp + 0x430]
call fcn.1400554e0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
je 0x1400316e9
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x98]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x160], rax
mov r9, qword [rsp + 0x160]
mov r8, qword [rsp + 0x58]
lea rdx, [rsp + 0x408]
lea rcx, [rsp + 0x430]
call fcn.1400685f0
nop
mov r8, 0xffffffffffffffff
mov dx, 0x20
lea rcx, [rsp + 0x408]
call fcn.140055480
inc rax
mov rdx, rax
lea rcx, [rsp + 0x408]
call fcn.14004e0a0
xor r8d, r8d
mov dx, 0x20
lea rcx, [rsp + 0x408]
call fcn.1400552e0
mov r8, rax
xor edx, edx
lea rcx, [rsp + 0x408]
call fcn.14004e050
mov rax, qword [rsp + 0x6f0]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x168], rax
lea r8, [rsp + 0x408]
lea rdx, [rsp + 0x490]
mov rcx, qword [rsp + 0x168]
call fcn.1400548e0
nop
movzx eax, byte [rsp + 0x490]
test eax, eax
je 0x1400316cd
lea rax, [rsp + 0x5d8]
mov qword [rsp + 0x170], rax
lea rdx, [0x140254138]
mov rcx, qword [rsp + 0x170]
call fcn.140022000
mov qword [rsp + 0x178], rax
mov rdx, qword [rsp + 0x178]
lea rcx, [rsp + 0xb0]
call fcn.14007c360
nop
lea rax, [rsp + 0x5f8]
mov qword [rsp + 0x180], rax
lea rdx, str.shell:appsFolder_
mov rcx, qword [rsp + 0x180]
call fcn.140022000
mov qword [rsp + 0x188], rax
mov rdx, qword [rsp + 0x188]
lea rcx, [rsp + 0xa8]
call fcn.14007c360
nop
lea rax, [rsp + 0x458]
mov qword [rsp + 0x190], rax
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x190]
call fcn.14001f430
mov qword [rsp + 0x198], rax
mov rdx, qword [rsp + 0x198]
lea rcx, [rsp + 0xa0]
call fcn.14007b950
nop
lea rax, [rsp + 0x460]
mov qword [rsp + 0x1a0], rax
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x1a0]
call fcn.14001f430
mov qword [rsp + 0x1a8], rax
mov rdx, qword [rsp + 0x1a8]
lea rcx, [rsp + 0x1c0]
call fcn.14007b950
mov qword [rsp + 0x1b0], rax
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0x1b8], rax
mov rdx, qword [rsp + 0x1b8]
lea rcx, [rsp + 0x40]
call fcn.140029c90
nop
lea rcx, [rsp + 0x1c0]
call fcn.140026c10
nop
mov dword [rsp + 0x48], 1
lea rcx, [rsp + 0xa0]
call fcn.140013a90
mov rdx, rax
lea rcx, [rsp + 0x558]
call fcn.140022000
mov qword [rsp + 0x1c8], rax
mov rax, qword [rsp + 0x1c8]
mov qword [rsp + 0x1d0], rax
lea r8, [rsp + 0x498]
mov rdx, qword [rsp + 0x1d0]
lea rcx, [rsp + 0x538]
call fcn.14000c940
mov qword [rsp + 0x1d8], rax
mov rax, qword [rsp + 0x1d8]
mov qword [rsp + 0x1e0], rax
mov rcx, qword [rsp + 0x1e0]
call fcn.140046fb0
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.140029d50
nop
lea rcx, [rsp + 0x538]
call fcn.140028230
nop
lea rcx, [rsp + 0x558]
call fcn.140028230
nop
lea rcx, [rsp + 0xa0]
call fcn.140026c10
nop
lea rcx, [rsp + 0xa8]
call fcn.140026c10
nop
lea rcx, [rsp + 0xb0]
call fcn.140026c10
nop
lea rcx, [rsp + 0x490]
call fcn.140028690
nop
lea rcx, [rsp + 0x408]
call fcn.140028230
nop
lea rcx, [rsp + 0x428]
call fcn.140028690
nop
lea rcx, [rsp + 0x4b8]
call fcn.140028230
nop
lea rcx, [rsp + 0xb8]
call fcn.140026c10
nop
jmp 0x1400318f4
lea rcx, [rsp + 0x68]
call fcn.140013a90
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x140031743
mov dword [rsp + 0x38], 0x104
mov edx, dword [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.140036de0
lea r8, [0x14024f2d0]
lea rdx, [0x14025417c]
lea rcx, [rsp + 0x68]
call fcn.140037a90
lea rcx, [rsp + 0x40]
call fcn.140036d90
mov qword [rsp + 0x1e8], rax
lea rcx, [rsp + 0x68]
call fcn.140013a90
mov qword [rsp + 0x1f0], rax
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x1e8]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x40]
call fcn.140013a90
mov qword [rsp + 0x1f8], rax
xor r8d, r8d
lea rdx, [rsp + 0x1f8]
lea rcx, [rsp + 0x4d8]
call fcn.140009680
nop
lea rcx, [rsp + 0x4d8]
call fcn.14004e420
movzx eax, al
test eax, eax
jne 0x1400317f5
mov dword [rsp + 0x4c], 1
jmp 0x1400317fd
mov dword [rsp + 0x4c], 0
movzx eax, byte [rsp + 0x4c]
mov byte [rsp + 0x31], al
lea rcx, [rsp + 0x4d8]
call fcn.140029960
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x1400318f4
mov rax, qword [rsp + 0x6f0]
add rax, 0x20
mov r8, rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.1400ae9e0
nop
lea rcx, [rsp + 0x60]
call fcn.140013a90
mov qword [rsp + 0x200], rax
xor r8d, r8d
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0x4f8]
call fcn.140009680
nop
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x4f8]
call fcn.14004e420
movzx eax, al
test eax, eax
je 0x1400318a1
lea rcx, [rsp + 0x60]
call fcn.140036fa0
test eax, eax
je 0x1400318a1
mov dword [rsp + 0x50], 1
jmp 0x1400318a9
mov dword [rsp + 0x50], 0
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x32], al
mov eax, dword [rsp + 0x34]
and eax, 1
test eax, eax
je 0x1400318d0
and dword [rsp + 0x34], 0xfffffffe
lea rcx, [rsp + 0x4f8]
call fcn.140029960
nop
movzx eax, byte [rsp + 0x32]
test eax, eax
je 0x1400318e9
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140029c90
nop
lea rcx, [rsp + 0x60]
call fcn.140026c10
nop
cmp dword [rsp + 0x48], 0
je 0x1400320ce
lea rcx, [rsp + 0x90]
call fcn.140013a90
mov qword [rsp + 0x208], rax
lea rcx, [rsp + 0x40]
call fcn.140013a90
mov qword [rsp + 0x210], rax
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x208]
mov r8, qword [rsp + 0x210]
lea rdx, [0x140254188]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov qword [rsp + 0x218], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x74], eax
cmp dword [rsp + 0x218], 0x20
ja 0x1400319ec
mov rax, qword [rsp + 0x6f0]
add rax, 0x38
mov rcx, rax
call fcn.1400370d0
movzx eax, al
test eax, eax
jne 0x1400319e5
mov rax, qword [rsp + 0x6f0]
add rax, 0x38
mov rdx, rax
lea rcx, [rsp + 0x578]
call fcn.140078b00
mov qword [rsp + 0x220], rax
mov rax, qword [rsp + 0x220]
mov qword [rsp + 0x228], rax
mov rcx, qword [rsp + 0x228]
call fcn.140046fb0
mov rcx, rax
call fcn.1400d04f0
nop
lea rcx, [rsp + 0x578]
call fcn.140028230
nop
mov byte [rsp + 0x30], 0
jmp 0x1400319f1
mov byte [rsp + 0x30], 1
lea rcx, [rsp + 0x88]
call fcn.14001f650
nop
mov rax, qword [rsp + 0x6f0]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x230], rax
mov rax, qword [rsp + 0x230]
mov qword [rsp + 0x260], rax
mov rax, qword [rsp + 0x6f0]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x238], rax
mov rax, qword [rsp + 0x238]
mov qword [rsp + 0x268], rax
lea rax, [rsp + 0x468]
mov qword [rsp + 0x240], rax
lea rdx, [rsp + 0x100]
mov rcx, qword [rsp + 0x240]
call fcn.14001f430
mov qword [rsp + 0x248], rax
mov rdx, qword [rsp + 0x248]
lea rcx, [rsp + 0x278]
call fcn.14007b950
mov qword [rsp + 0x250], rax
mov rax, qword [rsp + 0x250]
mov qword [rsp + 0x258], rax
mov rcx, qword [rsp + 0x258]
call fcn.140013a90
mov qword [rsp + 0x270], rax
movzx eax, byte [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x260]
mov r8, qword [rsp + 0x268]
mov rdx, qword [rsp + 0x270]
lea rcx, [rsp + 0x88]
call fcn.140036ab0
nop
lea rcx, [rsp + 0x278]
call fcn.140026c10
nop
mov rax, qword [rsp + 0x6f0]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x280], rax
mov rax, qword [rsp + 0x6f0]
add rax, 0x40
mov rdx, rax
lea rcx, [0x1402acf60]
call fcn.140046840
mov eax, dword [rax]
mov dword [rsp + 0x70], eax
mov r8d, dword [rsp + 0x70]
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x280]
call fcn.1400650a0
nop
lea rax, [rsp + 0x618]
mov qword [rsp + 0x288], rax
lea rdx, str.exec_cmd
mov rcx, qword [rsp + 0x288]
call fcn.140022000
mov qword [rsp + 0x290], rax
mov rdx, qword [rsp + 0x290]
lea rcx, [rsp + 0xf8]
call fcn.14007c360
nop
lea rax, [rsp + 0x638]
mov qword [rsp + 0x298], rax
lea rdx, str.wnd_name_sstate_wsexec_code_dcmd_ws
mov rcx, qword [rsp + 0x298]
call fcn.140022000
mov qword [rsp + 0x2a0], rax
mov rdx, qword [rsp + 0x2a0]
lea rcx, [rsp + 0xf0]
call fcn.14007c360
nop
lea rax, [rsp + 0x658]
mov qword [rsp + 0x2a8], rax
lea rdx, [0x140254208]
mov rcx, qword [rsp + 0x2a8]
call fcn.140022000
mov qword [rsp + 0x2b0], rax
mov rdx, qword [rsp + 0x2b0]
lea rcx, [rsp + 0xe8]
call fcn.14007c360
nop
lea rax, [rsp + 0x678]
mov qword [rsp + 0x2b8], rax
lea rdx, [0x140254218]
mov rcx, qword [rsp + 0x2b8]
call fcn.140022000
mov qword [rsp + 0x2c0], rax
mov rdx, qword [rsp + 0x2c0]
lea rcx, [rsp + 0xe0]
call fcn.14007c360
nop
lea rax, [rsp + 0x698]
mov qword [rsp + 0x2c8], rax
lea rdx, [0x140253b38]
mov rcx, qword [rsp + 0x2c8]
call fcn.140022000
mov qword [rsp + 0x2d0], rax
mov rdx, qword [rsp + 0x2d0]
lea rcx, [rsp + 0xd8]
call fcn.14007c360
nop
lea rcx, [rsp + 0x80]
call fcn.14001f650
nop
lea rax, [rsp + 0x6b8]
mov qword [rsp + 0x2d8], rax
mov rax, qword [rsp + 0x6f0]
mov rdx, rax
mov rcx, qword [rsp + 0x2d8]
call fcn.140078b00
mov qword [rsp + 0x2e0], rax
mov rdx, qword [rsp + 0x2e0]
lea rcx, [rsp + 0x3a0]
call fcn.1400798b0
mov qword [rsp + 0x2e8], rax
mov rax, qword [rsp + 0x2e8]
mov qword [rsp + 0x2f0], rax
mov rax, qword [rsp + 0x2f0]
mov rax, qword [rax]
mov qword [rsp + 0x2f8], rax
mov rax, qword [rsp + 0x2f8]
mov qword [rsp + 0x300], rax
mov rax, qword [rsp + 0x300]
mov qword [rsp + 0x370], rax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x78], eax
lea rax, [rsp + 0x470]
mov qword [rsp + 0x310], rax
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140031d5e
lea rax, [rsp + 0xe8]
mov qword [rsp + 0xc0], rax
jmp 0x140031d6e
lea rax, [rsp + 0xe0]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x308], rax
mov rdx, qword [rsp + 0x308]
mov rcx, qword [rsp + 0x310]
call fcn.14001f430
mov qword [rsp + 0x318], rax
mov rdx, qword [rsp + 0x318]
lea rcx, [rsp + 0x398]
call fcn.14007b950
mov qword [rsp + 0x320], rax
mov rax, qword [rsp + 0x320]
mov qword [rsp + 0x328], rax
mov rax, qword [rsp + 0x328]
mov rax, qword [rax]
mov qword [rsp + 0x330], rax
mov rax, qword [rsp + 0x330]
mov qword [rsp + 0x338], rax
mov rax, qword [rsp + 0x338]
mov qword [rsp + 0x378], rax
mov rax, qword [rsp + 0x6f0]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x340], rax
mov rax, qword [rsp + 0x340]
mov qword [rsp + 0x348], rax
mov rax, qword [rsp + 0x348]
mov qword [rsp + 0x380], rax
lea rax, [rsp + 0x478]
mov qword [rsp + 0x350], rax
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x350]
call fcn.14001f430
mov qword [rsp + 0x358], rax
mov rdx, qword [rsp + 0x358]
lea rcx, [rsp + 0x390]
call fcn.14007b950
mov qword [rsp + 0x360], rax
mov rax, qword [rsp + 0x360]
mov qword [rsp + 0x368], rax
mov rcx, qword [rsp + 0x368]
call fcn.140013a90
mov qword [rsp + 0x388], rax
mov rax, qword [rsp + 0x370]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x378]
mov r8, qword [rsp + 0x380]
mov rdx, qword [rsp + 0x388]
lea rcx, [rsp + 0x80]
call fcn.140036ab0
nop
lea rcx, [rsp + 0x390]
call fcn.140026c10
nop
lea rcx, [rsp + 0x398]
call fcn.140026c10
nop
lea rcx, [rsp + 0x3a0]
call fcn.140026c10
nop
lea rdx, [0x14024f2d4]
lea rcx, [rsp + 0xd0]
call fcn.14001f550
nop
lea rdx, [0x14024f2d4]
lea rcx, [rsp + 0xc8]
call fcn.14001f550
nop
lea rax, [rsp + 0x480]
mov qword [rsp + 0x3a8], rax
lea rdx, [rsp + 0xf8]
mov rcx, qword [rsp + 0x3a8]
call fcn.14001f430
mov qword [rsp + 0x3b0], rax
mov rdx, qword [rsp + 0x3b0]
lea rcx, [rsp + 0x400]
call fcn.14007b950
mov qword [rsp + 0x3b8], rax
mov rax, qword [rsp + 0x3b8]
mov qword [rsp + 0x3c0], rax
mov rax, qword [rsp + 0x3c0]
mov qword [rsp + 0x3e8], rax
lea rax, [rsp + 0x488]
mov qword [rsp + 0x3c8], rax
lea rdx, [rsp + 0xd8]
mov rcx, qword [rsp + 0x3c8]
call fcn.14001f430
mov qword [rsp + 0x3d0], rax
mov rdx, qword [rsp + 0x3d0]
lea rcx, [rsp + 0x3f8]
call fcn.14007b950
mov qword [rsp + 0x3d8], rax
mov rax, qword [rsp + 0x3d8]
mov qword [rsp + 0x3e0], rax
mov rax, qword [rsp + 0x3e0]
mov qword [rsp + 0x3f0], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xc8]
lea r8, [rsp + 0x80]
mov rdx, qword [rsp + 0x3e8]
mov rcx, qword [rsp + 0x3f0]
call fcn.1400bec00
nop
lea rcx, [rsp + 0x3f8]
call fcn.140026c10
nop
lea rcx, [rsp + 0x400]
call fcn.140026c10
nop
lea rcx, [rsp + 0xc8]
call fcn.140026c10
nop
lea rcx, [rsp + 0xd0]
call fcn.140026c10
nop
lea rcx, [rsp + 0x80]
call fcn.140026c10
nop
lea rcx, [rsp + 0xd8]
call fcn.140026c10
nop
lea rcx, [rsp + 0xe0]
call fcn.140026c10
nop
lea rcx, [rsp + 0xe8]
call fcn.140026c10
nop
lea rcx, [rsp + 0xf0]
call fcn.140026c10
nop
lea rcx, [rsp + 0xf8]
call fcn.140026c10
nop
lea rcx, [rsp + 0x88]
call fcn.140026c10
nop
lea rcx, [rsp + 0x100]
call fcn.140026c10
nop
lea rcx, [rsp + 0x40]
call fcn.140026c10
nop
lea rcx, [rsp + 0x90]
call fcn.140026c10
nop
lea rcx, [rsp + 0x68]
call fcn.140026c10
nop
add rsp, 0x6e8
ret