Function at 0x420760
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 [0x48912c]
xor eax, ebp
mov dword [esp + 0xa8], eax
lea esi, [esp + 0x54]
push 0xcd
push str..._.._base_process_launch_win.cc
push str.LaunchProcess
push esi
call fcn.0042c320
add esp, 0x10
lea ecx, [esp + 0xa0]
push esi
call fcn.0042c360
mov eax, dword [0x48b61c]
mov ecx, dword [0x48b650]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x420cc3
lea ecx, [esp + 0x54]
call fcn.0042c640
cmp dword [ebx + 0x14], 1
mov esi, dword [ebx + 0x18]
sete al
mov edi, dword [ebx + 0x1c]
cmp esi, edi
je 0x420840
mov eax, edi
sub eax, esi
sar eax, 2
cmp eax, 0x3fffffff
ja 0x4208da
mov ebx, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
nop dword [eax]
push 1
push 1
push dword [esi]
call ebx
test eax, eax
je 0x420815
add esi, 4
cmp edi, esi
jne 0x420800
jmp 0x420890
push 0xe1
push str..._.._base_process_launch_win.cc
lea eax, [esp + 0x48]
push eax
call fcn.0042c7b0
add esp, 0xc
lea ecx, [esp + 0x40]
call fcn.0042c780
lea ecx, [esp + 0x40]
call fcn.0042c790
jmp 0x42080c
xor edi, edi
cmp byte [ebx + 0x11], 0
je 0x420850
or byte [esp + 0x84], 0x80
mov byte [esp + 0xf], al
cmp byte [ebx + 0x28], 0
je 0x420862
mov dword [esp + 0x60], 0x4740e8
mov eax, dword [esp + 0x84]
mov ecx, eax
or ecx, 1
mov dword [esp + 0x84], ecx
movzx ecx, byte [ebx + 0x10]
xor ecx, 1
mov word [esp + 0x88], cx
mov ecx, dword [ebx + 0x30]
test ecx, ecx
je 0x4208eb
mov edx, dword [ebx + 0x34]
jmp 0x4208f8
lea ecx, [esp + 0x54]
push 1
call fcn.0042c6a0
test al, al
je 0x4208da
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x1c]
sub edx, eax
lea ecx, [esp + 0x54]
push edx
push eax
push 0x20002
call fcn.0042c750
test al, al
mov ebx, dword [ebp + 8]
je 0x4208dd
mov al, 1
mov edi, 0x80000
mov ebx, dword [ebp + 0x10]
cmp byte [ebx + 0x11], 0
jne 0x420848
jmp 0x420850
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.00420d00
jmp 0x420c96
mov edx, dword [ebx + 0x34]
test edx, edx
jne 0x4208f8
cmp dword [ebx + 0x38], 0
je 0x42091c
or eax, 0x101
mov dword [esp + 0x84], eax
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x98], eax
cmp dword [ebx + 0x2c], 0
je 0x420938
call fcn.0042ce40
mov edx, dword [ebp + 0x10]
lea ecx, [edi + 0x1000000]
cmp eax, 5
cmovl edi, ecx
jmp 0x42093a
mov edx, ebx
mov ebx, dword [ebp + 8]
mov esi, edi
or esi, 0x1000000
cmp byte [edx + 0x3c], 0
cmove esi, edi
xorps xmm0, xmm0
movaps xmmword [esp + 0x40], xmm0
movzx eax, byte [edx + 0xf]
mov ecx, eax
test al, al
jns 0x420961
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x420974
lea ecx, [edx + 4]
test al, al
jns 0x42096e
mov ecx, dword [ecx]
mov dword [esp + 0x10], ecx
jmp 0x42097c
mov dword [esp + 0x10], 0
lea edi, [esp + 0x34]
mov ecx, edi
push dword [ebp + 0xc]
call fcn.00419558
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x420a0c
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x18]
push 0
push eax
push ecx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x4209fe
or esi, 0x400
mov ecx, dword [esp + 0x18]
movzx eax, byte [esp + 0xf]
cmp byte [esp + 0x3f], 0
jns 0x4209c7
mov edi, dword [esp + 0x34]
lea edx, [esp + 0x40]
push edx
lea edx, [esp + 0x5c]
push edx
push dword [esp + 0x18]
push ecx
push esi
push eax
push 0
push 0
push edi
push 0
mov eax, dword [ebp + 0x10]
push dword [eax + 0x24]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
push dword [esp + 0x18]
call sub.USERENV.dll_DestroyEnvironmentBlock
test edi, edi
jne 0x420bab
mov ecx, ebx
push 0
call fcn.00420d00
jmp 0x420c83
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
cmp byte [ecx + 0x4c], 0
je 0x420a57
lea eax, [ecx + 0x40]
lea ecx, [esp + 0x28]
push eax
push 0x4740ea
push ecx
call fcn.0042ce60
add esp, 0xc
cmp byte [esp + 0x23], 0
js 0x420aa4
mov edi, ebx
mov word [esp + 0x18], 0
mov byte [esp + 0x23], 0
jmp 0x420ad2
cmp dword [ecx + 0x48], 0
je 0x420af6
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x420c2c
mov edx, eax
mov eax, dword [ebp + 0x10]
add eax, 0x40
lea ecx, [esp + 0x28]
push eax
mov dword [esp + 0x18], edx
push edx
push ecx
call fcn.0042ce60
add esp, 0xc
cmp byte [esp + 0x23], 0
js 0x420afa
mov edi, ebx
mov word [esp + 0x18], 0
mov byte [esp + 0x23], 0
jmp 0x420b28
mov edi, ebx
mov eax, dword [esp + 0x18]
mov word [eax], 0
mov dword [esp + 0x1c], 0
cmp byte [esp + 0x23], 0
jns 0x420ad2
push dword [esp + 0x18]
call fcn.0044d09c
add esp, 4
mov dword [esp + 0x20], 0
lea ebx, [esp + 0x18]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
movsd xmm0, qword [esp + 0x28]
movsd qword [esp + 0x18], xmm0
cmp byte [ebx + 0xb], 0
jns 0x420b50
mov eax, dword [esp + 0x18]
jmp 0x420b54
xor eax, eax
jmp 0x420b5c
mov edi, ebx
mov eax, dword [esp + 0x18]
mov word [eax], 0
mov dword [esp + 0x1c], 0
cmp byte [esp + 0x23], 0
jns 0x420b28
push dword [esp + 0x18]
call fcn.0044d09c
add esp, 4
mov dword [esp + 0x20], 0
lea ebx, [esp + 0x18]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
movsd xmm0, qword [esp + 0x28]
movsd qword [esp + 0x18], xmm0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
cmp byte [ebx + 0xb], 0
js 0x420af0
lea eax, [esp + 0x18]
mov ebx, edi
or esi, 0x400
movzx ecx, byte [esp + 0xf]
cmp byte [esp + 0x3f], 0
jns 0x420b6e
mov edx, dword [esp + 0x34]
jmp 0x420b72
lea edx, [esp + 0x34]
lea edi, [esp + 0x40]
push edi
lea edi, [esp + 0x5c]
push edi
push dword [esp + 0x18]
push eax
push esi
push ecx
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x420c2c
cmp byte [esp + 0x23], 0
jns 0x420bab
push dword [esp + 0x18]
call fcn.0044d09c
add esp, 4
lea eax, [esp + 0x40]
lea ecx, [esp + 0x18]
push eax
call fcn.0042d300
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 0x2c]
test eax, eax
je 0x420bd5
push dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
mov ecx, dword [ebp + 0x10]
test eax, eax
je 0x420c4a
cmp byte [ecx + 0x3d], 0
je 0x420bf1
push dword [esp + 0x18]
call fcn.0042d540
add esp, 4
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov ecx, dword [ebp + 0x10]
cmp byte [ecx], 0
je 0x420c02
push 0xffffffffffffffff
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x20]
mov ecx, dword [0x48b678]
test ecx, ecx
je 0x420c19
push dword [ebp + 0xc]
push eax
call fcn.00424810
lea ecx, [esp + 0x18]
call fcn.0042d500
mov ecx, ebx
push eax
call fcn.00420d00
jmp 0x420c7a
mov ecx, ebx
push 0
call fcn.00420d00
cmp byte [esp + 0x23], 0
jns 0x420c83
push dword [esp + 0x18]
call fcn.0044d09c
add esp, 4
jmp 0x420c83
lea ecx, [esp + 0x18]
call fcn.0042d500
lea edi, [esp + 0x28]
mov ecx, edi
push eax
call fcn.00420d00
mov ecx, edi
push 1
push 1
call fcn.00420ea0
mov ecx, ebx
push 0
call fcn.00420d00
mov ecx, edi
call fcn.00420d70
lea ecx, [esp + 0x18]
call fcn.0042d460
cmp byte [esp + 0x3f], 0
jns 0x420c96
push dword [esp + 0x34]
call fcn.0044d09c
add esp, 4
lea ecx, [esp + 0x54]
call fcn.0042c670
lea ecx, [esp + 0xa0]
call fcn.0042c530
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.0044d0e1
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x48b61c
call fcn.0044d127
add esp, 4
cmp dword [0x48b61c], 0xffffffff
jne 0x4207ca
lea ecx, [esp + 0xa0]
call fcn.0042c470
push 0x48b61c
call fcn.0044d19d
add esp, 4
jmp 0x4207ca