Function at 0x180036580
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
cmp edx, 1
jne 0x1800369c4
movaps xmmword [rsp + 0x60], xmm6
xor ebx, ebx
movaps xmmword [rsp + 0x50], xmm7
mov edi, ebx
movaps xmmword [rsp + 0x40], xmm8
xor eax, eax
mov esi, edx
lock cmpxchg dword [0x1800cfe50], esi
je 0x1800365e1
nop word [rax + rax]
cmp rdi, 0x20
jae 0x1800365ca
xor ecx, ecx
jmp 0x1800365cc
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rdi
xor eax, eax
lock cmpxchg dword [0x1800cfe50], esi
jne 0x1800365c0
cmp qword [0x1800cfe58], rbx
jne 0x1800365fe
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x1800cfe58], rax
mov r10d, dword [reloc.WS2_32.dll_accept]
mov eax, ebx
movdqa xmm6, xmmword [0x1800c2090]
mov r8d, ebx
movdqa xmm2, xmmword [0x1800c1ff0]
movdqa xmm3, xmmword [0x1800c1fe0]
movdqa xmm4, xmmword [0x1800c1fc0]
movdqa xmm8, xmmword [0x1800c20f0]
movdqa xmm7, xmmword [0x1800c2050]
movdqa xmm5, xmmword [0x1800c20e0]
xchg dword [0x1800cfe50], eax
movzx eax, word [0x1800c16a4]
movsd xmm0, qword [str._RPy_UJXHByEi_]
mov ecx, dword [0x1800c16a0]
mov word [rsp + 0x39], ax
movzx eax, byte [0x1800c16a6]
mov byte [rsp + 0x3b], al
mov dword [rsp + 0x35], ecx
movsd qword [rsp + 0x2d], xmm0
cmp r10d, 2
jl 0x18003679c
movdqa xmm1, xmm4
movdqa xmm0, xmm4
punpckldq xmm1, xmm4
mov r8d, ntohs
pmuldq xmm1, xmm5
punpckhdq xmm0, xmm4
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm4
pmulld xmm0, xmm7
psubd xmm1, xmm0
movd xmm0, dword [str._RPy_UJXHByEi_]
andps xmm1, xmm6
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm8
xorps xmm1, xmm0
movdqa xmm0, xmm3
movd dword [rsp + 0x2d], xmm1
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm5
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
pmulld xmm0, xmm7
psubd xmm1, xmm0
movd xmm0, dword [rsp + 0x31]
andps xmm1, xmm6
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm8
xorps xmm1, xmm0
movdqa xmm0, xmm2
movd dword [rsp + 0x31], xmm1
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm2
pmulld xmm0, xmm7
psubd xmm1, xmm0
movd xmm0, ecx
andps xmm1, xmm6
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm8
xorps xmm1, xmm0
movd dword [rsp + 0x35], xmm1
mov eax, r8d
lea r9, [rsp + 0x2d]
add r9, rax
nop word [rax + rax]
mov eax, 0x94f2095
lea r9, [r9 + 1]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 0xf
jl 0x1800367b0
movsd xmm0, qword [str.ZWAZPZ]
movzx eax, byte [0x1800c16d4]
mov ecx, dword [0x1800c16d0]
movsd qword [rsp + 0x20], xmm0
mov byte [rsp + 0x2c], al
mov dword [rsp + 0x28], ecx
cmp r10d, 2
jl 0x180036928
movdqa xmm1, xmm4
movd eax, xmm8
punpckldq xmm1, xmm4
movdqa xmm0, xmm4
punpckhdq xmm0, xmm4
mov ebx, ntohs
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
pmulld xmm0, xmm7
psubd xmm4, xmm0
punpckldq xmm1, xmm3
pmuldq xmm1, xmm5
andps xmm4, xmm6
packuswb xmm4, xmm4
packuswb xmm4, xmm4
movd xmm0, eax
paddb xmm4, xmm0
movd xmm0, dword [str.ZWAZPZ]
xorps xmm4, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
movd dword [rsp + 0x20], xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movd xmm1, dword [rsp + 0x24]
pmulld xmm0, xmm7
psubd xmm3, xmm0
movd xmm0, eax
andps xmm3, xmm6
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
xorps xmm3, xmm1
movdqa xmm1, xmm2
pmuldq xmm0, xmm5
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movd dword [rsp + 0x24], xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movd xmm1, ecx
pmulld xmm0, xmm7
psubd xmm2, xmm0
movd xmm0, eax
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
xorps xmm2, xmm1
movd dword [rsp + 0x28], xmm2
movaps xmm8, xmmword [rsp + 0x40]
lea r8, [rsp + 0x20]
movaps xmm7, xmmword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x60]
mov eax, ebx
add r8, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x94f2095
lea r8, [r8 + 1]
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, bl
inc ebx
sub al, cl
add al, 0x31
xor byte [r8 - 1], al
cmp ebx, 0xd
jl 0x180036950
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rsp + 0x2d]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
lea r8, [0x1800cfe48]
lea rdx, [0x180036310]
call fcn.180037b30
call fcn.180037e10
mov eax, esi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
test edx, edx
jne 0x180036a9b
xor ebx, ebx
mov esi, 1
mov edi, ebx
xor eax, eax
lock cmpxchg dword [0x1800cfe50], esi
je 0x180036a02
cmp rdi, 0x20
jae 0x1800369eb
xor ecx, ecx
jmp 0x1800369ed
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rdi
xor eax, eax
lock cmpxchg dword [0x1800cfe50], esi
jne 0x1800369e1
cmp qword [0x1800cfe58], rbx
je 0x180036a81
xor ecx, ecx
call fcn.1800379e0
test eax, eax
jne 0x180036a81
mov rcx, qword [0x1800cff20]
mov qword [0x1800cff20], rbx
test rcx, rcx
je 0x180036a49
nop dword [rax]
mov rdi, qword [rcx]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rdi
test rdi, rdi
jne 0x180036a30
mov r8, qword [0x1800cff10]
xor edx, edx
mov rcx, qword [0x1800cfe58]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1800cfe58]
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov qword [0x1800cfe58], rbx
mov qword [0x1800cff10], rbx
mov qword [0x1800cff18], rbx
xchg dword [0x1800cfe50], ebx
mov eax, esi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
lea r11, [rsp + 0x70]
mov eax, 1
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret