Function at 0x1400010d0
Capabilities:
Acquire debug privileges
Allocate or change rwx memory
Get system information on windows
Write file on windows

Disassembly:
push rbp
push r12
push r13
push r14
lea rbp, [rsp - 0x348]
sub rsp, 0x448
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x330], rax
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x40]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor r13d, r13d
test eax, eax
je 0x140001176
lea r8, [rbp - 0x50]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x40]
test eax, eax
je 0x140001170
mov rax, qword [rbp - 0x50]
lea r9d, [r13 + 0x10]
mov qword [rsp + 0x28], r13
lea r8, [rbp - 0x48]
xor edx, edx
mov qword [rbp - 0x44], rax
mov dword [rbp - 0x48], 1
mov dword [rbp - 0x3c], 2
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x140001176
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, r12d
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
jne 0x1400011a2
mov edx, r12d
lea rcx, str.__Process_ID__d_cannot_be_accessed_n
call fcn.140001070
jmp 0x1400014cb
lea r9, [rbp - 0x54]
mov qword [rsp + 0x478], rbx
lea r8, [rbp + 0xd0]
mov dword [rbp - 0x54], 0x12c
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
lea rdx, [rbp + 0xd0]
lea rcx, str.Path___ls_n
call fcn.140001070
lea rcx, [rsp + 0x78]
mov dword [rbp - 0x58], r13d
mov rbx, r13
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
cmp qword [rbp - 0x78], rbx
jbe 0x1400014ae
mov qword [rsp + 0x480], rsi
mov qword [rsp + 0x488], rdi
lea rdi, str.___Permissions_of_the_region__RX_n
mov qword [rsp + 0x440], r15
nop word [rax + rax]
mov r9d, 0x30
lea r8, [rsp + 0x48]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x140001482
cmp dword [rsp + 0x68], 0x1000
jne 0x140001482
cmp qword [rsp + 0x60], 0xa028
jbe 0x140001482
cmp dword [rsp + 0x58], 0x40
jne 0x140001482
cmp dword [rsp + 0x70], 0x1000000
je 0x140001482
lea rcx, str.__Found_injected_code............_n
call fcn.140001070
mov rdx, qword [rsp + 0x60]
mov r9d, 4
mov r8d, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9d, dword [rsp + 0x60]
mov rdx, rbx
mov r15, rax
mov rcx, r14
lea rax, [rbp - 0x38]
mov r8, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, r12d
lea r8, [0x14001c7f8]
mov edx, 8
lea rcx, [rbp - 0x30]
call fcn.140001010
mov r9, rbx
lea r8, str.0x_02x
mov edx, 0x10
lea rcx, [rbp - 0x20]
call fcn.140001010
lea r8, [rbp - 0x30]
mov edx, 0x64
lea rcx, [rbp]
call fcn.140003700
lea r8, [0x14001c810]
mov edx, 0x64
lea rcx, [rbp]
call fcn.140003768
lea r8, [rbp - 0x20]
mov edx, 0x64
lea rcx, [rbp]
call fcn.140003768
mov rdx, rbx
lea rcx, str.___Memory_Addess__0x_02x_n
call fcn.140001070
cmp dword [rsp + 0x58], 0x40
lea rcx, str.___Permissions_of_the_region__RWX_n
cmovne rcx, rdi
call fcn.140001070
lea rdx, [rbp]
lea rcx, str.___Dumping_injected_code_to_File__ls_n_n
call fcn.140001070
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp]
mov edx, 0x40000000
mov dword [rsp + 0x20], 1
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r8d, dword [rsp + 0x60]
lea r9, [rbp - 0x58]
mov rcx, rax
mov dword [rbp - 0x58], r13d
mov rdx, r15
mov qword [rsp + 0x20], r13
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.______________HEX_t_t_t__________________ASCII_n
call fcn.140001070
lea rcx, str.___________________________________________________________________________n
call fcn.140001070
mov rdi, r15
mov esi, 0xa
nop dword [rax]
lea rcx, [0x14001c92c]
call fcn.140001070
mov rbx, r13
nop
movzx edx, byte [rdi + rbx]
lea rcx, str._02x
call fcn.140001070
inc rbx
cmp rbx, 0xf
jle 0x1400013f0
lea rcx, [0x14001c938]
call fcn.140001070
mov rbx, r13
nop dword [rax + rax]
movzx edx, byte [rdi + rbx]
lea rcx, [0x14001c93c]
call fcn.140001070
inc rbx
cmp rbx, 0xf
jle 0x140001420
lea rcx, [0x14001c940]
add rdi, 0x10
call fcn.140001070
sub rsi, 1
jne 0x1400013e0
lea rcx, str.___________________________________________________________________________n
call fcn.140001070
lea rcx, [0x14001c940]
call fcn.140001070
mov rdx, qword [rsp + 0x60]
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rdi, str.___Permissions_of_the_region__RX_n
mov rbx, qword [rsp + 0x48]
add rbx, qword [rsp + 0x60]
cmp rbx, qword [rbp - 0x78]
jb 0x140001230
mov r15, qword [rsp + 0x440]
mov rdi, qword [rsp + 0x488]
mov rsi, qword [rsp + 0x480]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x14001c940]
call fcn.140001070
mov rbx, qword [rsp + 0x478]
mov rcx, qword [rbp + 0x330]
xor rcx, rsp
call fcn.1400015e0
add rsp, 0x448
pop r14
pop r13
pop r12
pop rbp
ret