Function at 0x54f360
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, 0x120
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x7aa024]
xor eax, ebp
mov dword [esp + 0x118], eax
cmp byte [edx + 0x11], 0
jne 0x54f710
mov al, byte [0x7acc98]
xor ebx, ebx
mov byte [esp + 0xb], al
test al, 0x19
jne 0x54fa00
xor eax, eax
dec eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0xb0]
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x60]
push 0x185
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
push esi
call fcn.005e42b0
add esp, 0x10
mov ecx, edi
push 0x7bc314
push esi
call fcn.00576340
pxor xmm0, xmm0
movdqa xmmword [esp + 0x100], xmm0
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 + 0x60]
call fcn.005765d0
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x3f], 0
je 0x54f437
call fcn.005f29b0
xor ebx, ebx
cmp eax, 0x10
setge bl
mov ecx, dword [esi + 0x18]
xor eax, eax
cmp ecx, dword [esi + 0x1c]
setne al
add eax, ebx
je 0x54f45e
lea ecx, [esp + 0x60]
push eax
call fcn.00576630
mov edi, 0x80000
test al, al
jne 0x54f460
jmp 0x54f5fd
xor edi, edi
cmp byte [esi + 0x3f], 0
je 0x54f494
call fcn.005f29b0
cmp eax, 0x10
jl 0x54f494
lea eax, [esp + 0x100]
or byte [eax + 0xb], 0x20
lea ecx, [esp + 0x60]
push 0x10
push eax
push 0x20007
call fcn.005766e0
test al, al
je 0x54f5fd
mov dword [esp + 0xc], edi
cmp dword [esi + 0x14], 1
mov ebx, dword [esi + 0x18]
sete cl
mov edi, esi
mov esi, dword [esi + 0x1c]
cmp ebx, esi
je 0x54f526
cmp esi, ebx
js 0x54f5fd
xor edi, edi
inc edi
push edi
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x54f4cd
add ebx, 4
cmp ebx, esi
jne 0x54f4b6
jmp 0x54f501
push 0x1c0
push str....._baseprocesslaunch_win.cc
lea eax, [esp + 0xc8]
push eax
call fcn.006d01c0
add esp, 0xc
lea ecx, [esp + 0xc0]
call fcn.006d0100
lea ecx, [esp + 0xc0]
call fcn.006d0110
jmp 0x54f4c4
mov edi, dword [ebp + 0x10]
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
sub edx, eax
lea ecx, [esp + 0x60]
push edx
push eax
push 0x20002
call fcn.005766e0
mov cl, 1
test al, al
je 0x54f5fd
cmp byte [edi + 0x12], 0
je 0x54f534
or byte [esp + 0x90], 0x80
mov byte [esp + 0xa], cl
cmp byte [edi + 0x28], 0
je 0x54f546
mov dword [esp + 0x6c], 0x743e56
mov ecx, dword [esp + 0x90]
mov eax, ecx
or eax, 1
mov dword [esp + 0x90], eax
movzx edx, byte [edi + 0x10]
xor edx, 1
mov word [esp + 0x94], dx
mov edx, dword [edi + 0x30]
mov esi, dword [edi + 0x34]
mov edi, dword [edi + 0x38]
test edx, edx
jne 0x54f57d
test esi, esi
jne 0x54f57d
test edi, edi
je 0x54f5a1
or ecx, 0x101
mov dword [esp + 0x90], ecx
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], edi
mov eax, ecx
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x3e], 0
je 0x54f5b6
or eax, 0x80
mov dword [esp + 0x90], eax
cmp dword [esi + 0x2c], 0
mov edi, dword [esp + 0xc]
je 0x54f5d1
call fcn.005f29b0
lea ecx, [edi + 0x1000000]
cmp eax, 5
cmovl edi, ecx
mov edx, dword [ebp + 0xc]
mov ebx, edi
or ebx, 0x1000000
cmp byte [esi + 0x3c], 0
cmove ebx, edi
pxor xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movzx eax, byte [esi + 0xf]
test al, al
jns 0x54f60c
mov eax, dword [esi + 8]
mov edi, dword [esi + 4]
jmp 0x54f60f
mov ecx, dword [ebp + 8]
push 0
call fcn.005f1b60
jmp 0x54f990
lea edi, [esi + 4]
test eax, eax
cmove edi, eax
xor eax, eax
dec eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
cmp byte [edx + 0xb], 0
js 0x54f63c
mov eax, dword [edx + 8]
mov dword [esp + 0x48], eax
movq xmm0, qword [edx]
movq qword [esp + 0x40], xmm0
jmp 0x54f64a
lea ecx, [esp + 0x40]
push dword [edx + 4]
push dword [edx]
call fcn.005df860
mov eax, dword [esi + 0x24]
test eax, eax
je 0x54f68f
xor ecx, ecx
lea edx, [esp + 0xc0]
mov dword [edx], ecx
push ecx
push eax
push edx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x54f701
or ebx, 0x400
mov ecx, dword [esp + 0xc0]
movzx eax, byte [esp + 0xa]
mov dword [esp + 0xc], eax
cmp byte [esp + 0x4b], 0
jns 0x54f6c4
mov edx, dword [esp + 0x40]
jmp 0x54f6c8
xor eax, eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc8], eax
mov cl, byte [esi + 0x4c]
test cl, cl
jne 0x54f74e
cmp dword [esi + 0x48], 0
jne 0x54f74e
mov cl, byte [esp + 0xa]
jmp 0x54f7e9
lea edx, [esp + 0x40]
lea esi, [esp + 0x50]
xor eax, eax
push esi
lea esi, [esp + 0x68]
push esi
push edi
push ecx
push ebx
push dword [esp + 0x20]
push eax
push eax
push edx
push eax
mov esi, dword [ebp + 0x10]
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
push dword [esp + 0xc0]
call sub.USERENV.dll_DestroyEnvironmentBlock
test edi, edi
jne 0x54f842
mov ecx, dword [ebp + 8]
push 0
call fcn.005f1b60
jmp 0x54f97d
movzx esi, byte [edx]
movzx ebx, byte [edx + 0x10]
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x54f724
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
lea edi, [esp + 0x60]
push eax
push ecx
push edi
call fcn.006a1fa0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, edi
push esi
push ebx
call fcn.006a8760
add esp, 8
mov ecx, edi
call fcn.0053d090
jmp 0x54f9e7
test cl, cl
je 0x54f781
lea eax, [esi + 0x40]
lea esi, [esp + 0x30]
push eax
push 0x75af40
push esi
call fcn.006d01e0
add esp, 0xc
mov eax, dword [esi + 8]
mov dword [esp + 0xc8], eax
movq xmm0, qword [esi]
movq qword [esp + 0xc0], xmm0
jmp 0x54f7c5
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x54f701
lea ecx, [esi + 0x40]
lea edx, [esp + 0x30]
push ecx
push eax
push edx
mov esi, eax
call fcn.006d01e0
add esp, 0xc
lea ecx, [esp + 0x30]
mov eax, dword [ecx + 8]
mov dword [esp + 0xc8], eax
movq xmm0, qword [ecx]
movq qword [esp + 0xc0], xmm0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
cmp byte [esp + 0xcb], 0
mov cl, byte [esp + 0xa]
jns 0x54f7dc
mov eax, dword [esp + 0xc0]
jmp 0x54f7e3
lea eax, [esp + 0xc0]
or ebx, 0x400
movzx ecx, cl
mov dword [esp + 0xc], ecx
cmp byte [esp + 0x4b], 0
jns 0x54f7fd
mov edx, dword [esp + 0x40]
jmp 0x54f801
lea edx, [esp + 0x40]
lea esi, [esp + 0x50]
xor ecx, ecx
push esi
lea esi, [esp + 0x68]
push esi
push edi
push eax
push ebx
push dword [esp + 0x20]
push ecx
push ecx
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x54f912
cmp byte [esp + 0xcb], 0
jns 0x54f83f
push dword [esp + 0xc0]
call fcn.0064cd6e
add esp, 4
mov esi, dword [ebp + 0x10]
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x30]
movdqa xmmword [ecx], xmm0
lea eax, [esp + 0x50]
push eax
call fcn.00576710
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x54f872
push dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x54f937
cmp byte [esi + 0x3d], 0
je 0x54f88b
push dword [esp + 0x30]
call fcn.0054fae0
add esp, 4
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp byte [esi], 0
je 0x54f8e7
pcmpeqd xmm0, xmm0
lea edi, [esp + 0xc0]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x20]
push 0x241
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
push esi
call fcn.005e42b0
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.005eec20
push 0xffffffffffffffff
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.005eec80
mov eax, dword [esp + 0x38]
mov ecx, dword [0x7bc9dc]
test ecx, ecx
je 0x54f8fe
push dword [ebp + 0xc]
push eax
call fcn.006ca0a0
lea ecx, [esp + 0x30]
call fcn.005768c0
mov ecx, dword [ebp + 8]
push eax
call fcn.005f1b60
jmp 0x54f974
mov ecx, dword [ebp + 8]
push 0
call fcn.005f1b60
cmp byte [esp + 0xcb], 0
jns 0x54f97d
push dword [esp + 0xc0]
call fcn.0064cd6e
add esp, 4
jmp 0x54f97d
lea edi, [esp + 0xc0]
xor eax, eax
dec eax
mov dword [edi + 4], eax
mov dword [edi], eax
lea ecx, [esp + 0x30]
call fcn.005768c0
mov ecx, edi
push eax
call fcn.005f1b60
xor eax, eax
inc eax
mov ecx, edi
push eax
push eax
call fcn.006a8f90
mov ecx, dword [ebp + 8]
push 0
call fcn.005f1b60
mov ecx, edi
call fcn.005f1bd0
lea ecx, [esp + 0x30]
call fcn.00576820
cmp byte [esp + 0x4b], 0
jns 0x54f990
push dword [esp + 0x40]
call fcn.0064cd6e
add esp, 4
lea ecx, [esp + 0x60]
call fcn.00576600
lea ecx, [esp + 0xb0]
call fcn.00576470
test byte [esp + 0xb], 0x19
mov ecx, dword [esp + 0x1c]
je 0x54f9e7
cmp byte [ecx], 0
je 0x54f9e7
mov eax, dword [esp + 0x14]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x64], eax
sub esp, 0x10
movq xmm0, qword [esp + 0x70]
movq qword [esp + 8], xmm0
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.005f4c40
add esp, 0x10
mov ecx, dword [esp + 0x118]
xor ecx, ebp
call fcn.0064d372
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.005f24d0
mov edi, eax
xor eax, eax
dec eax
lea esi, [esp + 0x60]
mov dword [esi + 4], eax
mov dword [esi], eax
push esi
call fcn.005f3000
sub esp, 0x2c
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], eax
pxor xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 8], str.LaunchProcess
mov dword [esp + 4], 0x7acc98
mov dword [esp], 0x58
call fcn.005f4220
add esp, 0x30
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], str.LaunchProcess
mov dword [esp + 0x1c], 0x7acc98
jmp 0x54f3b7