Function at 0x4081d0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4583e8
mov eax, dword fs:[0]
push eax
sub esp, 0x8c4
mov eax, dword [0x46e3d0]
xor eax, esp
mov dword [esp + 0x8c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e3d0]
xor eax, esp
push eax
lea eax, [esp + 0x8d8]
mov dword fs:[0], eax
lea eax, [esp + 0x30]
push eax
xor edi, edi
push 0xab
mov esi, ecx
mov ebx, edx
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x408363
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken_failed._Last_Error_is:_d
push 0x400
lea ecx, [esp + 0xe0]
push 0x200
push ecx
call fcn.0043ef21
add esp, 0x14
lea ecx, [esp + 0x9c]
call fcn.0042a750
mov dword [esp + 0x8e0], edi
mov ebx, 7
lea eax, [esp + 0xd4]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408290
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xd8]
push edx
lea esi, [esp + 0x1c]
call fcn.00406f20
mov eax, esi
push edi
push eax
or eax, 0xffffffff
lea esi, [esp + 0xa4]
mov byte [esp + 0x8e8], 1
call fcn.00406d90
mov ebp, 8
cmp dword [esp + 0x2c], ebp
jb 0x4082e4
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0xb4], ebp
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
jae 0x408308
lea edx, [esp + 0xa0]
mov ebx, dword [0x471b30]
cmp ebx, edi
je 0x408341
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408317
sub eax, esi
sar eax, 1
push ebx
add eax, eax
push eax
push 1
push edx
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
cmp dword [esp + 0xb4], ebp
jb 0x408724
mov edx, dword [esp + 0xa0]
push edx
call fcn.0043ef40
add esp, 4
jmp 0x408724
lea eax, [esp + 0x48]
push eax
push str.SeTcbPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x408470
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LookupPrivilegeValue_SE_TCB_NAME_failed._Last_Error_is:_d
push 0x400
lea ecx, [esp + 0xe0]
push 0x200
push ecx
call fcn.0043ef21
add esp, 0x14
lea ecx, [esp + 0x9c]
call fcn.0042a750
mov dword [esp + 0x8e0], 2
mov ebx, 7
lea eax, [esp + 0xd4]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4083d5
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xd8]
push edx
lea esi, [esp + 0x1c]
call fcn.00406f20
mov eax, esi
push edi
push eax
or eax, 0xffffffff
lea esi, [esp + 0xa4]
mov byte [esp + 0x8e8], 3
call fcn.00406d90
mov ebp, 8
cmp dword [esp + 0x2c], ebp
jb 0x408429
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0xb4], ebp
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
jae 0x40844d
lea edx, [esp + 0xa0]
mov ebx, dword [0x471b30]
cmp ebx, edi
je 0x408341
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408460
jmp 0x408322
mov ecx, dword [esp + 0x30]
push edi
push edi
push edi
lea eax, [esp + 0x50]
push eax
push edi
push ecx
mov dword [esp + 0x5c], 1
mov dword [esp + 0x68], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x408590
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AdjustTokenPrivileges_failed._Last_Error_is:_d
push 0x400
lea edx, [esp + 0xe0]
push 0x200
push edx
call fcn.0043ef21
add esp, 0x14
lea ecx, [esp + 0x9c]
call fcn.0042a750
mov dword [esp + 0x8e0], 4
mov ebx, 7
lea eax, [esp + 0xd4]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4084f5
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xd8]
push eax
lea esi, [esp + 0x1c]
call fcn.00406f20
mov ecx, esi
push edi
push ecx
or eax, 0xffffffff
lea esi, [esp + 0xa4]
mov byte [esp + 0x8e8], 5
call fcn.00406d90
mov ebp, 8
cmp dword [esp + 0x2c], ebp
jb 0x408549
mov edx, dword [esp + 0x18]
push edx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0xb4], ebp
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
jae 0x40856d
lea edx, [esp + 0xa0]
mov ebx, dword [0x471b30]
cmp ebx, edi
je 0x408341
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408580
jmp 0x408322
push 0x44
lea eax, [esp + 0x58]
push edi
push eax
call fcn.00443e10
mov eax, dword [esp + 0x3c]
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x58]
push edx
push edi
push edi
push edi
push edi
push edi
push edi
push ebx
push esi
push eax
mov dword [esp + 0x80], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x4086fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcessAsUser_failed._Last_Error_is:_d
push 0x400
lea ecx, [esp + 0x4e0]
push 0x200
push ecx
call fcn.0043ef21
add esp, 0x14
lea ecx, [esp + 0xb8]
call fcn.0042a750
mov dword [esp + 0x8e0], 6
mov ebx, 7
lea eax, [esp + 0x4d4]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408630
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x4d8]
push edx
lea esi, [esp + 0x1c]
call fcn.00406f20
mov eax, esi
push edi
push eax
or eax, 0xffffffff
lea esi, [esp + 0xc0]
mov byte [esp + 0x8e8], bl
call fcn.00406d90
mov ebp, 8
cmp dword [esp + 0x2c], ebp
jb 0x408683
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0xd0], ebp
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
jae 0x4086a7
lea edx, [esp + 0xbc]
mov ebx, dword [0x471b30]
cmp ebx, edi
je 0x4086e0
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4086b6
sub eax, esi
sar eax, 1
push ebx
add eax, eax
push eax
push 1
push edx
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
cmp dword [esp + 0xd0], ebp
jb 0x408724
mov edx, dword [esp + 0xbc]
push edx
call fcn.0043ef40
add esp, 4
jmp 0x408724
mov eax, dword [esp + 0x34]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x34]
cmp eax, edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x408719
push eax
call esi
mov eax, dword [esp + 0x38]
cmp eax, edi
je 0x408724
push eax
call esi
mov ecx, dword [esp + 0x8d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x8c0]
xor ecx, esp
call fcn.0043ef12
add esp, 0x8d0
ret