Function at 0x10001693
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x48
call fcn.100023da
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 0x12
rep stosd dword es:[edi], eax
push 0x10
call fcn.100023da
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 8
call fcn.100023da
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
add ebx, 4
push ebx
push 0xc
call fcn.100023da
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x1000522a
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
push ebx
mov ebx, edi
mov ecx, 1
push ecx
push ebx
push 8
call fcn.100023da
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push ebx
push 0xc
call fcn.100023da
add esp, 4
pop ebx
push ebx
mov dword [ebx], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
pop ebx
pop ebx
pop ecx
add ebx, 4
dec ecx
jne 0x10001741
pop ebx
push 0xc
call fcn.100023da
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10001800
push 0x19
push 0x4039dcb
push 6
call fcn.100023e0
add esp, 0xc
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], esp
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10001833
push 0x40
push 0x4039dcb
push 6
call fcn.100023e0
add esp, 0xc
push 0x80000301
push 0
push 0x10
push 0x80000301
push 0
push 0x20
push 2
mov ebx, 0xc8
call fcn.10002910
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], esp
push 0x44
mov eax, dword [ebp - 0x10]
push eax
push 0x44
call fcn.100023da
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
xor eax, eax
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x1000195f
push 0xa1
push 0x4039dcb
push 6
call fcn.100023e0
add esp, 0xc
mov ebx, dword [ebp - 0x34]
push ebx
mov edi, dword [ebp - 0x38]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.10001246
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.100023d4
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
mov dword [ebx], 0x44
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x30], ebx
mov eax, str.WinSta0Default
push eax
mov ebx, dword [ebp - 0x30]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10001a4f
push ebx
call fcn.100023d4
add esp, 4
pop eax
mov ebx, dword [ebp - 0x30]
mov dword [ebx], eax
mov dword [ebp - 0x30], esp
push 0x10
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10001a86
push 0x192
push 0x4039dcb
push 6
call fcn.100023e0
add esp, 0xc
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx + 4]
call fcn.1000101d
mov eax, 0
cmp eax, ecx
jl 0x10001ac0
push 0x1e1
push 0x4039dcb
push 1
call fcn.100023e0
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 0x1c]
push eax
push 0xc
call fcn.100023da
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x30]
mov ebx, dword [ebx]
push ebx
call fcn.100023d4
add esp, 4
pop eax
mov ebx, dword [ebp - 0x30]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x18]
mov ebx, dword [ebx + 4]
call fcn.1000101d
mov eax, 0
cmp eax, ecx
jl 0x10001b1e
push 0x21a
push 0x4039dcb
push 1
call fcn.100023e0
add esp, 0xc
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp - 0x30]
mov dword [ebx], 2
mov dword [ebp - 0x30], esp
lea eax, [ebp - 0x20]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10001b78
push 0x275
push 0x4039dcb
push 6
call fcn.100023e0
add esp, 0xc
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x10001bb6
mov dword [ebp - 0x30], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10001bae
push 0x2cc
push 0x4039dcb
push 6
call fcn.100023e0
add esp, 0xc
mov dword [ebp - 0x24], eax
jmp 0x10001eea
push 0x80000301
push 0
lea eax, [ebp - 4]
push eax
push 1
mov ebx, 4
mov eax, 0x100037b0
call fcn.10002790
add esp, 0x10
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esp
push 4
push dword [ebp - 0x30]
push 0xc
push dword [ebp - 0x20]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
nop
nop
cmp dword [ebp - 0x34], esp
je 0x10001c14
push 0x34a
push 0x4039dcb
push 6
call fcn.100023e0
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x10001c52
mov dword [ebp - 0x30], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10001c4a
push 0x38c
push 0x4039dcb
push 6
call fcn.100023e0
add esp, 0xc
mov dword [ebp - 0x24], eax
jmp 0x10001eea
mov dword [ebp - 0x30], esp
push 1
push dword [ebp - 0x20]
lea eax, [ebp - 0x28]
push eax
xor eax, eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10001c87
push 0x3c7
push 0x4039dcb
push 6
call fcn.100023e0
add esp, 0xc
test eax, eax
je 0x10001cbf
push 0x80000301
push 0
push 0x400
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc8
call fcn.10002910
add esp, 0x1c
mov dword [ebp - 0xc], eax
jmp 0x10001cc6
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], esp
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
push 0x44
call fcn.100023da
add esp, 4
mov edi, eax
pop ebx
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov word [edi], ax
add edi, 2
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
push 0
push dword [ebp - 0x28]
push dword [ebp - 0xc]
push 0
push 0
push 0
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 0x20]
xor eax, eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10001dea
push 0x46f
push 0x4039dcb
push 6
call fcn.100023e0
add esp, 0xc
push eax
mov ebx, dword [ebp - 0x34]
push ebx
mov edi, dword [ebp - 0x38]
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.10001246
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov ax, word [ebx]
add ebx, 2
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
mov eax, dword [ebx]
add ebx, 4
mov dword [edi], eax
add edi, 4
call fcn.100023d4
add esp, 4
pop eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x10001eea
mov dword [ebp - 0x30], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10001ee2
push 0x502
push 0x4039dcb
push 6
call fcn.100023e0
add esp, 0xc
mov dword [ebp - 0x24], eax
jmp 0x10001eea
cmp dword [ebp - 8], 0
je 0x10001f20
mov dword [ebp - 0x30], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10001f20
push 0x5a7
push 0x4039dcb
push 6
call fcn.100023e0
add esp, 0xc
cmp dword [ebp - 0x20], 0
je 0x10001f56
mov dword [ebp - 0x30], esp
push dword [ebp - 0x20]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10001f56
push 0x5f9
push 0x4039dcb
push 6
call fcn.100023e0
add esp, 0xc
cmp dword [ebp - 0x2c], 0
je 0x10001f8c
mov dword [ebp - 0x30], esp
push dword [ebp - 0x2c]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0x30], esp
je 0x10001f8c
push 0x64b
push 0x4039dcb
push 6
call fcn.100023e0
add esp, 0xc
mov eax, dword [ebp - 0x24]
jmp 0x10001f94
push eax
mov ebx, dword [ebp - 0x10]
push ebx
add ebx, 8
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x10001fac
push ebx
call fcn.100023d4
add esp, 4
pop ebx
call fcn.100023d4
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.100023d4
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x10001fe6
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x10001fe2
imul eax, dword [ebx]
jmp 0x10001fd7
mov ecx, eax
test ecx, ecx
je 0x1000200e
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
push ebx
mov ebx, dword [ebx]
push ebx
call fcn.100023d4
add esp, 4
pop ebx
call fcn.100023d4
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x10001fec
call fcn.100023d4
add esp, 4
pop ebx
call fcn.100023d4
add esp, 4
mov ebx, dword [ebp - 0x1c]
push ebx
call fcn.100023d4
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8