Function at 0x18002d860
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
movaps xmmword [rax - 0x38], xmm6
mov r13d, r9d
mov r14, r8
mov rbx, rdx
mov rsi, rcx
cmp dword [rsp + 0xf8], 0xffffffff
je 0x18002db42
cmp byte [0x18010a364], 0
je 0x18002d94a
movdqa xmm6, xmmword [0x1800ec090]
mov dword [rax - 0x78], 0x7aaab159
mov dword [rax - 0x74], 0xbce586de
mov word [rax - 0x70], 0xca05
mov rdx, qword gs:[0x58]
mov eax, dword [0x18010bb98]
mov r14d, 4
mov rax, qword [rdx + rax*8]
mov eax, dword [r14 + rax]
cmp dword [0x18010d1b0], eax
jg 0x18002db66
xor edi, edi
lea r8, [0x180106200]
movabs r15, 0xd993efbb19cfe32d
cmp byte [0x18010621b], dil
je 0x18002d933
mov edx, edi
nop dword [rax]
movzx ecx, dl
and cl, 7
shl cl, 3
mov rax, r15
shr rax, cl
xor byte [rdx + r8], al
inc rdx
cmp rdx, 0x1b
jb 0x18002d910
mov byte [0x18010621b], dil
mov rdx, r8
mov ecx, 5
call fcn.18006a848
mov r14, qword [rsp + 0xe0]
jmp 0x18002d956
xor edi, edi
movabs r15, 0xd993efbb19cfe32d
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1800072b8
movzx ecx, word [rsi + 0xf2]
call qword [sym.imp.WS2_32.dll_ntohs]
cmp word [rsp + 0x58], ax
jne 0x18002db42
mov qword [rsp + 0x68], rdi
mov r8, rdi
mov qword [rsp + 0x78], rdi
mov r9d, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x80], r9
mov byte [rsp + 0x68], 0
mov esi, edi
mov r12, qword [rsp + 0xf0]
cmp esi, r13d
jae 0x18002da50
mov edx, dword [r12]
cmp r8, rdx
jae 0x18002da50
sub edx, dword [rsp + 0x78]
mov dword [rsp + 0xf8], edx
mov ecx, esi
shl rcx, 4
add rcx, r14
lea rax, [rsp + 0xf8]
cmp edx, dword [rcx]
cmovae rax, rcx
mov r14d, dword [rax]
mov rdx, qword [rcx + 8]
mov rax, r9
sub rax, r8
cmp r14, rax
ja 0x18002da1c
lea rax, [r8 + r14]
mov qword [rsp + 0x78], rax
lea rbx, [rsp + 0x68]
cmp r9, 0x10
cmovae rbx, qword [rsp + 0x68]
add rbx, r8
mov r8d, r14d
mov rcx, rbx
call fcn.18009fc20
mov byte [rbx + r14], 0
jmp 0x18002da34
mov qword [rsp + 0x20], r14
mov r9, rdx
xor r8d, r8d
mov rdx, r14
lea rcx, [rsp + 0x68]
call fcn.1800037a0
inc esi
mov r9, qword [rsp + 0x80]
mov r8, qword [rsp + 0x78]
mov r14, qword [rsp + 0xe0]
jmp 0x18002d9a5
cmp byte [0x18010a364], 0
je 0x18002db08
lea rbx, [rsp + 0x68]
cmp r9, 0x10
cmovae rbx, qword [rsp + 0x68]
mov dword [rsp + 0x40], 0x2a9fac7d
mov dword [rsp + 0x44], 0xadf28b9b
mov dword [rsp + 0x48], 0x3cefd94c
mov word [rsp + 0x4c], 0xefc8
mov rcx, qword gs:[0x58]
mov eax, dword [0x18010bb98]
mov edx, 4
mov rcx, qword [rcx + rax*8]
mov eax, dword [rdx + rcx]
cmp dword [0x18010d194], eax
jg 0x18002dbc6
lea rdx, [0x1801061b0]
cmp byte [0x1801061be], 0
je 0x18002daf3
nop dword [rax]
nop word [rax + rax]
movzx ecx, dil
and cl, 7
shl cl, 3
mov rax, r15
shr rax, cl
xor byte [rdi + rdx], al
inc rdi
cmp rdi, 0xe
jb 0x18002dad0
mov byte [0x1801061be], 0
mov r8, rbx
mov ecx, 5
call fcn.18006a848
mov r9, qword [rsp + 0x80]
cmp r9, 0x10
jb 0x18002db42
lea rdx, [r9 + 1]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002db3c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002dc28
call fcn.18009d1f4
nop
mov al, 1
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, [0x18010d1b0]
call fcn.18009d704
cmp dword [0x18010d1b0], 0xffffffff
jne 0x18002d8ef
mov word [0x18010621a], 0x1cf
movaps xmmword [0x180106200], xmm6
movsd xmm0, qword [rsp + 0x50]
movsd qword [0x180106210], xmm0
movzx eax, word [rsp + 0x58]
mov word [0x180106218], ax
lea rcx, [0x1800ce1d0]
call fcn.18009d564
lea rcx, [0x18010d1b0]
call fcn.18009d6a4
jmp 0x18002d8ef
lea rcx, [0x18010d194]
call fcn.18009d704
cmp dword [0x18010d194], 0xffffffff
jne 0x18002dab2
mov byte [0x1801061be], 1
movsd xmm0, qword [rsp + 0x40]
movsd qword [0x1801061b0], xmm0
mov eax, dword [rsp + 0x48]
mov dword [0x1801061b8], eax
movzx eax, word [rsp + 0x4c]
mov word [0x1801061bc], ax
lea rcx, [0x1800ce1b0]
call fcn.18009d564
lea rcx, [0x18010d194]
call fcn.18009d6a4
nop
jmp 0x18002dab2
call fcn.1800a45b8
int3