Function at 0x465f10
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 [0x603024]
xor eax, ebp
mov dword [esp + 0x118], eax
cmp byte [edx + 0x11], 0
mov dword [esp + 0x10], ecx
jne 0x4663ce
mov al, byte [0x605f68]
xor ebx, ebx
test al, 0x19
mov byte [esp + 7], al
jne 0x466418
xor eax, eax
dec eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0xb0]
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x60]
push 0x104
push str..._.._base_process_launch_win.cc
push str.LaunchProcess
push esi
call fcn.004e0f50
add esp, 0x10
mov ecx, edi
push 0x614ecc
push esi
call fcn.00487770
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.00487a00
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x3e], 0
je 0x465feb
call fcn.004f03e0
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 0x466490
lea ecx, [esp + 0x60]
push eax
call fcn.00487a60
mov dword [esp + 8], 0x80000
test al, al
je 0x46630e
cmp byte [esi + 0x3e], 0
je 0x46604c
call fcn.004f03e0
cmp eax, 0x10
jl 0x46604c
lea eax, [esp + 0x100]
or byte [eax + 0xb], 0x20
lea ecx, [esp + 0x60]
push 0x10
push eax
push 0x20007
call fcn.00487b10
test al, al
je 0x46630e
cmp dword [esi + 0x14], 1
mov edi, dword [esi + 0x18]
sete cl
mov ebx, dword [esi + 0x1c]
cmp edi, ebx
je 0x4660a6
cmp ebx, edi
js 0x46630e
xor esi, esi
inc esi
push esi
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x46631f
add edi, 4
cmp edi, ebx
jne 0x466068
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
sub edx, eax
lea ecx, [esp + 0x60]
push edx
push eax
push 0x20002
call fcn.00487b10
mov cl, 1
test al, al
je 0x46630e
cmp byte [esi + 0x12], 0
jne 0x46649d
mov ebx, ecx
cmp byte [esi + 0x28], 0
jne 0x4664aa
mov eax, dword [esp + 0x90]
mov ecx, eax
or ecx, 1
mov dword [esp + 0x90], ecx
movzx ecx, byte [esi + 0x10]
xor ecx, 1
mov word [esp + 0x94], cx
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov esi, dword [esi + 0x38]
test ecx, ecx
jne 0x466356
test edx, edx
jne 0x466356
test esi, esi
jne 0x466356
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x2c], 0
jne 0x46629e
mov eax, dword [esp + 8]
mov edi, eax
or edi, 0x1000000
cmp byte [esi + 0x3c], 0
cmove edi, eax
pxor xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movzx eax, byte [esi + 0xf]
test al, al
mov edx, dword [ebp + 0xc]
jns 0x46613c
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
jmp 0x46613f
lea ecx, [esi + 4]
test eax, eax
cmove ecx, eax
mov dword [esp + 8], ecx
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
jns 0x4664b7
lea ecx, [esp + 0x40]
push dword [edx + 4]
push dword [edx]
call fcn.004de080
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x4664cd
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 0x46637c
cmp dword [esi + 0x48], 0
jne 0x46637c
movzx ecx, bl
cmp byte [esp + 0x4b], 0
jns 0x4661b6
mov edx, dword [esp + 0x40]
jmp 0x4661ba
lea edx, [esp + 0x40]
lea esi, [esp + 0x50]
xor ebx, ebx
push esi
lea esi, [esp + 0x68]
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 0x46650c
cmp byte [esp + 0xcb], 0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
js 0x466537
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x30]
movdqa xmmword [ecx], xmm0
lea eax, [esp + 0x50]
push eax
call fcn.00482d80
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x4662ba
cmp byte [esi + 0x3d], 0
jne 0x46654b
cmp byte [esi], 0
jne 0x466563
mov eax, dword [esp + 0x38]
mov ecx, dword [0x618c50]
test ecx, ecx
jne 0x4665bf
lea ecx, [esp + 0x30]
call fcn.00482f30
mov ecx, ebx
push eax
call fcn.004e9760
lea ecx, [esp + 0x30]
call fcn.00482e90
cmp byte [esp + 0x4b], 0
jns 0x466266
push dword [esp + 0x40]
call fcn.005039aa
add esp, 4
lea ecx, [esp + 0x60]
call fcn.00487a30
lea ecx, [esp + 0xb0]
call fcn.004878a0
test byte [esp + 7], 0x19
jne 0x4665cd
mov ecx, dword [esp + 0x118]
xor ecx, ebp
call fcn.00504b53
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004f03e0
mov edx, dword [esp + 8]
lea ecx, [edx + 0x1000000]
cmp eax, 5
mov eax, edx
cmovl eax, ecx
jmp 0x466110
push dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x466214
lea esi, [esp + 0xc0]
xor eax, eax
dec eax
mov dword [esi + 4], eax
mov dword [esi], eax
lea ecx, [esp + 0x30]
call fcn.00482f30
mov ecx, esi
push eax
call fcn.004e9760
xor eax, eax
inc eax
mov ecx, esi
push eax
push eax
call fcn.00562a30
mov ecx, ebx
push 0
call fcn.004e9760
mov ecx, esi
call fcn.004e97d0
jmp 0x46624a
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.004e9760
jmp 0x466266
push 0x13f
push str..._.._base_process_launch_win.cc
lea eax, [esp + 0xc8]
push eax
call fcn.0057c880
add esp, 0xc
lea ecx, [esp + 0xc0]
call fcn.0057c7c0
lea ecx, [esp + 0xc0]
call fcn.0057c7d0
jmp 0x46607a
or eax, 0x101
mov dword [esp + 0x90], eax
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], esi
jmp 0x4660ff
test cl, cl
je 0x466627
mov eax, dword [ebp + 0x10]
add eax, 0x40
lea esi, [esp + 0x30]
push eax
push 0x5e7fe2
push esi
call fcn.0057c8a0
add esp, 0xc
mov eax, dword [esi + 8]
mov dword [esp + 0xc8], eax
movq xmm0, qword [esi]
movq qword [esp + 0xc0], xmm0
cmp byte [esp + 0xcb], 0
jns 0x466615
mov eax, dword [esp + 0xc0]
jmp 0x46661c
movzx esi, byte [edx]
movzx ebx, byte [edx + 0x10]
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x4663e9
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [esp + 0x10], ecx
lea edi, [esp + 0x60]
push eax
push dword [esp + 0x14]
push edi
call fcn.0055c820
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, edi
push esi
push ebx
mov ebx, ecx
call fcn.00562540
add esp, 8
mov ecx, edi
call fcn.00459000
jmp 0x466286
call fcn.004e9ab0
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.004ebfd0
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], 0x605f68
mov dword [esp], 0x58
call fcn.004ecc70
add esp, 0x30
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], str.LaunchProcess
mov dword [esp + 0xc], 0x605f68
jmp 0x465f6b
mov dword [esp + 8], 0
jmp 0x466018
or byte [esp + 0x90], 0x80
jmp 0x4660b0
mov dword [esp + 0x6c], 0x5e084a
jmp 0x4660bc
mov eax, dword [edx + 8]
mov dword [esp + 0x48], eax
movq xmm0, qword [edx]
movq qword [esp + 0x40], xmm0
jmp 0x46616f
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 0x4666b7
or edi, 0x400
mov ecx, dword [esp + 0xc0]
movzx esi, bl
cmp byte [esp + 0x4b], 0
jns 0x466673
mov edx, dword [esp + 0x40]
jmp 0x466677
mov ecx, dword [ebp + 8]
push 0
call fcn.004e9760
cmp byte [esp + 0xcb], 0
jns 0x46652f
push dword [esp + 0xc0]
call fcn.005039aa
add esp, 4
mov ebx, dword [ebp + 8]
jmp 0x466253
push dword [esp + 0xc0]
call fcn.005039aa
add esp, 4
jmp 0x4661f3
push dword [esp + 0x30]
call fcn.00483d80
add esp, 4
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x46621e
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 0x1bc
push str..._.._base_process_launch_win.cc
push str.LaunchProcess
push esi
call fcn.004e0f50
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.004e70c0
push 0xffffffffffffffff
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.004e7120
jmp 0x466227
push dword [ebp + 0xc]
push eax
call fcn.00577920
jmp 0x466239
mov eax, dword [esp + 0xc]
cmp byte [eax], 0
je 0x466286
mov eax, dword [esp + 0x18]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], eax
sub esp, 0x10
movq xmm0, qword [esp + 0x70]
movq qword [esp + 8], xmm0
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.004ed690
add esp, 0x10
jmp 0x466286
lea eax, [esp + 0xc0]
or edi, 0x400
jmp 0x4661a6
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x4666b7
mov esi, eax
mov eax, dword [ebp + 0x10]
add eax, 0x40
lea edx, [esp + 0x30]
push eax
push esi
push edx
call fcn.0057c8a0
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]
jmp 0x4663b4
lea edx, [esp + 0x40]
lea ebx, [esp + 0x50]
xor eax, eax
push ebx
lea ebx, [esp + 0x68]
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 + 0x24]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
push dword [esp + 0xc0]
call sub.USERENV.dll_DestroyEnvironmentBlock
test esi, esi
je 0x4666b7
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
jmp 0x4661f3
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.004e9760
jmp 0x466253