Function at 0x1400023b0
Capabilities:
Initialize winsock library
Read file on windows
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1be0]
mov eax, 0x1ce0
call fcn.14001a5e0
sub rsp, rax
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x1d30], rbx
mov rax, qword [0x14002b460]
xor rax, rsp
mov qword [rbp + 0x1bd0], rax
mov rsi, rdx
mov r15d, ecx
mov qword [rbp - 0x78], rdx
mov dword [0x14002da80], ecx
call fcn.140001850
xor r12d, r12d
test eax, eax
je 0x14000241c
cmp r15d, 1
jne 0x14000241c
mov edx, r15d
call fcn.1400018b8
cmp qword [0x14002daa8], r12
jne 0x140002487
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 0x202
lea rdx, [rbp - 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r8d, r8d
mov edx, 0x1f400
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x14002daa8], rax
call fcn.140009580
cmp qword [0x14002daa8], r12
jne 0x140002487
mov rdx, qword [rsi]
sub rdx, 0x18
or rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140002480
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
xor eax, eax
jmp 0x140002870
mov ebx, 0xa94
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x130]
call sub.msvcrt.dll_memset
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
or rdi, 0xffffffffffffffff
cmp rax, rdi
jne 0x1400024db
mov rdx, qword [rsi]
sub rdx, 0x18
jmp 0x14000246a
mov dword [rsp + 0x68], r12d
mov dword [rsp + 0x44], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x68]
mov r8d, ebx
lea rdx, [rbp + 0x130]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140002529
mov dword [rsp + 0x6c], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x44]
lea r8d, [rax + 4]
lea rdx, [rsp + 0x6c]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400024d2
mov dword [rsp + 0x48], r12d
mov r13d, r12d
lea rdx, [rsp + 0x48]
mov ecx, r15d
call fcn.14000988c
mov rbx, rax
mov qword [rsp + 0x60], rax
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x13d0]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x40], r12d
xor eax, eax
cmp dword [rsp + 0x48], eax
jle 0x140002813
lea rdx, [rbx + 0x24]
mov qword [rsp + 0x50], rdx
movsxd rax, r12d
imul rcx, rax, 0x274
add rbx, rcx
xor eax, eax
cmp dword [rbp + 0xbc0], 2
jne 0x140002598
xor r9d, r9d
lea rdx, [rbp + 0x940]
jmp 0x1400025c0
cmp dword [rbp + 0xbc0], eax
jne 0x1400025ae
xor r9d, r9d
lea r8, [rbp + 0x130]
xor edx, edx
jmp 0x1400025c3
cmp dword [rbp + 0xbc0], 1
jne 0x1400025d0
lea r9, [rbp + 0xb40]
xor edx, edx
xor r8d, r8d
mov rcx, rbx
call fcn.140002074
mov rdx, qword [rsp + 0x50]
test eax, eax
je 0x140002758
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0xbd0]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x74], 0x400
xor r13d, r13d
mov dword [rsp + 0x70], r13d
lea rcx, [rbx + 0x14]
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x74]
lea rdx, [rbp + 0xbd0]
call qword [sym.imp.WS2_32.dll_WSCGetProviderPath]
call fcn.140006704
mov rcx, rax
test rax, rax
je 0x14000289a
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
call fcn.140001850
test eax, eax
je 0x1400026f8
cmp r15d, 1
jne 0x1400026f8
lea rcx, [rbp + 0xbd0]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140002658
mov r8d, eax
lea rdx, [rbp + 0xbd0]
lea rcx, [rsp + 0x58]
call fcn.14000580c
lea rcx, [rsp + 0x58]
call fcn.140004db8
lea r8, str.windows_syswow64_
lea rdx, str._system32_
lea rcx, [rsp + 0x58]
call fcn.140004e30
mov rbx, qword [rsp + 0x58]
movsxd r13, dword [rbx - 0x10]
cmp dword [rbx - 8], 1
jle 0x1400026b9
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x58]
call fcn.140005640
mov rbx, qword [rsp + 0x58]
mov r8, r13
add r8, r8
mov rdx, rbx
lea rcx, [rbp + 0xbd0]
call sub.msvcrt.dll_memcpy
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1400166d0
xor r13d, r13d
test eax, eax
js 0x1400028a5
cmp eax, dword [rbx - 0xc]
jg 0x1400028a5
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r13w
mov rax, qword [rsp + 0x50]
mov edx, dword [rax]
mov ecx, r15d
call fcn.140007e38
test eax, eax
sete r13b
test eax, eax
jne 0x140002778
cmp dword [rsp + 0x40], 1
je 0x140002739
lea rcx, [rbp + 0x13d0]
lea rdx, [rbp + 0xbd0]
mov r8d, 0x800
call sub.msvcrt.dll_memcpy
mov dword [rsp + 0x40], 1
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140002753
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rdx, qword [rsp + 0x50]
inc r12d
add rdx, 0x274
mov qword [rsp + 0x50], rdx
cmp r12d, dword [rsp + 0x48]
jge 0x1400027be
mov rbx, qword [rsp + 0x60]
jmp 0x140002574
xor r12d, r12d
mov dword [rsp + 0x78], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x44]
lea r8d, [r12 + 4]
lea rdx, [rsp + 0x78]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x40], r12d
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14000280e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
jmp 0x1400027c1
xor r12d, r12d
cmp dword [rsp + 0x40], r12d
je 0x14000280e
mov dword [rsp + 0x7c], 1
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x44]
mov r8d, 4
lea rdx, [rsp + 0x7c]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x44]
mov r8d, 0x800
lea rdx, [rbp + 0x13d0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [0x14002daa8]
test rcx, rcx
je 0x14000282a
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r14, r14
je 0x140002838
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140001850
test eax, eax
je 0x14000284f
cmp r15d, 1
jne 0x14000284f
xor edx, edx
call fcn.1400018b8
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, edi
test ecx, ecx
jg 0x14000286d
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rVariantCopy + 8]
mov eax, r13d
mov rcx, qword [rbp + 0x1bd0]
xor rcx, rsp
call fcn.14001a4a0
mov rbx, qword [rsp + 0x1d30]
add rsp, 0x1ce0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140006934
nop
mov ecx, 0x80070057
call fcn.140006934
int3