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

Disassembly:
push 0xffffffffffffffff
push 0x45aa88
mov eax, dword fs:[0]
push eax
sub esp, 0x8c4
mov eax, dword [0x4713c0]
xor eax, esp
mov dword [esp + 0x8c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4713c0]
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 0x408553
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken_failed._Last_Error_is:_d
lea ecx, [esp + 0xdc]
push 0x200
push ecx
call fcn.004414db
add esp, 0x10
lea ecx, [esp + 0x9c]
mov word [esp + 0x4d2], di
call fcn.0042bd40
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 0x408480
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xd8]
push edx
lea esi, [esp + 0x1c]
call fcn.00406f80
mov eax, esi
push edi
push eax
or eax, 0xffffffff
lea esi, [esp + 0xa4]
mov byte [esp + 0x8e8], 1
call fcn.00406df0
mov ebp, 8
cmp dword [esp + 0x2c], ebp
jb 0x4084d4
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004415cb
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 0x4084f8
lea edx, [esp + 0xa0]
mov ebx, dword [0x474bb0]
cmp ebx, edi
je 0x408531
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408507
sub eax, esi
sar eax, 1
push ebx
add eax, eax
push eax
push 1
push edx
call fcn.004422ed
mov ecx, dword [0x474bb0]
push ecx
call fcn.004428a9
add esp, 0x14
cmp dword [esp + 0xb4], ebp
jb 0x408934
mov edx, dword [esp + 0xa0]
push edx
call fcn.004415cb
add esp, 4
jmp 0x408934
lea eax, [esp + 0x48]
push eax
push str.SeTcbPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x408670
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LookupPrivilegeValue_SE_TCB_NAME_failed._Last_Error_is:_d
lea ecx, [esp + 0xdc]
push 0x200
push ecx
call fcn.004414db
add esp, 0x10
lea ecx, [esp + 0x9c]
mov word [esp + 0x4d2], di
call fcn.0042bd40
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]
jmp 0x4085d0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4085d0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xd8]
push edx
lea esi, [esp + 0x1c]
call fcn.00406f80
mov eax, esi
push edi
push eax
or eax, 0xffffffff
lea esi, [esp + 0xa4]
mov byte [esp + 0x8e8], 3
call fcn.00406df0
mov ebp, 8
cmp dword [esp + 0x2c], ebp
jb 0x408624
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004415cb
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 0x408648
lea edx, [esp + 0xa0]
mov ebx, dword [0x474bb0]
cmp ebx, edi
je 0x408531
mov eax, edx
lea esi, [eax + 2]
jmp 0x408660
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408660
jmp 0x408512
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 0x4087a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AdjustTokenPrivileges_failed._Last_Error_is:_d
lea edx, [esp + 0xdc]
push 0x200
push edx
call fcn.004414db
add esp, 0x10
lea ecx, [esp + 0x9c]
mov word [esp + 0x4d2], di
call fcn.0042bd40
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]
jmp 0x408700
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408700
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xd8]
push eax
lea esi, [esp + 0x1c]
call fcn.00406f80
mov ecx, esi
push edi
push ecx
or eax, 0xffffffff
lea esi, [esp + 0xa4]
mov byte [esp + 0x8e8], 5
call fcn.00406df0
mov ebp, 8
cmp dword [esp + 0x2c], ebp
jb 0x408754
mov edx, dword [esp + 0x18]
push edx
call fcn.004415cb
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 0x408778
lea edx, [esp + 0xa0]
mov ebx, dword [0x474bb0]
cmp ebx, edi
je 0x408531
mov eax, edx
lea esi, [eax + 2]
jmp 0x408790
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408790
jmp 0x408512
push 0x44
lea eax, [esp + 0x58]
push edi
push eax
call fcn.00446fa0
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 0x40890b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcessAsUser_failed._Last_Error_is:_d
lea ecx, [esp + 0x4dc]
push 0x200
push ecx
call fcn.004414db
add esp, 0x10
lea ecx, [esp + 0xb8]
mov word [esp + 0x8d2], di
call fcn.0042bd40
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 0x408840
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x4d8]
push edx
lea esi, [esp + 0x1c]
call fcn.00406f80
mov eax, esi
push edi
push eax
or eax, 0xffffffff
lea esi, [esp + 0xc0]
mov byte [esp + 0x8e8], bl
call fcn.00406df0
mov ebp, 8
cmp dword [esp + 0x2c], ebp
jb 0x408893
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004415cb
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 0x4088b7
lea edx, [esp + 0xbc]
mov ebx, dword [0x474bb0]
cmp ebx, edi
je 0x4088f0
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4088c6
sub eax, esi
sar eax, 1
push ebx
add eax, eax
push eax
push 1
push edx
call fcn.004422ed
mov ecx, dword [0x474bb0]
push ecx
call fcn.004428a9
add esp, 0x14
cmp dword [esp + 0xd0], ebp
jb 0x408934
mov edx, dword [esp + 0xbc]
push edx
call fcn.004415cb
add esp, 4
jmp 0x408934
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 0x408929
push eax
call esi
mov eax, dword [esp + 0x38]
cmp eax, edi
je 0x408934
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.004414cc
add esp, 0x8d0
ret