Function at 0x412f30
Capabilities:
Create process on windows
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453e82
mov eax, dword fs:[0]
push eax
sub esp, 0x490
mov eax, dword [0x46a180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x438], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x418], eax
call fcn.004102f0
cmp eax, 6
jl 0x412fd2
push str.WemeetProcessUtil::CreateProcessAsSessionId
push 0x5e
push str.D:qci_workspace_root_workspaces__qci_pipeline_10854701_1_appWindows_serviceupdate_serviceutilwemeet_process_util.cc
push 6
lea ecx, [ebp - 0xf8]
call fcn.00404330
lea esi, [eax + 0x10]
mov dword [ebp - 4], 0
push str.create_process_start__sessionId:
push esi
call fcn.00402c00
add esp, 8
mov ecx, esi
push dword [ebp - 0x43c]
call fcn.00405220
lea ecx, [ebp - 0xf8]
mov dword [ebp - 4], 0xffffffff
call fcn.00404f70
lea eax, [ebp - 0x444]
mov byte [ebp - 0x40d], 0
push eax
push 0x2000000
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4137b5
mov edi, dword [ebp - 0x43c]
lea eax, [ebp - 0x434]
push eax
push edi
mov dword [ebp - 0x434], 0
call sub.WTSAPI32.dll_WTSQueryUserToken
mov esi, dword [ebp - 0x434]
mov dword [ebp - 0x428], esi
test esi, esi
jne 0x413132
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x41311e
push 0x228
lea eax, [ebp - 0x408]
mov dword [ebp - 0x40c], 0x22c
push 0
push eax
call fcn.00432ee0
add esp, 0xc
lea eax, [ebp - 0x40c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x413115
lea eax, [ebp - 0x40c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x413115
lea eax, [ebp - 0x3e8]
push str.explorer.exe
push eax
call fcn.00439d8c
add esp, 8
test eax, eax
jne 0x413090
mov dword [ebp - 0x448], eax
lea eax, [ebp - 0x448]
push eax
push dword [ebp - 0x404]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x413090
cmp dword [ebp - 0x448], edi
jne 0x413090
push dword [ebp - 0x404]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x413115
lea eax, [ebp - 0x434]
push eax
push 0x2000000
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x41311b
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov esi, dword [ebp - 0x434]
mov dword [ebp - 0x428], esi
test esi, esi
je 0x4137b5
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0
push eax
push 4
lea eax, [ebp - 0x414]
mov dword [ebp - 0x414], 0
push eax
push 0x13
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [ebp - 0x414]
mov edi, dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov esi, dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x4131b5
push dword [ebp - 0x428]
call edi
call esi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test esi, esi
je 0x4131a9
lea eax, [ebp - 0x414]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x4131ee
push eax
call edi
call esi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test esi, esi
jne 0x4131e4
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x424], esi
jmp 0x4131ee
mov eax, dword [ebp - 0x424]
test eax, eax
jne 0x41321a
lea eax, [ebp - 0x424]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x4137b5
push 4
lea ecx, [ebp - 0x43c]
push ecx
push 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push 1
push dword [ebp - 0x428]
lea eax, [ebp - 0x440]
mov dword [ebp - 0x440], 0
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
xorps xmm0, xmm0
mov dword [ebp - 0x498], 0
xor eax, eax
movlpd qword [ebp - 0x490], xmm0
mov word [ebp - 0x45a], ax
mov eax, 5
movlpd qword [ebp - 0x488], xmm0
movlpd qword [ebp - 0x480], xmm0
movlpd qword [ebp - 0x478], xmm0
movlpd qword [ebp - 0x46a], xmm0
movlpd qword [ebp - 0x462], xmm0
movups xmmword [ebp - 0x458], xmm0
mov dword [ebp - 0x49c], 0x44
mov dword [ebp - 0x470], 1
mov word [ebp - 0x46c], ax
mov dword [ebp - 0x494], str.winsta0default
call fcn.004139e0
mov ecx, eax
test ecx, ecx
je 0x4138f5
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x420], edi
mov edx, dword [ebp - 0x418]
mov dword [ebp - 4], 1
test edx, edx
je 0x413447
test edx, 0xffff0000
jne 0x413431
push 0
mov ecx, 0x46cb04
call fcn.00430ae7
mov esi, eax
mov dword [ebp - 0x414], 1
test esi, esi
je 0x41345c
mov ecx, dword [ebp - 0x418]
movzx eax, cx
shr eax, 4
mov dword [ebp - 0x42c], eax
inc eax
mov dword [ebp - 0x41c], eax
nop word [eax + eax]
push 0
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x413368
mov edx, dword [ebp - 0x418]
movzx ecx, dx
push ecx
push eax
push esi
call fcn.00413d50
add esp, 0xc
test eax, eax
jne 0x413392
mov ecx, dword [ebp - 0x414]
push ecx
inc ecx
mov dword [ebp - 0x414], ecx
mov ecx, 0x46cb04
call fcn.00430ae7
mov esi, eax
test esi, esi
je 0x41345c
mov eax, dword [ebp - 0x41c]
jmp 0x413340
test esi, esi
je 0x41345c
mov eax, dword [ebp - 0x42c]
push 6
inc eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, eax
test ecx, ecx
je 0x41345c
mov edx, dword [ebp - 0x418]
movzx eax, dx
push eax
push ecx
push esi
call fcn.00413d50
mov edx, eax
add esp, 0xc
mov dword [ebp - 0x42c], edx
test edx, edx
je 0x41345c
movzx esi, word [edx]
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x413405
push esi
lea ecx, [ebp - 0x420]
call fcn.00413ae0
mov edi, dword [ebp - 0x420]
mov edx, dword [ebp - 0x42c]
movzx ecx, word [edx]
lea eax, [edx + 2]
push ecx
push eax
push esi
push edi
call fcn.00439f01
push eax
call fcn.004061d0
add esp, 0x14
cmp esi, dword [edi - 8]
jg 0x4138ff
xor eax, eax
mov dword [edi - 0xc], esi
mov word [edi + esi*2], ax
jmp 0x41345c
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413436
sub ecx, esi
sar ecx, 1
jmp 0x413449
xor ecx, ecx
push ecx
push edx
lea ecx, [ebp - 0x420]
call fcn.00413b80
mov edi, dword [ebp - 0x420]
mov dword [ebp - 4], 2
call fcn.004139e0
mov ecx, eax
test ecx, ecx
je 0x413909
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x414], esi
mov eax, dword [ebp - 0x438]
mov byte [ebp - 4], 3
test eax, eax
je 0x41361a
test eax, 0xffff0000
jne 0x4135fe
push 0
mov ecx, 0x46cb04
call fcn.00430ae7
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x41c], 1
test eax, eax
je 0x41362f
mov edx, dword [ebp - 0x438]
movzx ecx, dx
shr ecx, 4
mov dword [ebp - 0x430], ecx
inc ecx
mov dword [ebp - 0x42c], ecx
nop dword [eax]
push 0
push ecx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x41350d
mov edx, dword [ebp - 0x438]
movzx ecx, dx
push ecx
push eax
push dword [ebp - 0x418]
call fcn.00413d50
add esp, 0xc
test eax, eax
jne 0x41353b
mov ecx, dword [ebp - 0x41c]
push ecx
inc ecx
mov dword [ebp - 0x41c], ecx
mov ecx, 0x46cb04
call fcn.00430ae7
mov dword [ebp - 0x418], eax
test eax, eax
je 0x41362f
mov ecx, dword [ebp - 0x42c]
jmp 0x4134e0
mov ecx, dword [ebp - 0x418]
test ecx, ecx
je 0x41362f
mov eax, dword [ebp - 0x430]
push 6
inc eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41362f
mov edx, dword [ebp - 0x438]
movzx ecx, dx
push ecx
push eax
push dword [ebp - 0x418]
call fcn.00413d50
mov edx, eax
add esp, 0xc
mov dword [ebp - 0x42c], edx
test edx, edx
je 0x41362f
movzx ecx, word [edx]
mov eax, 1
sub eax, dword [esi - 4]
mov dword [ebp - 0x430], eax
mov eax, dword [esi - 8]
sub eax, ecx
mov dword [ebp - 0x41c], ecx
or eax, dword [ebp - 0x430]
jge 0x4135c7
push ecx
lea ecx, [ebp - 0x414]
call fcn.00413ae0
mov esi, dword [ebp - 0x414]
mov edx, dword [ebp - 0x42c]
movzx ecx, word [edx]
lea eax, [edx + 2]
push ecx
push eax
push dword [ebp - 0x41c]
push esi
call fcn.00439f01
push eax
call fcn.004061d0
mov eax, dword [ebp - 0x41c]
add esp, 0x14
cmp eax, dword [esi - 8]
jg 0x4138ff
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
jmp 0x41362f
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413603
mov eax, dword [ebp - 0x438]
sub ecx, edx
sar ecx, 1
jmp 0x41361c
xor ecx, ecx
push ecx
push eax
lea ecx, [ebp - 0x414]
call fcn.00413b80
mov esi, dword [ebp - 0x414]
cmp byte [ebp + 0x14], 0
mov eax, dword [ebp - 0x440]
mov byte [ebp - 4], 4
je 0x4136aa
cmp dword [edi - 4], 1
mov dword [ebp - 0x430], eax
jle 0x41365f
push dword [edi - 0xc]
lea ecx, [ebp - 0x420]
call fcn.00413920
mov edi, dword [ebp - 0x420]
cmp dword [esi - 4], 1
jle 0x413679
push dword [esi - 0xc]
lea ecx, [ebp - 0x414]
call fcn.00413920
mov esi, dword [ebp - 0x414]
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x49c]
push eax
push 0
push dword [ebp - 0x430]
push 0x400
push 0
push 0
push 0
push edi
push esi
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x41370d
cmp dword [edi - 4], 1
mov dword [ebp - 0x430], eax
jle 0x4136ca
push dword [edi - 0xc]
lea ecx, [ebp - 0x420]
call fcn.00413920
mov edi, dword [ebp - 0x420]
cmp dword [esi - 4], 1
jle 0x4136e4
push dword [esi - 0xc]
lea ecx, [ebp - 0x414]
call fcn.00413920
mov esi, dword [ebp - 0x414]
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x49c]
push eax
push 0
push dword [ebp - 0x430]
push 0x400
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
sete byte [ebp - 0x40d]
test esi, esi
jne 0x41371f
xor eax, eax
jmp 0x413733
push dword [esi - 8]
push esi
call fcn.00439bd5
add esp, 8
test eax, eax
js 0x4138ff
cmp eax, dword [esi - 8]
jg 0x4138ff
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
jne 0x41374d
xor eax, eax
jmp 0x413761
push dword [edi - 8]
push edi
call fcn.00439bd5
add esp, 8
test eax, eax
js 0x4138ff
cmp eax, dword [edi - 8]
jg 0x4138ff
xor ecx, ecx
mov dword [edi - 0xc], eax
mov word [edi + eax*2], cx
cmp byte [ebp - 0x40d], cl
jne 0x41385a
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413799
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x4137b5
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004102f0
cmp eax, 6
jl 0x41380c
push str.WemeetProcessUtil::CreateProcessAsSessionId
push 0xba
push str.D:qci_workspace_root_workspaces__qci_pipeline_10854701_1_appWindows_serviceupdate_serviceutilwemeet_process_util.cc
push 6
lea ecx, [ebp - 0x1e0]
call fcn.00404330
lea esi, [eax + 0x10]
mov dword [ebp - 4], 6
push str.create_process_failed:
push esi
call fcn.00402c00
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00405220
lea ecx, [ebp - 0x1e0]
call fcn.00404f70
mov eax, dword [ebp - 0x444]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41381f
push eax
call esi
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x41382c
push eax
call esi
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x413839
push ecx
call esi
mov al, byte [ebp - 0x40d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004312d2
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x454]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41388c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x4138a8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004102f0
cmp eax, 6
jl 0x41380c
push str.WemeetProcessUtil::CreateProcessAsSessionId
push 0xb8
push str.D:qci_workspace_root_workspaces__qci_pipeline_10854701_1_appWindows_serviceupdate_serviceutilwemeet_process_util.cc
push 6
lea ecx, [ebp - 0xf8]
call fcn.00404330
add eax, 0x10
mov dword [ebp - 4], 5
push str.create_process_success
push eax
call fcn.00402c00
add esp, 8
lea ecx, [ebp - 0xf8]
jmp 0x413807
push 0x80004005
call fcn.00406380
push 0x80070057
call fcn.00406380
push 0x80004005
call fcn.00406380
int3