Function at 0x40ab70
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a240
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x280
mov eax, dword [0x44d014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x250], ecx
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00422ca0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
mov dword [ebp - 0x228], 0
mov ecx, 7
xor eax, eax
movups xmmword [ebp - 0x238], xmm0
mov dword [ebp - 0x224], ecx
mov word [ebp - 0x238], ax
mov esi, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x248], esi
cmp dword [ebp - 0x250], esi
jle 0x40b0c0
nop dword [eax + eax]
push str._restart_as_admin
push dword [edi + esi*4]
call fcn.004243bd
add esp, 8
test eax, eax
je 0x40b0a7
mov eax, dword [edi + esi*4]
cmp word [eax], 0x22
je 0x40af4a
push 0x20
push eax
call fcn.00422421
add esp, 8
test eax, eax
je 0x40af4a
mov ecx, dword [ebp - 0x228]
mov edi, dword [ebp - 0x224]
mov dword [ebp - 0x23c], ecx
cmp ecx, edi
jae 0x40acc0
lea eax, [ecx + 1]
cmp edi, 8
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
mov dword [eax + ecx*2], 0x22
mov eax, dword [ebp - 0x244]
mov edx, dword [eax + esi*4]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40acb0
jmp 0x40adfe
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x40b271
lea eax, [ecx + 1]
mov esi, eax
mov dword [ebp - 0x24c], eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x40aced
mov esi, 0x7ffffffe
jmp 0x40ad0b
mov ecx, edi
mov eax, 0x7ffffffe
shr ecx, 1
sub eax, ecx
cmp edi, eax
jbe 0x40ad03
mov esi, 0x7ffffffe
jmp 0x40ad0b
lea eax, [edi + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
call fcn.00402b50
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x228], ecx
mov ecx, dword [ebp - 0x23c]
add ecx, ecx
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x240], eax
push ecx
lea esi, [ecx + eax]
mov dword [ebp - 0x23c], esi
cmp edi, 8
jb 0x40adbd
mov esi, dword [ebp - 0x238]
push esi
push eax
call fcn.00422540
mov eax, dword [ebp - 0x23c]
lea edi, [edi*2 + 2]
add esp, 0xc
mov dword [eax], 0x22
cmp edi, 0x1000
jb 0x40ad84
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x40b276
mov esi, ecx
push edi
push esi
call fcn.00421145
mov eax, dword [ebp - 0x240]
add esp, 8
mov edx, dword [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x244]
mov edx, dword [eax + edx*4]
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40adb0
jmp 0x40adfe
lea ecx, [ebp - 0x238]
push ecx
push eax
call fcn.00422540
mov eax, dword [ebp - 0x240]
add esp, 0xc
mov edx, dword [ebp - 0x248]
mov dword [esi], 0x22
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x244]
mov edx, dword [eax + edx*4]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40adf3
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x238]
call fcn.0040b2a0
mov ecx, dword [ebp - 0x228]
mov edi, dword [ebp - 0x224]
mov dword [ebp - 0x24c], ecx
cmp ecx, edi
jae 0x40ae4a
lea eax, [ecx + 1]
cmp edi, 8
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
mov dword [eax + ecx*2], 0x22
jmp 0x40af6e
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x40b271
lea eax, [ecx + 1]
mov esi, eax
mov dword [ebp - 0x23c], eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x40ae77
mov esi, 0x7ffffffe
jmp 0x40ae95
mov ecx, edi
mov eax, 0x7ffffffe
shr ecx, 1
sub eax, ecx
cmp edi, eax
jbe 0x40ae8d
mov esi, 0x7ffffffe
jmp 0x40ae95
lea eax, [edi + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
call fcn.00402b50
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x228], ecx
mov ecx, dword [ebp - 0x24c]
add ecx, ecx
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x240], eax
push ecx
lea esi, [ecx + eax]
mov dword [ebp - 0x23c], esi
cmp edi, 8
jb 0x40af26
mov esi, dword [ebp - 0x238]
push esi
push eax
call fcn.00422540
mov eax, dword [ebp - 0x23c]
lea edi, [edi*2 + 2]
add esp, 0xc
mov dword [eax], 0x22
cmp edi, 0x1000
jb 0x40af0e
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x40b276
mov esi, ecx
push edi
push esi
call fcn.00421145
mov eax, dword [ebp - 0x240]
add esp, 8
mov dword [ebp - 0x238], eax
jmp 0x40af6e
lea ecx, [ebp - 0x238]
push ecx
push eax
call fcn.00422540
mov eax, dword [ebp - 0x240]
add esp, 0xc
mov dword [esi], 0x22
mov dword [ebp - 0x238], eax
jmp 0x40af6e
mov edx, dword [edi + esi*4]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40af52
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x238]
call fcn.0040b2a0
mov ecx, dword [ebp - 0x228]
mov edi, dword [ebp - 0x224]
mov dword [ebp - 0x24c], ecx
cmp ecx, edi
jae 0x40afa9
lea eax, [ecx + 1]
cmp edi, 8
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
mov dword [eax + ecx*2], 0x20
jmp 0x40b09b
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x40b271
lea eax, [ecx + 1]
mov esi, eax
mov dword [ebp - 0x23c], eax
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x40afd6
mov esi, 0x7ffffffe
jmp 0x40aff4
mov ecx, edi
mov eax, 0x7ffffffe
shr ecx, 1
sub eax, ecx
cmp edi, eax
jbe 0x40afec
mov esi, 0x7ffffffe
jmp 0x40aff4
lea eax, [edi + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
call fcn.00402b50
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x228], ecx
mov ecx, dword [ebp - 0x24c]
add ecx, ecx
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x240], eax
push ecx
lea esi, [ecx + eax]
mov dword [ebp - 0x23c], esi
cmp edi, 8
jb 0x40b079
mov esi, dword [ebp - 0x238]
push esi
push eax
call fcn.00422540
mov eax, dword [ebp - 0x23c]
lea edi, [edi*2 + 2]
add esp, 0xc
mov dword [eax], 0x20
cmp edi, 0x1000
jb 0x40b06d
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x40b276
mov esi, ecx
push edi
push esi
call fcn.00421145
add esp, 8
jmp 0x40b08f
lea ecx, [ebp - 0x238]
push ecx
push eax
call fcn.00422540
add esp, 0xc
mov dword [esi], 0x20
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x238], eax
mov esi, dword [ebp - 0x248]
mov edi, dword [ebp - 0x244]
inc esi
mov dword [ebp - 0x248], esi
cmp esi, dword [ebp - 0x250]
jl 0x40ac30
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x220]
mov dword [ebp - 0x254], 2
mov dword [ebp - 0x280], eax
cmp ecx, 8
lea eax, [ebp - 0x238]
mov dword [ebp - 0x288], 0
cmovae eax, dword [ebp - 0x238]
xorps xmm0, xmm0
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x290]
push eax
mov dword [ebp - 0x278], 0
movlpd qword [ebp - 0x270], xmm0
movlpd qword [ebp - 0x268], xmm0
movlpd qword [ebp - 0x260], xmm0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x290], 0x3c
mov dword [ebp - 0x28c], 0x40
mov dword [ebp - 0x284], str.runas
mov dword [ebp - 0x274], 0xa
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40b190
push 0xffffffffffffffff
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40b20f
push str.error:_failed_to_elevate_privilege:
call fcn.00403ab0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jg 0x40b1dc
je 0x40b1d5
lea ecx, [eax - 2]
cmp ecx, 6
ja case.0x40b1b2.4
jmp dword [ecx*4 + 0x40b27c]
push str.file_not_found._n
jmp 0x40b207
push str.path_not_found._n
jmp 0x40b207
push str.access_denied._n
jmp 0x40b207
push str.out_of_memory._n
jmp 0x40b207
push str.sharing_violation._n
jmp 0x40b207
mov ecx, eax
sub ecx, 0x485
je 0x40b202
sub ecx, 0x42
je 0x40b1fb
push eax
push str.error_code__u._n
call fcn.00403ab0
add esp, 8
jmp 0x40b20f
push str.cancelled._n
jmp 0x40b207
push str.dll_not_found._n
call fcn.00403ab0
add esp, 4
mov ecx, dword [ebp - 0x224]
mov esi, dword [ebp - 0x254]
cmp ecx, 8
jb 0x40b251
mov edx, dword [ebp - 0x238]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40b247
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b276
push ecx
push edx
call fcn.00421145
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00420eb4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00401320
call fcn.00429439
nop
mov ecx, 0xc00040b1
mov cl, 64
add bl, ch
mov cl, 0x40
add bh, al
mov cl, 0x40
add bl, ch
mov cl, 0x40
add bl, ch
mov cl, 0x40
add dh, cl
mov cl, 0x40
add ah, cl
int3