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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x758
mov dword [rsp + 0x34], 0
mov rdx, qword [rsp + 0x770]
lea rcx, [rsp + 0x60]
call fcn.1400133e0
nop
mov rdx, qword [rsp + 0x778]
lea rcx, [rsp + 0x80]
call fcn.1400133e0
nop
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
call fcn.140013530
nop
mov dword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x790]
call fcn.14001fd30
movzx eax, al
test eax, eax
jne 0x14022bbca
lea rax, [rsp + 0x610]
mov qword [rsp + 0x418], rax
lea rdx, str.winget_list
mov rcx, qword [rsp + 0x418]
call fcn.140014930
mov qword [rsp + 0x108], rax
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0xa8]
call fcn.1400aaa00
nop
lea rax, [rsp + 0x4a0]
mov qword [rsp + 0x110], rax
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x110]
call fcn.1400133e0
mov qword [rsp + 0x118], rax
mov rdx, qword [rsp + 0x118]
lea rcx, [rsp + 0x130]
call fcn.1400aa010
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x128], rax
mov rcx, qword [rsp + 0x128]
call fcn.14000f0c0
mov rdx, rax
lea rcx, [rsp + 0x530]
call fcn.140014930
nop
lea rcx, [rsp + 0x130]
call fcn.1400165c0
nop
mov rcx, qword [rsp + 0x790]
call fcn.14000f0c0
mov r8, rax
lea rdx, [rsp + 0x530]
lea rcx, [rsp + 0x550]
call fcn.140033890
mov qword [rsp + 0x138], rax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x140], rax
mov rdx, qword [rsp + 0x140]
lea rcx, [rsp + 0x440]
call fcn.1400c25a0
nop
lea rcx, [rsp + 0x550]
call fcn.140016ce0
nop
movzx eax, byte [rsp + 0x440]
test eax, eax
je 0x14022bb9b
mov rcx, qword [rsp + 0x790]
call fcn.14000f0c0
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x448]
call fcn.14002e1f0
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0xffffffffffffffff
je 0x14022bb9b
lea rcx, [rsp + 0x448]
call fcn.1400312c0
sub rax, 2
mov r8, rax
lea rdx, [0x1402b20b0]
lea rcx, [rsp + 0x448]
call fcn.1400813d0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
je 0x14022bb9b
mov rax, qword [rsp + 0x58]
inc rax
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x148], rax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x58]
lea rdx, [rsp + 0x420]
lea rcx, [rsp + 0x448]
call fcn.140048380
nop
mov r8, 0xffffffffffffffff
mov dx, 0x20
lea rcx, [rsp + 0x420]
call fcn.1402353d0
inc rax
mov rdx, rax
lea rcx, [rsp + 0x420]
call fcn.1400804d0
xor r8d, r8d
mov dx, 0x20
lea rcx, [rsp + 0x420]
call fcn.140235370
mov r8, rax
xor edx, edx
lea rcx, [rsp + 0x420]
call fcn.14022e380
nop
mov rax, qword [rsp + 0x760]
mov rax, qword [rax]
mov qword [rsp + 0x150], rax
mov rcx, qword [rsp + 0x780]
call fcn.14000f0c0
mov rdx, rax
lea rcx, [rsp + 0x4d0]
call fcn.140014930
nop
lea r9, [rsp + 0x4d0]
lea r8, [rsp + 0x420]
lea rdx, [rsp + 0x4a8]
mov rcx, qword [rsp + 0x150]
call fcn.140234750
nop
lea rcx, [rsp + 0x4d0]
call fcn.140016ce0
nop
movzx eax, byte [rsp + 0x4a8]
test eax, eax
je 0x14022bb7f
lea rax, [rsp + 0x630]
mov qword [rsp + 0x158], rax
lea rdx, str.explorer.exe
mov rcx, qword [rsp + 0x158]
call fcn.140014930
mov qword [rsp + 0x160], rax
mov rdx, qword [rsp + 0x160]
lea rcx, [rsp + 0xa0]
call fcn.1400aaa00
nop
lea rax, [rsp + 0x650]
mov qword [rsp + 0x168], rax
lea rdx, str.shell:appsFolder_
mov rcx, qword [rsp + 0x168]
call fcn.140014930
mov qword [rsp + 0x170], rax
mov rdx, qword [rsp + 0x170]
lea rcx, [rsp + 0x98]
call fcn.1400aaa00
nop
lea rax, [rsp + 0x468]
mov qword [rsp + 0x178], rax
lea rdx, [rsp + 0x98]
mov rcx, qword [rsp + 0x178]
call fcn.1400133e0
mov qword [rsp + 0x180], rax
mov rdx, qword [rsp + 0x180]
lea rcx, [rsp + 0x90]
call fcn.1400aa010
nop
lea rax, [rsp + 0x470]
mov qword [rsp + 0x188], rax
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x188]
call fcn.1400133e0
mov qword [rsp + 0x190], rax
mov rdx, qword [rsp + 0x190]
lea rcx, [rsp + 0x1a8]
call fcn.1400aa010
mov qword [rsp + 0x198], rax
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x1a0], rax
mov rdx, qword [rsp + 0x1a0]
lea rcx, [rsp + 0x40]
call fcn.1400179c0
nop
lea rcx, [rsp + 0x1a8]
call fcn.1400165c0
nop
mov dword [rsp + 0x48], 1
lea rcx, [rsp + 0x90]
call fcn.14000f0c0
mov rdx, rax
lea rcx, [rsp + 0x590]
call fcn.140014930
mov qword [rsp + 0x1b0], rax
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0x1b8], rax
lea r8, [rsp + 0x4b0]
mov rdx, qword [rsp + 0x1b8]
lea rcx, [rsp + 0x570]
call fcn.140033830
mov qword [rsp + 0x1c0], rax
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x1c8], rax
mov rcx, qword [rsp + 0x1c8]
call fcn.1400299c0
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140017a80
nop
lea rcx, [rsp + 0x570]
call fcn.140016ce0
nop
lea rcx, [rsp + 0x590]
call fcn.140016ce0
nop
lea rcx, [rsp + 0x90]
call fcn.1400165c0
nop
lea rcx, [rsp + 0x98]
call fcn.1400165c0
nop
lea rcx, [rsp + 0xa0]
call fcn.1400165c0
nop
lea rcx, [rsp + 0x4a8]
call fcn.140075850
nop
lea rcx, [rsp + 0x420]
call fcn.140016ce0
nop
lea rcx, [rsp + 0x440]
call fcn.140075850
nop
lea rcx, [rsp + 0x530]
call fcn.140016ce0
nop
lea rcx, [rsp + 0xa8]
call fcn.1400165c0
nop
jmp 0x14022bdae
lea rcx, [rsp + 0x60]
call fcn.14000f0c0
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 0x14022bbf5
mov dword [rsp + 0x38], 0x104
mov edx, dword [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.1400e4150
lea r8, [0x1402d3274]
lea rdx, [0x1402d6bdc]
lea rcx, [rsp + 0x60]
call fcn.1400babe0
lea rcx, [rsp + 0x40]
call fcn.14003b490
mov qword [rsp + 0x1d0], rax
lea rcx, [rsp + 0x60]
call fcn.14000f0c0
mov qword [rsp + 0x1d8], rax
mov r8d, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1d8]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x40]
call fcn.14000f0c0
mov qword [rsp + 0x1e0], rax
xor r8d, r8d
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0x4f0]
call fcn.1400b0490
nop
lea rcx, [rsp + 0x4f0]
call fcn.140080ff0
movzx eax, al
test eax, eax
jne 0x14022bca7
mov dword [rsp + 0x4c], 1
jmp 0x14022bcaf
mov dword [rsp + 0x4c], 0
movzx eax, byte [rsp + 0x4c]
mov byte [rsp + 0x31], al
lea rcx, [rsp + 0x4f0]
call fcn.140016f70
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x14022bdae
mov r8, qword [rsp + 0x788]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xf8]
call fcn.1400c2e50
nop
lea rcx, [rsp + 0x100]
call fcn.14000f0c0
mov qword [rsp + 0x1e8], rax
xor r8d, r8d
lea rdx, [rsp + 0x1e8]
lea rcx, [rsp + 0x510]
call fcn.1400b0490
nop
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x510]
call fcn.140080ff0
movzx eax, al
test eax, eax
je 0x14022bd55
lea rcx, [rsp + 0x100]
call fcn.14001e780
test eax, eax
je 0x14022bd55
mov dword [rsp + 0x50], 1
jmp 0x14022bd5d
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 0x14022bd84
and dword [rsp + 0x34], 0xfffffffe
lea rcx, [rsp + 0x510]
call fcn.140016f70
nop
movzx eax, byte [rsp + 0x32]
test eax, eax
je 0x14022bda0
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x40]
call fcn.1400179c0
nop
lea rcx, [rsp + 0xf8]
call fcn.140016f90
nop
cmp dword [rsp + 0x48], 0
je 0x14022c5f4
lea rcx, [rsp + 0x80]
call fcn.14000f0c0
mov qword [rsp + 0x1f0], rax
lea rcx, [rsp + 0x40]
call fcn.14000f0c0
mov qword [rsp + 0x1f8], rax
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x1f0]
mov r8, qword [rsp + 0x1f8]
lea rdx, [0x1402d6be8]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov qword [rsp + 0x200], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x200], 0x20
ja 0x14022be98
mov rcx, qword [rsp + 0x780]
call fcn.14001fd30
movzx eax, al
test eax, eax
jne 0x14022be91
mov rdx, qword [rsp + 0x780]
lea rcx, [rsp + 0x5b0]
call fcn.14009af10
mov qword [rsp + 0x208], rax
mov rax, qword [rsp + 0x208]
mov qword [rsp + 0x210], rax
mov rcx, qword [rsp + 0x210]
call fcn.1400299c0
mov rcx, rax
call fcn.1400e5370
nop
lea rcx, [rsp + 0x5b0]
call fcn.140016ce0
nop
mov byte [rsp + 0x30], 0
jmp 0x14022be9d
mov byte [rsp + 0x30], 1
lea rax, [rsp + 0x670]
mov qword [rsp + 0x218], rax
lea rdx, str._action_:_exec_program_result___data_:_microsoftId_:__ws___status_:_d
mov rcx, qword [rsp + 0x218]
call fcn.140014930
mov qword [rsp + 0x220], rax
mov rdx, qword [rsp + 0x220]
lea rcx, [rsp + 0xf0]
call fcn.1400aaa00
nop
lea rcx, [rsp + 0x78]
call fcn.140013530
nop
mov rax, qword [rsp + 0x790]
mov rax, qword [rax]
mov qword [rsp + 0x248], rax
lea rax, [rsp + 0x478]
mov qword [rsp + 0x228], rax
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x228]
call fcn.1400133e0
mov qword [rsp + 0x230], rax
mov rdx, qword [rsp + 0x230]
lea rcx, [rsp + 0x258]
call fcn.1400aa010
mov qword [rsp + 0x238], rax
mov rax, qword [rsp + 0x238]
mov qword [rsp + 0x240], rax
mov rcx, qword [rsp + 0x240]
call fcn.14000f0c0
mov qword [rsp + 0x250], rax
movzx eax, byte [rsp + 0x30]
mov r9d, eax
mov r8, qword [rsp + 0x248]
mov rdx, qword [rsp + 0x250]
lea rcx, [rsp + 0x78]
call fcn.14001d4a0
nop
lea rcx, [rsp + 0x258]
call fcn.1400165c0
nop
mov rax, qword [rsp + 0x760]
mov rax, qword [rax]
mov rcx, qword [rax]
call fcn.14001f6e0
mov qword [rsp + 0x290], rax
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x5f0]
call fcn.14009af10
mov qword [rsp + 0x260], rax
mov rax, qword [rsp + 0x260]
mov qword [rsp + 0x268], rax
mov rax, qword [rsp + 0x268]
mov qword [rsp + 0x280], rax
mov rdx, qword [rsp + 0x768]
lea rcx, [rsp + 0x5d0]
call fcn.14009af10
mov qword [rsp + 0x270], rax
mov rax, qword [rsp + 0x270]
mov qword [rsp + 0x278], rax
mov rax, qword [rsp + 0x278]
mov qword [rsp + 0x288], rax
mov r8, qword [rsp + 0x280]
mov rdx, qword [rsp + 0x288]
mov rcx, qword [rsp + 0x290]
call fcn.14023cd80
nop
lea rcx, [rsp + 0x5d0]
call fcn.140016ce0
nop
lea rcx, [rsp + 0x5f0]
call fcn.140016ce0
nop
lea rax, [rsp + 0x690]
mov qword [rsp + 0x298], rax
lea rdx, str.exec_cmd
mov rcx, qword [rsp + 0x298]
call fcn.140014930
mov qword [rsp + 0x2a0], rax
mov rdx, qword [rsp + 0x2a0]
lea rcx, [rsp + 0xe8]
call fcn.1400aaa00
nop
lea rax, [rsp + 0x6b0]
mov qword [rsp + 0x2a8], rax
lea rdx, str.wnd_name_sstate_wsexec_code_dcmd_ws
mov rcx, qword [rsp + 0x2a8]
call fcn.140014930
mov qword [rsp + 0x2b0], rax
mov rdx, qword [rsp + 0x2b0]
lea rcx, [rsp + 0xe0]
call fcn.1400aaa00
nop
lea rax, [rsp + 0x6d0]
mov qword [rsp + 0x2b8], rax
lea rdx, [0x1402d6b30]
mov rcx, qword [rsp + 0x2b8]
call fcn.140014930
mov qword [rsp + 0x2c0], rax
mov rdx, qword [rsp + 0x2c0]
lea rcx, [rsp + 0xd8]
call fcn.1400aaa00
nop
lea rax, [rsp + 0x6f0]
mov qword [rsp + 0x2c8], rax
lea rdx, str.error
mov rcx, qword [rsp + 0x2c8]
call fcn.140014930
mov qword [rsp + 0x2d0], rax
mov rdx, qword [rsp + 0x2d0]
lea rcx, [rsp + 0xd0]
call fcn.1400aaa00
nop
lea rax, [rsp + 0x710]
mov qword [rsp + 0x2d8], rax
lea rdx, [0x1402b4080]
mov rcx, qword [rsp + 0x2d8]
call fcn.140014930
mov qword [rsp + 0x2e0], rax
mov rdx, qword [rsp + 0x2e0]
lea rcx, [rsp + 0xc8]
call fcn.1400aaa00
nop
lea rcx, [rsp + 0x70]
call fcn.140013530
nop
lea rax, [rsp + 0x730]
mov qword [rsp + 0x2e8], rax
mov rdx, qword [rsp + 0x770]
mov rcx, qword [rsp + 0x2e8]
call fcn.14009af10
mov qword [rsp + 0x2f0], rax
mov rdx, qword [rsp + 0x2f0]
lea rcx, [rsp + 0x3b0]
call fcn.14009bcb0
mov qword [rsp + 0x2f8], rax
mov rax, qword [rsp + 0x2f8]
mov qword [rsp + 0x300], rax
mov rax, qword [rsp + 0x300]
mov rax, qword [rax]
mov qword [rsp + 0x308], rax
mov rax, qword [rsp + 0x308]
mov qword [rsp + 0x310], rax
mov rax, qword [rsp + 0x310]
mov qword [rsp + 0x380], rax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x6c], eax
lea rax, [rsp + 0x480]
mov qword [rsp + 0x320], rax
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x14022c27e
lea rax, [rsp + 0xd8]
mov qword [rsp + 0xb0], rax
jmp 0x14022c28e
lea rax, [rsp + 0xd0]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x318], rax
mov rdx, qword [rsp + 0x318]
mov rcx, qword [rsp + 0x320]
call fcn.1400133e0
mov qword [rsp + 0x328], rax
mov rdx, qword [rsp + 0x328]
lea rcx, [rsp + 0x3a8]
call fcn.1400aa010
mov qword [rsp + 0x330], rax
mov rax, qword [rsp + 0x330]
mov qword [rsp + 0x338], rax
mov rax, qword [rsp + 0x338]
mov rax, qword [rax]
mov qword [rsp + 0x340], rax
mov rax, qword [rsp + 0x340]
mov qword [rsp + 0x348], rax
mov rax, qword [rsp + 0x348]
mov qword [rsp + 0x388], rax
mov rax, qword [rsp + 0x768]
mov rax, qword [rax]
mov qword [rsp + 0x350], rax
mov rax, qword [rsp + 0x350]
mov qword [rsp + 0x358], rax
mov rax, qword [rsp + 0x358]
mov qword [rsp + 0x390], rax
lea rax, [rsp + 0x488]
mov qword [rsp + 0x360], rax
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x360]
call fcn.1400133e0
mov qword [rsp + 0x368], rax
mov rdx, qword [rsp + 0x368]
lea rcx, [rsp + 0x3a0]
call fcn.1400aa010
mov qword [rsp + 0x370], rax
mov rax, qword [rsp + 0x370]
mov qword [rsp + 0x378], rax
mov rcx, qword [rsp + 0x378]
call fcn.14000f0c0
mov qword [rsp + 0x398], rax
mov rax, qword [rsp + 0x380]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x388]
mov r8, qword [rsp + 0x390]
mov rdx, qword [rsp + 0x398]
lea rcx, [rsp + 0x70]
call fcn.14001d4a0
nop
lea rcx, [rsp + 0x3a0]
call fcn.1400165c0
nop
lea rcx, [rsp + 0x3a8]
call fcn.1400165c0
nop
lea rcx, [rsp + 0x3b0]
call fcn.1400165c0
nop
lea rdx, [0x1402b407c]
lea rcx, [rsp + 0xc0]
call fcn.140013470
nop
lea rdx, [0x1402b407c]
lea rcx, [rsp + 0xb8]
call fcn.140013470
nop
lea rax, [rsp + 0x490]
mov qword [rsp + 0x3b8], rax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x3b8]
call fcn.1400133e0
mov qword [rsp + 0x3c0], rax
mov rdx, qword [rsp + 0x3c0]
lea rcx, [rsp + 0x410]
call fcn.1400aa010
mov qword [rsp + 0x3c8], rax
mov rax, qword [rsp + 0x3c8]
mov qword [rsp + 0x3d0], rax
mov rax, qword [rsp + 0x3d0]
mov qword [rsp + 0x3f8], rax
lea rax, [rsp + 0x498]
mov qword [rsp + 0x3d8], rax
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x3d8]
call fcn.1400133e0
mov qword [rsp + 0x3e0], rax
mov rdx, qword [rsp + 0x3e0]
lea rcx, [rsp + 0x408]
call fcn.1400aa010
mov qword [rsp + 0x3e8], rax
mov rax, qword [rsp + 0x3e8]
mov qword [rsp + 0x3f0], rax
mov rax, qword [rsp + 0x3f0]
mov qword [rsp + 0x400], rax
mov byte [rsp + 0x28], 1
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xb8]
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x3f8]
mov rcx, qword [rsp + 0x400]
call fcn.1400cadf0
nop
lea rcx, [rsp + 0x408]
call fcn.1400165c0
nop
lea rcx, [rsp + 0x410]
call fcn.1400165c0
nop
lea rcx, [rsp + 0xb8]
call fcn.1400165c0
nop
lea rcx, [rsp + 0xc0]
call fcn.1400165c0
nop
lea rcx, [rsp + 0x70]
call fcn.1400165c0
nop
lea rcx, [rsp + 0xc8]
call fcn.1400165c0
nop
lea rcx, [rsp + 0xd0]
call fcn.1400165c0
nop
lea rcx, [rsp + 0xd8]
call fcn.1400165c0
nop
lea rcx, [rsp + 0xe0]
call fcn.1400165c0
nop
lea rcx, [rsp + 0xe8]
call fcn.1400165c0
nop
lea rcx, [rsp + 0x78]
call fcn.1400165c0
nop
lea rcx, [rsp + 0xf0]
call fcn.1400165c0
nop
lea rcx, [rsp + 0x40]
call fcn.1400165c0
nop
lea rcx, [rsp + 0x80]
call fcn.1400165c0
nop
lea rcx, [rsp + 0x60]
call fcn.1400165c0
nop
mov rcx, qword [rsp + 0x768]
call fcn.1400165c0
nop
mov rcx, qword [rsp + 0x770]
call fcn.1400165c0
nop
mov rcx, qword [rsp + 0x778]
call fcn.1400165c0
nop
mov rcx, qword [rsp + 0x780]
call fcn.1400165c0
nop
mov rcx, qword [rsp + 0x788]
call fcn.1400173d0
nop
mov rcx, qword [rsp + 0x790]
call fcn.1400165c0
nop
add rsp, 0x758
ret