Function at 0x180014210
Capabilities:
Allocate or change rwx memory
Get file size
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push r12
sub rsp, 0xf0
mov rax, qword [rdx + 0x8b]
mov qword [r11 - 0x18], rbp
mov qword [r11 - 0x20], rsi
mov qword [r11 - 0x28], rdi
mov qword [r11 - 0x30], r13
mov qword [r11 - 0x38], r14
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [r11 - 0x40], r15
mov rbp, rdx
mov r15, rcx
xor r12d, r12d
xor edx, edx
mov rcx, r9
mov qword [r11 - 0x68], rax
mov qword [r11 - 0x60], rax
mov qword [r11 - 0x58], rax
mov r14, r9
mov r13, r8
mov dword [rsp + 0x5c], r12d
mov qword [r11 - 0x70], r9
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [r15 + 0x34]
mov rdx, qword [rbp + 0x10]
mov edi, eax
mov word [rsp + 0x58], r12w
mov dword [rsp + 0x78], edi
test rcx, rcx
je 0x1800142bc
mov rax, qword [rcx + 0x20]
cmp rax, rdx
jbe 0x1800142bc
mov qword [rcx + 0x18], rax
sub rax, rdx
mov qword [rcx + 0x28], rdx
cmp rax, 0xffffffffffffffff
jbe 0x1800142bc
lea rax, [rdx - 1]
mov qword [rcx + 0x18], rax
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov r9d, 2
mov edx, 0x9c040
mov rcx, r14
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor ecx, ecx
lea r9d, [rcx + 4]
mov rdx, rdi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x18001474d
mov ebx, r12d
cmp dword [r15 + 0x298], ebx
jbe 0x18001437c
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [r15 + 0x294]
mov r9d, edi
mov r8, rsi
mov edx, ebx
shr ecx, 2
call fcn.180017600
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rsi
mov rcx, r14
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc ebx
cmp ebx, dword [r15 + 0x298]
jb 0x180014330
mov rbx, qword [rsp + 0x50]
cmp dword [rbx + 0x20], r12d
je 0x18001473c
lea rdx, str.NTFS_WipeFile:_File_data_is_not_resident._n
mov rcx, r15
call fcn.180016b80
mov edx, 0x28
xor ecx, ecx
lea r9d, [rdx - 0x24]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r13, rax
test rax, rax
je 0x180014734
mov dword [rax + 0x1c], r12d
mov qword [rax + 0x20], r12
mov dword [rax + 0x18], r12d
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x10], r12
mov r8d, dword [rbx + 0x20]
mov rdx, qword [rbx + 0x24]
mov rcx, rax
call fcn.180004ac0
lea rdx, [rsp + 0x68]
mov rcx, r13
call fcn.180004a00
lea rdx, [rsp + 0x48]
xor r8d, r8d
mov rcx, r13
call fcn.180004850
test eax, eax
je 0x180014702
mov rbx, qword [rbp + 8]
lea rdx, [rsp + 0x68]
mov rcx, r13
call fcn.180004a00
test rbx, rbx
je 0x180014702
mov rbp, qword [rsp + 0x48]
nop dword [rax + rax]
mov rcx, qword [r15 + 0x24]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180014702
mov edi, dword [rsp + 0x120]
lea rdx, [rsp + 0x80]
mov rcx, r13
cmp rbx, rdi
mov rax, rdi
mov r14d, r12d
cmovb rax, rbx
xor r8d, r8d
mov r15d, 1
sub rbx, rax
mov qword [rsp + 0x60], rbp
mov rsi, rdi
mov qword [rsp + 0x48], rbx
call fcn.180004850
test eax, eax
je 0x180014590
add edi, edi
nop dword [rax + rax]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x80]
inc rax
mov qword [rsp + 0x60], rcx
cmp rax, rcx
jne 0x18001459d
cmp dword [rsp + 0x78], edi
jb 0x18001459d
test rbx, rbx
je 0x18001459d
mov r10, qword [r13 + 0x20]
test r10, r10
je 0x180014559
cmp qword [r13 + 8], r12
ja 0x180014559
mov ecx, dword [r13 + 0x18]
cmp byte [rcx + r10], r12b
je 0x180014559
movzx eax, byte [rcx + r10]
movzx edx, al
shr al, 4
and dl, 0xf
cmp dl, 8
ja 0x180014559
cmp al, 8
ja 0x180014559
test al, al
jne 0x180014559
lea r11d, [rcx + 1]
mov qword [rsp + 0x68], r12
movzx ebx, dl
mov dword [r13 + 0x18], r11d
test dl, dl
je 0x18001454d
lea rdx, [rsp + 0x68]
mov r8d, r11d
mov r9, rbx
nop dword [rax]
mov eax, r8d
inc rdx
inc r8d
sub r9, 1
movzx ecx, byte [rax + r10]
mov byte [rdx - 1], cl
jne 0x180014520
cmp qword [rsp + 0x68], r12
je 0x180014554
lea eax, [rbx + r11]
mov rbx, qword [rsp + 0x48]
mov dword [r13 + 0x18], eax
jmp 0x180014559
mov rbx, qword [rsp + 0x48]
jmp 0x180014559
mov rbx, qword [rsp + 0x48]
add edi, dword [rsp + 0x120]
inc r15d
cmp rbx, rsi
mov rax, rsi
lea rdx, [rsp + 0x80]
mov rcx, r13
cmovb rax, rbx
xor r8d, r8d
sub rbx, rax
mov qword [rsp + 0x48], rbx
call fcn.180004850
test eax, eax
jne 0x180014490
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
mov edi, r15d
test r15d, r15d
je 0x180014646
nop dword [rax]
mov ebx, edi
test edi, edi
je 0x18001462f
mov esi, r14d
nop dword [rax]
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x88]
mov r9d, 0x20
mov edx, 0x90074
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x98], rbp
mov dword [rsp + 0xa0], ebx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x18001461b
shr ebx, 1
jne 0x1800145c0
jmp 0x18001462f
lea ecx, [rbx - 1]
mov eax, 1
lea r14d, [r14 + rbx - 1]
sub eax, ebx
add rbp, rcx
add edi, eax
inc rbp
dec edi
inc r14d
test ebx, ebx
jne 0x18001463e
dec r15d
test edi, edi
jne 0x1800145b0
mov rdi, qword [rsp + 0x100]
mov ebx, r12d
mov dword [rsp + 0x40], r12d
cmp dword [rdi + 0x298], ebx
jbe 0x1800146c0
imul r15d, dword [rsp + 0x120]
mov rsi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x118]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [rdi + 0x294]
mov r9d, r15d
mov r8, rsi
mov edx, ebx
shr ecx, 2
call fcn.180017600
lea r9, [rsp + 0x40]
mov r8d, r15d
mov rdx, rsi
mov rcx, r14
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc ebx
cmp ebx, dword [rdi + 0x298]
jb 0x180014674
jmp 0x1800146c5
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x128]
mov rax, qword [rax + 8]
mov r15, qword [rsp + 0x100]
sub rax, rbx
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
mov rbp, rax
mov qword [rsp + 0x48], rax
test rbx, rbx
jne 0x180014430
mov rcx, qword [r13 + 0x20]
test rcx, rcx
je 0x180014719
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov r13, qword [rsp + 0x110]
jmp 0x18001473c
mov r13, qword [rsp + 0x110]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdi, qword [rsp + 0x50]
cmp qword [rdi], 0xffffffffffffffff
mov r14, qword [rdi + 0x2c]
je 0x180014a5b
test r14, r14
je 0x180014a5b
cmp dword [r14 + 0x14], r12d
je 0x180014a46
lea rdx, str.NTFS_WipeFile:_Stream_data_is_not_resident._n
mov rcx, r15
mov rbp, r12
call fcn.180016b80
mov edx, 0x28
xor ecx, ecx
lea r9d, [rdx - 0x24]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x180014a46
mov dword [rax + 0x1c], r12d
mov qword [rax + 0x20], r12
mov dword [rax + 0x18], r12d
mov qword [rax], r12
mov qword [rax + 8], r12
mov qword [rax + 0x10], r12
mov r8d, dword [r14 + 0x14]
mov rdx, qword [r14 + 0x18]
mov rcx, rax
call fcn.180004ac0
mov r11, qword [rsi + 0x20]
test r11, r11
je 0x180014858
cmp qword [rsi + 8], r12
ja 0x180014858
mov edx, dword [rsi + 0x18]
cmp byte [rdx + r11], bpl
je 0x180014858
movzx eax, byte [rdx + r11]
movzx ecx, al
shr al, 4
and cl, 0xf
cmp cl, 8
ja 0x180014858
cmp al, 8
ja 0x180014858
test al, al
jne 0x180014858
lea r10d, [rdx + 1]
mov qword [rsp + 0x100], r12
movzx ebx, cl
mov dword [rsi + 0x18], r10d
test cl, cl
je 0x180014858
lea rdx, [rsp + 0x100]
mov r8d, r10d
mov r9, rbx
nop dword [rax]
mov eax, r8d
inc rdx
inc r8d
sub r9, 1
movzx ecx, byte [rax + r11]
mov byte [rdx - 1], cl
jne 0x180014830
cmp qword [rsp + 0x100], rbp
je 0x180014858
lea eax, [rbx + r10]
mov dword [rsi + 0x18], eax
lea rdx, [rsp + 0x48]
xor r8d, r8d
mov rcx, rsi
call fcn.180004850
test eax, eax
je 0x180014a1e
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x180014a19
mov rax, qword [rsp + 0x108]
cmp rbp, qword [rax + 8]
jae 0x180014a12
mov rcx, qword [r15 + 0x24]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x180014a0b
lea rax, [rsp + 0x100]
test rax, rax
je 0x1800149ee
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x88]
mov qword [rsp + 0x30], rax
mov r9d, 0x20
mov edx, 0x90074
mov rcx, r13
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x98], rbx
mov dword [rsp + 0xa0], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov r13d, dword [rsp + 0x120]
mov r9d, 4
mov r8d, 0x1000
xor ecx, ecx
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x1800149bf
mov ebx, r12d
cmp dword [r15 + 0x298], ebx
jbe 0x1800149ae
mov esi, dword [rsp + 0x120]
mov r13, qword [rsp + 0x118]
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [r15 + 0x294]
mov r9d, esi
mov r8, rdi
mov edx, ebx
shr ecx, 2
call fcn.180017600
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, rdi
mov rcx, r13
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc ebx
cmp ebx, dword [r15 + 0x298]
jb 0x180014950
mov rsi, qword [rsp + 0x70]
mov r13d, dword [rsp + 0x120]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x128]
lea rdx, [rsp + 0x48]
add rbp, r13
xor r8d, r8d
mov rcx, rsi
mov qword [rax], rbp
call fcn.180004850
test eax, eax
je 0x180014a04
mov r13, qword [rsp + 0x110]
jmp 0x180014870
mov rdi, qword [rsp + 0x50]
mov dword [r15], 0x20000013
mov dword [rsp + 0x5c], 1
jmp 0x180014a1e
mov rdi, qword [rsp + 0x50]
jmp 0x180014a1e
mov rdi, qword [rsp + 0x50]
jmp 0x180014a1e
mov rdi, qword [rsp + 0x50]
jmp 0x180014a1e
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x180014a35
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
cmp qword [rdi], 0xffffffffffffffff
mov r14, qword [r14]
mov r13, qword [rsp + 0x110]
jne 0x180014760
mov rcx, qword [r15 + 0x34]
mov r14, qword [rsp + 0xc0]
mov r13, qword [rsp + 0xc8]
mov r15, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xd0]
mov rsi, qword [rsp + 0xd8]
mov rbp, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xe8]
test rcx, rcx
je 0x180014aa4
mov qword [rcx + 0x6b], 0xffffffffffffffff
cmp dword [rsp + 0x5c], r12d
sete r12b
mov eax, r12d
add rsp, 0xf0
pop r12
ret