Function at 0x1004b1d0
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c739f
mov eax, dword fs:[0]
push eax
sub esp, 0x200
mov eax, dword [0x1022b584]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x84], eax
xor eax, eax
push str.Kernel32
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1004b270
push str.InitializeProcThreadAttributeList
push esi
call edi
push str.UpdateProcThreadAttribute
mov ebx, eax
push esi
mov dword [ebp - 0x78], ebx
call edi
push str.DeleteProcThreadAttributeList
push esi
mov dword [ebp - 0x74], eax
call edi
mov esi, eax
mov dword [ebp - 0x8c], esi
jmp 0x1004b272
xor esi, esi
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x1004b290
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x1004b29a
push str.CreateProcessWithTokenW
push eax
call edi
jmp 0x1004b29c
xor eax, eax
test ebx, ebx
je 0x1004b87c
cmp dword [ebp - 0x74], 0
je 0x1004b87c
test esi, esi
je 0x1004b87c
test eax, eax
je 0x1004b87c
call fcn.1004c230
test eax, eax
je 0x1004b87c
push str.SeSecurityPrivilege
call fcn.1004ba50
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
add esp, 4
movlpd qword [ebp - 0xd8], xmm0
movlpd qword [ebp - 0xd0], xmm0
movlpd qword [ebp - 0xc8], xmm0
movlpd qword [ebp - 0xc0], xmm0
push 0
movlpd qword [ebp - 0xb8], xmm0
movlpd qword [ebp - 0xb0], xmm0
movlpd qword [ebp - 0xa8], xmm0
movlpd qword [ebp - 0xa0], xmm0
mov dword [ebp - 0xdc], 0x48
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x80]
push eax
push 0
push 1
push 0
call ebx
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
movzx eax, al
sub eax, 1
jne 0x1004b41e
call esi
push 0xf
push str.CommonUtil.cpp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov ebx, eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000cf00
mov byte [ebp - 4], 1
call fcn.100a97a0
mov edi, eax
lea ecx, [ebp - 0x174]
push 0x5b8
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10007f90
mov esi, eax
push str._InitializeProcThreadAttributeList_getlasterror:
push esi
mov byte [ebp - 4], 2
call fcn.10008dd0
add esp, 8
mov ecx, esi
push ebx
call fcn.1002c180
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x174]
call fcn.10008e90
lea ecx, [ebp - 0x28]
call fcn.10007310
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.10007310
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x80]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
push 0
mov dword [ebp - 0x88], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x80]
push eax
push 0
push 1
push ebx
call dword [ebp - 0x78]
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1004b524
call esi
push 0xf
push str.CommonUtil.cpp
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov ebx, eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 3
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.1000cf00
mov byte [ebp - 4], 4
call fcn.100a97a0
mov edi, eax
lea ecx, [ebp - 0x174]
push 0x5be
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10007f90
mov esi, eax
push str._InitializeProcThreadAttributeList_getlasterror:
push esi
mov byte [ebp - 4], 5
call fcn.10008dd0
add esp, 8
mov ecx, esi
push ebx
call fcn.1002c180
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x174]
call fcn.10008e90
lea ecx, [ebp - 0x40]
call fcn.10007310
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10007310
mov ebx, dword [ebp - 0x88]
push 0
push 0
push 4
lea eax, [ebp - 0x90]
push eax
push 0x20000
push 0
push ebx
call dword [ebp - 0x74]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x98], ebx
call fcn.10020010
mov dword [ebp - 4], 6
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1004b621
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xf
push str.CommonUtil.cpp
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov ebx, eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 7
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.1000cf00
mov byte [ebp - 4], 8
call fcn.100a97a0
mov edi, eax
lea ecx, [ebp - 0x174]
push 0x5c5
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10007f90
mov esi, eax
push str._UpdateProcThreadAttribute_getlasterror:
push esi
mov byte [ebp - 4], 9
call fcn.10008dd0
add esp, 8
mov ecx, esi
push ebx
call fcn.1002c180
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x174]
call fcn.10008e90
lea ecx, [ebp - 0x40]
call fcn.10007310
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.10007310
push dword [ebp - 0x7c]
lea eax, [ebp - 0x74]
push dword [ebp - 0x94]
push str.__s___s
push eax
call fcn.100132f0
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x78], 0
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x7c], 0
push eax
call fcn.1004a200
call fcn.100a97a0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1004b73b
push 0xf
push str.CommonUtil.cpp
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.1000cf00
mov byte [ebp - 4], 0xb
call fcn.100a97a0
mov edi, eax
lea ecx, [ebp - 0x174]
push 0x5cf
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10007f90
mov esi, eax
push str.isAdminUser:
push esi
mov byte [ebp - 4], 0xc
call fcn.1000fad0
add esp, 8
mov ecx, esi
push dword [ebp - 0x78]
call fcn.1001ae40
push str.__hasAdminRight:
push esi
call fcn.1000fad0
add esp, 8
mov ecx, esi
push dword [ebp - 0x7c]
call fcn.1001ae40
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x174]
call fcn.10008e90
lea ecx, [ebp - 0x40]
call fcn.10007310
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.10007310
mov eax, dword [ebp - 0x74]
cmp dword [eax - 4], 1
jle 0x1004b752
push dword [eax - 0xc]
lea ecx, [ebp - 0x74]
call fcn.1000ecd0
mov eax, dword [ebp - 0x74]
push dword [ebp - 0x84]
lea ecx, [ebp - 0xdc]
push ecx
push 0
push 0
push 0x80000
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x84], eax
call fcn.100a97a0
push 1
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x1004b84d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xf
push str.CommonUtil.cpp
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov ebx, eax
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
call fcn.1000cf00
push 3
push 0x101d1fdc
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
call fcn.1000cf00
mov byte [ebp - 4], 0xe
call fcn.100a97a0
mov edi, eax
lea ecx, [ebp - 0x20c]
push 0x5dc
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10007f90
mov esi, eax
push str._create_process_getlasterror:
push esi
mov byte [ebp - 4], 0xf
call fcn.10008dd0
add esp, 8
mov ecx, esi
push ebx
call fcn.1002c180
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x20c]
call fcn.10008e90
lea ecx, [ebp - 0x58]
call fcn.10007310
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
call fcn.10007310
mov esi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x8c]
push esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [ebp - 0x74]
call fcn.1000e5b0
mov eax, dword [ebp - 0x84]
jmp 0x1004b87e
xor eax, 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.101799ce
mov esp, ebp
pop ebp
ret