Function at 0x180082540
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
movzx r15d, dl
call fcn.18001ab80
call fcn.180021370
test eax, eax
jne 0x18001fcf9
test r15b, r15b
je 0x18001fdfe
movups xmm0, xmmword [0x1800b5970]
movups xmmword [rbp - 0x19], xmm0
mov eax, dword [0x1800b5980]
mov dword [rbp - 9], eax
xor ebx, ebx
cmp byte [0x1800b5983], bl
je 0x18001fc60
mov r8d, ebx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x18001fc17
movdqa xmm5, xmmword [0x1800b9500]
movdqa xmm4, xmmword [0x1800b95a0]
mov ecx, 4
movd xmm6, ecx
movdqa xmm7, xmmword [0x1800b9520]
mov ecx, 0x1f
movd xmm8, ecx
movdqa xmm0, xmmword [str.8888888888888888]
movdqa xmmword [rbp - 0x39], xmm0
lea rcx, [rbp - 0x15]
mov edx, dword [rbp - 0x39]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1800b9580]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
pxor xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1800b9580]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
pxor xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x10
jl 0x18001fb10
cmp r8d, 0x14
jge 0x18001fc60
movsxd rax, r8d
lea r9, [rbp - 0x19]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x5397829d
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x14
jl 0x18001fc30
mov qword [rbp - 0x39], rbx
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], rbx
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x39], bl
lea rax, [rbp - 0x19]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], bl
jne 0x18001fc86
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x39]
call fcn.180009130
nop
lea rdx, [rbp - 0x39]
xor ecx, ecx
call fcn.180039830
nop
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x18001fce4
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001fcdf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800201c7
call fcn.18009d5c8
mov qword [rbp - 0x29], rbx
mov qword [rbp - 0x21], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x39], 0
jmp 0x18001fdfe
xor dil, dil
mov rsi, qword [0x1800e3430]
mov r14, qword [0x1800e3438]
cmp rsi, r14
jne 0x18001fe2e
test r15b, r15b
je 0x18001fdfe
movsd xmm0, qword [str.TV__]
movsd qword [rbp - 0x39], xmm0
movzx eax, word [0x1800b5ff0]
mov word [rbp - 0x31], ax
movzx eax, byte [0x1800b5ff2]
mov byte [rbp - 0x39], WSAGetLastError
xor byte [rbp - 0x38], 0x39
xor byte [rbp - 0x37], 0x3a
xor byte [rbp - 0x36], 0x3b
xor byte [rbp - 0x35], 0x3c
xor byte [rbp - 0x34], 0x3d
xor byte [rbp - 0x33], 0x3e
xor byte [rbp - 0x32], 0x3f
xor byte [rbp - 0x31], 0x40
xor byte [rbp - 0x30], 0x41
xor al, 0x42
mov byte [rbp - 0x2f], al
xor ebx, ebx
mov qword [rbp - 0x19], rbx
mov qword [rbp - 9], rbx
mov qword [rbp - 1], rbx
mov qword [rbp - 9], rbx
mov qword [rbp - 1], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x19], bl
lea rax, [rbp - 0x39]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], bl
jne 0x18001fd90
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x19]
call fcn.180009130
nop
lea rdx, [rbp - 0x19]
xor ecx, ecx
call fcn.180039830
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x18001fdee
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001fde9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800201c7
call fcn.18009d5c8
mov qword [rbp - 9], rbx
mov qword [rbp - 1], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x19], 0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
xor ebx, ebx
lea r12d, [rbx + 1]
nop dword [rax]
nop dword [rax + rax]
mov r9, qword [0x1800e3498]
mov r8, qword [0x1800e3490]
sub r9, r8
mov qword [rsp + 0x20], rbx
mov rdx, qword [rsi]
mov rcx, qword [0x1800e33b8]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx edi, dil
test eax, eax
cmovne edi, r12d
add rsi, 8
cmp rsi, r14
jne 0x18001fe40
test r15b, r15b
je 0x18001fdfe
test dil, dil
je 0x18001ffb8
mov eax, dword [str.w__]
mov dword [rbp + 7], eax
cmp byte [0x1800b6e73], bl
je 0x18001ff69
mov r8d, ebx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x18001ff3b
movdqa xmm3, xmmword [0x1800b9500]
movdqa xmm2, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x1800b95a0]
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x1800b95a0]
shufps xmm2, xmm0, 0xdd
mov ecx, 4
movd xmm0, ecx
psrad xmm2, xmm0
mov ecx, 0x1f
movd xmm0, ecx
movdqa xmm1, xmm2
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [0x1800b9520]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1800b9580]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.8888888888888888]
movd xmm0, eax
pxor xmm2, xmm0
movd dword [rbp + 7], xmm2
jmp 0x18001ff69
lea r9, [rbp + 7]
nop
mov eax, 0x5397829d
mul r8d
shr edx, 4
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 4
jl 0x18001ff40
mov qword [rbp - 0x19], rbx
mov qword [rbp - 9], rbx
mov qword [rbp - 1], rbx
mov qword [rbp - 9], rbx
mov qword [rbp - 1], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x19], bl
lea rax, [rbp + 7]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], bl
jne 0x18001ff90
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x19]
call fcn.180009130
nop
lea rdx, [rbp - 0x19]
mov cl, 1
call fcn.180039830
nop
jmp 0x18001fdb3
movsd xmm0, qword [0x1800b8e88]
movsd qword [rbp - 0x39], xmm0
mov eax, dword [0x1800b8e90]
mov dword [rbp - 0x31], eax
movzx eax, word [0x1800b8e94]
mov word [rbp - 0x2d], ax
cmp byte [0x1800b8e95], bl
je 0x180020140
mov r8d, ebx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x180020106
movdqa xmm4, xmmword [0x1800b95a0]
mov ecx, 4
movd xmm6, ecx
mov ecx, 0x1f
movd xmm5, ecx
movdqa xmm2, xmmword [0x1800b9500]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800b9520]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1800b9580]
packuswb xmm2, xmm2
mov eax, dword [str.8888888888888888]
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [0x1800b8e88]
pxor xmm2, xmm1
movd dword [rbp - 0x39], xmm2
movdqa xmm3, xmmword [0x1800b9510]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1800b9520]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x1800b9580]
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x35]
pxor xmm2, xmm1
movd dword [rbp - 0x35], xmm2
mov r8d, 8
mov eax, r8d
lea r9, [rbp - 0x39]
add r9, rax
mov eax, 0x5397829d
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xe
jl 0x180020110
mov qword [rbp - 0x19], rbx
mov qword [rbp - 9], rbx
mov qword [rbp - 1], rbx
mov qword [rbp - 9], rbx
mov qword [rbp - 1], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x19], bl
lea rax, [rbp - 0x39]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], bl
jne 0x180020166
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x19]
call fcn.180009130
nop
lea rdx, [rbp - 0x19]
xor ecx, ecx
call fcn.180039830
nop
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x18001fdee
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001fde9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001fde9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movzx edx, byte [rdx]
jmp 0x18001fa50