Function at 0x558b10
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590357
mov eax, dword fs:[0]
push eax
sub esp, 0x380
mov eax, dword [0x8f9064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x320], edx
mov dword [ebp - 0x308], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x324], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x314], eax
mov byte [ebp - 0x1c], 0
lea eax, [ebp - 0x30c]
mov dword [ebp - 4], 0
push eax
push 0x20
mov dword [ebp - 0x30c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push eax
call esi
test eax, eax
je 0x5590b9
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 0x304], str.C:Users_builder.conandata_type_safe0.2.2galaxy_clientlib_type_safe_stablepackage5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9include_type_safe_deferred_construction.hpp
mov dword [ebp - 0x300], 0x6a
jne 0x55911e
push dword [ebp - 0x30c]
lea ecx, [ebp - 0x20]
call fcn.00568340
lea eax, [ebp - 0x4c]
mov byte [ebp - 0x1c], 1
push eax
push str.SeIncreaseQuotaPrivilege
push 0
mov dword [ebp - 0x50], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x558c14
call fcn.004f3510
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
mov dword [ebp - 0x300], eax
mov ecx, esp
push ecx
call fcn.004f46b0
lea edx, [ebp - 0x300]
lea ecx, [ebp - 0x40]
call fcn.004677a0
add esp, 8
mov byte [ebp - 4], 2
jmp 0x5590f0
cmp byte [ebp - 0x1c], 0
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x304], str.C:Users_builder.conandata_type_safe0.2.2galaxy_clientlib_type_safe_stablepackage5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9include_type_safe_deferred_construction.hpp
mov dword [ebp - 0x300], 0x83
je 0x5590a9
push 0
push 0
push 0
lea eax, [ebp - 0x50]
push eax
push 0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [ebp - 0x300], eax
test eax, eax
je 0x558c8c
call fcn.004f3510
sub esp, 8
mov esi, eax
mov ecx, esp
push ecx
call fcn.0055b6a0
lea edx, [ebp - 0x300]
lea ecx, [ebp - 0x40]
call fcn.004677a0
add esp, 8
mov byte [ebp - 4], 3
jmp 0x5590f0
call dword [sym.imp.USER32.dll_GetShellWindow]
test eax, eax
jne 0x558cc0
call fcn.004f3510
sub esp, 8
mov esi, eax
mov ecx, esp
push str.No_desktop_shell_is_present.
call fcn.0042d9c0
lea ecx, [ebp - 0x40]
call fcn.0043a840
add esp, 8
mov byte [ebp - 4], 4
jmp 0x5590f0
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x31c], 0
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x31c]
test eax, eax
jne 0x558d0c
call fcn.004f3510
sub esp, 8
mov esi, eax
mov ecx, esp
push str.Unable_to_get_PID_of_desktop_shell.
call fcn.0042d9c0
lea ecx, [ebp - 0x40]
call fcn.0043a840
add esp, 8
mov byte [ebp - 4], 5
jmp 0x5590f0
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
lea ecx, [ebp - 0x310]
call fcn.00568340
lea eax, [ebp - 0x300]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x310]
mov dword [ebp - 0x300], 0
call fcn.00568500
test al, al
je 0x558d7e
call fcn.004f3510
mov esi, eax
call edi
sub esp, 8
mov dword [ebp - 0x300], eax
mov ecx, esp
push ecx
call fcn.0055b6c0
lea edx, [ebp - 0x300]
lea ecx, [ebp - 0x40]
call fcn.004677a0
add esp, 8
mov byte [ebp - 4], 7
jmp 0x5590f0
mov byte [ebp - 0x24], 0
lea eax, [ebp - 0x30c]
mov byte [ebp - 4], 8
push eax
push 2
push dword [ebp - 0x310]
mov dword [ebp - 0x30c], 0
call esi
test eax, eax
jne 0x558ddd
call fcn.004f3510
mov esi, eax
call edi
sub esp, 8
mov dword [ebp - 0x300], eax
mov ecx, esp
push str.Cant_get_process_token_of_desktop_shell:_error_code_.
call fcn.0042d9c0
lea edx, [ebp - 0x300]
lea ecx, [ebp - 0x40]
call fcn.004677a0
add esp, 8
mov byte [ebp - 4], 9
jmp 0x5590f0
cmp byte [ebp - 0x24], 0
mov dword [ebp - 0x304], str.C:Users_builder.conandata_type_safe0.2.2galaxy_clientlib_type_safe_stablepackage5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9include_type_safe_deferred_construction.hpp
mov dword [ebp - 0x300], 0x6a
jne 0x55911e
push dword [ebp - 0x30c]
lea ecx, [ebp - 0x28]
call fcn.00568340
mov byte [ebp - 0x24], 1
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x30c]
mov byte [ebp - 4], 0xa
push eax
push 1
push 2
push 0
push 0x18b
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x558e68
call fcn.004f3510
mov esi, eax
call edi
sub esp, 8
mov dword [ebp - 0x300], eax
mov ecx, esp
push ecx
call fcn.0055b6e0
lea edx, [ebp - 0x300]
lea ecx, [ebp - 0x40]
call fcn.004677a0
add esp, 8
mov byte [ebp - 4], 0xb
jmp 0x5590f0
cmp byte [ebp - 0x14], 0
mov dword [ebp - 0x304], str.C:Users_builder.conandata_type_safe0.2.2galaxy_clientlib_type_safe_stablepackage5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9include_type_safe_deferred_construction.hpp
mov dword [ebp - 0x300], 0x6a
jne 0x55911e
push dword [ebp - 0x30c]
lea ecx, [ebp - 0x18]
call fcn.00568340
mov edx, dword [ebp - 0x320]
lea ecx, [ebp - 0x98]
mov byte [ebp - 0x14], 1
call fcn.00485ee0
mov edx, dword [ebp - 0x324]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xc
call fcn.00485ee0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x68]
mov edx, dword [ebp - 0x314]
call fcn.00485ee0
push 0x44
lea eax, [ebp - 0x38c]
mov byte [ebp - 4], 0xe
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x318], str.C:Users_builder.conandata_type_safe0.2.2galaxy_clientlib_type_safe_stablepackage5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9include_type_safe_deferred_construction.hpp
cmp dword [ebp - 0x54], 8
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x314], 0x83
cmovae eax, dword [ebp - 0x68]
lea edx, [ebp - 0x98]
cmp dword [ebp - 0x6c], 8
xorps xmm0, xmm0
movups xmmword [ebp - 0x348], xmm0
cmovae ecx, dword [ebp - 0x80]
cmp dword [ebp - 0x84], 8
cmovae edx, dword [ebp - 0x98]
cmp byte [ebp - 0x14], 0
je 0x55910e
lea esi, [ebp - 0x348]
push esi
lea esi, [ebp - 0x38c]
push esi
push eax
push 0
push 0
push ecx
push edx
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
jne 0x558f92
call fcn.004f3510
mov esi, eax
call edi
sub esp, 8
mov dword [ebp - 0x314], eax
mov ecx, esp
push str.CreateProcessWithTokenW_failed_with_code_.
call fcn.0042d9c0
lea edx, [ebp - 0x314]
lea ecx, [ebp - 0x40]
call fcn.004677a0
add esp, 8
mov byte [ebp - 4], 0xf
jmp 0x5590f0
push dword [ebp - 0x348]
lea ecx, [ebp - 0x338]
call fcn.00568340
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x334]
push dword [ebp - 0x344]
call fcn.00568340
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x330]
push dword [ebp - 0x34c]
call fcn.00568340
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x32c]
push dword [ebp - 0x354]
call fcn.00568340
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x328]
push dword [ebp - 0x350]
call fcn.00568340
mov esi, dword [ebp - 0x308]
lea ecx, [ebp - 0x328]
mov eax, dword [ebp - 0x340]
mov dword [esi], eax
call fcn.00568410
lea ecx, [ebp - 0x32c]
call fcn.00568410
lea ecx, [ebp - 0x330]
call fcn.00568410
lea ecx, [ebp - 0x334]
call fcn.00568410
lea ecx, [ebp - 0x338]
call fcn.00568410
lea ecx, [ebp - 0x68]
call fcn.0045e370
lea ecx, [ebp - 0x80]
call fcn.0045e370
lea ecx, [ebp - 0x98]
call fcn.0045e370
cmp byte [ebp - 0x14], 0
je 0x559065
lea ecx, [ebp - 0x18]
call fcn.00568410
cmp byte [ebp - 0x24], 0
je 0x559073
lea ecx, [ebp - 0x28]
call fcn.00568410
lea ecx, [ebp - 0x310]
call fcn.00568410
cmp byte [ebp - 0x1c], 0
je 0x55908c
lea ecx, [ebp - 0x20]
call fcn.00568410
mov eax, esi
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.0056d0b2
mov esp, ebp
pop ebp
ret
mov edx, str.has_value__
lea ecx, [ebp - 0x304]
call fcn.00437a50
call fcn.004f3510
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 8
mov dword [ebp - 0x300], eax
mov ecx, esp
push str.OpenProcessToken_failed_with_code_.
call fcn.0042d9c0
lea edx, [ebp - 0x300]
lea ecx, [ebp - 0x40]
call fcn.004677a0
add esp, 8
mov byte [ebp - 4], 1
push esi
push eax
lea ecx, [ebp - 0x2fc]
call fcn.0055e530
push 0x8e4d2c
lea eax, [ebp - 0x2fc]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov edx, str.has_value__
lea ecx, [ebp - 0x318]
call fcn.00437a50
mov edx, str._has_value__
lea ecx, [ebp - 0x304]
call fcn.00437a50
int3