Function at 0x40a319
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0x3c
call fcn.0040be95
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0xf
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0x208
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x1bc
call fcn.0040cbb0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40a39c
push ebx
call fcn.0040be9b
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x1bc
call fcn.0040cbb0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40a3d3
push ebx
call fcn.0040be9b
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], esp
push 0x104
mov eax, dword [ebp - 8]
test eax, eax
je 0x40a3e9
add eax, 8
push eax
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40a415
push 0xb6
push 0x4019b3a
push 6
call fcn.0040be83
add esp, 0xc
mov dword [ebp - 0x1c], esp
push 0x104
mov eax, dword [ebp - 8]
test eax, eax
je 0x40a427
add eax, 8
push eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x40a432
add eax, 8
push eax
xor eax, eax
call dword [0x413676]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40a459
push 0xf7
push 0x4019b3a
push 6
call fcn.0040be83
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40a4fe
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov eax, str.COMSPEC
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00405647
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40a496
push ebx
call fcn.0040be9b
add esp, 4
mov dword [ebp - 0x2c], esp
push 0x104
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40a4a8
add eax, 8
push eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40a4b3
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x40a4da
push 0x189
push 0x4019b3a
push 6
call fcn.0040be83
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40a4ed
push ebx
call fcn.0040be9b
add esp, 4
cmp dword [ebp - 0x30], 0
je 0x40a4fe
mov eax, 1
jmp 0x40a503
mov eax, 0
test eax, eax
je 0x40a9dc
fild dword [ebp - 0x10]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fmul qword [0x4122c3]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.00401921
push 0x80000301
push 0
push eax
push VariantClear
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40a540
mov eax, 0x4122bb
push eax
push 2
mov ebx, 0x1a0
call fcn.0040cbe0
add esp, 0x1c
mov dword [ebp - 0x2c], eax
push 0x41310e
push dword [ebp - 0x2c]
push 0x413124
mov ecx, 3
call fcn.00401948
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40a583
push ebx
call fcn.0040be9b
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40a597
push ebx
call fcn.0040be9b
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 0x3c
mov ebx, dword [ebp - 0x18]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x18]
add ebx, 0xc
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
mov eax, str.Open
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00405647
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40a5f5
push ebx
call fcn.0040be9b
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40a60b
push ebx
call fcn.0040be9b
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x18]
add ebx, 0x10
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x40a634
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040be95
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40a647
push ebx
call fcn.0040be9b
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x18]
add ebx, 0x14
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40a670
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040be95
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40a683
push ebx
call fcn.0040be9b
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x18]
add ebx, 0x18
mov dword [ebp - 0x1c], ebx
mov eax, 0x4122bb
test eax, eax
je 0x40a6ae
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040be95
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40a6c1
push ebx
call fcn.0040be9b
add esp, 4
pop eax
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x18]
add ebx, 0x1c
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x18]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 0x40
mov dword [ebp - 0x1c], esp
mov eax, dword [ebp - 0x18]
push eax
push 0x3c
call fcn.0040be95
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x40a733
add eax, 8
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x40a744
add eax, 8
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x40a755
add eax, 8
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x40a766
add eax, 8
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x40a795
add eax, 8
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
xor eax, eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40a7e8
push 0x5cd
push 0x4019b3a
push 6
call fcn.0040be83
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x20]
push ebx
mov edi, dword [ebp - 0x24]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
add edi, 0x10
add ebx, 0x10
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
add edi, 4
add ebx, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.0040be9b
add esp, 4
pop eax
test eax, eax
je 0x40a9dc
mov ebx, dword [ebp - 0x18]
add ebx, 0x38
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esp
push 0x40
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40a8ad
push 0x642
push 0x4019b3a
push 6
call fcn.0040be83
add esp, 0xc
mov dword [ebp - 0x1c], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40a8d6
push 0x6f0
push 0x4019b3a
push 6
call fcn.0040be83
add esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push 0x100
push dword [ebp - 0x20]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x40a90a
push 0x6f0
push 0x4019b3a
push 6
call fcn.0040be83
add esp, 0xc
mov dword [ebp - 0x1c], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40a933
push 0x71b
push 0x4019b3a
push 6
call fcn.0040be83
add esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], esp
push 0xf
push dword [ebp - 0x20]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
nop
nop
cmp dword [ebp - 0x24], esp
je 0x40a967
push 0x71b
push 0x4019b3a
push 6
call fcn.0040be83
add esp, 0xc
lea eax, [ebp - 8]
push eax
call fcn.00405910
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
push 0
push dword [ebp - 0x1c]
push 1
push 4
xor eax, eax
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40a9ae
push 0x7a2
push 0x4019b3a
push 6
call fcn.0040be83
add esp, 0xc
mov dword [ebp - 0x1c], esp
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40a9ec
push ebx
call fcn.0040be9b
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40a9fc
push ebx
call fcn.0040be9b
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40aa0c
push ebx
call fcn.0040be9b
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40aa23
push ebx
call fcn.0040be9b
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40aa37
push ebx
call fcn.0040be9b
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40aa4b
push ebx
call fcn.0040be9b
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40aa5f
push ebx
call fcn.0040be9b
add esp, 4
pop ebx
add ebx, 0x10
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40aa73
push ebx
call fcn.0040be9b
add esp, 4
pop ebx
call fcn.0040be9b
add esp, 4
mov esp, ebp
pop ebp
ret