Function at 0x484890
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, 0x2a0
mov edi, dword [ebp + 0xc]
mov eax, dword [0x4ad040]
xor eax, ebp
mov dword [esp + 0x298], eax
lea esi, [esp + 0x108]
push 0x190
push 0
push esi
call fcn.0044ac40
add esp, 0xc
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x4848d1
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
push 0xc8
push eax
push esi
call fcn.004880a0
add esp, 0xc
push esi
call fcn.00423d50
add esp, 4
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x11], 1
je 0x484aba
mov dword [esp + 0x20], 0xb
mov eax, dword [0x4a39f4]
mov al, byte [eax + 0xb]
test al, al
jne 0x484f5f
xor eax, eax
dec eax
lea edi, [esp + 0xe4]
mov dword [edi + 8], eax
mov dword [edi + 4], eax
mov dword [edi], eax
lea esi, [esp + 0x90]
push 0x100
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
push esi
call fcn.00434a60
add esp, 0x10
mov ecx, edi
push 0x4b19f4
push esi
call fcn.00419850
pxor xmm0, xmm0
movdqa xmmword [esp + 0xf0], 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 + 0x90]
call fcn.00419c70
xor edi, edi
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x3e], 1
mov ecx, 0
jne 0x4849a1
call fcn.004197f0
xor ecx, ecx
cmp eax, 0x10
setge cl
mov edx, dword [esi + 0x18]
xor eax, eax
cmp edx, dword [esi + 0x1c]
setne al
add eax, ecx
je 0x4849ca
lea ecx, [esp + 0x90]
push eax
call fcn.00419ca0
mov edi, 0x80000
test al, al
je 0x484a67
cmp byte [esi + 0x3e], 1
jne 0x4849fd
call fcn.004197f0
cmp eax, 0x10
jl 0x4849fd
lea eax, [esp + 0xf0]
or byte [eax + 0xb], 0x20
lea ecx, [esp + 0x90]
push 0x10
push eax
push 0x20007
call fcn.00419d50
test al, al
je 0x484a67
mov dword [esp + 8], edi
cmp dword [esi + 0x14], 1
mov edi, dword [esi + 0x18]
sete cl
mov ebx, dword [esi + 0x1c]
cmp edi, ebx
je 0x484b18
cmp ebx, edi
js 0x484a64
xor esi, esi
inc esi
push esi
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x484ef7
add edi, 4
cmp edi, ebx
jne 0x484a1d
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
sub edx, eax
je 0x484f39
lea ecx, [esp + 0x90]
push edx
push eax
push 0x20002
call fcn.00419d50
mov cl, 1
test al, al
jne 0x484b18
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0
call fcn.004157c0
lea edi, [esp + 0x90]
mov ecx, edi
call fcn.00488320
lea ecx, [esp + 0xe4]
call fcn.00419960
mov dword [esp + 0x20], 0xb
mov eax, dword [0x4a39f4]
mov al, byte [eax + 0xb]
test al, al
jne 0x484f3b
mov ecx, dword [esp + 0x298]
xor ecx, ebp
call fcn.00447963
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movsx eax, byte [edi + 0xb]
test eax, eax
jns 0x484ac7
mov eax, dword [edi + 4]
mov edi, dword [edi]
test eax, eax
js 0x484f39
sete cl
test edi, edi
setne dl
or dl, cl
je 0x484f39
mov ecx, edi
mov bl, byte [esi]
mov bh, byte [esi + 0x10]
lea edi, [esp + 0x90]
push eax
push ecx
push edi
call fcn.00487470
add esp, 0xc
movzx eax, bl
movzx esi, bh
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov edx, edi
push eax
push esi
call fcn.00484630
add esp, 8
mov ecx, edi
call fcn.00417070
jmp 0x484aa2
cmp byte [esi + 0x12], 1
jne 0x484b26
or byte [esp + 0xc0], 0x80
mov byte [esp + 7], cl
cmp byte [esi + 0x28], 1
jne 0x484b3b
mov dword [esp + 0x9c], 0x49efb4
mov eax, dword [esp + 0xc0]
mov ecx, eax
or ecx, 1
mov dword [esp + 0xc0], ecx
movzx ecx, byte [esi + 0x10]
xor ecx, 1
mov word [esp + 0xc4], cx
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov edi, ecx
mov dword [esp + 0xc], edx
or edi, edx
mov edx, dword [esi + 0x38]
or edi, edx
mov ebx, dword [ebp + 8]
je 0x484bbd
mov edi, dword [esi + 0x18]
cmp edi, dword [esi + 0x1c]
mov esi, dword [esp + 0xc]
jne 0x484b99
test ecx, ecx
je 0x484f88
test esi, esi
je 0x484f8b
test edx, edx
je 0x484f85
or eax, 0x101
mov dword [esp + 0xc0], eax
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], edx
mov esi, dword [ebp + 0x10]
mov eax, dword [esp + 8]
lea ecx, [eax + 0x1000000]
cmp byte [esi + 0x3c], 0
cmove ecx, eax
mov dword [esp + 8], ecx
pxor xmm0, xmm0
movdqa xmmword [esp + 0x70], xmm0
movsx eax, byte [esi + 0xf]
test eax, eax
jns 0x484bfc
mov eax, dword [esi + 8]
mov edi, dword [esi + 4]
jmp 0x484bff
lea ecx, [esp + 0x60]
push dword [edx + 4]
push dword [edx]
call fcn.00430160
jmp 0x484c2d
lea edi, [esi + 4]
test eax, eax
cmove edi, eax
xor eax, eax
dec eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov edx, dword [ebp + 0xc]
cmp byte [edx + 0xb], 0
js 0x484bec
mov eax, dword [edx + 8]
mov dword [esp + 0x68], eax
movq xmm0, qword [edx]
movq qword [esp + 0x60], xmm0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x484c71
xor ecx, ecx
lea edx, [esp + 0x20]
mov dword [edx], ecx
push ecx
push eax
push edx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x484e90
or dword [esp + 8], 0x400
mov ecx, dword [esp + 0x20]
movzx eax, byte [esp + 7]
cmp byte [esp + 0x6b], 0
js 0x484d7d
lea edx, [esp + 0x60]
jmp 0x484d81
pxor xmm0, xmm0
movq qword [esp + 0x20], xmm0
mov dword [esp + 0x28], 0
mov cl, byte [esi + 0x4c]
test cl, cl
jne 0x484cad
xor eax, eax
cmp dword [esi + 0x48], 0
jne 0x484cad
mov cl, byte [esp + 7]
movzx ecx, cl
cmp byte [esp + 0x6b], 0
js 0x484d36
lea edx, [esp + 0x60]
jmp 0x484d3a
test cl, cl
je 0x484cf7
lea eax, [esi + 0x40]
lea esi, [esp + 0x50]
push eax
push 0x4a0ddc
push esi
call fcn.00488aa0
add esp, 0xc
mov eax, dword [esi + 8]
mov dword [esp + 0x28], eax
movq xmm0, qword [esi]
movq qword [esp + 0x20], xmm0
cmp byte [esp + 0x2b], 0
mov cl, byte [esp + 7]
jns 0x484ce9
mov eax, dword [esp + 0x20]
jmp 0x484ced
lea eax, [esp + 0x20]
or dword [esp + 8], 0x400
jmp 0x484c96
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x484e9b
mov esi, eax
mov eax, dword [ebp + 0x10]
add eax, 0x40
lea ebx, [esp + 0x50]
push eax
push esi
push ebx
call fcn.00488aa0
add esp, 0xc
mov eax, dword [ebx + 8]
mov dword [esp + 0x28], eax
movq xmm0, qword [ebx]
movq qword [esp + 0x20], xmm0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x484cd8
mov edx, dword [esp + 0x60]
lea esi, [esp + 0x70]
xor ebx, ebx
push esi
lea esi, [esp + 0x98]
push esi
push edi
push eax
push dword [esp + 0x18]
push ecx
push ebx
push ebx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
mov ebx, dword [ebp + 8]
je 0x484e9b
cmp byte [esp + 0x2b], 0
jns 0x484d78
push dword [esp + 0x20]
call fcn.00446eb7
add esp, 4
mov esi, dword [ebp + 0x10]
jmp 0x484dbd
mov edx, dword [esp + 0x60]
lea esi, [esp + 0x70]
xor ebx, ebx
push esi
lea esi, [esp + 0x98]
push esi
push edi
push ecx
push dword [esp + 0x18]
push eax
push ebx
push ebx
push edx
push ebx
mov esi, dword [ebp + 0x10]
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
push dword [esp + 0x20]
call sub.USERENV.dll_DestroyEnvironmentBlock
mov ebx, dword [ebp + 8]
test edi, edi
je 0x484e90
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x50]
movdqa xmmword [ecx], xmm0
lea eax, [esp + 0x70]
push eax
call fcn.00488d60
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x484ded
push dword [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x484eb9
cmp byte [esi + 0x3d], 1
jne 0x484e06
push dword [esp + 0x50]
call fcn.00418b00
add esp, 4
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp byte [esi], 1
jne 0x484e5a
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x10]
push 0x1b3
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
push esi
call fcn.00434a60
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.00435bc0
push 0xffffffffffffffff
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.00435c30
lea ecx, [esp + 0x50]
call fcn.00488e10
mov ecx, ebx
push eax
call fcn.004157c0
lea ecx, [esp + 0x50]
call fcn.00488de0
cmp byte [esp + 0x6b], 0
jns 0x484a70
push dword [esp + 0x60]
call fcn.00446eb7
add esp, 4
jmp 0x484a70
mov ecx, ebx
push 0
call fcn.004157c0
jmp 0x484e74
mov ecx, ebx
push 0
call fcn.004157c0
cmp byte [esp + 0x2b], 0
jns 0x484e74
push dword [esp + 0x20]
call fcn.00446eb7
add esp, 4
jmp 0x484e74
lea edi, [esp + 0x20]
xor eax, eax
dec eax
mov dword [edi + 4], eax
mov dword [edi], eax
lea ecx, [esp + 0x50]
call fcn.00488e10
mov ecx, edi
push eax
call fcn.004157c0
xor eax, eax
inc eax
mov ecx, edi
push eax
push eax
call fcn.004844f0
mov ecx, ebx
push 0
call fcn.004157c0
mov ecx, edi
call fcn.00415830
jmp 0x484e6b
push 0x13b
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
lea eax, [esp + 0x2c]
push eax
call fcn.00434a60
add esp, 0x10
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00488470
add esp, 8
lea ecx, [esp + 0x8c]
call fcn.00488510
jmp 0x484a2f
ud2
movzx eax, al
mov dword [esp + 0x90], 0
lea ecx, [esp + 0x20]
push 2
push edi
push ecx
push eax
call fcn.00430840
add esp, 0x10
jmp 0x484aa2
movzx eax, al
lea ecx, [esp + 0x90]
mov dword [ecx], str.LaunchProcess
lea edx, [esp + 0x20]
push 1
push ecx
push edx
push eax
call fcn.00430840
add esp, 0x10
jmp 0x484911
int3
int3
int3