Function at 0x406c52
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.0040d5b1
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.0040e150
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x406cd5
push ebx
call fcn.0040d5b7
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.0040e150
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x406d0c
push ebx
call fcn.0040d5b7
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 0x406d22
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 0x406d4e
push 0xb6
push 0x4016e59
push 6
call fcn.0040d5c3
add esp, 0xc
mov dword [ebp - 0x1c], esp
push 0x104
mov eax, dword [ebp - 8]
test eax, eax
je 0x406d60
add eax, 8
push eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x406d6b
add eax, 8
push eax
xor eax, eax
call dword [0x415a0e]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x406d92
push 0xf7
push 0x4016e59
push 6
call fcn.0040d5c3
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x406e37
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.004065f5
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x406dcf
push ebx
call fcn.0040d5b7
add esp, 4
mov dword [ebp - 0x2c], esp
push 0x104
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x406de1
add eax, 8
push eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x406dec
add eax, 8
push eax
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x406e13
push 0x189
push 0x4016e59
push 6
call fcn.0040d5c3
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x406e26
push ebx
call fcn.0040d5b7
add esp, 4
cmp dword [ebp - 0x30], 0
je 0x406e37
mov eax, 1
jmp 0x406e3c
mov eax, 0
test eax, eax
je 0x407315
fild dword [ebp - 0x10]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fmul qword [0x412438]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.0040199c
push 0x80000301
push 0
push eax
push 0x80000005
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x406e79
mov eax, 0x41220a
push eax
push 2
mov ebx, 0x1a0
call fcn.0040e6f0
add esp, 0x1c
mov dword [ebp - 0x2c], eax
push 0x412509
push dword [ebp - 0x2c]
push 0x41251f
mov ecx, 3
call fcn.00401c79
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x406ebc
push ebx
call fcn.0040d5b7
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x406ed0
push ebx
call fcn.0040d5b7
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.004065f5
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x406f2e
push ebx
call fcn.0040d5b7
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x1c]
mov ebx, dword [ebx]
test ebx, ebx
je 0x406f44
push ebx
call fcn.0040d5b7
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 0x406f6d
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040d5b1
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 0x406f80
push ebx
call fcn.0040d5b7
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 0x406fa9
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040d5b1
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 0x406fbc
push ebx
call fcn.0040d5b7
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, 0x41220a
test eax, eax
je 0x406fe7
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0040d5b1
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 0x406ffa
push ebx
call fcn.0040d5b7
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.0040d5b1
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 0x40706c
add eax, 8
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x40707d
add eax, 8
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x40708e
add eax, 8
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
test eax, eax
je 0x40709f
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 0x4070ce
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 0x407121
push 0x5cd
push 0x4016e59
push 6
call fcn.0040d5c3
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.0040d5b7
add esp, 4
pop eax
test eax, eax
je 0x407315
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 0x4071e6
push 0x642
push 0x4016e59
push 6
call fcn.0040d5c3
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 0x40720f
push 0x6f0
push 0x4016e59
push 6
call fcn.0040d5c3
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 0x407243
push 0x6f0
push 0x4016e59
push 6
call fcn.0040d5c3
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 0x40726c
push 0x71b
push 0x4016e59
push 6
call fcn.0040d5c3
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 0x4072a0
push 0x71b
push 0x4016e59
push 6
call fcn.0040d5c3
add esp, 0xc
lea eax, [ebp - 8]
push eax
call fcn.00404bf0
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 0x4072e7
push 0x7a2
push 0x4016e59
push 6
call fcn.0040d5c3
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 0x407325
push ebx
call fcn.0040d5b7
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x407335
push ebx
call fcn.0040d5b7
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x407345
push ebx
call fcn.0040d5b7
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x40735c
push ebx
call fcn.0040d5b7
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x407370
push ebx
call fcn.0040d5b7
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x407384
push ebx
call fcn.0040d5b7
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x407398
push ebx
call fcn.0040d5b7
add esp, 4
pop ebx
add ebx, 0x10
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x4073ac
push ebx
call fcn.0040d5b7
add esp, 4
pop ebx
call fcn.0040d5b7
add esp, 4
mov esp, ebp
pop ebp
ret