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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x101b500]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 8]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
call fcn.01006845
cmp eax, ebx
jne 0x100794c
cmp dword [ebp - 0x14], ebx
push edi
jne 0x1008193
push dword [0x101b520]
xor edi, edi
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x100a26e
test byte [esi + 0x29], 1
jne 0x1008844
push edi
lea eax, [ebp - 0xa8]
push eax
call fcn.01007cb9
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xa8]
push eax
push ebx
push dword [ebp + 0x14]
push 0x40c
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x100e743
lea eax, [ebp - 0x40]
push eax
call fcn.01007b5f
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x100e75c
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push dword [ebp - 0x40]
push eax
call fcn.01007a49
cmp eax, 5
mov dword [ebp - 4], eax
je 0x1007752
cmp eax, ebx
jne 0x100e75c
cmp dword [ebp - 0x38], ebx
jne 0x100a392
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 0xc]
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call fcn.010077db
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x100e75c
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x1c], eax
jne 0x100e74b
test byte [esi + 0x28], 0x20
je 0x100a29a
mov dword [ebp - 0x2c], 1
jmp 0x100a29a
push dword [ebp - 0x2c]
mov esi, dword [ebp + 0x10]
push dword [ebp - 0x34]
push dword [ebp - 8]
push dword [ebp - 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push esi
call fcn.01007957
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x100e75c
cmp dword [ebp - 0x38], ebx
jne 0x100a286
push dword [ebp - 0x20]
mov dword [ebp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 8
push 0xffffffffffffffff
push dword [ebp - 0x24]
lea eax, [ebp + 0xc]
push 0x101473b
push dword [ebp - 0x24]
push eax
call dword [sym.imp.ntdll.dll_RtlRegisterWait]
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x1c], ecx
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x101b500]
jne 0x1008390
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x20]
shr eax, 6
and eax, 1
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x28], ebx
push dword [esi + 8]
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], bl
mov dword [ebp - 0x54], 0x1f0fff
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], bl
mov byte [ebp - 0x4b], bl
mov byte [ebp - 0x4a], bl
mov dword [ebp - 0x48], 0x100201
mov dword [ebp - 0x44], 0x101b500
call fcn.01006cbb
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x100e6d8
cmp dword [ebp + 0x14], ebx
jne 0x100820a
push ebx
push dword [ebp - 8]
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
cmp eax, ebx
mov dword [ebp - 0x28], eax
je 0x100e6df
lea eax, [ebp - 0xc]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [esi + 0x20]
and al, 0x40
neg al
push ebx
sbb eax, eax
and eax, dword [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 0x58]
push eax
call fcn.01007ce4
mov esi, eax
cmp esi, ebx
jl 0x100e6e7
mov eax, dword [ebp - 0x30]
push 0x11
pop ecx
push dword [ebp - 8]
mov esi, 0x1007bf8
lea edi, [ebp - 0xa8]
mov dword [ebp - 0x64], 0xc
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x100e701
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xa8]
push eax
push ebx
push dword [ebp + 0x14]
lea eax, [ebp - 0x64]
push 0x40c
push ebx
push ebx
push eax
push dword [ebp + 0xc]
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x100e724
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp dword [ebp - 0x28], ebx
je 0x10082ab
push dword [ebp + 0x14]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntdll.dll_RtlDeleteSecurityObject]
cmp dword [ebp - 4], ebx
jne 0x100e75c
mov esi, dword [ebp + 8]
jmp 0x1007752
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1007940
call fcn.0100885d
mov edi, eax
cmp edi, ebx
jne 0x100771c
jmp 0x100e732
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x38], 1
jmp 0x1007752
mov eax, dword [esi]
mov dword [eax + 0x10], 1
mov esi, dword [esi]
or dword [esi + 0x34], 2
jmp 0x1007931
test byte [esi + 0x20], 0x40
jne 0x100e753
jmp 0x10078cf
call fcn.0100a3ac
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1007797
jmp 0x100e75c
mov ebx, eax
jmp 0x1007940
mov dword [ebp + 0x14], ebx
jmp 0x100820a
cmp dword [ebp - 0x28], ebx
je 0x100e6f5
push dword [ebp + 0x14]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 4], eax
jmp 0x100e75c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x28], ebx
mov dword [ebp - 4], eax
je 0x100e718
push dword [ebp + 0x14]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntdll.dll_RtlDeleteSecurityObject]
jmp 0x100e75c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1008297
push dword [esi + 0xc]
push 0xb
call fcn.0100633d
pop ecx
pop ecx
jmp 0x100771c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100e6fc
mov dword [ebp - 0x1c], eax
jmp 0x10077c0
or dword [ebp - 0x2c], 4
jmp 0x10078cf
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x100e76c
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x101b500]
je 0x100e77e
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x34]
push dword [ebp - 8]
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
cmp dword [ebp - 8], ebx
je 0x100e794
push dword [ebp - 8]
call esi
cmp dword [ebp - 0x24], ebx
je 0x100e7ad
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
mov ebx, dword [ebp - 4]
jmp 0x1007940