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

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xcd0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14004e300]
xor rax, rsp
mov qword [rsp + 0xcc0], rax
mov rbp, rdx
mov edi, ecx
mov qword [rsp + 0x70], rdx
mov dword [0x140056420], ecx
call fcn.140001690
xor ebx, ebx
cmp eax, ebx
je 0x140002806
cmp edi, 1
jne 0x140002806
mov edx, edi
lea rcx, [0x140056480]
call fcn.1400016f8
cmp qword [0x140056460], rbx
jne 0x140002844
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 0x202
lea rdx, [rsp + 0x80]
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 [0x140056460], rax
call fcn.14000a198
mov dword [rsp + 0x40], ebx
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x40]
mov ecx, edi
call fcn.140001c04
mov r15, rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400028b6
mov rdx, qword [rbp]
sub rdx, 0x18
or eax, eax
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, ebx
jg 0x140002b41
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140002b41
mov dword [rsp + 0x50], ebx
movsxd rdx, dword [rsp + 0x40]
imul rdx, rdx, 0xa94
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
cmp rax, rbx
je 0x140002a97
mov r13d, ebx
cmp dword [rsp + 0x40], ebx
jle 0x140002a97
mov rbx, rax
mov qword [rsp + 0x60], rax
lea r14, [r15 + 0x74]
xor edx, edx
mov r8d, 0xa94
lea rcx, [rsp + 0x220]
call fcn.140024b80
xor eax, eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], 0x400
mov dword [rsp + 0x58], eax
movsxd rax, r13d
imul rax, rax, 0x274
lea rcx, [rax + r15 + 0x14]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x54]
lea rdx, [rsp + 0x220]
call sub.WS2_32.dll_WSCGetProviderPath
call fcn.140001690
test eax, eax
je 0x140002a2d
cmp edi, 1
jne 0x140002a2d
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x48]
call fcn.1400077ac
nop
lea rcx, [rsp + 0x48]
call fcn.140005198
lea r8, str._syswow64_
lea rdx, str._system32_
lea rcx, [rsp + 0x48]
call fcn.140004e8c
mov rbx, qword [rsp + 0x48]
mov eax, dword [rbx - 0x10]
mov dword [rsp + 0x5c], eax
cmp dword [rbx - 8], edi
jle 0x1400029b4
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.1400078d0
mov rbx, qword [rsp + 0x48]
mov eax, dword [rsp + 0x5c]
movsxd r8, eax
add r8, r8
mov rdx, rbx
lea rcx, [rsp + 0x220]
call fcn.140024e60
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.140022788
xor r8d, r8d
cmp eax, r8d
jl 0x140002a8a
mov rcx, qword [rsp + 0x48]
cmp eax, dword [rcx - 0xc]
jg 0x140002a8a
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rsp + 0x48]
mov word [rax + rcx*2], r8w
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, r8d
jg 0x140002a28
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x60]
jmp 0x140002a2d
mov rbx, qword [rsp + 0x60]
movdqu xmm0, xmmword [r14 - 0x60]
movdqu xmmword [rsp + 0xa20], xmm0
lea rcx, [rsp + 0xa30]
mov rdx, r14
mov r8d, pe_nt_image_headers64
call fcn.140024e60
mov rcx, rbx
lea rdx, [rsp + 0x220]
mov r8d, 0xa94
call fcn.140024e60
inc r13d
add r14, 0x274
add rbx, 0xa94
mov qword [rsp + 0x60], rbx
cmp r13d, dword [rsp + 0x40]
jge 0x140002a95
jmp 0x1400028f6
mov ecx, 0x80070057
call fcn.140007c44
nop
xor ebx, ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x50]
mov r8d, 4
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rsp + 0x40]
imul r8d, r8d, 0xa94
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x50]
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [0x140056460]
cmp rcx, rbx
je 0x140002af7
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp rsi, rbx
je 0x140002b05
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140001690
cmp eax, ebx
je 0x140002b22
cmp edi, 1
jne 0x140002b22
xor edx, edx
lea rcx, [0x140056480]
call fcn.1400016f8
nop
mov rdx, qword [rbp]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, ebx
jg 0x140002b41
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0xcc0]
xor rcx, rsp
call fcn.140021c70
mov rbx, qword [rsp + 0xd20]
add rsp, 0xcd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret