Function at 0x101f4290
Capabilities:
Create process on windows
Query environment variable
Resolve function by parsing pe exports
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x130
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [0x103c2010]
xor eax, ebp
mov dword [esp + 0x128], eax
cmp byte [ecx + 0x11], 0
je 0x101f4316
movzx ebx, byte [ecx]
movzx ecx, byte [ecx + 0x10]
movzx eax, byte [edx + 0xb]
test al, al
mov dword [esp + 0x18], ecx
jns 0x101f42d4
mov eax, dword [edx + 4]
mov edx, dword [edx]
lea esi, [esp + 0x80]
push eax
push edx
push esi
call fcn.1022b220
add esp, 0xc
mov ecx, edi
mov edx, esi
push ebx
push dword [esp + 0x1c]
call fcn.101f3f00
add esp, 8
mov ecx, esi
call fcn.1022a520
mov ecx, dword [esp + 0x128]
xor ecx, ebp
call fcn.102f4c53
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [0x103c49b4]
xor ebx, ebx
mov byte [esp + 0x18], al
test al, 0x19
jne 0x101f4ac4
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x20], 0xffffffff
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0xd0], xmm0
lea esi, [esp + 0x80]
push 0x11c
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
push esi
call fcn.10221d60
add esp, 0x10
lea ecx, [esp + 0xd0]
push 0x103ca7c8
push esi
call fcn.10209220
pxor xmm0, xmm0
movdqa xmmword [esp + 0x110], xmm0
mov dword [esp + 0xcc], 0
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0xbc], xmm0
movdqa xmmword [esp + 0xb0], xmm0
movdqa xmmword [esp + 0xa0], xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
lea ecx, [esp + 0x80]
call fcn.1026aa10
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x42], 0
je 0x101f43f4
call fcn.101ec110
xor ebx, ebx
cmp eax, 0x10
setge bl
movzx eax, byte [esi + 0x43]
add ebx, eax
mov edx, dword [esi + 0x18]
xor ecx, ecx
cmp edx, dword [esi + 0x1c]
setne cl
add ecx, ebx
movzx edx, byte [esi + 0x44]
add edx, ecx
je 0x101f442f
lea ecx, [esp + 0x80]
push edx
call fcn.1026aa70
test al, al
je 0x101f45b9
movzx eax, byte [esi + 0x43]
mov ebx, 0x80000
jmp 0x101f4431
xor ebx, ebx
mov dword [esp + 0x7c], 2
test al, al
je 0x101f445d
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x80]
push 4
push eax
push 0x20012
call fcn.1026ab20
test al, al
je 0x101f45b9
cmp byte [esi + 0x42], 0
je 0x101f4498
call fcn.101ec110
cmp eax, 0x10
jl 0x101f4498
or byte [esp + 0x11b], 0x20
lea eax, [esp + 0x110]
lea ecx, [esp + 0x80]
push 0x10
push eax
push 0x20007
call fcn.1026ab20
test al, al
je 0x101f45b9
cmp byte [esi + 0x44], 0
je 0x101f44cc
mov dword [esp + 0xcc], 1
lea eax, [esp + 0xcc]
lea ecx, [esp + 0x80]
push 4
push eax
push 0x2001c
call fcn.1026ab20
test al, al
je 0x101f45b9
mov dword [esp + 0x10], ebx
cmp dword [esi + 0x14], 1
mov ebx, dword [esi + 0x18]
sete cl
mov edi, dword [esi + 0x1c]
cmp ebx, edi
je 0x101f4554
cmp edi, ebx
js 0x101f45b6
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
nop
push 1
push 1
push dword [ebx]
call esi
test eax, eax
je 0x101f4505
add ebx, 4
cmp ebx, edi
jne 0x101f44f0
jmp 0x101f452a
push 0x177
push str....._baseprocesslaunch_win.cc
lea eax, [esp + 0x80]
push eax
call fcn.1022dd30
add esp, 0xc
lea ecx, [esp + 0x78]
call fcn.1022dda0
jmp 0x101f44fc
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
sub edx, eax
je 0x101f4b1d
lea ecx, [esp + 0x80]
push edx
push eax
push 0x20002
call fcn.1026ab20
mov cl, 1
test al, al
je 0x101f45b6
cmp byte [esi + 0x12], 0
je 0x101f4562
or byte [esp + 0xb0], 0x80
mov byte [esp + 0xf], cl
cmp byte [esi + 0x2c], 0
mov ebx, dword [esp + 0x10]
je 0x101f457b
mov dword [esp + 0x8c], 0x103548fc
mov eax, dword [esp + 0xb0]
mov ecx, eax
or ecx, 1
mov dword [esp + 0xb0], ecx
mov edx, dword [esi + 0x24]
mov cx, 0xa
mov edi, dword [ebp + 8]
cmp edx, 5
ja case.0x101f45a1.1
jmp dword [edx*4 + 0x10364dcc]
xor ecx, ecx
cmp byte [esi + 0x10], 0
sete cl
jmp case.0x101f45a1.1
mov edi, dword [ebp + 8]
mov ecx, edi
push 0
call fcn.101f35e0
lea ecx, [esp + 0x80]
call fcn.1026aa40
lea ecx, [esp + 0xd0]
call fcn.10209340
test byte [esp + 0x18], 0x19
mov ecx, dword [esp + 0x2c]
je 0x101f42fe
cmp byte [ecx], 0
je 0x101f42fe
mov eax, dword [esp + 0x24]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x84], eax
sub esp, 0x10
movq xmm0, qword [esp + 0x90]
movq qword [esp + 8], xmm0
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.101e81e0
add esp, 0x10
jmp 0x101f42fe
mov cx, 1
jmp case.0x101f45a1.1
mov cx, 2
jmp case.0x101f45a1.1
mov cx, 7
jmp case.0x101f45a1.1
xor ecx, ecx
mov word [esp + 0xb4], cx
mov ecx, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
mov esi, dword [esi + 0x3c]
test ecx, ecx
jne 0x101f4663
test edx, edx
jne 0x101f4663
test esi, esi
je 0x101f4684
or eax, 0x101
mov dword [esp + 0xb0], eax
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], esi
mov eax, ebx
add ebx, 0x1000000
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x40], 0
cmove ebx, eax
pxor xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movzx eax, byte [esi + 0xf]
test al, al
js 0x101f46bb
lea ecx, [esi + 4]
xor edx, edx
test al, al
cmovne edx, ecx
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 0xc]
jmp 0x101f46cc
mov ecx, dword [esi + 8]
test ecx, ecx
mov eax, dword [ebp + 0xc]
je 0x101f46c8
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [esp + 0x54]
mov dword [esp + 0x1c], ecx
push eax
call fcn.101ee210
mov dword [esp + 0x10], 0
cmp byte [esi + 0x45], 0
je 0x101f4718
call fcn.10200fe0
test eax, eax
je 0x101f4712
or ebx, 4
mov dword [esp + 0x10], eax
jmp 0x101f4718
or ebx, 0x8000
mov eax, dword [esi + 0x28]
test eax, eax
je 0x101f4792
mov dword [esp + 0xe0], 0
lea ecx, [esp + 0xe0]
push 0
push eax
push ecx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x101f4a3a
or ebx, 0x400
cmp byte [esi + 0x46], 0
mov eax, dword [esp + 0xe0]
je 0x101f4805
cmp byte [esp + 0x5f], 0
mov edx, dword [esp + 0x14]
jns 0x101f476c
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x88]
push ecx
push edx
push eax
push ebx
push dword [esp + 0x30]
push 0
push 0
push dword [esi + 0x28]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
jmp 0x101f4930
mov dword [esp + 0xe4], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe8], 0
cmp byte [esi + 0x54], 0
je 0x101f4885
lea eax, [esi + 0x48]
lea ecx, [esp + 0x40]
push eax
push 0x10364d56
push ecx
call fcn.1026ab50
add esp, 0xc
mov eax, dword [esp + 0x48]
mov dword [esp + 0xe8], eax
movq xmm0, qword [esp + 0x40]
movq qword [esp + 0xe0], xmm0
cmp byte [esp + 0xeb], 0
movzx ecx, byte [esp + 0xf]
jns 0x101f481e
mov eax, dword [esp + 0xe0]
jmp 0x101f4825
movzx ecx, byte [esp + 0xf]
cmp byte [esp + 0x5f], 0
jns 0x101f4905
mov edx, dword [esp + 0x54]
jmp 0x101f4909
lea eax, [esp + 0xe0]
or ebx, 0x400
movzx ecx, cl
cmp byte [esp + 0x5f], 0
jns 0x101f483b
mov edx, dword [esp + 0x54]
jmp 0x101f483f
lea edx, [esp + 0x54]
lea esi, [esp + 0x60]
push esi
lea esi, [esp + 0x88]
push esi
push dword [esp + 0x1c]
push eax
push ebx
push ecx
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x101f48da
cmp byte [esp + 0xeb], 0
jns 0x101f487d
push dword [esp + 0xe0]
call fcn.102f3c66
add esp, 4
mov esi, dword [ebp + 0x10]
jmp 0x101f4949
cmp dword [esi + 0x50], 0
je 0x101f4ab8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x101f4a3a
mov esi, eax
mov eax, dword [ebp + 0x10]
add eax, 0x48
lea ecx, [esp + 0x40]
push eax
push esi
push ecx
call fcn.1026ab50
add esp, 0xc
mov eax, dword [esp + 0x48]
mov dword [esp + 0xe8], eax
movq xmm0, qword [esp + 0x40]
movq qword [esp + 0xe0], xmm0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x101f47ed
mov ecx, edi
push 0
call fcn.101f35e0
cmp byte [esp + 0xeb], 0
jns 0x101f4a9c
push dword [esp + 0xe0]
call fcn.102f3c66
add esp, 4
jmp 0x101f4a9c
lea edx, [esp + 0x54]
lea esi, [esp + 0x60]
push esi
lea esi, [esp + 0x88]
push esi
push dword [esp + 0x1c]
push eax
push ebx
push ecx
push 0
push 0
push edx
push 0
mov eax, dword [ebp + 0x10]
push dword [eax + 0x28]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
push dword [esp + 0xe0]
call sub.USERENV.dll_DestroyEnvironmentBlock
test esi, esi
mov esi, dword [ebp + 0x10]
je 0x101f4a3a
mov edi, dword [esp + 0x10]
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
lea eax, [esp + 0x60]
lea ecx, [esp + 0x40]
push eax
call fcn.1026afa0
test edi, edi
je 0x101f498d
cmp byte [esi + 0x45], 0
je 0x101f498d
mov esi, dword [esp + 0x48]
mov ecx, edi
call dword [section..00cfg]
push 4
push esi
mov esi, dword [ebp + 0x10]
call edi
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0x30]
test eax, eax
je 0x101f49a7
push dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x101f4a45
cmp byte [esi + 0x41], 0
je 0x101f49c0
push dword [esp + 0x40]
call fcn.101f3d20
add esp, 4
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp byte [esi], 0
je 0x101f4a24
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x100], xmm0
movdqa xmmword [esp + 0xf0], xmm0
movdqa xmmword [esp + 0xe0], xmm0
lea esi, [esp + 0x30]
push 0x216
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
push esi
call fcn.10221d60
add esp, 0x10
lea edi, [esp + 0xe0]
mov ecx, edi
push 0
push esi
call fcn.10209420
push 0xffffffffffffffff
push dword [esp + 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.102094a0
lea ecx, [esp + 0x40]
call fcn.1026b190
mov edi, dword [ebp + 8]
mov ecx, edi
push eax
call fcn.101f35e0
jmp 0x101f4a93
mov ecx, edi
push 0
call fcn.101f35e0
jmp 0x101f4a9c
mov dword [esp + 0xe4], 0xffffffff
mov dword [esp + 0xe0], 0xffffffff
lea ecx, [esp + 0x40]
call fcn.1026b190
lea edi, [esp + 0xe0]
mov ecx, edi
push eax
call fcn.101f35e0
mov ecx, edi
push 1
push 1
call fcn.101f39a0
mov esi, dword [ebp + 8]
mov ecx, esi
push 0
call fcn.101f35e0
mov ecx, edi
mov edi, esi
call fcn.1008b430
lea ecx, [esp + 0x40]
call fcn.1026b0f0
cmp byte [esp + 0x5f], 0
jns 0x101f45c2
push dword [esp + 0x54]
call fcn.102f3c66
add esp, 4
jmp 0x101f45c2
xor eax, eax
movzx ecx, byte [esp + 0xf]
jmp 0x101f482b
sub esp, 0x24
pxor xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 8], str.LaunchProcess
mov dword [esp + 4], 0x103c49b4
mov dword [esp], 0x58
mov dword [esp + 0x4c], str.LaunchProcess
mov dword [esp + 0x50], 0x103c49b4
call fcn.1008a549
add esp, 0x24
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
jmp 0x101f434b
push str.vector___index_out_of_bounds
push str.__n___size__
push 0x5bd
push str....._buildtools_third_partylibc_trunkinclude_vector
push str._s:_d:_assertion__s_failed:__s
call fcn.10090eb0
int3