Function at 0x458780
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67000b
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x74b738]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebp - 0x320]
mov dword [ebp - 0x320], 0x168
push eax
lea eax, [ebp - 0x2e0]
push eax
push str.open
push 0x6eb334
push 1
push 0
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
js 0x458bf5
xor eax, eax
mov dword [ebp - 0x2e8], 0
lea ecx, [ebp - 0x2e0]
mov dword [ebp - 0x2e4], 7
mov word [ebp - 0x2f8], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458810
sub ecx, edx
lea eax, [ebp - 0x2e0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2f8]
call fcn.0043fcb0
push ecx
push 0x6eb4b0
lea ecx, [ebp - 0x2f8]
mov dword [ebp - 4], 0
call fcn.00459bb0
mov edx, eax
cmp edx, 0xffffffff
je 0x45887a
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x458856
sub ecx, esi
sar ecx, 1
push ecx
push ebx
push 2
push edx
lea ecx, [ebp - 0x2f8]
call fcn.00459ea0
jmp 0x458962
mov edx, dword [ebp - 0x2e4]
mov eax, edx
mov ecx, dword [ebp - 0x2e8]
sub eax, ecx
cmp eax, 1
jb 0x4588c3
cmp edx, 8
lea esi, [ebp - 0x2f8]
push 2
cmovae esi, dword [ebp - 0x2f8]
lea edi, [ecx + 1]
push 0x6eb4b8
mov dword [ebp - 0x2e8], edi
lea eax, [esi + ecx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x4588e4
push 1
push 0x6eb4b8
mov byte [ebp - 0x30c], 0
lea ecx, [ebp - 0x2f8]
push dword [ebp - 0x30c]
push 1
call fcn.0045a420
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4588f0
mov eax, dword [ebp - 0x2e4]
sub ecx, edx
mov edx, dword [ebp - 0x2e8]
sub eax, edx
sar ecx, 1
cmp ecx, eax
ja 0x458947
cmp dword [ebp - 0x2e4], 8
lea esi, [ebp - 0x2f8]
lea eax, [ecx + ecx]
cmovae esi, dword [ebp - 0x2f8]
lea edi, [edx + ecx]
push eax
push ebx
mov dword [ebp - 0x2e8], edi
lea eax, [esi + edx*2]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
jmp 0x458962
push ecx
push ebx
mov byte [ebp - 0x30c], 0
push dword [ebp - 0x30c]
push ecx
lea ecx, [ebp - 0x2f8]
call fcn.0045a420
mov ecx, 0x44
lea eax, [ebp - 0x37c]
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x458970
mov ecx, 0x10
lea eax, [ebp - 0x338]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x458986
cmp dword [ebp - 0x2e4], 8
lea eax, [ebp - 0x2f8]
push str.advapi32.dll
cmovae eax, dword [ebp - 0x2f8]
mov dword [ebp - 0x37c], 0x44
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x314], ecx
mov dword [ebp - 0x318], ecx
mov dword [ebp - 0x31c], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x458bb3
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x328], eax
test eax, eax
je 0x458bb3
lea eax, [ebp - 0x310]
mov dword [ebp - 0x310], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x458bb3
lea eax, [ebp - 0x304]
mov dword [ebp - 0x308], 1
push eax
push str.SeIncreaseQuotaPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x308]
mov dword [ebp - 0x2fc], 2
push eax
push 0
push dword [ebp - 0x310]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x310]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
call edi
test esi, esi
jne 0x458bb3
call dword [sym.imp.USER32.dll_GetShellWindow]
test eax, eax
je 0x458bb3
lea ecx, [ebp - 0x31c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x31c]
test eax, eax
je 0x458bb3
push eax
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x458bb3
lea eax, [ebp - 0x314]
mov dword [ebp - 0x30c], 0
push eax
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x458b3e
lea eax, [ebp - 0x318]
push eax
push 1
push 2
push 0
push 0x18b
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x458b3e
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x37c]
push eax
push 0
push 0
push 0
push dword [ebp - 0x324]
push 0
push 0
push dword [ebp - 0x318]
call dword [ebp - 0x328]
test eax, eax
jne 0x458b34
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x458b3e
mov dword [ebp - 0x30c], 1
push dword [ebp - 0x314]
call edi
push dword [ebp - 0x318]
call edi
push esi
call edi
cmp dword [ebp - 0x30c], 0
je 0x458bb3
push dword [ebp - 0x338]
call edi
push dword [ebp - 0x334]
call edi
mov edx, dword [ebp - 0x2e4]
cmp edx, 8
jb 0x458bac
mov ecx, dword [ebp - 0x2f8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x458ba2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x458ba2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
mov eax, 1
jmp 0x458c14
mov edx, dword [ebp - 0x2e4]
cmp edx, 8
jb 0x458bf5
mov ecx, dword [ebp - 0x2f8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x458beb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x458beb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00669e69
add esp, 8
push 0xa
push 0
push 0
push ebx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x20
cmp ecx, eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00669a1e
mov esp, ebp
pop ebp
ret