Function at 0x140087070
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
push rdi
sub rsp, 0x78
movzx eax, byte [rdx]
mov rbp, rdx
mov rdi, rcx
cmp eax, 8
ja case.default.0x1400870b4
mov qword [r11 + 0x18], rbx
lea rcx, [0x140000000]
mov qword [r11 - 0x18], rsi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x38], r15
mov edx, dword [rcx + rax*4 + 0x87864]
add rdx, rcx
jmp rdx
mov rax, qword [rbp + 8]
mov rcx, qword [rdi]
cmp qword [rax + 8], 0
mov rax, qword [rcx]
jne 0x1400870dc
mov r8d, 2
lea rdx, [0x140395710]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x140087782
test r8b, r8b
je 0x1400872bb
mov r8d, 2
lea rdx, [0x140395714]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r12d, dword [rsp + 0xb8]
lea r14, [rdi + 0x260]
mov r15d, dword [rsp + 0xb0]
add r12d, r15d
mov rdx, qword [rdi + 0x270]
mov r13d, r12d
cmp rdx, r13
jae 0x14008712c
add rdx, rdx
mov r8b, 0x20
mov rcx, r14
call fcn.14008a860
mov rax, qword [rbp + 8]
xor esi, esi
cmp qword [rax + 8], 1
mov rbx, qword [rax]
mov rbx, qword [rbx]
je 0x140087223
cmp qword [r14 + 0x18], 0x10
mov rdx, r14
mov rcx, qword [rdi]
jb 0x140087153
mov rdx, qword [r14]
mov rax, qword [rcx]
mov r8, r13
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
lea rdx, [rbx + 0x20]
mov rcx, rdi
call fcn.140089410
mov rcx, qword [rdi]
lea rdx, [0x140395718]
mov r8d, 3
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rbx + 0x40]
mov dword [rsp + 0x28], r12d
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8b, 1
mov rcx, rdi
call fcn.140087070
mov rcx, qword [rdi]
lea rdx, [0x14039571c]
mov r8d, 2
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rbx + 0x10]
inc rsi
cmp byte [rax + 0x19], 0
je 0x1400871e9
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400871e4
cmp rbx, qword [rax + 0x10]
jne 0x1400871e4
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400871d1
mov rbx, rax
jmp 0x14008720f
mov rcx, qword [rax]
mov rbx, rax
cmp byte [rcx + 0x19], 0
jne 0x14008720f
nop word [rax + rax]
mov rax, qword [rcx]
mov rbx, rcx
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140087200
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 8]
dec rcx
cmp rsi, rcx
jb 0x140087143
cmp qword [r14 + 0x18], 0x10
mov rdx, r14
mov rcx, qword [rdi]
jb 0x140087233
mov rdx, qword [r14]
mov rax, qword [rcx]
mov r8, r13
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
lea rdx, [rbx + 0x20]
mov rcx, rdi
call fcn.140089410
mov rcx, qword [rdi]
lea rdx, [0x140395718]
mov r8d, 3
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rbx + 0x40]
mov dword [rsp + 0x28], r12d
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8b, 1
mov rcx, rdi
call fcn.140087070
mov rcx, qword [rdi]
mov dl, 0xa
mov rax, qword [rcx]
call qword [rax]
cmp qword [r14 + 0x18], 0x10
mov rcx, qword [rdi]
jb 0x14008729b
mov r14, qword [r14]
mov rax, qword [rcx]
mov rdx, r14
mov r8d, dword [rsp + 0xb8]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi]
mov dl, 0x7d
mov rax, qword [rcx]
call qword [rax]
jmp 0x140087782
mov dl, 0x7b
call qword [rax]
mov rax, qword [rbp + 8]
xor esi, esi
mov r14d, dword [rsp + 0xb8]
mov r15d, dword [rsp + 0xb0]
cmp qword [rax + 8], 1
mov rbx, qword [rax]
mov rbx, qword [rbx]
je 0x1400873a3
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
lea rdx, [rbx + 0x20]
mov rcx, rdi
call fcn.140089410
mov rcx, qword [rdi]
lea rdx, [0x140395720]
mov r8d, 2
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rbx + 0x40]
mov dword [rsp + 0x28], r14d
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor r8d, r8d
mov rcx, rdi
call fcn.140087070
mov rcx, qword [rdi]
mov dl, 0x2c
mov rax, qword [rcx]
call qword [rax]
mov rax, qword [rbx + 0x10]
inc rsi
cmp byte [rax + 0x19], 0
je 0x140087368
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140087363
nop
cmp rbx, qword [rax + 0x10]
jne 0x140087363
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140087350
mov rbx, rax
jmp 0x14008738f
mov rcx, qword [rax]
mov rbx, rax
cmp byte [rcx + 0x19], 0
jne 0x14008738f
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rcx]
mov rbx, rcx
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140087380
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 8]
dec rcx
cmp rsi, rcx
jb 0x1400872e6
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
lea rdx, [rbx + 0x20]
mov rcx, rdi
call fcn.140089410
mov rcx, qword [rdi]
lea rdx, [0x140395720]
mov r8d, 2
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rbx + 0x40]
mov dword [rsp + 0x28], r14d
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor r8d, r8d
mov rcx, rdi
call fcn.140087070
mov rcx, qword [rdi]
mov dl, 0x7d
mov rax, qword [rcx]
call qword [rax]
jmp 0x140087782
mov rdx, qword [rbp + 8]
mov rcx, qword [rdi]
mov rax, qword [rdx + 8]
cmp qword [rdx], rax
mov rax, qword [rcx]
jne 0x140087422
mov r8d, 2
lea rdx, [0x140395614]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x140087782
test r8b, r8b
je 0x14008755e
mov r8d, 2
lea rdx, [0x140395724]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r14d, dword [rsp + 0xb0]
lea rsi, [rdi + 0x260]
mov r13d, dword [rsp + 0xb8]
mov rdx, qword [rdi + 0x270]
lea r15d, [r14 + r13]
mov r12d, r15d
cmp rdx, r12
jae 0x140087473
add rdx, rdx
mov r8b, 0x20
mov rcx, rsi
call fcn.14008a860
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 8]
mov rbx, qword [rax]
sub rcx, 0x10
cmp rbx, rcx
je 0x1400874ef
nop word [rax + rax]
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
mov rcx, qword [rdi]
jb 0x1400874a0
mov rdx, qword [rsi]
mov rax, qword [rcx]
mov r8, r12
call qword [rax + reloc.WS2_32.dll_htonl]
xor r9d, r9d
mov dword [rsp + 0x28], r15d
mov r8b, 1
mov dword [rsp + 0x20], r14d
mov rdx, rbx
mov rcx, rdi
call fcn.140087070
mov rcx, qword [rdi]
lea rdx, [0x14039571c]
mov r8d, 2
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rbp + 8]
add rbx, 0x10
mov rax, qword [rax + 8]
sub rax, 0x10
cmp rbx, rax
jne 0x140087490
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
mov rcx, qword [rdi]
jb 0x1400874ff
mov rdx, qword [rsi]
mov rax, qword [rcx]
mov r8, r12
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rbp + 8]
xor r9d, r9d
mov dword [rsp + 0x28], r15d
mov r8b, 1
mov rcx, rdi
mov dword [rsp + 0x20], r14d
mov rdx, qword [rax + 8]
sub rdx, 0x10
call fcn.140087070
mov rcx, qword [rdi]
mov dl, 0xa
mov rax, qword [rcx]
call qword [rax]
cmp qword [rsi + 0x18], 0x10
mov rcx, qword [rdi]
jb 0x140087543
mov rsi, qword [rsi]
mov rax, qword [rcx]
mov r8, r13
mov rdx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi]
mov dl, 0x5d
mov rax, qword [rcx]
call qword [rax]
jmp 0x140087782
mov dl, 0x5b
call qword [rax]
mov rdx, qword [rbp + 8]
mov esi, dword [rsp + 0xb8]
mov r14d, dword [rsp + 0xb0]
mov rax, qword [rdx + 8]
mov rbx, qword [rdx]
sub rax, 0x10
cmp rbx, rax
je 0x1400875c9
nop word [rax + rax]
mov dword [rsp + 0x28], esi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov rdx, rbx
mov rcx, rdi
call fcn.140087070
mov rcx, qword [rdi]
mov dl, 0x2c
mov rax, qword [rcx]
call qword [rax]
mov rdx, qword [rbp + 8]
add rbx, 0x10
mov rax, qword [rdx + 8]
sub rax, 0x10
cmp rbx, rax
jne 0x140087590
mov rdx, qword [rdx + 8]
xor r9d, r9d
sub rdx, 0x10
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov rcx, rdi
call fcn.140087070
mov rcx, qword [rdi]
mov dl, 0x5d
mov rax, qword [rcx]
call qword [rax]
jmp 0x140087782
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
mov rdx, qword [rbp + 8]
mov rcx, rdi
call fcn.140089410
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
jmp 0x140087782
cmp byte [rbp + 8], 0
mov rcx, qword [rdi]
mov rax, qword [rcx]
je 0x14008763d
mov r8d, 4
lea rdx, str.true
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x140087782
mov r8d, 5
lea rdx, str.false
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x140087782
mov r9, qword [rbp + 8]
test r9, r9
je 0x1400876d5
mov r11, r9
lea rbx, [rdi + 0x10]
shr r11, 0x3f
mov r10, rbx
xor esi, esi
movabs rbp, 0x6666666666666667
nop word [rax + rax]
mov rax, rbp
lea r10, [r10 + 1]
imul r9
inc rsi
mov r8, rdx
sar r8, 2
mov rcx, r8
shr rcx, 0x3f
add r8, rcx
lea ecx, [r8 + r8*4]
add ecx, ecx
sub r9d, ecx
mov eax, r9d
mov r9, r8
cdq
xor eax, edx
sub eax, edx
add al, 0x30
mov byte [r10 - 1], al
test r8, r8
jne 0x140087680
test r11b, r11b
je 0x140087733
mov byte [rdi + rsi + 0x10], 0x2d
inc rsi
jmp 0x140087733
mov r8, qword [rbp + 8]
test r8, r8
jne 0x1400876e4
mov rcx, qword [rdi]
mov dl, 0x30
mov rax, qword [rcx]
call qword [rax]
jmp 0x140087782
lea rbx, [rdi + 0x10]
xor esi, esi
mov r10, rbx
movabs r11, 0xcccccccccccccccd
nop word [rax + rax]
mov rax, r11
lea r10, [r10 + 1]
mul r8
inc rsi
mov r9, rdx
shr r9, 3
lea ecx, [r9 + r9*4]
add ecx, ecx
sub r8d, ecx
mov eax, r8d
mov r8, r9
cdq
xor eax, edx
sub eax, edx
add al, 0x30
mov byte [r10 - 1], al
test r9, r9
jne 0x140087700
lea rdx, [rsi + rbx]
mov rcx, rbx
call fcn.1400b60e4
mov rcx, qword [rdi]
mov r8, rsi
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x140087782
movaps xmmword [rsp + 0x40], xmm6
movsd xmm6, qword [rbp + 8]
movaps xmm0, xmm6
call fcn.1402a9510
test ax, ax
jle 0x1400877aa
mov rcx, qword [rdi]
lea rdx, str.null
mov r8d, 4
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
movaps xmm6, xmmword [rsp + 0x40]
mov r14, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0xa0]
mov r15, qword [rsp + 0x50]
add rsp, 0x78
pop rdi
pop rbp
ret
lea r14, [rdi + 0x10]
movaps xmm0, xmm6
mov rbx, r14
call fcn.1402a952c
test eax, eax
je 0x1400877cc
xorps xmm6, xmmword [0x1403983e0]
lea rbx, [r14 + 1]
mov byte [r14], 0x2d
xorps xmm0, xmm0
ucomisd xmm6, xmm0
jp 0x1400877e6
jne 0x1400877e6
mov word [rbx], 0x2e30
lea rax, [rbx + 3]
mov byte [rbx + 2], gethostbyaddr
jmp 0x140087816
xor esi, esi
lea r8, [rsp + 0x30]
movaps xmm3, xmm6
mov dword [rsp + 0x34], esi
lea rdx, [rsp + 0x34]
mov dword [rsp + 0x30], esi
mov rcx, rbx
call fcn.140094ce0
mov r8d, dword [rsp + 0x30]
mov rcx, rbx
mov edx, dword [rsp + 0x34]
call fcn.140080310
mov rcx, qword [rdi]
sub rax, r14
mov r8, rax
mov rdx, r14
mov r9, qword [rcx]
call qword [r9 + reloc.WS2_32.dll_htonl]
jmp 0x14008777d
mov rcx, qword [rdi]
lea rdx, str._discarded_
mov r8d, reloc.WS2_32.dll_inet_addr
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x140087782
mov rcx, qword [rdi]
lea rdx, str.null
mov r8d, 4
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x140087782