Function at 0x18002be70
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x98]
sub rsp, 0x190
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
mov rax, qword [0x1801491e0]
xor rax, rsp
mov qword [rbp + 0x50], rax
xor esi, esi
movss xmm8, dword [0x18012c4e4]
cmp byte [0x180173630], sil
jne 0x18002bed3
cmp byte [0x180173661], sil
jne 0x18002bed3
cmp byte [0x180173949], sil
je 0x18002c0c7
mov rax, qword [0x180177260]
mov rax, qword [rax + 0x48c8]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax]
call fcn.18005d780
mov rbx, rax
movss xmm6, dword [0x18012c4ac]
movss xmm7, dword [0x18012c5bc]
cmp byte [0x180173630], sil
je 0x18002bf9d
lea rcx, [0x180173370]
call fcn.18005a7c0
mov edi, eax
movss xmm0, dword [0x1801773e0]
movss dword [rsp + 0x30], xmm0
movss xmm1, dword [0x1801773e4]
movss dword [rsp + 0x34], xmm1
test eax, 0xff000000
je 0x18002bf9d
movss xmm2, dword [0x180173634]
comiss xmm6, xmm2
ja 0x18002bf9d
subss xmm2, xmm6
mov dword [rsp + 0x28], 0x63
movss dword [rsp + 0x20], xmm7
xorps xmm3, xmm3
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.18007bed0
movss dword [rsp + 0x28], xmm8
mov dword [rsp + 0x20], 1
mov r9d, edi
mov r8d, dword [rbx + 0x78]
mov rdx, qword [rbx + 0x80]
mov rcx, rbx
call fcn.18007a520
mov dword [rbx + 0x78], esi
cmp byte [0x180173661], sil
je 0x18002c032
lea rcx, [0x180173390]
call fcn.18005a7c0
mov edi, eax
movss xmm0, dword [0x1801773e0]
movss dword [rsp + 0x30], xmm0
movss xmm1, dword [0x1801773e4]
movss dword [rsp + 0x34], xmm1
test eax, 0xff000000
je 0x18002c032
movss xmm2, dword [0x180173664]
comiss xmm6, xmm2
ja 0x18002c032
subss xmm2, xmm6
mov dword [rsp + 0x28], 0x63
movss dword [rsp + 0x20], xmm7
xorps xmm3, xmm3
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.18007bed0
movss dword [rsp + 0x28], xmm8
mov dword [rsp + 0x20], 1
mov r9d, edi
mov r8d, dword [rbx + 0x78]
mov rdx, qword [rbx + 0x80]
mov rcx, rbx
call fcn.18007a520
mov dword [rbx + 0x78], esi
cmp byte [0x180173949], sil
je 0x18002c0c7
lea rcx, [0x180173380]
call fcn.18005a7c0
mov edi, eax
movss xmm0, dword [0x1801773e0]
movss dword [rsp + 0x30], xmm0
movss xmm1, dword [0x1801773e4]
movss dword [rsp + 0x34], xmm1
test eax, 0xff000000
je 0x18002c0c7
movss xmm2, dword [0x18017394c]
comiss xmm6, xmm2
ja 0x18002c0c7
subss xmm2, xmm6
mov dword [rsp + 0x28], 0x63
movss dword [rsp + 0x20], xmm7
xorps xmm3, xmm3
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.18007bed0
movss dword [rsp + 0x28], xmm8
mov dword [rsp + 0x20], 1
mov r9d, edi
mov r8d, dword [rbx + 0x78]
mov rdx, qword [rbx + 0x80]
mov rcx, rbx
call fcn.18007a520
mov dword [rbx + 0x78], esi
cmp byte [0x18017360c], sil
je 0x18002c2d5
cmp byte [reloc.WS2_32.dll_accept], sil
jne 0x18002c11c
mov rax, qword [0x180177260]
or dword [rax + 0x47c8], 1
movss xmm0, dword [0x180178ad0]
movss dword [rax + 0x47d8], xmm0
movss xmm1, dword [0x180178ad4]
movss dword [rax + 0x47dc], xmm1
mov qword [rax + 0x47e0], rsi
mov dword [rax + 0x47cc], 1
movdqa xmm0, xmmword [0x18012e160]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x8abd9495
mov dword [rsp + 0x44], 0x928f90b9
mov dword [rsp + 0x48], 0xae85a2
mov byte [rsp + 0x4c], 1
mov rcx, rsi
nop word [rax + rax]
lea eax, [rcx - 0x37]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0x1b
jb 0x18002c150
mov byte [rsp + 0x4c], sil
mov r8d, reloc.WLDAP32.dll_Ordinal_35
lea rdx, reloc.WS2_32.dll_accept
lea rcx, [rsp + 0x30]
call fcn.180063fb0
cmp byte [reloc.WS2_32.dll_accept], sil
je 0x18002c1ad
mov rax, qword [0x180177260]
mov rcx, qword [rax + 0x3ef0]
movss xmm0, dword [rcx + 0x20]
movss xmm1, dword [rcx + 0x24]
movss dword [0x180178ad0], xmm0
movss dword [0x180178ad4], xmm1
mov edx, 0xc8ffffff
xor ecx, ecx
call fcn.18005b130
mov rcx, qword [0x180177260]
mov rax, qword [rcx + 0x3ef0]
mov byte [rax + 0xb8], 1
mov rax, qword [rcx + 0x3ef0]
movss xmm1, dword [rax + 0x24]
subss xmm1, dword [rax + 0x88]
addss xmm1, dword [0x18012c5cc]
movss xmm0, dword [rax + 0x20]
subss xmm0, dword [rax + 0x84]
addss xmm0, dword [0x18012c5a4]
movss dword [rax + 0x100], xmm0
movss dword [rax + 0x104], xmm1
mov byte [rax + 0x141], 1
movdqa xmm0, xmmword [0x18012e630]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0xaffefae3
mov dword [rsp + 0x44], 0xc5ffa2fd
mov word [rsp + 0x48], __WSAFDIsSet
mov byte [rsp + 0x4a], 1
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x37]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0x19
jb 0x18002c250
mov byte [rsp + 0x4a], sil
movaps xmm0, xmmword [0x1801737d0]
movaps xmmword [rbp - 0x50], xmm0
movaps xmm1, xmmword [0x1801737e0]
movaps xmmword [rbp - 0x40], xmm1
lea r8, str.Mar_29_2024
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x30]
call fcn.1800898e0
mov r8, qword [0x180177260]
cmp dword [r8 + 0x4838], 1
jl 0x18002c2d0
movsxd rax, dword [r8 + 0x4838]
lea rdx, [rax + rax*4]
mov rcx, qword [r8 + 0x4840]
movsxd rax, dword [rcx + rdx*4 - 0x14]
add rax, rax
movups xmm0, xmmword [rcx + rdx*4 - 0x10]
movups xmmword [r8 + rax*8 + 0x38d8], xmm0
dec dword [r8 + 0x4838]
call fcn.180066640
cmp byte [0x18017360b], sil
je 0x18002c406
mov rax, qword [0x180177260]
mov rax, qword [rax + 0x48c8]
lea r8, str.Background
xor edx, edx
mov rcx, qword [rax]
call fcn.18005d780
mov r10, rax
movaps xmm0, xmmword [0x18012cf40]
movups xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call fcn.18005a7c0
movss xmm2, dword [0x1801773e0]
movaps xmm0, xmm2
addss xmm0, dword [0x18012c5b4]
movss dword [rsp + 0x30], xmm0
movss xmm1, dword [0x1801773e4]
movss dword [rsp + 0x34], xmm1
subss xmm2, dword [0x18012c5a4]
movss dword [rsp + 0x50], xmm2
movss dword [rsp + 0x54], xmm1
movss xmm7, dword [0x18012c4d0]
movss dword [rsp + 0x20], xmm7
mov r9d, eax
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, r10
call fcn.18007c860
mov rax, qword [0x180177260]
mov rax, qword [rax + 0x48c8]
lea r8, str.Background
xor edx, edx
mov rcx, qword [rax]
call fcn.18005d780
mov r10, rax
movaps xmm0, xmmword [0x18012cf40]
movups xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call fcn.18005a7c0
movss xmm2, dword [0x1801773e4]
movaps xmm0, xmm2
addss xmm0, dword [0x18012c5b4]
movss xmm1, dword [0x1801773e0]
movss dword [rsp + 0x30], xmm1
movss dword [rsp + 0x34], xmm0
subss xmm2, dword [0x18012c5a4]
movss dword [rsp + 0x50], xmm1
movss dword [rsp + 0x54], xmm2
movss dword [rsp + 0x20], xmm7
mov r9d, eax
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, r10
call fcn.18007c860
cmp byte [0x18017360a], sil
je 0x18002c734
movss xmm1, dword [0x1801773e4]
subss xmm1, xmm8
movd xmm0, dword [0x180178c04]
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
mov rax, qword [0x180177260]
mov dword [rax + 0x47d8], 0x40400000
movss dword [rax + 0x47dc], xmm1
mov qword [rax + 0x47e0], rsi
mov dword [rax + 0x47cc], 1
or dword [rax + 0x47c8], 3
mov dword [rax + 0x47e8], 0x43160000
mov dword [rax + 0x47ec], 0x42f00000
mov dword [rax + 0x47d0], 1
movdqa xmm0, xmmword [0x18012dc00]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x9aacb08b
mov dword [rsp + 0x44], 0xb4b6aabe
mov dword [rsp + 0x48], 0x8798bb
mov byte [rsp + 0x4c], 1
mov rcx, rsi
nop dword [rax]
lea eax, [rcx - 0x37]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0x1b
jb 0x18002c4b0
mov byte [rsp + 0x4c], sil
xor edx, edx
mov r8d, 0x83
lea rcx, [rsp + 0x30]
call fcn.180063fb0
test al, al
je 0x18002c72f
cmp byte [0x180173628], sil
je 0x18002c51f
mov dword [rsp + 0x30], 0xaea6a388
mov dword [rsp + 0x34], 0x100baa2
mov rcx, rsi
nop dword [rax + rax]
lea eax, [rcx - 0x37]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 6
jb 0x18002c500
mov byte [rsp + 0x37], sil
lea rcx, [rsp + 0x30]
call fcn.1800898e0
cmp byte [0x180173948], sil
je 0x18002c55f
mov dword [rsp + 0x30], 0xa9a7a39a
mov dword [rsp + 0x34], 0x100baa3
mov rcx, rsi
nop dword [rax + rax]
lea eax, [rcx - 0x37]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 6
jb 0x18002c540
mov byte [rsp + 0x37], sil
lea rcx, [rsp + 0x30]
call fcn.1800898e0
cmp byte [0x180173660], sil
je 0x18002c59f
mov dword [rsp + 0x30], 0xaba2b89d
mov dword [rsp + 0x34], 0xbdabaa
mov byte [rsp + 0x38], 1
mov rcx, rsi
lea eax, [rcx - 0x37]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 7
jb 0x18002c580
mov byte [rsp + 0x38], sil
lea rcx, [rsp + 0x30]
call fcn.1800898e0
cmp byte [0x1801737f8], sil
je 0x18002c5df
mov dword [rsp + 0x50], 0x1008987
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x37]
xor byte [rsp + rcx + 0x50], al
inc rcx
cmp rcx, 2
jb 0x18002c5c0
mov byte [rsp + 0x53], sil
lea rcx, [rsp + 0x50]
call fcn.1800898e0
cmp byte [0x180173801], sil
je 0x18002c61f
mov dword [rsp + 0x30], 0xa1afa58e
mov dword [rsp + 0x34], 0xaaaaa2
mov byte [rsp + 0x38], 1
mov rcx, rsi
lea eax, [rcx - 0x37]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 7
jb 0x18002c600
mov byte [rsp + 0x38], sil
lea rcx, [rsp + 0x30]
call fcn.1800898e0
cmp byte [0x180173802], sil
je 0x18002c66f
mov dword [rsp + 0x30], 0xa5bda480
mov dword [rsp + 0x34], 0xbcada7be
mov word [rsp + 0x38], 0xb4
mov byte [rsp + 0x3a], 1
mov rcx, rsi
nop word [rax + rax]
lea eax, [rcx - 0x37]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 9
jb 0x18002c650
mov byte [rsp + 0x3a], sil
lea rcx, [rsp + 0x30]
call fcn.1800898e0
cmp byte [0x1801735d8], sil
je 0x18002c6af
mov dword [rsp + 0x30], 0x9b998c
mov byte [rsp + 0x34], 1
mov rcx, rsi
nop dword [rax + rax]
lea eax, [rcx - 0x37]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 3
jb 0x18002c690
mov byte [rsp + 0x34], sil
lea rcx, [rsp + 0x30]
call fcn.1800898e0
cmp byte [0x1801738ad], sil
je 0x18002c6ef
mov dword [rsp + 0x30], 0xa3a7a49c
mov dword [rsp + 0x34], 0x100a5ae
mov rcx, rsi
nop dword [rax + rax]
lea eax, [rcx - 0x37]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 6
jb 0x18002c6d0
mov byte [rsp + 0x37], sil
lea rcx, [rsp + 0x30]
call fcn.1800898e0
cmp byte [0x1801738af], sil
je 0x18002c72f
mov dword [rsp + 0x30], 0xb3a38f
mov byte [rsp + 0x34], 1
mov rcx, rsi
nop dword [rax + rax]
lea eax, [rcx - 0x37]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 3
jb 0x18002c710
mov byte [rsp + 0x34], sil
lea rcx, [rsp + 0x30]
call fcn.1800898e0
call fcn.180066640
cmp byte [0x180173807], sil
je 0x18002ca96
mov ebx, esi
movss xmm6, dword [0x18012c694]
mov rdx, qword [0x180177478]
mov rcx, qword [0x180177470]
cmp rcx, rdx
je 0x18002ca96
lea eax, [rbx + 1]
cmp byte [rcx + 0x72], sil
cmove eax, ebx
mov ebx, eax
movsd xmm1, qword [rcx + 0x18]
xorps xmm0, xmm0
cvtss2sd xmm0, xmm6
comisd xmm0, xmm1
jb 0x18002c784
cvtpd2ps xmm6, xmm1
add rcx, 0x110
cmp rcx, rdx
jne 0x18002c762
test ebx, ebx
je 0x18002ca96
movss xmm1, dword [0x1801773d8]
divss xmm1, dword [0x18012c5c8]
addss xmm1, dword [0x1801773e0]
movss xmm0, dword [0x1801773e4]
mov rax, qword [0x180177260]
movss dword [rax + 0x47d8], xmm1
movss dword [rax + 0x47dc], xmm0
mov qword [rax + 0x47e0], rsi
mov dword [rax + 0x47cc], 1
or dword [rax + 0x47c8], 3
mov dword [rax + 0x47e8], 0x435c0000
mov dword [rax + 0x47ec], 0x42480000
mov dword [rax + 0x47d0], 1
movdqa xmm0, xmmword [0x18012da90]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0xbda3a998
mov dword [rsp + 0x44], 0x86bdbc8c
mov dword [rsp + 0x48], 0x8cb1ae
mov byte [rsp + 0x4c], 1
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x37]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0x1b
jb 0x18002c840
mov byte [rsp + 0x4c], sil
xor edx, edx
lea r8d, [rdx + 0x23]
lea rcx, [rsp + 0x30]
call fcn.180063fb0
test al, al
je 0x18002ca91
mov dword [rsp + 0x30], 0x96a7e7
mov byte [rsp + 0x34], 1
cvttss2si edx, xmm6
lea rcx, [rbp + 0x10]
call fcn.1800140e0
mov rdi, rax
movdqa xmm0, xmmword [0x18012dfd0]
movdqu xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x18012d180]
movdqu xmmword [rbp - 0x70], xmm1
mov dword [rbp - 0x60], 0xcc998f9a
mov word [rbp - 0x5c], 0xb6
mov byte [rbp - 0x5a], 1
mov edx, ebx
lea rcx, [rbp - 0x10]
call fcn.1800140e0
mov rbx, rax
cmp byte [rbp - 0x5a], 0
je 0x18002c8e4
mov rcx, rsi
nop dword [rax]
lea eax, [rcx - 0x37]
xor byte [rbp + rcx - 0x80], al
inc rcx
cmp rcx, 0x25
jb 0x18002c8d0
mov byte [rbp - 0x5a], 0
mov qword [rsp + 0x60], rsi
movdqa xmm0, xmmword [0x18012c790]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov r8d, Ordinal_41
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.18003ffa0
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x18002c91f
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1800466c0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rcx, [rsp + 0x60]
call fcn.18003ff40
nop
mov r9, rdi
lea r8, [rbp - 0x50]
movzx edx, byte [rsp + 0x58]
lea rcx, [rbp - 0x30]
call fcn.1800467d0
nop
cmp byte [rsp + 0x34], 0
je 0x18002c995
mov rcx, rsi
nop word [rax + rax]
lea eax, [rcx - 0x37]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 3
jb 0x18002c980
mov byte [rsp + 0x34], 0
mov qword [rsp + 0x60], rsi
movdqa xmm0, xmmword [0x18012c790]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov r8d, 3
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.18003ffa0
nop
lea r8, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae r8, qword [rbp - 0x30]
mov r9, qword [rbp - 0x20]
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1800466c0
mov qword [rbp + 0x30], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x40], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x40], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
lea rcx, [rsp + 0x60]
call fcn.18003ff40
nop
lea rcx, [rbp - 0x30]
call fcn.18003ff40
nop
lea rcx, [rbp - 0x50]
call fcn.18003ff40
nop
lea rcx, [rbp - 0x10]
call fcn.18003ff40
nop
lea rcx, [rbp + 0x10]
call fcn.18003ff40
mov rcx, qword [0x1801732a8]
call fcn.180066c10
mov word [rsp + 0x50], 0x41
mov byte [rsp + 0x52], 0
lea rcx, [rsp + 0x50]
call fcn.1800898e0
call fcn.180066cb0
movss xmm1, dword [0x18012c6f4]
xorps xmm0, xmm0
call fcn.180069d20
lea rcx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
cmovae rcx, qword [rbp + 0x30]
call fcn.1800898e0
nop
lea rcx, [rbp + 0x30]
call fcn.18003ff40
call fcn.180066640
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.180107ca0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rbp
ret