Function at 0x18001d890
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1801561e0]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r14, rdx
mov rsi, rcx
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rdx
movdqa xmm0, xmmword [0x18013a120]
movdqu xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x180138f00]
movdqu xmmword [rsp + 0x50], xmm1
mov word [rsp + 0x60], 0x100
xor ebx, ebx
mov ecx, ebx
nop dword [rax]
lea eax, [rcx - 0x46]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 0x20
jb 0x18001d8f0
mov byte [rsp + 0x61], bl
mov qword [rsp + 0x70], rbx
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], reloc.WS2_32.dll_ntohs
mov r8d, reloc.WLDAP32.dll_Ordinal_32
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.180040f40
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x30]
call fcn.180018a90
nop
mov dword [rsp + 0x68], 0xf4f0f5f5
mov dword [rsp + 0x6c], 0x100faf0
mov rcx, rbx
nop dword [rax]
lea eax, [rcx - 0x46]
xor byte [rsp + rcx + 0x68], al
inc rcx
cmp rcx, 6
jb 0x18001d950
mov byte [rsp + 0x6f], 0
mov qword [rbp - 0x10], rbx
mov qword [rbp], rbx
mov qword [rbp + 8], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x10], 0
mov r8d, 6
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x10]
call fcn.180040f40
nop
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rcx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
cmp r8, qword [rbp]
jne 0x18001da15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18001da15
movdqa xmm0, xmmword [0x18013a120]
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 0xf8e2f3f3
mov word [rsp + 0x54], 0xfe
mov byte [rsp + 0x56], 1
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x46]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 0x15
jb 0x18001d9f0
mov byte [rsp + 0x56], 0
mov r8d, reloc.WS2_32.dll_setsockopt
lea rdx, [rsp + 0x40]
jmp 0x18001dc90
movdqa xmm0, xmmword [0x18013a120]
movdqu xmmword [rbp - 0x68], xmm0
movdqa xmm1, xmmword [0x180138bc0]
movdqu xmmword [rbp - 0x58], xmm1
mov dword [rbp - 0x48], 0x9f859d91
mov word [rbp - 0x44], 0x9a
mov byte [rbp - 0x42], 1
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x46]
xor byte [rbp + rcx - 0x68], al
inc rcx
cmp rcx, 0x25
jb 0x18001da50
mov byte [rbp - 0x42], 0
mov qword [rsp + 0x70], rbx
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], reloc.WS2_32.dll_ntohs
mov r8d, Ordinal_41
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x70]
call fcn.180040f40
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.180018a90
mov rdi, rax
lea rax, [rbp - 0x30]
cmp rax, rdi
je 0x18001dacb
lea rcx, [rbp - 0x30]
call fcn.180040e40
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x20], xmm1
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
lea rcx, [rsp + 0x40]
call fcn.180040e40
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rcx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
cmp r8, qword [rbp]
jne 0x18001db45
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18001db45
movdqa xmm0, xmmword [0x18013a120]
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 0xf8e2f3f3
mov dword [rsp + 0x54], 0xe9e8f5fe
mov dword [rsp + 0x58], 0x100e3ea
mov rcx, rbx
nop dword [rax]
lea eax, [rcx - 0x46]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 0x1a
jb 0x18001db30
jmp 0x18001dc80
movdqa xmm0, xmmword [0x180139830]
movdqu xmmword [rbp - 0x68], xmm0
movdqa xmm1, xmmword [0x180138bb0]
movdqu xmmword [rbp - 0x58], xmm1
mov dword [rbp - 0x48], 0x9f859d91
mov word [rbp - 0x44], 0x9a
mov byte [rbp - 0x42], 1
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x46]
xor byte [rbp + rcx - 0x68], al
inc rcx
cmp rcx, 0x25
jb 0x18001db80
mov byte [rbp - 0x42], 0
mov qword [rsp + 0x70], rbx
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], reloc.WS2_32.dll_ntohs
mov r8d, Ordinal_41
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x70]
call fcn.180040f40
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.180018a90
mov rdi, rax
lea rax, [rbp - 0x30]
cmp rax, rdi
je 0x18001dbfb
lea rcx, [rbp - 0x30]
call fcn.180040e40
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x20], xmm1
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
lea rcx, [rsp + 0x40]
call fcn.180040e40
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rcx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
cmp r8, qword [rbp]
jne 0x18001dee6
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18001dee6
movdqa xmm0, xmmword [0x180139830]
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], 0xa2afe5b3
mov dword [rsp + 0x54], 0xe5e8f5a3
mov dword [rsp + 0x58], 0x100e0e6
mov rcx, rbx
nop word [rax + rax]
lea eax, [rcx - 0x46]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 0x1a
jb 0x18001dc70
lea rdx, [rsp + 0x40]
mov r8d, reloc.WLDAP32.dll_Ordinal_26
mov byte [rsp + 0x5b], 0
movdqa xmm0, xmmword [0x180137e20]
mov qword [rsp + 0x70], rbx
movdqu xmmword [rbp - 0x80], xmm0
lea rcx, [rsp + 0x70]
call fcn.180040f40
lea rcx, [0x1801809a0]
call fcn.180040e40
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [0x1801809a0], xmm0
movups xmm1, xmmword [rbp - 0x80]
movdqa xmm0, xmmword [0x180137e20]
movaps xmmword [0x1801809b0], xmm1
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
lea rcx, [rsp + 0x70]
call fcn.180040e40
mov dword [rsp + 0x40], 0xf3efee95
mov dword [rsp + 0x44], 0x88f9fc
mov byte [rsp + 0x48], 1
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x46]
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 7
jb 0x18001dd10
mov byte [rsp + 0x48], 0
mov rdx, qword [0x1801809b0]
lea rax, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x18001dd40
movabs rax, 0x7fffffffffffffff
sub rax, rdx
cmp rax, rcx
jb 0x18001df31
lea r9, [0x1801809a0]
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae r9, qword [0x1801809a0]
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea r8, [0x1801809a0]
movzx edx, byte [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.1800522c0
mov ecx, 3
call fcn.1800bdc40
call fcn.1800bd970
mov rdi, rax
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], reloc.WS2_32.dll_ntohs
lea r8, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae r8, qword [rsp + 0x70]
mov edx, 0x2712
mov rcx, rax
call fcn.1800c0810
xor r8d, r8d
lea edx, [r8 + 0x40]
mov rcx, rdi
call fcn.1800c0810
movdqa xmm0, xmmword [0x180139d80]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x50], 0x100
nop dword [rax]
nop word [rax + rax]
lea eax, [rbx - 0x46]
xor byte [rsp + rbx + 0x40], al
inc rbx
cmp rbx, 0x10
jb 0x18001de10
mov byte [rsp + 0x51], 0
lea r8, [rsp + 0x40]
mov edx, 0x2722
mov rcx, rdi
call fcn.1800c0810
lea r8, [0x180018a60]
mov edx, 0x4e2b
mov rcx, rdi
call fcn.1800c0810
lea r8, [rbp + 0x10]
mov edx, 0x2711
mov rcx, rdi
call fcn.1800c0810
mov rcx, rdi
call fcn.1800bda50
mov rcx, rdi
call fcn.1800bd950
call fcn.1800bdbe0
lea rcx, [rsp + 0x70]
call fcn.180040e40
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x18001de88
mov rdx, qword [rsi]
lea rcx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
cmovae rcx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x20]
cmp r8, qword [rsi + 0x10]
jne 0x18001dedc
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18001dedc
lea rcx, [rbp + 0x10]
call fcn.180040e40
nop
lea rcx, [rbp - 0x10]
call fcn.180040e40
nop
lea rcx, [rbp - 0x30]
call fcn.180040e40
nop
mov rcx, rsi
call fcn.180040e40
nop
mov rcx, r14
call fcn.180040e40
mov al, 1
jmp 0x18001df0d
lea rcx, [rbp + 0x10]
call fcn.180040e40
nop
lea rcx, [rbp - 0x10]
call fcn.180040e40
nop
lea rcx, [rbp - 0x30]
call fcn.180040e40
nop
mov rcx, rsi
call fcn.180040e40
nop
mov rcx, r14
call fcn.180040e40
xor al, al
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.180112f90
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.18000c960
nop
int3