Function at 0x10003ad0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10183716
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x518
push esi
push edi
lea eax, [ebp - 0x428]
mov dword [ebp - 0x48], 0
push eax
mov esi, edx
mov edi, ecx
push 0x104
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x50], 0
movups xmmword [ebp - 0x64], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003b42
sub ecx, edx
lea eax, [ebp - 0x428]
push ecx
push eax
lea ecx, [ebp - 0x64]
call fcn.1000ad60
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x50]
mov eax, edx
mov ecx, dword [ebp - 0x54]
sub eax, ecx
push 0xc
push 0x101c61d4
cmp eax, 0xc
jb 0x10003b9f
cmp edx, 0xf
lea esi, [ebp - 0x64]
lea eax, [ecx + 0xc]
cmova esi, dword [ebp - 0x64]
add esi, ecx
mov dword [ebp - 0x54], eax
push esi
call fcn.1015b040
mov byte [esi + 0xc], 0
lea eax, [ebp - 0x64]
mov esi, dword [ebp - 0x14]
add esp, 0xc
jmp 0x10003bb0
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x64]
push dword [ebp - 0x14]
push 0xc
call fcn.1000b510
mov dword [ebp - 0x84], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x94], xmm0
mov dword [ebp - 0x80], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x94], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x84], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
sub esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x94]
lea ecx, [ebp - 0x270]
push 2
push eax
call fcn.10006d20
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x80]
cmp ecx, 0xf
jbe 0x10003c49
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003c3f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004614
push ecx
push edx
call fcn.101581a0
add esp, 8
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0xf
mov byte [ebp - 0x94], 0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x50]
cmp ecx, 0xf
jbe 0x10003c99
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003c8f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004614
push ecx
push edx
call fcn.101581a0
add esp, 8
cmp dword [ebp - 0x220], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
mov byte [ebp - 0x64], 0
je 0x10003dd8
mov edx, str._echo_off_n
lea ecx, [ebp - 0x270]
call fcn.1000a290
mov edx, str.:CheckProcess_n
lea ecx, [ebp - 0x270]
call fcn.1000a290
mov edx, str.set__ProcessName
lea ecx, [ebp - 0x270]
call fcn.1000a290
cmp dword [edi + 0x14], 0xf
mov ecx, dword [edi + 0x10]
jbe 0x10003cf3
mov edi, dword [edi]
push ecx
mov edx, edi
mov ecx, eax
call fcn.1000d580
add esp, 4
mov edx, 0x101c6200
mov ecx, eax
call fcn.1000a290
mov edx, str.set__ProcessPath
lea ecx, [ebp - 0x270]
call fcn.1000a290
cmp dword [esi + 0x14], 0xf
mov ecx, dword [esi + 0x10]
jbe 0x10003d27
mov esi, dword [esi]
push ecx
mov edx, esi
mov ecx, eax
call fcn.1000d580
add esp, 4
mov edx, 0x101c6218
mov ecx, eax
call fcn.1000a290
mov edx, str.tasklist__FI__IMAGENAME_eq__ProcessName____findstr__I___ProcessName____nul_n
lea ecx, [ebp - 0x270]
call fcn.1000a290
mov edx, str.if__ERRORLEVEL__neq_0___n
lea ecx, [ebp - 0x270]
call fcn.1000a290
mov edx, str.____start______ProcessPath___n
lea ecx, [ebp - 0x270]
call fcn.1000a290
mov edx, 0x101c62bc
lea ecx, [ebp - 0x270]
call fcn.1000a290
mov edx, str.timeout__t_60__nobreak__nul_n
lea ecx, [ebp - 0x270]
call fcn.1000a290
mov edx, str.goto_CheckProcess_n
lea ecx, [ebp - 0x270]
call fcn.1000a290
lea ecx, [ebp - 0x26c]
call fcn.10008c60
test eax, eax
jne 0x10003dd8
mov eax, dword [ebp - 0x270]
lea ecx, [ebp - 0x270]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10003020
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003df6
sub ecx, edx
lea eax, [ebp - 0x428]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000ad60
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x18]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
push 0xc
push str.monitor.bat
cmp eax, 0xc
jb 0x10003e4d
cmp edx, 0xf
lea esi, [ebp - 0x2c]
lea eax, [ecx + 0xc]
cmova esi, dword [ebp - 0x2c]
add esi, ecx
mov dword [ebp - 0x1c], eax
push esi
call fcn.1015b040
add esp, 0xc
mov byte [esi + 0xc], 0
lea eax, [ebp - 0x2c]
jmp 0x10003e5e
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x14]
push 0xc
call fcn.1000b510
mov dword [ebp - 0x34], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x34], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 0xf
cmova eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x528]
push str.cmd.exe__B__c___s_
push eax
call fcn.10001d60
mov ecx, dword [ebp - 0x30]
add esp, 0xc
cmp ecx, 0xf
jbe 0x10003ee9
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003edf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004619
push ecx
push edx
call fcn.101581a0
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0xf
jbe 0x10003f33
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10003f29
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004619
push ecx
push edx
call fcn.101581a0
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x1c0], 0x44
xor eax, eax
movlpd qword [ebp - 0x1bc], xmm0
lea ecx, [ebp - 0x428]
movlpd qword [ebp - 0x1b4], xmm0
movlpd qword [ebp - 0x1ac], xmm0
lea edx, [ecx + 1]
movlpd qword [ebp - 0x1a4], xmm0
movlpd qword [ebp - 0x19c], xmm0
movlpd qword [ebp - 0x18e], xmm0
movlpd qword [ebp - 0x186], xmm0
mov word [ebp - 0x17e], ax
mov dword [ebp - 0x194], 1
mov word [ebp - 0x190], ax
movups xmmword [ebp - 0xbc], xmm0
mov dword [ebp - 0x1c], eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003fb0
sub ecx, edx
lea eax, [ebp - 0x428]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000ad60
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x18]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
push 0xb
push 0x101c6318
cmp eax, 0xb
jb 0x10004007
cmp edx, 0xf
lea esi, [ebp - 0x2c]
lea eax, [ecx + 0xb]
cmova esi, dword [ebp - 0x2c]
add esi, ecx
mov dword [ebp - 0x1c], eax
push esi
call fcn.1015b040
add esp, 0xc
mov byte [esi + 0xb], 0
lea eax, [ebp - 0x2c]
jmp 0x10004018
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x14]
push 0xb
call fcn.1000b510
mov dword [ebp - 0x6c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x68], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x7c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x6c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
cmp dword [ebp - 0x68], 0xf
lea esi, [ebp - 0x7c]
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x178], 0x101c6bcc
cmova esi, dword [ebp - 0x7c]
call fcn.10008e10
mov byte [ebp - 4], 8
xorps xmm0, xmm0
mov eax, dword [ebp - 0x178]
push 0
mov dword [ebp - 0x48], 0xf
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x178]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x17c], eax
lea ecx, [ebp - 0x178]
mov eax, dword [ebp - 0x178]
movlpd qword [ebp - 0x170], xmm0
add ecx, dword [eax + 4]
lea eax, [ebp - 0x168]
push eax
call fcn.10009c50
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x178]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x17c], eax
lea ecx, [ebp - 0x168]
call fcn.10009910
push ecx
push 1
push esi
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 0xb
call fcn.10009860
test eax, eax
jne 0x10004142
mov eax, dword [ebp - 0x178]
lea ecx, [ebp - 0x178]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10003020
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x178]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x17c], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x68]
cmp ecx, 0xf
jbe 0x100041a1
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004197
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000461e
push ecx
push edx
call fcn.101581a0
add esp, 8
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x100041eb
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100041e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000461e
push ecx
push edx
call fcn.101581a0
add esp, 8
cmp dword [ebp - 0x11c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x4c], 0
je 0x10004279
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x178]
call fcn.1000a5c0
lea ecx, [ebp - 0x168]
call fcn.10008c60
test eax, eax
jne 0x10004254
mov eax, dword [ebp - 0x178]
lea ecx, [ebp - 0x178]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10003020
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x10004279
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x10004279
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10004512
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0x1c0]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x528]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10004512
xorps xmm0, xmm0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100042c8
sub ecx, edx
lea eax, [ebp - 0x428]
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.1000ad60
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x30]
mov eax, edx
mov ecx, dword [ebp - 0x34]
sub eax, ecx
push 0xb
push str.monitor.pid
cmp eax, 0xb
jb 0x1000431f
cmp edx, 0xf
lea esi, [ebp - 0x44]
lea eax, [ecx + 0xb]
cmova esi, dword [ebp - 0x44]
add esi, ecx
mov dword [ebp - 0x34], eax
push esi
call fcn.1015b040
add esp, 0xc
mov byte [esi + 0xb], 0
lea eax, [ebp - 0x44]
jmp 0x10004330
mov byte [ebp - 0x48], 0
lea ecx, [ebp - 0x44]
push dword [ebp - 0x48]
push 0xb
call fcn.1000b510
mov dword [ebp - 0x9c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0xac], xmm0
mov dword [ebp - 0x98], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0xac], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x9c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
sub esp, 8
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0xac]
lea ecx, [ebp - 0x320]
push 2
push eax
call fcn.10006d20
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x98]
cmp ecx, 0xf
jbe 0x100043cf
mov edx, dword [ebp - 0xac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100043c5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004623
push ecx
push edx
call fcn.101581a0
add esp, 8
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0xf
mov byte [ebp - 0xac], 0
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x10004422
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10004418
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10004623
push ecx
push edx
call fcn.101581a0
add esp, 8
cmp dword [ebp - 0x2d0], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
je 0x10004486
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x320]
call fcn.10007210
lea ecx, [ebp - 0x31c]
call fcn.10008c60
test eax, eax
jne 0x10004486
mov eax, dword [ebp - 0x320]
lea ecx, [ebp - 0x320]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10003020
push dword [ebp - 0xbc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xb8]
call esi
mov eax, dword [ebp - 0x320]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x320]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x324], eax
lea ecx, [ebp - 0x31c]
call fcn.10006c80
mov eax, dword [ebp - 0x320]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x320]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x324], eax
lea eax, [ebp - 0x2b8]
mov byte [ebp - 4], 0x14
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10159f83
add esp, 4
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x178]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0x17c], eax
lea ecx, [ebp - 0x168]
call fcn.10006c80
mov eax, dword [ebp - 0x178]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_istream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x178]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ebp + ecx - 0x17c], eax
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 0x15
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10159f83
mov eax, dword [ebp - 0x270]
add esp, 4
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x270]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x274], eax
lea ecx, [ebp - 0x26c]
call fcn.10006c80
mov eax, dword [ebp - 0x270]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x270]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x274], eax
lea eax, [ebp - 0x208]
mov dword [ebp - 4], 0x16
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10159f83
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10166678
call fcn.10166678
call fcn.10166678
call fcn.10166678
int3