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

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 0x647dfb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xcb8
mov eax, dword [0x6a6040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0xc50], eax
test eax, eax
je 0x602fa6
mov dword [eax], 0xffffffff
xor eax, eax
mov word [ebp - 0xc28], ax
lea eax, [ebp - 0xc28]
push 0x608
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x602fcc
cmp eax, 0x608
jbe 0x602fd5
xor eax, eax
mov word [ebp - 0xc28], ax
lea edx, [ebp - 0xc28]
lea ecx, [ebp - 0xc60]
call fcn.004b7ca0
xor eax, eax
mov dword [ebp - 4], 1
mov word [ebp - 0xc28], ax
lea eax, [ebp - 0xc28]
push 0x608
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x603013
cmp eax, 0x608
jbe 0x60301c
xor eax, eax
mov word [ebp - 0xc28], ax
lea edx, [ebp - 0xc28]
lea ecx, [ebp - 0xc5c]
call fcn.004b7ca0
sub esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xc58]
call fcn.00603ab0
add esp, 8
mov byte [ebp - 4], 4
call fcn.005a45d0
mov dword [ebp - 0xc44], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x603079
push esi
mov ecx, eax
call fcn.005a5480
mov dword [ebp - 0xc40], eax
test eax, eax
je 0x603083
cmp dword [eax + 0xc], 0
jne 0x603083
push ecx
mov ecx, eax
call fcn.005a47b0
mov dword [ebp - 0xc40], 0
push ecx
push str._windows_
lea ecx, [ebp - 0xc34]
call fcn.005a6850
sub esp, 8
mov byte [ebp - 4], 7
lea eax, [ebp - 0xc60]
lea ecx, [ebp - 0xc40]
push 0
push eax
lea eax, [ebp - 0xc34]
push eax
call fcn.005ad440
mov ecx, dword [ebp - 0xc34]
or edi, 0xffffffff
test ecx, ecx
je 0x6030d2
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x6030d2
push ecx
call fcn.005a47b0
push ecx
push str._system32_
lea ecx, [ebp - 0xc34]
call fcn.005a6850
sub esp, 8
mov byte [ebp - 4], 8
lea eax, [ebp - 0xc5c]
lea ecx, [ebp - 0xc40]
push 0
push eax
lea eax, [ebp - 0xc34]
push eax
call fcn.005ad440
mov ecx, dword [ebp - 0xc34]
test ecx, ecx
je 0x60311e
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x60311e
push ecx
call fcn.005a47b0
push ecx
push str._programfiles_
lea ecx, [ebp - 0xc34]
call fcn.005a6850
sub esp, 8
mov byte [ebp - 4], 9
lea eax, [ebp - 0xc58]
lea ecx, [ebp - 0xc40]
push 0
push eax
lea eax, [ebp - 0xc34]
push eax
call fcn.005ad440
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xc34]
test ecx, ecx
je 0x60316e
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x60316e
push ecx
call fcn.005a47b0
xorps xmm0, xmm0
mov dword [ebp - 0xca0], 0
movlpd qword [ebp - 0xcc4], xmm0
movlpd qword [ebp - 0xcb8], xmm0
movlpd qword [ebp - 0xcb0], xmm0
movlpd qword [ebp - 0xca8], xmm0
movlpd qword [ebp - 0xc98], xmm0
movlpd qword [ebp - 0xc90], xmm0
mov dword [ebp - 0xc88], 0
mov dword [ebp - 0xcc8], 0x44
call fcn.005a45d0
mov dword [ebp - 0xc44], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x6031f4
push esi
mov ecx, eax
call fcn.005a5480
mov esi, eax
mov dword [ebp - 0xc54], esi
test esi, esi
je 0x6031fc
cmp dword [esi + 0xc], 0
jne 0x6031fc
push ecx
mov ecx, esi
call fcn.005a47b0
xor esi, esi
mov dword [ebp - 0xc54], esi
push 0
lea edx, [ebp - 0xc54]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xc30]
call fcn.005b43d0
add esp, 4
mov edx, dword [ebp - 0xc30]
mov dword [ebp - 0xc34], edx
test edx, edx
je 0x60327f
lock inc dword [edx]
mov dword [ebp - 0xc64], edx
mov eax, edi
lock xadd dword [edx], eax
dec eax
mov eax, edx
mov ecx, edx
jne 0x60324a
push ecx
call fcn.005a47b0
mov eax, dword [ebp - 0xc30]
mov ecx, eax
mov edx, eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x603293
lock inc dword [edx]
mov edx, dword [ecx + 0xc]
mov eax, edx
mov dword [ebp - 0xc3c], edx
test ecx, ecx
je 0x603298
mov eax, edi
lock xadd dword [ecx], eax
dec eax
mov eax, edx
jne 0x603298
push ecx
call fcn.005a47b0
mov eax, dword [ebp - 0xc3c]
jmp 0x603298
xor eax, eax
xor edx, edx
mov dword [ebp - 0xc34], eax
xor ecx, ecx
mov dword [ebp - 0xc64], eax
jmp 0x60324c
mov eax, 0x651f68
xorps xmm0, xmm0
mov dword [ebp - 0xcbc], eax
push 0
lea edx, [ebp - 0xc40]
mov dword [ebp - 0xc9c], 0
lea ecx, [ebp - 0xc30]
movups xmmword [ebp - 0xc74], xmm0
call fcn.005b43d0
add esp, 4
mov ecx, dword [ebp - 0xc30]
mov dword [ebp - 0xc4c], ecx
test ecx, ecx
je 0x6032f8
lock inc dword [ecx]
mov dword [ebp - 0xc44], ecx
mov eax, edi
lock xadd dword [ecx], eax
dec eax
mov edi, ecx
mov edx, ecx
jne 0x60330a
push ecx
call fcn.005a47b0
mov edx, edi
jmp 0x60330a
xor eax, eax
xor edi, edi
mov dword [ebp - 0xc4c], eax
xor edx, edx
mov dword [ebp - 0xc44], eax
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0xc40]
test eax, eax
je 0x60331d
mov eax, dword [eax + 0xc]
jmp 0x603324
mov eax, 0x651f68
mov edi, edx
push eax
push 0x651d94
call fcn.005e0760
add esp, 8
lea eax, [ebp - 0xc74]
push eax
lea eax, [ebp - 0xcc8]
push eax
mov eax, dword [ebp - 0xc4c]
push 0
push 0
push 0x10
push 0
push 0
push 0
test eax, eax
je 0x603384
lock inc dword [eax]
mov ecx, dword [edi + 0xc]
mov eax, ecx
mov dword [ebp - 0xc3c], ecx
test edi, edi
je 0x603389
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
mov eax, ecx
jne 0x603389
push ecx
mov ecx, edi
call fcn.005a47b0
mov eax, dword [ebp - 0xc3c]
jmp 0x603389
mov eax, 0x651f68
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x603610
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10
mov dword [ebp - 0xc50], eax
call fcn.00606edf
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0xc50]
mov dword [ebp - 0xc3c], edi
mov dword [edi + 4], 1
mov dword [edi + 8], 0
mov dword [edi], vtable.XTOOGetLastErrorImp.0
cmp eax, 0xffffffff
jne 0x6033dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
mov dword [edi + 0xc], eax
call fcn.005d11f0
push 0x20
push str.Error_creating_process
mov ecx, edi
call fcn.005d02c0
mov dword [ebp - 0xc78], edi
mov dword [ebp - method.XTOOLastError.virtual_0], vtable.XTOOLastError.0
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0xc40]
test eax, eax
je 0x603453
mov edi, dword [eax + 4]
test edi, edi
jle 0x603453
call fcn.005a45d0
mov dword [ebp - 0xc30], eax
mov byte [ebp - 4], 0x13
test eax, eax
je 0x603453
push 0
push edi
mov ecx, eax
call fcn.005a5640
mov edi, eax
mov dword [ebp - 0xc48], edi
mov edx, edi
mov ecx, edi
test edi, edi
je 0x603461
cmp dword [edi + 0xc], 0
jne 0x603489
push ecx
call fcn.005a47b0
xor edi, edi
xor edx, edx
xor eax, eax
mov dword [ebp - 0xc48], edi
xor ecx, ecx
mov dword [ebp - 0xc30], 0
test edx, edx
je 0x6034a4
mov edx, dword [ebp - 0xc30]
mov edi, 0xfffd
and word [eax + 0x10], di
mov ecx, dword [ecx + 0xc]
mov edi, dword [ebp - 0xc48]
jmp 0x6034ab
mov edx, dword [edi + 4]
mov eax, edi
mov ecx, edi
mov edi, 0xfffd
and word [eax + 0x10], di
mov ecx, dword [ecx + 0xc]
mov edi, dword [ebp - 0xc48]
jmp 0x6034ab
mov ecx, 0x651f68
xor edx, edx
mov eax, dword [ebp - 0xc40]
test eax, eax
je 0x6034ba
mov eax, dword [eax + 0xc]
jmp 0x6034bf
mov eax, 0x651f68
push edx
push ecx
push eax
call dword [sym.imp.USER32.dll_CharToOemBuffA]
mov byte [ebp - 4], 0x14
test edi, edi
je 0x6034db
mov edi, dword [edi + 0xc]
mov dword [ebp - 0xc30], edi
jmp 0x6034e5
mov dword [ebp - 0xc30], 0x651f68
mov ecx, dword [ebp - 0xc3c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edi, eax
call fcn.005a45d0
mov dword [ebp - 0xc38], eax
mov byte [ebp - 4], 0x15
test eax, eax
je 0x603528
push edi
mov ecx, eax
call fcn.005a5480
mov edi, eax
test edi, edi
je 0x603528
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x6035d7
push ecx
mov ecx, edi
call fcn.005a47b0
push 0x651f68
push 0x651f68
call dword [sym.imp.USER32.dll_CharToOemA]
push dword [ebp - 0xc30]
push 0x651f68
push str._s_nCommand_line:__s_n
call fcn.005e0760
add esp, 0xc
mov ecx, dword [ebp - 0xc48]
or edi, 0xffffffff
test ecx, ecx
je 0x60356c
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x60356c
push ecx
call fcn.005a47b0
mov eax, dword [ebp - 0xc50]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc3c]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc4c]
test ecx, ecx
je 0x60359d
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x60359d
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0xc34]
test ecx, ecx
je 0x6035b6
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x6035b6
push ecx
call fcn.005a47b0
test esi, esi
je 0x6035cb
mov eax, edi
lock xadd dword [esi], eax
dec eax
jne 0x6035cb
push ecx
mov ecx, esi
call fcn.005a47b0
mov byte [ebp - 0xc29], 0
jmp 0x6036b7
push eax
push eax
call dword [sym.imp.USER32.dll_CharToOemA]
push dword [ebp - 0xc30]
push dword [edi + 0xc]
push str._s_nCommand_line:__s_n
call fcn.005e0760
add esp, 0xc
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
jne 0x603550
push ecx
mov ecx, edi
call fcn.005a47b0
jmp 0x603550
push 0x1d4c0
push dword [ebp - 0xc74]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0xc50]
test ecx, ecx
je 0x60363e
test eax, eax
jne 0x603642
push ecx
push dword [ebp - 0xc74]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x603650
test eax, eax
je 0x603650
push 1
push dword [ebp - 0xc74]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0xc74]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0xc70]
call edi
mov ecx, dword [ebp - 0xc4c]
or edi, 0xffffffff
test ecx, ecx
je 0x603682
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x603682
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0xc34]
test ecx, ecx
je 0x60369b
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x60369b
push ecx
call fcn.005a47b0
test esi, esi
je 0x6036b0
mov eax, edi
lock xadd dword [esi], eax
dec eax
jne 0x6036b0
push ecx
mov ecx, esi
call fcn.005a47b0
mov byte [ebp - 0xc29], 1
mov ecx, dword [ebp - 0xc40]
or esi, 0xffffffff
test ecx, ecx
je 0x6036d3
mov eax, esi
lock xadd dword [ecx], eax
dec eax
jne 0x6036d3
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0xc58]
test ecx, ecx
je 0x6036ec
mov eax, esi
lock xadd dword [ecx], eax
dec eax
jne 0x6036ec
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0xc5c]
test ecx, ecx
je 0x603705
mov eax, esi
lock xadd dword [ecx], eax
dec eax
jne 0x603705
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0xc60]
test ecx, ecx
je 0x60371c
lock xadd dword [ecx], esi
dec esi
jne 0x60371c
push ecx
call fcn.005a47b0
mov al, byte [ebp - 0xc29]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00606a47
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret