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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x101a4e8]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
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 - 0x14], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x38], ebx
call fcn.01005ec1
cmp eax, ebx
jne 0x1006ee0
cmp dword [ebp - 0x10], ebx
push edi
jne 0x10075b2
push dword [0x101a508]
xor edi, edi
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1009916
test byte [esi + 0x29], 1
jne 0x1007c4c
push edi
lea eax, [ebp - 0xa8]
push eax
call fcn.01007349
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 0x100e823
lea eax, [ebp - 0x40]
push eax
call fcn.010071eb
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x100e833
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push dword [ebp - 0x40]
push eax
call fcn.010070d6
cmp eax, 5
mov dword [ebp - 4], eax
je 0x1006de8
cmp eax, ebx
jne 0x100e833
cmp dword [ebp - 0x30], ebx
jne 0x1009a2a
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 - 0x14]
call fcn.01006eeb
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x100e833
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x1c], eax
jne 0x100e82b
test byte [esi + 0x28], 0x20
je 0x1006e63
mov dword [ebp - 0x38], 1
push dword [ebp - 0x38]
mov esi, dword [ebp + 0x10]
push dword [ebp - 0x2c]
push dword [ebp - 8]
push dword [ebp - 0x24]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.01006fe4
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x100e833
cmp dword [ebp - 0x30], ebx
jne 0x100992e
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 0x10144cb
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 [0x101a4e8]
jne 0x1007799
push dword [ebp - 0x10]
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 - 0x2c]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
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], 0x101a4e8
call fcn.01006321
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x100e7b8
cmp dword [ebp + 0x14], ebx
jne 0x100761f
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 0x100e7bf
lea eax, [ebp - 0xc]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push 2
lea eax, [ebp - 0x58]
push eax
call fcn.01007374
mov esi, eax
cmp esi, ebx
jl 0x100e7c7
mov eax, dword [ebp - 0x34]
push 0x11
pop ecx
push dword [ebp - 8]
mov esi, 0x1007288
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 0x100e7e1
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 0x100e804
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
cmp dword [ebp - 0x28], ebx
je 0x10076b4
push dword [ebp + 0x14]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ntdll.dll_RtlDeleteSecurityObject]
cmp dword [ebp - 4], ebx
jne 0x100e833
mov esi, dword [ebp + 8]
jmp 0x1006de8
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1006ed4
call fcn.01007c65
mov edi, eax
cmp edi, ebx
je 0x100e812
jmp 0x1006db2
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x30], 1
jmp 0x1006de8
mov eax, dword [esi]
mov dword [eax + 0x10], 1
mov esi, dword [esi]
or dword [esi + 0x34], 2
jmp 0x1006ec5
call fcn.01009a44
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x100e833
jmp 0x1006e2d
mov ebx, eax
jmp 0x1006ed4
mov dword [ebp + 0x14], ebx
jmp 0x100761f
cmp dword [ebp - 0x28], ebx
je 0x100e7d5
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 0x100e833
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x28], ebx
mov dword [ebp - 4], eax
je 0x100e7f8
push dword [ebp + 0x14]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ntdll.dll_RtlDeleteSecurityObject]
jmp 0x100e833
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x10076a0
push dword [esi + 0xc]
push 0xb
call fcn.0100d30d
pop ecx
pop ecx
jmp 0x1006db2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100e7dc
mov dword [ebp - 0x1c], eax
jmp 0x1006e56
cmp dword [ebp - 0x14], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x100e843
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x101a4e8]
je 0x100e855
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x2c]
push dword [ebp - 8]
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
cmp dword [ebp - 8], ebx
je 0x100e86b
push dword [ebp - 8]
call esi
cmp dword [ebp - 0x24], ebx
je 0x100e884
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 0x1006ed4