Function at 0x531b70
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, 0xb0
mov ebx, dword [ebp + 0x10]
mov eax, dword [0x5c4738]
xor eax, ebp
mov dword [esp + 0xa8], eax
xor eax, eax
dec eax
lea edi, [esp + 0x9c]
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov dword [edi], eax
lea esi, [esp + 0x50]
push 0xd8
push str..._.._base_process_launch_win.cc
push str.LaunchProcess
push esi
call fcn.004c10c0
add esp, 0x10
mov ecx, edi
push 0x5c7ebc
push esi
call fcn.00426d10
pcmpeqd xmm0, xmm0
movdqu xmmword [esi + 0x3c], xmm0
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ecx, [esp + 0x50]
call fcn.00442d70
cmp dword [ebx + 0x20], 1
mov esi, dword [ebx + 0x24]
sete al
mov edi, dword [ebx + 0x28]
cmp esi, edi
je 0x531c4c
mov eax, edi
sub eax, esi
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x531d0b
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.004cde80
lea ecx, [esp + 0x50]
call fcn.00442f40
lea ecx, [esp + 0x9c]
call fcn.00426c00
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.004d25a3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
cmp byte [ebx + 0x1d], 0
je 0x531c5c
or byte [esp + 0x80], 0x80
mov byte [esp + 0xb], al
cmp byte [ebx + 0x34], 0
je 0x531c6e
mov dword [esp + 0x5c], 0x579d68
mov eax, dword [esp + 0x80]
mov ecx, eax
or ecx, 1
mov dword [esp + 0x80], ecx
movzx ecx, byte [ebx + 0x1c]
xor ecx, 1
mov word [esp + 0x84], cx
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x40]
mov esi, ecx
or esi, edx
jne 0x531ca4
xor edx, edx
cmp dword [ebx + 0x44], 0
je 0x531cc8
or eax, 0x101
mov dword [esp + 0x80], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x94], eax
cmp dword [ebx + 0x38], 0
je 0x531ce2
call fcn.004294b0
mov ebx, dword [ebp + 0x10]
lea ecx, [edi + 0x1000000]
cmp eax, 5
cmovl edi, ecx
mov esi, edi
or esi, 0x1000000
cmp byte [ebx + 0x48], 0
cmove esi, edi
pxor xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movzx eax, byte [ebx + 0x1b]
test al, al
jns 0x531d6e
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
jmp 0x531d71
xor ebx, ebx
inc ebx
push ebx
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x5320a0
add esi, 4
cmp edi, esi
jne 0x531d0e
lea ecx, [esp + 0x50]
push 1
call fcn.00442da0
test al, al
je 0x531c13
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x28]
sub edx, eax
lea ecx, [esp + 0x50]
push edx
push eax
push 0x20002
call fcn.00442e50
test al, al
mov ebx, dword [ebp + 8]
je 0x531c16
mov al, 1
mov edi, 0x80000
mov ebx, esi
jmp 0x531c4e
lea ecx, [ebx + 0x10]
test eax, eax
cmove ecx, eax
mov dword [esp + 0xc], ecx
lea edi, [esp + 0x34]
xor eax, eax
dec eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
push dword [ebp + 0xc]
call fcn.0040f3e0
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x531ec7
xor ecx, ecx
lea edx, [esp + 0x10]
mov dword [edx], ecx
push ecx
push eax
push edx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x531eb9
or esi, 0x400
mov ecx, dword [esp + 0x10]
movzx eax, byte [esp + 0xb]
cmp byte [esp + 0x3f], 0
jns 0x531dd0
mov edi, dword [esp + 0x34]
lea edx, [esp + 0x40]
xor ebx, ebx
push edx
lea edx, [esp + 0x58]
push edx
push dword [esp + 0x14]
push ecx
push esi
push eax
push ebx
push ebx
push edi
push ebx
mov eax, dword [ebp + 0x10]
push dword [eax + 0x30]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
push dword [esp + 0x10]
call sub.USERENV.dll_DestroyEnvironmentBlock
test edi, edi
je 0x531eb9
mov ebx, dword [ebp + 8]
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x10]
movdqa xmmword [ecx], xmm0
lea eax, [esp + 0x40]
push eax
call fcn.0042dc70
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x531e3f
push dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
mov ecx, dword [ebp + 0x10]
test eax, eax
je 0x531fff
cmp byte [ecx + 0x49], 0
je 0x531e5b
push dword [esp + 0x10]
call fcn.0042d410
add esp, 4
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov ecx, dword [ebp + 0x10]
cmp byte [ecx], 0
je 0x531e6c
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x5c7598]
test ecx, ecx
je 0x531e83
push dword [ebp + 0xc]
push eax
call fcn.005368d0
lea ecx, [esp + 0x10]
call fcn.00442e80
mov ecx, ebx
push eax
call fcn.004cde80
lea ecx, [esp + 0x10]
call fcn.00442ea0
cmp byte [esp + 0x3f], 0
jns 0x531c1f
push dword [esp + 0x34]
call fcn.004cf0d6
add esp, 4
jmp 0x531c1f
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.004cde80
jmp 0x531e9d
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
cmp byte [ebx + 0x58], 0
je 0x531f80
lea eax, [ebx + 0x4c]
lea ecx, [esp + 0x28]
push eax
push 0x588c14
push ecx
call fcn.0053dcb0
add esp, 0xc
cmp byte [esp + 0x1b], 0
js 0x53203d
lea ebx, [esp + 0x10]
mov eax, dword [esp + 0x30]
mov dword [ebx + 8], eax
movq xmm0, qword [esp + 0x28]
movq qword [ebx], xmm0
mov cl, byte [esp + 0xb]
cmp byte [ebx + 0xb], 0
jns 0x531f25
mov eax, dword [esp + 0x10]
jmp 0x531f29
lea eax, [esp + 0x10]
or esi, 0x400
movzx ecx, cl
cmp byte [esp + 0x3f], 0
jns 0x531f3f
mov edx, dword [esp + 0x34]
jmp 0x531f43
lea edx, [esp + 0x34]
lea edi, [esp + 0x40]
xor ebx, ebx
push edi
lea edi, [esp + 0x58]
push edi
push dword [esp + 0x14]
push eax
push esi
push ecx
push ebx
push ebx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x531fd7
cmp byte [esp + 0x1b], 0
jns 0x531e06
push dword [esp + 0x10]
call fcn.004cf0d6
add esp, 4
jmp 0x531e06
cmp dword [ebx + 0x54], 0
je 0x53206a
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x531fd7
mov edi, eax
mov eax, dword [ebp + 0x10]
add eax, 0x4c
lea ecx, [esp + 0x28]
push eax
push edi
push ecx
call fcn.0053dcb0
add esp, 0xc
cmp byte [esp + 0x1b], 0
js 0x532073
lea ebx, [esp + 0x10]
mov eax, dword [esp + 0x30]
mov dword [ebx + 8], eax
movq xmm0, qword [esp + 0x28]
movq qword [ebx], xmm0
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x531f15
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.004cde80
cmp byte [esp + 0x1b], 0
jns 0x531e9d
push dword [esp + 0x10]
call fcn.004cf0d6
add esp, 4
jmp 0x531e9d
lea edi, [esp + 0x28]
xor eax, eax
dec eax
mov dword [edi + 4], eax
mov dword [edi], eax
lea ecx, [esp + 0x10]
call fcn.00442e80
mov ecx, edi
push eax
call fcn.004cde80
xor eax, eax
inc eax
mov ecx, edi
push eax
push eax
call fcn.00520c40
mov ecx, ebx
push 0
call fcn.004cde80
mov ecx, edi
call fcn.004bc770
jmp 0x531e94
mov eax, dword [esp + 0x10]
mov word [eax], 0
mov dword [esp + 0x14], 0
cmp byte [esp + 0x1b], 0
jns 0x531f00
push dword [esp + 0x10]
call fcn.004cf0d6
add esp, 4
jmp 0x531f00
mov cl, byte [esp + 0xb]
jmp 0x531f2f
mov eax, dword [esp + 0x10]
mov word [eax], 0
mov dword [esp + 0x14], 0
cmp byte [esp + 0x1b], 0
jns 0x531fb6
push dword [esp + 0x10]
call fcn.004cf0d6
add esp, 4
jmp 0x531fb6
push 0xec
push str..._.._base_process_launch_win.cc
lea eax, [esp + 0x48]
push eax
call fcn.0053dc60
add esp, 0xc
lea ecx, [esp + 0x40]
call fcn.0053dc80
lea ecx, [esp + 0x40]
call fcn.0053dc90
jmp 0x531d20