Function at 0x10018680
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005081b
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x100668d8]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.10001fa0
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x238]
push eax
call fcn.100135b0
mov ecx, eax
call fcn.10014b20
mov dword [ebp - 4], 0
call fcn.100135b0
mov ecx, eax
call fcn.10014d70
test eax, eax
jne 0x10018707
mov dword [ebp - 0x294], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.10010310
mov eax, dword [ebp - 0x294]
jmp 0x10018997
mov cx, word [0x10053df4]
mov word [ebp - 0x234], cx
push 0x206
push 0
lea edx, [ebp - 0x232]
push edx
call fcn.1003ac40
add esp, 0xc
push 0x104
lea eax, [ebp - 0x234]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x2a8], ecx
mov edx, dword [ebp - 0x2a8]
add edx, 2
mov dword [ebp - 0x2ac], edx
mov eax, dword [ebp - 0x2a8]
mov cx, word [eax]
mov word [ebp - 0x2ae], cx
add dword [ebp - 0x2a8], 2
cmp word [ebp - 0x2ae], 0
jne 0x1001875a
mov edx, dword [ebp - 0x2a8]
sub edx, dword [ebp - 0x2ac]
sar edx, 1
mov dword [ebp - 0x2b4], edx
lea ecx, [ebp - 0x238]
call fcn.10018c00
mov ecx, dword [ebp - 0x2b4]
lea edx, [ecx + eax + 0x100]
mov dword [ebp - 0x14], edx
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100324f4
add esp, 4
mov dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x298]
mov dword [ebp - 0x290], eax
cmp dword [ebp - 0x290], 0
jne 0x10018808
mov dword [ebp - 0x29c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.10010310
mov eax, dword [ebp - 0x29c]
jmp 0x10018997
mov ecx, dword [ebp - 0x14]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x290]
push edx
call fcn.1003ac40
add esp, 0xc
lea ecx, [ebp - 0x238]
call fcn.10009170
mov dword [ebp - 0x28c], eax
cmp dword [ebp - 0x28c], 0
jne 0x10018845
mov dword [ebp - 0x2b8], 0
jmp 0x100188ad
mov eax, dword [ebp - 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x3fffffff
jle 0x1001886d
mov dword [ebp - 0x2bc], 0
jmp 0x100188a1
mov eax, dword [ebp - 0x10]
shl eax, 1
call fcn.1003a650
mov dword [ebp - 0x2c0], esp
mov ecx, dword [ebp - 0x288]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x28c]
push eax
mov ecx, dword [ebp - 0x2c0]
push ecx
call fcn.10001fb0
mov dword [ebp - 0x2bc], eax
mov edx, dword [ebp - 0x2bc]
mov dword [ebp - 0x2b8], edx
mov eax, dword [ebp - 0x2b8]
push eax
lea ecx, [ebp - 0x234]
push ecx
push 0x10053df8
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x290]
push eax
call fcn.10018c70
add esp, 0x14
mov dword [ebp - 0x284], 0
push 0x40
push 0
lea ecx, [ebp - 0x280]
push ecx
call fcn.1003ac40
add esp, 0xc
mov dword [ebp - 0x28], 0
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x284], 0x44
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x284]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x290]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp + 8], 0
je 0x10018947
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp - 0x290], 0
je 0x10018975
mov eax, dword [ebp - 0x290]
mov dword [ebp - 0x2a0], eax
mov ecx, dword [ebp - 0x2a0]
push ecx
call fcn.1003a08b
add esp, 4
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x2a4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.10010310
mov eax, dword [ebp - 0x2a4]
lea esp, [ebp - 0x2c4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.1003a5ba
mov esp, ebp
pop ebp
ret