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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x2a0
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [0x644040]
xor eax, ebp
mov dword [esp + 0x298], eax
lea esi, [esp + 0x108]
push 0x190
push 0
push esi
call fcn.005679e0
mov ecx, edi
add esp, 0xc
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x40fb66
mov eax, dword [ecx]
mov dword [esp + 0xc], ecx
xor ecx, ecx
movzx edx, word [eax + ecx*2]
mov word [esp + ecx*2 + 0x108], dx
test dx, dx
je 0x40fb90
inc ecx
cmp ecx, 0xc8
jne 0x40fb6c
mov word [esp + 0x296], 0
push esi
call fcn.005017e0
add esp, 4
mov eax, dword [ebp + 0x10]
cmp byte [eax + 0x1d], 1
je 0x410240
mov dword [esp + 0x20], 0xa
mov al, byte [0x649456]
test al, al
jne 0x4102d0
xor eax, eax
dec eax
lea edi, [esp + 0xe4]
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov dword [edi], eax
lea esi, [esp + 0x90]
push 0x103
push str.launch_win.cc
push str.LaunchProcess
push esi
call fcn.0050b5e0
add esp, 0x10
mov ecx, edi
push 0x6496f0
push esi
call fcn.004497d0
pxor xmm0, xmm0
movdqa xmmword [esp + 0xf0], xmm0
movdqa xmmword [esi], xmm0
movdqu xmmword [esi + 0x3c], xmm0
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
mov dword [esi + 4], 0x48
mov dword [esp + 8], 0
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x4a], 1
mov ecx, 0
jne 0x40fc48
call fcn.00538ad0
xor ecx, ecx
cmp eax, 0x10
setge cl
mov edx, dword [esi + 0x24]
xor eax, eax
cmp edx, dword [esi + 0x28]
setne al
add eax, ecx
je 0x40fc74
lea ecx, [esp + 0x90]
push eax
call fcn.0042e7d0
mov dword [esp + 8], 0x80000
test al, al
je 0x4101c5
cmp byte [esi + 0x4a], 1
jne 0x40fcbe
call fcn.00538ad0
cmp eax, 0x10
jl 0x40fcbe
or byte [esp + 0xfb], 0x20
mov eax, dword [esp + 0xd8]
test eax, eax
je 0x4102b2
xor ecx, ecx
lea edx, [esp + 0xf0]
push ecx
push ecx
push 0x10
push edx
push 0x20007
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x4102b2
cmp dword [esi + 0x20], 1
mov edi, dword [esi + 0x24]
sete cl
mov ebx, dword [esi + 0x28]
cmp edi, ebx
je 0x40fd33
cmp ebx, edi
js 0x410222
xor esi, esi
inc esi
push esi
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x4101e0
add edi, 4
cmp edi, ebx
jne 0x40fcda
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
sub ecx, eax
je 0x40ff81
mov edx, dword [esp + 0xd8]
test edx, edx
je 0x40fff9
xor esi, esi
push esi
push esi
push ecx
push eax
push 0x20002
push esi
mov esi, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
mov cl, 1
test eax, eax
je 0x40fff9
cmp byte [esi + 0x1e], 1
je 0x40ffdc
mov byte [esp + 7], cl
cmp byte [esi + 0x34], 1
je 0x40ffe9
mov eax, dword [esp + 0xc0]
mov ecx, eax
or ecx, 1
mov dword [esp + 0xc0], ecx
movzx ecx, byte [esi + 0x1c]
xor ecx, 1
mov word [esp + 0xc4], cx
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov esi, dword [esi + 0x44]
test ecx, ecx
jne 0x40ff90
test edx, edx
jne 0x40ff90
test esi, esi
jne 0x40ff90
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x38], 0
jne 0x40fdc4
mov edx, dword [esp + 8]
mov edi, edx
or edi, 0x1000000
cmp byte [esi + 0x48], 0
cmove edi, edx
pxor xmm0, xmm0
movdqa xmmword [esp + 0x70], xmm0
movsx eax, byte [esi + 0x1b]
test eax, eax
mov edx, dword [ebp + 0xc]
js 0x40fddb
lea ecx, [esi + 0x10]
jmp 0x40fde1
call fcn.00538ad0
mov edx, dword [esp + 8]
lea ecx, [edx + 0x1000000]
cmp eax, 5
cmovl edx, ecx
jmp 0x40fd9b
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
test eax, eax
cmove ecx, eax
mov dword [esp + 8], ecx
xor eax, eax
dec eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
cmp byte [edx + 0xb], 0
jns 0x410028
lea ecx, [esp + 0x60]
push dword [edx + 4]
push dword [edx]
call fcn.00543180
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x41003e
pxor xmm0, xmm0
movq qword [esp + 0x20], xmm0
mov dword [esp + 0x28], 0
mov cl, byte [esi + 0x58]
test cl, cl
jne 0x410124
xor eax, eax
cmp dword [esi + 0x54], 0
jne 0x410124
movzx ecx, byte [esp + 7]
cmp byte [esp + 0x6b], 0
js 0x40fe6b
lea edx, [esp + 0x60]
jmp 0x40fe6f
push dword [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x40fec5
jmp 0x410375
mov edx, dword [esp + 0x60]
lea esi, [esp + 0x70]
xor ebx, ebx
push esi
lea esi, [esp + 0x98]
push esi
push dword [esp + 0x10]
push eax
push edi
push ecx
push ebx
push ebx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4100b6
cmp byte [esp + 0x2b], 0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
js 0x410017
pxor xmm0, xmm0
lea ecx, [esp + 0x50]
movdqa xmmword [ecx], xmm0
lea eax, [esp + 0x70]
push eax
call fcn.0042ca90
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x40fe57
cmp byte [esi + 0x49], 1
je 0x4101ad
cmp byte [esi], 1
je 0x410321
xor eax, eax
mov dword [esp + 0x58], eax
mov esi, dword [esp + 0x50]
mov dword [esp + 0x50], eax
lea eax, [esi + 1]
cmp eax, 2
jb 0x40fef3
call fcn.005018d0
mov ecx, ebx
push esi
call fcn.00410410
lea ecx, [esp + 0x50]
call fcn.0042d9d0
cmp byte [esp + 0x6b], 0
jns 0x40ff17
push dword [esp + 0x60]
call fcn.00562f60
add esp, 4
mov eax, dword [esp + 0xd8]
test eax, eax
je 0x40ff29
push eax
call dword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov eax, dword [esp + 0x90]
mov dword [esp + 0x90], 0
test eax, eax
je 0x40ff48
push eax
call fcn.0056477d
add esp, 4
lea ecx, [esp + 0xe4]
call fcn.00449670
mov dword [esp + 0x20], 0xa
mov al, byte [0x649456]
test al, al
jne 0x4102f6
mov ecx, dword [esp + 0x298]
xor ecx, ebp
call fcn.00566245
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push str....._third_partylibc_srcinclude_vector:1418:_assertion___n___size___failed:_vector___index_out_of_bounds_n
push 0x622e92
call fcn.00590170
mov edi, dword [ebp + 0x10]
mov edi, dword [edi + 0x24]
mov ebx, dword [ebp + 0x10]
cmp edi, dword [ebx + 0x28]
jne 0x40ffb6
test ecx, ecx
je 0x4103f8
test edx, edx
je 0x4103fb
test esi, esi
je 0x4103ec
or eax, 0x101
mov dword [esp + 0xc0], eax
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], esi
jmp 0x40fd8e
or byte [esp + 0xc0], 0x80
jmp 0x40fd3d
mov dword [esp + 0x9c], 0x62385e
jmp 0x40fd4b
mov ebx, dword [ebp + 8]
mov dword [ebx], 0
mov byte [ebx + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x40ff17
int3
push dword [esp + 0x20]
call fcn.00562f60
add esp, 4
jmp 0x40fea8
mov eax, dword [edx + 8]
mov dword [esp + 0x68], eax
movq xmm0, qword [edx]
movq qword [esp + 0x60], xmm0
jmp 0x40fe11
xor ecx, ecx
lea edx, [esp + 0x20]
mov dword [edx], ecx
push ecx
push eax
push edx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x4100ec
or edi, 0x400
mov ecx, dword [esp + 0x20]
movzx esi, byte [esp + 7]
cmp byte [esp + 0x6b], 0
js 0x410072
lea edx, [esp + 0x60]
jmp 0x410076
mov edx, dword [esp + 0x60]
lea ebx, [esp + 0x70]
xor eax, eax
push ebx
lea ebx, [esp + 0x98]
push ebx
push dword [esp + 0x10]
push ecx
push edi
push esi
push eax
push eax
push edx
push eax
mov eax, dword [ebp + 0x10]
push dword [eax + 0x30]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
push dword [esp + 0x20]
call sub.USERENV.dll_DestroyEnvironmentBlock
test edi, edi
je 0x410108
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
jmp 0x40fea8
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov byte [eax + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
je 0x4103fe
cmp byte [esp + 0x2b], 0
jns 0x4100e4
push dword [esp + 0x20]
call fcn.00562f60
add esp, 4
mov ebx, dword [ebp + 8]
jmp 0x40ff04
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov byte [eax + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x4100e4
jmp 0x4103ef
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov byte [eax + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x4100e4
jmp 0x4103f2
test cl, cl
jne 0x410167
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x4100b6
mov esi, eax
mov eax, dword [ebp + 0x10]
add eax, 0x4c
lea edx, [esp + 0x50]
push eax
push esi
push edx
call fcn.005c0400
add esp, 0xc
lea ecx, [esp + 0x50]
mov eax, dword [ecx + 8]
mov dword [esp + 0x28], eax
movq xmm0, qword [ecx]
movq qword [esp + 0x20], xmm0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x410191
mov eax, dword [ebp + 0x10]
add eax, 0x4c
lea esi, [esp + 0x50]
push eax
push 0x62dfbe
push esi
call fcn.005c0400
add esp, 0xc
mov eax, dword [esi + 8]
mov dword [esp + 0x28], eax
movq xmm0, qword [esi]
movq qword [esp + 0x20], xmm0
cmp byte [esp + 0x2b], 0
js 0x41019e
lea eax, [esp + 0x20]
jmp 0x4101a2
mov eax, dword [esp + 0x20]
or edi, 0x400
jmp 0x40fe45
push dword [esp + 0x50]
call fcn.004f2080
add esp, 4
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x40fecf
mov dword [ebx], 0
mov byte [ebx + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x40ff17
int3
push 0x13e
push str.launch_win.cc
push str.LaunchProcess
lea eax, [esp + 0x2c]
push eax
call fcn.0050b5e0
add esp, 0x10
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.005bb200
add esp, 8
lea ecx, [esp + 0x8c]
call fcn.005907d0
jmp 0x40fcec
mov ebx, dword [ebp + 8]
mov dword [ebx], 0
mov byte [ebx + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x40ff17
int3
mov eax, dword [ebp + 0xc]
movsx eax, byte [eax + 0xb]
test eax, eax
jns 0x410257
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [esp + 0xc], ecx
test eax, eax
js 0x4103d8
sete cl
cmp dword [esp + 0xc], 0
setne dl
or dl, cl
je 0x4103e2
mov ecx, dword [ebp + 0x10]
mov bl, byte [ecx]
mov bh, byte [ecx + 0x1c]
lea edi, [esp + 0x90]
push eax
push dword [esp + 0x10]
push edi
call fcn.0045b7e0
add esp, 0xc
movzx eax, bl
movzx esi, bh
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov edx, edi
push eax
push esi
call fcn.005b3b40
add esp, 8
mov ecx, edi
call fcn.0043ca00
jmp 0x40ff69
mov ebx, dword [ebp + 8]
mov dword [ebx], 0
mov byte [ebx + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x40ff17
int3
movzx eax, al
lea ecx, [esp + 0x90]
mov dword [ecx], str.LaunchProcess
lea edx, [esp + 0x20]
push 1
push ecx
push edx
push eax
call fcn.0058ff60
add esp, 0x10
jmp 0x40fbbb
movzx eax, al
mov dword [esp + 0x90], 0
lea ecx, [esp + 0x20]
push 2
lea edx, [esp + 0x94]
push edx
push ecx
push eax
call fcn.0058ff60
add esp, 0x10
jmp 0x40ff69
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x10]
push 0x1c2
push str.launch_win.cc
push str.LaunchProcess
push esi
call fcn.0050b5e0
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.00522480
push 0xffffffffffffffff
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.005403a0
jmp 0x40fed8
xor eax, eax
dec eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x58], eax
mov esi, dword [esp + 0x50]
mov dword [esp + 0x50], eax
lea eax, [esi + 1]
cmp eax, 2
jb 0x41039b
call fcn.005018d0
lea edi, [esp + 0x20]
mov ecx, edi
push esi
call fcn.00410410
xor eax, eax
inc eax
mov ecx, edi
push eax
push eax
call fcn.00458900
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov byte [eax + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
je 0x4103f5
lea ecx, [esp + 0x20]
call fcn.00425470
jmp 0x40fefb
push str....._third_partylibc_srcinclude_string_view:318:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
jmp 0x40ff86
push str....._third_partylibc_srcinclude_string_view:320:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
jmp 0x40ff86
int3
int3
int3
int3
int3
int3
int3