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

Disassembly:
jmp 0x1400122a0
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 0x1400123ca
lea rcx, str.Failed_to_create_output_file_n
call fcn.140011221
mov eax, 1
jmp 0x140012c63
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 0x1400124a6
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140012c63
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 0x140012527
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140012c63
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 0x14001256d
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140012c63
mov r8d, 0x4000
xor edx, edx
lea rcx, [rbp + 0x8a0]
call fcn.14001138e
lea r9, [0x140020383]
lea r8, [0x140020dd0]
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 0x1400125f3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140012c63
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 0x14001264b
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140012c63
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 0x1400126cc
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140012c63
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 0x140012712
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140012c63
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 0x1400127ad
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140012c63
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0x5554], eax
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 0x14001282d
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 0x140012c63
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 0x140012876
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 0x140012c63
cmp dword [rbp + 0x5534], 0
jne 0x140012881
jmp 0x1400128d0
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 0x1400128cb
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 0x140012c63
jmp 0x14001282d
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 0x140012924
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140012c63
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 0x14001298b
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140012c63
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 0x140012a0a
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140012c63
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 0x140012a4c
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140012c63
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 0x140012ab3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140012c63
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 0x140012b32
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140012c63
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 0x140012b74
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140012c63
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 0x140012bdb
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140012c63
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 0x140012c57
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140012c63
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001fc20]
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