Function at 0x4a96b0
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 ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov eax, dword [0x80e040]
xor eax, ebp
mov dword [esp + 0x298], eax
lea esi, [esp + 0x108]
push 0x190
push 0
push esi
call fcn.005cced0
add esp, 0xc
cmp byte [edi + 0xb], 0
mov dword [esp + 0xc], edi
mov eax, edi
jns 0x4a96fb
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push 0xc8
push eax
push esi
call fcn.005598f0
add esp, 0xc
push esi
call fcn.00534700
add esp, 4
cmp byte [ebx + 0x11], 1
je 0x4a9c15
mov dword [esp + 0x20], 0xb
mov eax, dword [0x78ef14]
mov al, byte [eax + 0xb]
test al, al
jne 0x4a9ca3
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.005613a0
add esp, 0x10
mov ecx, edi
push 0x815390
push esi
call fcn.004d65d0
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.004d9ea0
xor esi, esi
cmp byte [ebx + 0x3e], 1
mov ecx, 0
jne 0x4a97c2
call fcn.004a6060
xor ecx, ecx
cmp eax, 0x10
setge cl
mov edx, dword [ebx + 0x18]
xor eax, eax
cmp edx, dword [ebx + 0x1c]
setne al
add eax, ecx
je 0x4a97eb
lea ecx, [esp + 0x90]
push eax
call fcn.004d9f00
mov esi, 0x80000
test al, al
je 0x4a9a73
mov dword [esp + 8], esi
cmp byte [ebx + 0x3e], 1
jne 0x4a9826
call fcn.004a6060
cmp eax, 0x10
jl 0x4a9826
lea eax, [esp + 0xf0]
or byte [eax + 0xb], 0x20
lea ecx, [esp + 0x90]
push 0x10
push eax
push 0x20007
call fcn.004d9fb0
test al, al
je 0x4a9a73
cmp dword [ebx + 0x14], 1
mov esi, dword [ebx + 0x18]
sete cl
mov edi, dword [ebx + 0x1c]
cmp esi, edi
je 0x4a9889
cmp edi, esi
js 0x4a9a73
xor ebx, ebx
inc ebx
push ebx
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x4a9ba3
add esi, 4
cmp esi, edi
jne 0x4a9842
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
sub edx, eax
je 0x4a9c13
lea ecx, [esp + 0x90]
push edx
push eax
push 0x20002
call fcn.004d9fb0
mov cl, 1
test al, al
je 0x4a9a73
cmp byte [ebx + 0x12], 1
je 0x4a9ac7
mov byte [esp + 7], cl
cmp byte [ebx + 0x28], 1
je 0x4a9ad4
mov eax, dword [esp + 0xc0]
mov ecx, eax
or ecx, 1
mov dword [esp + 0xc0], ecx
movzx ecx, byte [ebx + 0x10]
xor ecx, 1
mov word [esp + 0xc4], cx
mov ecx, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
mov esi, dword [ebx + 0x38]
test ecx, ecx
jne 0x4a9a81
test edx, edx
jne 0x4a9a81
test esi, esi
jne 0x4a9a81
mov eax, dword [esp + 8]
lea edi, [eax + 0x1000000]
cmp byte [ebx + 0x3c], 0
cmove edi, eax
pxor xmm0, xmm0
movdqa xmmword [esp + 0x70], xmm0
movsx eax, byte [ebx + 0xf]
test eax, eax
js 0x4a990c
lea ecx, [ebx + 4]
jmp 0x4a9912
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov edx, dword [ebp + 0xc]
test eax, eax
cmove ecx, eax
mov dword [esp + 8], ecx
xor eax, eax
dec eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
cmp byte [edx + 0xb], 0
jns 0x4a9be5
lea ecx, [esp + 0x60]
push dword [edx + 4]
push dword [edx]
call fcn.00535800
mov eax, dword [ebx + 0x24]
test eax, eax
jne 0x4a9cc9
pxor xmm0, xmm0
movq qword [esp + 0x20], xmm0
mov dword [esp + 0x28], 0
mov cl, byte [ebx + 0x4c]
test cl, cl
jne 0x4a9b1a
xor eax, eax
cmp dword [ebx + 0x48], 0
jne 0x4a9b1a
movzx ecx, byte [esp + 7]
cmp byte [esp + 0x6b], 0
jns 0x4a998b
mov edx, dword [esp + 0x60]
jmp 0x4a998f
lea edx, [esp + 0x60]
lea ebx, [esp + 0x70]
xor esi, esi
push ebx
lea ebx, [esp + 0x98]
push ebx
push dword [esp + 0x10]
push eax
push edi
push ecx
push esi
push esi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4a9af5
cmp byte [esp + 0x2b], 0
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
js 0x4a9ae4
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x50]
movdqa xmmword [ecx], xmm0
lea eax, [esp + 0x70]
push eax
call fcn.004da070
mov eax, dword [edi + 0x2c]
test eax, eax
jne 0x4a9d50
cmp byte [edi + 0x3d], 1
je 0x4a9bfb
cmp byte [edi], 1
je 0x4a9da1
lea ecx, [esp + 0x50]
call fcn.004da220
mov ecx, esi
push eax
call fcn.004a90a0
lea ecx, [esp + 0x50]
call fcn.004da180
cmp byte [esp + 0x6b], 0
jns 0x4a9a29
push dword [esp + 0x60]
call fcn.005c8b90
add esp, 4
lea edi, [esp + 0x90]
mov ecx, edi
call fcn.004d9ed0
lea ecx, [esp + 0xe4]
call fcn.004d66e0
mov dword [esp + 0x20], 0xb
mov eax, dword [0x78ef14]
mov al, byte [eax + 0xb]
test al, al
jne 0x4a9c7f
mov ecx, dword [esp + 0x298]
xor ecx, ebp
call fcn.005c9f16
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [ebp + 8]
mov ecx, esi
push 0
call fcn.004a90a0
jmp 0x4a9a29
mov edi, dword [ebx + 0x18]
cmp edi, dword [ebx + 0x1c]
jne 0x4a9aa1
test ecx, ecx
je 0x4a9dfb
test edx, edx
je 0x4a9dfe
test esi, esi
je 0x4a9df8
or eax, 0x101
mov dword [esp + 0xc0], eax
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], esi
jmp 0x4a98e4
or byte [esp + 0xc0], 0x80
jmp 0x4a9893
mov dword [esp + 0x9c], 0x780cf8
jmp 0x4a98a1
push dword [esp + 0x20]
call fcn.005c8b90
add esp, 4
jmp 0x4a99c8
mov ecx, dword [ebp + 8]
push 0
call fcn.004a90a0
cmp byte [esp + 0x2b], 0
jns 0x4a9b12
push dword [esp + 0x20]
call fcn.005c8b90
add esp, 4
mov esi, dword [ebp + 8]
jmp 0x4a9a16
mov esi, edi
test cl, cl
jne 0x4a9b5b
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x4a9af5
mov edi, eax
mov eax, dword [ebp + 0x10]
add eax, 0x40
lea ebx, [esp + 0x50]
push eax
push edi
push ebx
call fcn.006b7f70
add esp, 0xc
mov eax, dword [ebx + 8]
mov dword [esp + 0x28], eax
movq xmm0, qword [ebx]
movq qword [esp + 0x20], xmm0
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x4a9b85
mov eax, dword [ebp + 0x10]
add eax, 0x40
lea ebx, [esp + 0x50]
push eax
push 0x7915c0
push ebx
call fcn.006b7f70
add esp, 0xc
mov eax, dword [ebx + 8]
mov dword [esp + 0x28], eax
movq xmm0, qword [ebx]
movq qword [esp + 0x20], xmm0
cmp byte [esp + 0x2b], 0
js 0x4a9b92
lea eax, [esp + 0x20]
jmp 0x4a9b96
mov eax, dword [esp + 0x20]
mov edi, esi
or edi, 0x400
jmp 0x4a9979
push 0x13b
push str....._baseprocesslaunch_win.cc
push str.LaunchProcess
lea eax, [esp + 0x2c]
push eax
call fcn.005613a0
add esp, 0x10
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x90]
push eax
call fcn.006495f0
add esp, 8
lea ecx, [esp + 0x8c]
call fcn.00649690
jmp 0x4a9854
mov eax, dword [edx + 8]
mov dword [esp + 0x68], eax
movq xmm0, qword [edx]
movq qword [esp + 0x60], xmm0
jmp 0x4a9945
push dword [esp + 0x50]
call fcn.004a95c0
add esp, 4
push eax
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x4a99f3
ud2
mov eax, dword [ebp + 0xc]
movsx eax, byte [eax + 0xb]
test eax, eax
jns 0x4a9c2c
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [esp + 0xc], ecx
test eax, eax
js 0x4a9c13
sete cl
cmp dword [esp + 0xc], 0
setne dl
or dl, cl
je 0x4a9c13
mov ecx, dword [ebp + 0x10]
mov bl, byte [ecx]
mov bh, byte [ecx + 0x10]
lea edi, [esp + 0x90]
push eax
push dword [esp + 0x10]
push edi
call fcn.00648eb0
add esp, 0xc
movzx eax, bl
movzx esi, bh
mov ecx, dword [ebp + 8]
mov edx, edi
push eax
push esi
mov esi, ecx
call fcn.00641420
add esp, 8
mov ecx, edi
call fcn.004bcbc0
jmp 0x4a9a5b
movzx eax, al
mov dword [esp + 0x90], 0
lea ecx, [esp + 0x20]
push 2
push edi
push ecx
push eax
call fcn.00544ed0
add esp, 0x10
jmp 0x4a9a5b
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.00544ed0
add esp, 0x10
jmp 0x4a9735
mov esi, edi
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 0x4a9d3f
or esi, 0x400
mov ecx, dword [esp + 0x20]
movzx ebx, byte [esp + 7]
cmp byte [esp + 0x6b], 0
js 0x4a9cfb
lea edx, [esp + 0x60]
jmp 0x4a9cff
mov edx, dword [esp + 0x60]
lea edi, [esp + 0x70]
xor eax, eax
push edi
lea edi, [esp + 0x98]
push edi
push dword [esp + 0x10]
push ecx
push esi
push ebx
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 edi, eax
push dword [esp + 0x20]
call sub.USERENV.dll_DestroyEnvironmentBlock
test edi, edi
je 0x4a9d3f
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
jmp 0x4a99c8
mov esi, dword [ebp + 8]
mov ecx, esi
push 0
call fcn.004a90a0
jmp 0x4a9a16
push dword [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x4a99e9
lea edi, [esp + 0x20]
xor eax, eax
dec eax
mov dword [edi + 4], eax
mov dword [edi], eax
lea ecx, [esp + 0x50]
call fcn.004da220
mov ecx, edi
push eax
call fcn.004a90a0
xor eax, eax
inc eax
mov ecx, edi
push eax
push eax
call fcn.006410f0
mov ecx, esi
push 0
call fcn.004a90a0
mov ecx, edi
call fcn.0054edf0
jmp 0x4a9a0d
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.005613a0
add esp, 0x10
mov ecx, edi
push 0
push esi
mov esi, dword [ebp + 8]
call fcn.005546a0
push 0xffffffffffffffff
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.00554710
jmp 0x4a99fc
int3
int3
int3