Function at 0x180029540
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 [0x1801561e0]
xor rax, rsp
mov qword [rbp + 0x50], rax
xor esi, esi
movss xmm8, dword [0x180137b14]
cmp byte [0x180180838], sil
jne 0x1800295a3
cmp byte [0x180180869], sil
jne 0x1800295a3
cmp byte [0x180180af1], sil
je 0x180029797
mov rax, qword [0x180184690]
mov rax, qword [rax + 0x48c8]
lea r8, str.Foreground
mov edx, 1
mov rcx, qword [rax]
call fcn.180066330
mov rbx, rax
movss xmm6, dword [0x180137adc]
movss xmm7, dword [0x180137be4]
cmp byte [0x180180838], sil
je 0x18002966d
lea rcx, [0x1801805b0]
call fcn.180063310
mov edi, eax
movss xmm0, dword [0x1801847c0]
movss dword [rsp + 0x30], xmm0
movss xmm1, dword [0x1801847c4]
movss dword [rsp + 0x34], xmm1
test eax, 0xff000000
je 0x18002966d
movss xmm2, dword [0x18018083c]
comiss xmm6, xmm2
ja 0x18002966d
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.180084a70
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.1800830c0
mov dword [rbx + 0x78], esi
cmp byte [0x180180869], sil
je 0x180029702
lea rcx, [0x1801805d0]
call fcn.180063310
mov edi, eax
movss xmm0, dword [0x1801847c0]
movss dword [rsp + 0x30], xmm0
movss xmm1, dword [0x1801847c4]
movss dword [rsp + 0x34], xmm1
test eax, 0xff000000
je 0x180029702
movss xmm2, dword [0x18018086c]
comiss xmm6, xmm2
ja 0x180029702
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.180084a70
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.1800830c0
mov dword [rbx + 0x78], esi
cmp byte [0x180180af1], sil
je 0x180029797
lea rcx, [0x1801805c0]
call fcn.180063310
mov edi, eax
movss xmm0, dword [0x1801847c0]
movss dword [rsp + 0x30], xmm0
movss xmm1, dword [0x1801847c4]
movss dword [rsp + 0x34], xmm1
test eax, 0xff000000
je 0x180029797
movss xmm2, dword [0x180180af4]
comiss xmm6, xmm2
ja 0x180029797
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.180084a70
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.1800830c0
mov dword [rbx + 0x78], esi
cmp byte [0x180180814], sil
je 0x1800299a5
cmp byte [reloc.WS2_32.dll_accept], sil
jne 0x1800297ec
mov rax, qword [0x180184690]
or dword [rax + 0x47c8], 1
movss xmm0, dword [0x180185e08]
movss dword [rax + 0x47d8], xmm0
movss xmm1, dword [0x180185e0c]
movss dword [rax + 0x47dc], xmm1
mov qword [rax + 0x47e0], rsi
mov dword [rax + 0x47cc], 1
movdqa xmm0, xmmword [0x18013a040]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0xf5c4efec
mov dword [rsp + 0x44], 0xd5f6ebc0
mov dword [rsp + 0x48], 0xe7ceeb
mov byte [rsp + 0x4c], 1
mov rcx, rsi
nop word [rax + rax]
lea eax, [rcx - 0x70]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0x1b
jb 0x180029820
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.18006cc30
cmp byte [reloc.WS2_32.dll_accept], sil
je 0x18002987d
mov rax, qword [0x180184690]
mov rcx, qword [rax + 0x3ef0]
movss xmm0, dword [rcx + 0x20]
movss xmm1, dword [rcx + 0x24]
movss dword [0x180185e08], xmm0
movss dword [0x180185e0c], xmm1
mov edx, 0xc8ffffff
xor ecx, ecx
call fcn.180063d60
mov rcx, qword [0x180184690]
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 [0x180137bf4]
movss xmm0, dword [rax + 0x20]
subss xmm0, dword [rax + 0x84]
addss xmm0, dword [0x180137bcc]
movss dword [rax + 0x100], xmm0
movss dword [rax + 0x104], xmm1
mov byte [rax + 0x141], 1
movdqa xmm0, xmmword [0x18013a410]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0xd087819a
mov dword [rsp + 0x44], 0x8286d984
mov word [rsp + 0x48], 0xdb
mov byte [rsp + 0x4a], 1
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x70]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0x19
jb 0x180029920
mov byte [rsp + 0x4a], sil
movaps xmm0, xmmword [0x1801809d0]
movaps xmmword [rbp - 0x50], xmm0
movaps xmm1, xmmword [0x1801809e0]
movaps xmmword [rbp - 0x40], xmm1
lea r8, str.Jan_17_2024
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x30]
call fcn.180092510
mov r8, qword [0x180184690]
cmp dword [r8 + 0x4838], 1
jl 0x1800299a0
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.18006f2c0
cmp byte [0x180180813], sil
je 0x180029ad6
mov rax, qword [0x180184690]
mov rax, qword [rax + 0x48c8]
lea r8, str.Background
xor edx, edx
mov rcx, qword [rax]
call fcn.180066330
mov r10, rax
movaps xmm0, xmmword [0x180138590]
movups xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call fcn.180063310
movss xmm2, dword [0x1801847c0]
movaps xmm0, xmm2
addss xmm0, dword [0x180137bdc]
movss dword [rsp + 0x30], xmm0
movss xmm1, dword [0x1801847c4]
movss dword [rsp + 0x34], xmm1
subss xmm2, dword [0x180137bcc]
movss dword [rsp + 0x50], xmm2
movss dword [rsp + 0x54], xmm1
movss xmm7, dword [0x180137b00]
movss dword [rsp + 0x20], xmm7
mov r9d, eax
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, r10
call fcn.180085400
mov rax, qword [0x180184690]
mov rax, qword [rax + 0x48c8]
lea r8, str.Background
xor edx, edx
mov rcx, qword [rax]
call fcn.180066330
mov r10, rax
movaps xmm0, xmmword [0x180138590]
movups xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call fcn.180063310
movss xmm2, dword [0x1801847c4]
movaps xmm0, xmm2
addss xmm0, dword [0x180137bdc]
movss xmm1, dword [0x1801847c0]
movss dword [rsp + 0x30], xmm1
movss dword [rsp + 0x34], xmm0
subss xmm2, dword [0x180137bcc]
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.180085400
cmp byte [0x180180812], sil
je 0x180029e04
movss xmm1, dword [0x1801847c4]
subss xmm1, xmm8
movd xmm0, dword [0x180185e4c]
cvtdq2ps xmm0, xmm0
subss xmm1, xmm0
mov rax, qword [0x180184690]
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 [0x180139aa0]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0xe5d5cbf2
mov dword [rsp + 0x44], 0xf3cfd1c7
mov dword [rsp + 0x48], 0xced3f2
mov byte [rsp + 0x4c], 1
mov rcx, rsi
nop dword [rax]
lea eax, [rcx - 0x70]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0x1b
jb 0x180029b80
mov byte [rsp + 0x4c], sil
xor edx, edx
mov r8d, 0x83
lea rcx, [rsp + 0x30]
call fcn.18006cc30
test al, al
je 0x180029dff
cmp byte [0x180180830], sil
je 0x180029bef
mov dword [rsp + 0x30], 0xf1fff8d1
mov dword [rsp + 0x34], 0x100e1fb
mov rcx, rsi
nop dword [rax + rax]
lea eax, [rcx - 0x70]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 6
jb 0x180029bd0
mov byte [rsp + 0x37], sil
lea rcx, [rsp + 0x30]
call fcn.180092510
cmp byte [0x180180af0], sil
je 0x180029c2f
mov dword [rsp + 0x30], 0xf6fef8c3
mov dword [rsp + 0x34], 0x100e1fa
mov rcx, rsi
nop dword [rax + rax]
lea eax, [rcx - 0x70]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 6
jb 0x180029c10
mov byte [rsp + 0x37], sil
lea rcx, [rsp + 0x30]
call fcn.180092510
cmp byte [0x180180868], sil
je 0x180029c6f
mov dword [rsp + 0x30], 0xf4fbe3c4
mov dword [rsp + 0x34], 0xe4f0f3
mov byte [rsp + 0x38], 1
mov rcx, rsi
lea eax, [rcx - 0x70]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 7
jb 0x180029c50
mov byte [rsp + 0x38], sil
lea rcx, [rsp + 0x30]
call fcn.180092510
cmp byte [0x1801809f8], sil
je 0x180029caf
mov dword [rsp + 0x50], 0x100d2de
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x70]
xor byte [rsp + rcx + 0x50], al
inc rcx
cmp rcx, 2
jb 0x180029c90
mov byte [rsp + 0x53], sil
lea rcx, [rsp + 0x50]
call fcn.180092510
cmp byte [0x180180a01], sil
je 0x180029cef
mov dword [rsp + 0x30], 0xfef6fed7
mov dword [rsp + 0x34], 0xf3f1fb
mov byte [rsp + 0x38], 1
mov rcx, rsi
lea eax, [rcx - 0x70]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 7
jb 0x180029cd0
mov byte [rsp + 0x38], sil
lea rcx, [rsp + 0x30]
call fcn.180092510
cmp byte [0x180180a02], sil
je 0x180029d3f
mov dword [rsp + 0x30], 0xfae4ffd9
mov dword [rsp + 0x34], 0xfbf4fce7
mov word [rsp + 0x38], 0xfd
mov byte [rsp + 0x3a], 1
mov rcx, rsi
nop word [rax + rax]
lea eax, [rcx - 0x70]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 9
jb 0x180029d20
mov byte [rsp + 0x3a], sil
lea rcx, [rsp + 0x30]
call fcn.180092510
cmp byte [0x1801807e0], sil
je 0x180029d7f
mov dword [rsp + 0x30], 0xc2c2d5
mov byte [rsp + 0x34], 1
mov rcx, rsi
nop dword [rax + rax]
lea eax, [rcx - 0x70]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 3
jb 0x180029d60
mov byte [rsp + 0x34], sil
lea rcx, [rsp + 0x30]
call fcn.180092510
cmp byte [0x180180a5d], sil
je 0x180029dbf
mov dword [rsp + 0x30], 0xfcfeffc5
mov dword [rsp + 0x34], 0x100fef7
mov rcx, rsi
nop dword [rax + rax]
lea eax, [rcx - 0x70]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 6
jb 0x180029da0
mov byte [rsp + 0x37], sil
lea rcx, [rsp + 0x30]
call fcn.180092510
cmp byte [0x180180a5f], sil
je 0x180029dff
mov dword [rsp + 0x30], 0xeaf8d6
mov byte [rsp + 0x34], 1
mov rcx, rsi
nop dword [rax + rax]
lea eax, [rcx - 0x70]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 3
jb 0x180029de0
mov byte [rsp + 0x34], sil
lea rcx, [rsp + 0x30]
call fcn.180092510
call fcn.18006f2c0
cmp byte [0x180180a07], sil
je 0x18002a166
mov ebx, esi
movss xmm6, dword [0x180137cc4]
mov rdx, qword [0x180184818]
mov rcx, qword [0x180184810]
cmp rcx, rdx
je 0x18002a166
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 0x180029e54
cvtpd2ps xmm6, xmm1
add rcx, 0x110
cmp rcx, rdx
jne 0x180029e32
test ebx, ebx
je 0x18002a166
movss xmm1, dword [0x1801847b8]
divss xmm1, dword [0x180137bf0]
addss xmm1, dword [0x1801847c0]
movss xmm0, dword [0x1801847c4]
mov rax, qword [0x180184690]
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 [0x180139880]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0xc2dad2e1
mov dword [rsp + 0x44], 0xc1c4c7f5
mov dword [rsp + 0x48], 0xc5fae7
mov byte [rsp + 0x4c], 1
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x70]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 0x1b
jb 0x180029f10
mov byte [rsp + 0x4c], sil
xor edx, edx
lea r8d, [rdx + 0x23]
lea rcx, [rsp + 0x30]
call fcn.18006cc30
test al, al
je 0x18002a161
mov dword [rsp + 0x30], 0xcffcbe
mov byte [rsp + 0x34], 1
cvttss2si edx, xmm6
lea rcx, [rbp + 0x10]
call fcn.18000eac0
mov rdi, rax
movdqa xmm0, xmmword [0x18013a180]
movdqu xmmword [rbp - 0x80], xmm0
movdqa xmm1, xmmword [0x180138ea0]
movdqu xmmword [rbp - 0x70], xmm1
mov dword [rbp - 0x60], 0x93c0d4c3
mov word [rbp - 0x5c], 0xef
mov byte [rbp - 0x5a], 1
mov edx, ebx
lea rcx, [rbp - 0x10]
call fcn.18000eac0
mov rbx, rax
cmp byte [rbp - 0x5a], 0
je 0x180029fb4
mov rcx, rsi
nop dword [rax]
lea eax, [rcx - 0x70]
xor byte [rbp + rcx - 0x80], al
inc rcx
cmp rcx, 0x25
jb 0x180029fa0
mov byte [rbp - 0x5a], 0
mov qword [rsp + 0x60], rsi
movdqa xmm0, xmmword [0x180137dd0]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov r8d, Ordinal_41
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.180040b10
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x180029fef
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.180051b30
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.180040a10
nop
mov r9, rdi
lea r8, [rbp - 0x50]
movzx edx, byte [rsp + 0x58]
lea rcx, [rbp - 0x30]
call fcn.180051c40
nop
cmp byte [rsp + 0x34], 0
je 0x18002a065
mov rcx, rsi
nop word [rax + rax]
lea eax, [rcx - 0x70]
xor byte [rsp + rcx + 0x30], al
inc rcx
cmp rcx, 3
jb 0x18002a050
mov byte [rsp + 0x34], 0
mov qword [rsp + 0x60], rsi
movdqa xmm0, xmmword [0x180137dd0]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov r8d, 3
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call fcn.180040b10
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.180051b30
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.180040a10
nop
lea rcx, [rbp - 0x30]
call fcn.180040a10
nop
lea rcx, [rbp - 0x50]
call fcn.180040a10
nop
lea rcx, [rbp - 0x10]
call fcn.180040a10
nop
lea rcx, [rbp + 0x10]
call fcn.180040a10
mov rcx, qword [0x1801804e8]
call fcn.18006f890
mov word [rsp + 0x50], 0x41
mov byte [rsp + 0x52], 0
lea rcx, [rsp + 0x50]
call fcn.180092510
call fcn.18006f930
movss xmm1, dword [0x180137d24]
xorps xmm0, xmm0
call fcn.1800729f0
lea rcx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
cmovae rcx, qword [rbp + 0x30]
call fcn.180092510
nop
lea rcx, [rbp + 0x30]
call fcn.180040a10
call fcn.18006f2c0
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.180112970
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