Function at 0x10078166
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
push 0x104
mov eax, 0x1016c3e0
call fcn.101673d5
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0xa0], ebx
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], ebx
push eax
call fcn.10077f48
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x84], ebx
call fcn.10081460
mov ebx, eax
test ebx, ebx
js 0x1007821d
mov edi, dword [ebp - 0x84]
push edi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x101a77c4]
call esi
mov esi, dword [edi]
lea eax, [ebp - 0x8c]
push eax
push 0x1001aa34
push edi
mov ecx, dword [esi]
call dword [0x101a77c4]
call dword [esi]
mov ebx, eax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x101a77c4]
call esi
mov eax, dword [ebp - 0x8c]
mov edi, dword [ebp - 0x94]
jmp 0x10078225
xor eax, eax
mov dword [ebp - 0x8c], eax
test ebx, ebx
jns 0x10078248
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x10078b63
test byte [eax + 0x44], 1
jne 0x10078b4f
jmp 0x10078b63
mov esi, dword [eax]
lea ecx, [ebp - 0x9c]
push ecx
push 0x1001aa24
push eax
mov ecx, dword [esi]
call dword [0x101a77c4]
call dword [esi]
mov esi, eax
test esi, esi
jns 0x10078295
mov ecx, dword [0x101973c0]
cmp ecx, 0x101973c0
je 0x1007828f
test byte [ecx + 0x44], 1
je 0x1007828f
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001c1f8
push dword [ecx + 0x38]
push 0x31
pop ecx
call fcn.10149ac2
push esi
jmp 0x10078b64
lea ecx, [ebp - 0x90]
mov eax, dword [ebp - 0x9c]
push ecx
mov esi, edi
lea ecx, [ebp - 0x68]
push ecx
sub esp, 0x10
mov ebx, dword [eax]
mov edi, esp
sub esp, 0x10
mov ecx, dword [ebx + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x70]
mov edi, esp
push eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [0x101a77c4]
call dword [ebx + 0xc]
mov esi, eax
test esi, esi
jns 0x100782f6
mov ecx, dword [0x101973c0]
cmp ecx, 0x101973c0
je 0x1007828f
test byte [ecx + 0x44], 1
je 0x1007828f
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001c1f8
push dword [ecx + 0x38]
push 0x32
jmp 0x10078289
xor ebx, ebx
mov dword [ebp - 0x24], 7
xor eax, eax
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x38], ax
lea edx, [ebp - 0x38]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x90]
call fcn.10149ac2
push 0x44
pop esi
push esi
lea eax, [ebp - 0x110]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x110], esi
mov esi, dword [ebp - 0xa0]
inc eax
add esp, 0xc
mov word [ebp - 0xe0], ax
mov eax, 0x101a5de8
mov dword [ebp - 0x108], 0x1001c1d8
mov dword [ebp - 0xe4], 0x41
mov dword [ebp - 0xcc], eax
push eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x98], ebx
mov byte [ebp - 4], 8
lea edi, [ebp - 0xb4]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.ole32.dll_CoRevertToSelf]
test eax, eax
jns 0x1007839c
push eax
jmp 0x10078b64
mov byte [ebp - 0x69], 1
push ebx
push ebx
mov byte [ebp - 4], 9
call dword [sym.imp.kernel32.dll_CreateJobObjectW]
push eax
lea ecx, [ebp - 0x88]
call fcn.10149ac2
mov ebx, dword [ebp - 0x88]
mov dword [ebp - 0x80], ebx
test ebx, ebx
jne 0x10078415
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100783da
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x10078400
test byte [eax + 0x44], 1
je 0x10078400
push esi
push dword [eax + 0x3c]
mov edx, 0x1001c1f8
push dword [eax + 0x38]
push 0x33
pop ecx
call fcn.10149ac2
push esi
lea ecx, [ebp - 0x80]
call fcn.10149ac2
push 0x10196090
mov eax, ecx
jmp 0x10078b73
and dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
push 0
push esi
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x10078461
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1007843f
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x10078400
test byte [eax + 0x44], 1
je 0x10078400
push esi
push dword [eax + 0x3c]
mov edx, 0x1001c1f8
push dword [eax + 0x38]
push 0x34
jmp 0x100783fa
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x58]
sub esp, 0x18
mov eax, esp
mov dword [eax], 0x10001fd4
mov dword [eax + 0x10], eax
call fcn.10078fa2
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
jae 0x1007848a
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0xb4]
push ecx
lea ecx, [ebp - 0x110]
push ecx
push eax
push dword [ebp - 0x40]
xor eax, eax
push 0x434
push eax
push eax
push eax
push dword [ebp - 0x90]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x100784fa
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100784cd
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1007828f
test byte [eax + 0x44], 1
je 0x1007828f
push esi
push dword [eax + 0x3c]
mov edx, 0x1001c1f8
push dword [eax + 0x38]
push 0x35
jmp 0x10078289
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.10149ac2
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x84]
call fcn.10149ac2
push dword [ebp - 0xb0]
lea ecx, [ebp - 0x98]
call fcn.10149ac2
mov edi, dword [ebp - 0x84]
push edi
push ebx
call dword [sym.imp.kernel32.dll_AssignProcessToJobObject]
mov ebx, 0x101973c0
test eax, eax
jne 0x10078572
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x101973c0]
cmp eax, ebx
je 0x100785b4
test byte [eax + 0x44], 1
mov ebx, dword [ebp - 0x74]
je 0x100785b7
push esi
push dword [ebx]
push dword [ebp - 0xac]
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x36
pop ecx
call fcn.10149ac2
jmp 0x100785b7
push dword [ebp - 0x98]
call dword [sym.imp.kernel32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x10078638
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x101973c0]
cmp eax, ebx
je 0x100785b4
test byte [eax + 0x44], 1
mov ebx, dword [ebp - 0x74]
je 0x100785b7
push esi
push dword [ebx]
push dword [ebp - 0xac]
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x37
jmp 0x1007856a
mov ebx, dword [ebp - 0x74]
test esi, esi
je 0x10078638
push esi
push edi
call dword [sym.imp.kernel32.dll_TerminateProcess]
test eax, eax
jne 0x100785f8
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [0x101973c0]
cmp ecx, 0x101973c0
je 0x100785fe
test byte [ecx + 0x44], 1
je 0x100785fe
push eax
push dword [ebx]
push dword [ebp - 0xac]
push dword [ecx + 0x3c]
push dword [ecx + 0x38]
push 0x38
pop ecx
call fcn.10149ac2
mov ecx, dword [0x101973c0]
test esi, esi
jle 0x1007860d
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x10078638
cmp ecx, 0x101973c0
je 0x10078400
test byte [ecx + 0x44], 1
je 0x10078400
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001c1f8
push dword [ecx + 0x38]
push 0x39
jmp 0x100783fa
call dword [sym.imp.ole32.dll_CoImpersonateClient]
test eax, eax
jns 0x10078644
int 0x2c
xor ebx, ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_CreateWaitableTimerW]
mov esi, eax
mov dword [ebp - 0xa4], esi
mov byte [ebp - 4], 0xb
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
test eax, eax
jne 0x100786a6
push ebx
push 0x3e8
mov edx, 0x1388
mov ecx, esi
call fcn.10149ac2
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x100786a6
test byte [eax + 0x44], 8
je 0x100786a6
push dword [ebp - 0x70]
mov ecx, dword [ebp - 0x74]
push dword [ecx]
push dword [ebp - 0xac]
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x3a
pop ecx
call fcn.10149ac2
mov eax, dword [0x101a5e18]
mov bl, 1
and dword [ebp - 0xc4], 0
push ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x69], bl
call fcn.10149ac2
mov dword [ebp - 0xc8], eax
mov dword [eax], eax
mov dword [eax + 4], eax
xor esi, esi
mov dword [ebp - 0x78], esi
mov byte [ebp - 4], 0xd
mov eax, dword [0x101973c0]
mov edi, dword [ebp - 0x70]
cmp eax, 0x101973c0
je 0x10078709
test byte [eax + 0x44], 4
je 0x10078709
mov ecx, dword [ebp - 0x74]
push edi
push dword [ecx]
push dword [ebp - 0xac]
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x3b
pop ecx
call fcn.10149ac2
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1c]
push eax
push 3
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
mov dword [ebp - 0xbc], eax
test eax, eax
je 0x10078986
lea ecx, [eax - 1]
cmp ecx, 1
ja 0x100789c2
lea eax, [ebp - 0xc8]
push eax
push 0x10018bcc
push edi
call fcn.10077c30
mov eax, dword [ebp - 0xc8]
mov edi, dword [eax]
cmp edi, eax
mov eax, dword [0x101973c0]
je 0x100788f3
test bl, bl
je 0x100788f3
mov edx, dword [edi + 8]
cmp esi, edx
je 0x1007877d
lea ecx, [ebp - 0x78]
call fcn.10149ac2
mov esi, dword [ebp - 0x78]
mov ecx, eax
mov eax, dword [0x101973c0]
jmp 0x1007877f
mov ecx, esi
test ecx, ecx
je 0x100788bb
mov eax, dword [esi]
mov ebx, dword [eax + 0x14]
mov ecx, ebx
call dword [0x101a77c4]
mov ecx, esi
call ebx
mov ecx, dword [esi]
mov dword [ebp - 0xb8], eax
mov ebx, dword [ecx + 0x18]
mov ecx, ebx
call dword [0x101a77c4]
mov ecx, esi
call ebx
and dword [ebp - 0x7c], 0
mov ebx, eax
cmp dword [ebp - 0xac], ebx
jne 0x100787ef
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x10078875
test byte [eax + 0x44], 4
je 0x10078875
push dword [ebp - 0x70]
push esi
push ebx
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x3d
pop ecx
call fcn.10149ac2
jmp 0x10078870
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
push dword [ebp - 0xb8]
call dword [sym.imp.kernel32.dll_IsProcessInJob]
test eax, eax
jne 0x10078841
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, eax
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x100788b6
test byte [eax + 0x44], 1
je 0x100788b6
push ecx
push dword [ebp - 0x70]
push esi
push ebx
push dword [eax + 0x3c]
push dword [eax + 0x38]
call fcn.10149ac2
mov bl, byte [ebp - 0x69]
jmp 0x100788e0
cmp dword [ebp - 0x7c], 0
je 0x1007888f
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x10078875
test byte [eax + 0x44], 4
je 0x10078875
push ecx
push dword [ebp - 0xac]
push dword [ebp - 0x70]
push esi
push ebx
push dword [eax + 0x3c]
push dword [eax + 0x38]
call fcn.10149ac2
mov eax, dword [0x101973c0]
mov ecx, dword [ebp - 0x74]
cmp dword [ecx], esi
je 0x10078888
mov edx, esi
call fcn.10149ac2
mov eax, dword [0x101973c0]
xor bl, bl
mov byte [ebp - 0x69], bl
jmp 0x100788e5
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x100788b6
test byte [eax + 0x44], 4
je 0x100788b6
push dword [ebp - 0x70]
push esi
push ebx
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x40
pop ecx
call fcn.10149ac2
jmp 0x10078839
mov bl, byte [ebp - 0x69]
jmp 0x100788e5
cmp eax, 0x101973c0
je 0x100788e5
test byte [eax + 0x44], 1
je 0x100788e5
push dword [ebp - 0x70]
push esi
push dword [ebp - 0xac]
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x41
pop ecx
call fcn.10149ac2
mov eax, dword [0x101973c0]
mov edi, dword [edi]
cmp edi, dword [ebp - 0xc8]
jne 0x1007875a
cmp dword [ebp - 0xbc], 2
jne 0x100789b8
push 0x42b
push dword [ebp - 0x80]
call dword [sym.imp.kernel32.dll_TerminateJobObject]
test eax, eax
je 0x10078941
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x100789b3
test byte [eax + 0x44], 1
je 0x100789b3
push dword [ebp - 0x70]
push 0
push dword [ebp - 0xac]
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x42
jmp 0x100789a8
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x100789b3
test byte [eax + 0x44], 1
je 0x100789b3
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jle 0x10078965
movzx eax, ax
or eax, 0x80070000
push eax
push dword [ebp - 0x70]
mov eax, dword [0x101973c0]
push 0
push dword [ebp - 0xac]
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x43
pop ecx
call fcn.10149ac2
jmp 0x100789ae
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x100789b3
test byte [eax + 0x44], 1
je 0x100789b3
push edi
push esi
push dword [ebp - 0xac]
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x3c
pop ecx
call fcn.10149ac2
mov eax, dword [0x101973c0]
xor bl, bl
mov byte [ebp - 0x69], bl
test bl, bl
jne 0x100786df
jmp 0x100789f0
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x100789f0
test byte [eax + 0x44], 1
je 0x100789f0
push edi
push 0
push dword [ebp - 0xac]
push dword [eax + 0x3c]
push dword [eax + 0x38]
push 0x44
pop ecx
call fcn.10149ac2
mov eax, dword [0x101973c0]
mov ecx, dword [ebp - 0x74]
mov ebx, dword [ecx]
test ebx, ebx
je 0x10078a8e
mov ecx, ebx
mov dword [ebp - 0x7c], ecx
cmp eax, 0x101973c0
je 0x10078a46
test byte [eax + 0x44], 4
mov dword [ebp - 0x7c], ecx
je 0x10078a46
push dword [ebp - 0x94]
mov eax, dword [ebx]
push dword [ebp - 0x70]
push ebx
mov edi, dword [eax + 0x18]
mov ecx, edi
call dword [0x101a77c4]
mov ecx, ebx
call edi
push eax
mov eax, dword [0x101973c0]
push dword [eax + 0x3c]
push dword [eax + 0x38]
call fcn.10149ac2
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
mov dword [ebp - 0x7c], ecx
mov eax, dword [ecx]
push dword [ebp - 0x94]
mov edi, dword [eax + 0x1c]
mov ecx, edi
call dword [0x101a77c4]
mov ecx, dword [ebp - 0x7c]
call edi
mov eax, dword [ebp - 0x74]
push dword [ebp - 0x80]
or dword [ebp - 0x88], 0xffffffff
mov ebx, dword [eax]
mov eax, dword [ebx]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [0x101a77c4]
mov ecx, ebx
call edi
mov eax, dword [0x101973c0]
test byte [eax + 0x44], 8
je 0x10078a8e
call fcn.10149ac2
mov byte [ebp - 4], 0xc
test esi, esi
je 0x10078aa6
mov eax, dword [esi]
push esi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x101a77c4]
call esi
lea ecx, [ebp - 0xc8]
call fcn.10078ffa
lea ecx, [ebp - 0xa4]
call fcn.1003f382
lea ecx, [ebp - 0x98]
call fcn.1003f382
lea ecx, [ebp - 0x84]
call fcn.1003f382
lea ecx, [ebp - 0x88]
call fcn.1003f382
push 0x101a5de8
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.10149ac2
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x10078b12
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x101a77c4]
call esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x10078b30
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x101a77c4]
call esi
push dword [ebp - 0x90]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0xa0]
call fcn.1003f382
call fcn.10167384
ret 0xc
push ebx
push dword [eax + 0x3c]
mov edx, 0x1001c1f8
push dword [eax + 0x38]
push 0x30
pop ecx
call fcn.10149ac2
push ebx
lea ecx, [ebp - 0x78]
call fcn.10149ac2
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3