Function at 0x180036d14
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x290
mov r15, qword [rbp + 0x1f0]
mov rax, qword [rbp + 0x1f8]
xor ebx, ebx
mov qword [r15], rbx
mov rsi, rcx
mov dword [rax], ebx
mov rcx, qword [rcx + 0x20]
mov r14, rdx
lea edx, [rbx + 8]
mov r8d, 0x800
mov r13d, r9d
mov dword [rbp + 0x1d0], 2
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x180036d86
xor al, al
jmp 0x1800370e0
mov r9, qword [r14 + 8]
mov r8, qword [r14]
lea rdx, str._spipe_s
mov rcx, rax
call qword [sym.imp.msvcrt.dll_swprintf]
lea rdx, [0x18003a400]
mov r8, rdi
mov ecx, 0x5ea
call fcn.180030818
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [r9 + 1]
mov edx, 0xc0000000
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov r12b, bl
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180036ebb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.___d_n
mov ecx, 0x5f4
mov r8d, eax
mov ebx, eax
call fcn.180030818
cmp ebx, 5
je 0x180036e25
cmp ebx, 0x56
je 0x180036e25
cmp ebx, 0xe7
je 0x180036f13
cmp ebx, 0x52e
jne 0x180036fd6
test r12b, r12b
jne 0x180036fc5
mov r12, qword [r14]
lea rcx, str.mpr.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x180036e6b
lea rdx, str.WNetAddConnection2W
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
test rax, rax
jne 0x180036f3a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rdx, str.__EstablishNullSession_n
mov ecx, 0x605
call fcn.180030818
mov r12b, 1
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, 0xc0000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180036de7
mov r13d, dword [rbp + 0x1e8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x18003a408]
mov ecx, 0x61f
mov r8d, eax
call fcn.180030818
mov rcx, qword [rsi + 0x20]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rdx, [rbp + 0x1d0]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
xor r14d, r14d
mov rcx, rbx
test eax, eax
jne 0x180036fea
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180036d7f
mov edx, 0x4e20
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x180036e7f
lea rdx, str.__WaitNamedPipeW_n
mov ecx, 0x610
jmp 0x180036fd1
lea rdx, [0x18003f258]
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcscmp]
lea rcx, [rbp - 0x80]
test eax, eax
jne 0x180036f5d
mov rdx, r12
call qword [sym.imp.msvcrt.dll_wcscpy]
jmp 0x180036f77
lea rdx, [0x18003f38c]
call qword [sym.imp.msvcrt.dll_wcscpy]
lea rcx, [rbp - 0x80]
mov rdx, r12
call qword [sym.imp.msvcrt.dll_wcscat]
xor edx, edx
lea rcx, [rsp + 0x48]
lea r8d, [rdx + 0x30]
call qword [sym.imp.msvcrt.dll_memset]
and dword [rsp + 0x4c], 0
lea rax, [rbp - 0x80]
lea r8, [0x18003bf08]
lea rdx, [0x18003bf08]
lea rcx, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x60], rax
call r13
mov rcx, rbx
test eax, eax
jne 0x180036e65
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x180036e7c
lea rdx, str.__bTriedLogon_n
mov ecx, 0x5fe
call fcn.180030818
mov rcx, qword [rsi + 0x20]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180036d7f
mov rdx, qword [rbp + 0x1e0]
lea r9, [rsp + 0x40]
mov r8d, r13d
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180037015
mov rcx, rbx
jmp 0x180036f08
mov rcx, qword [rsi + 0x20]
mov r12d, 0x200
mov edx, 8
mov r8d, r12d
mov dword [rbp + 0x1f0], r14d
mov r13d, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rbx
mov rdi, rax
test rax, rax
je 0x180036f08
lea r9, [rbp + 0x1f0]
mov r8d, r12d
mov rdx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12d, dword [rbp + 0x1f0]
jmp 0x1800370c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x180037111
mov rcx, qword [rsi + 0x20]
add r13d, 0x200
mov r8, rdi
mov r9d, r13d
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdi, rax
test rax, rax
je 0x1800370fb
mov edx, r12d
lea r9, [rbp + 0x1f0]
mov r8d, 0x200
mov rcx, rbx
add rdx, rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
add r12d, dword [rbp + 0x1f0]
test eax, eax
je 0x180037067
mov rax, qword [rbp + 0x1f8]
mov qword [r15], rdi
mov rcx, rbx
mov dword [rax], r12d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x64f
lea rdx, str._HeapFree__NULL_n
call fcn.180030818
jmp 0x18003700d
test rdi, rdi
je 0x18003712a
mov rcx, qword [rsi + 0x20]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18003700d
mov ecx, 0x656
jmp 0x180037100