Function at 0x1400f1400
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
push rdi
push r14
sub rsp, 0x50
movzx eax, byte [rdx]
movzx r14d, r9b
mov rbp, rdx
mov rdi, rcx
cmp eax, 8
ja case.default.0x1400f1447
mov qword [r11 + 8], rbx
lea rcx, [0x140000000]
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], r12
mov qword [r11 - 0x20], r13
mov qword [r11 - 0x28], r15
mov r10d, dword [rcx + rax*4 + 0xf1bc4]
add r10, rcx
jmp r10
mov rax, qword [rdx + 8]
mov rcx, qword [rdi]
cmp qword [rax + 8], 0
mov r9, qword [rcx]
jne 0x1400f1471
mov r8d, 2
lea rdx, [0x1402707bc]
call qword [r9 + reloc.WS2_32.dll_htonl]
jmp 0x1400f1b42
test r8b, r8b
je 0x1400f165d
mov r8d, 2
lea rdx, [0x1402707c0]
call qword [r9 + reloc.WS2_32.dll_htonl]
mov r12d, dword [rsp + 0x90]
mov r15d, dword [rsp + 0x98]
mov rdx, qword [rdi + 0x270]
lea r13d, [r12 + r15]
mov r8d, r13d
cmp rdx, r8
jae 0x1400f14e6
lea rcx, [rdi + 0x260]
add rdx, rdx
mov rax, qword [rcx + 0x10]
cmp rdx, rax
ja 0x1400f14d8
cmp qword [rcx + 0x18], 0x10
mov rax, rcx
jb 0x1400f14ce
mov rax, qword [rcx]
mov qword [rcx + 0x10], rdx
mov byte [rax + rdx], 0
jmp 0x1400f14e6
sub rdx, rax
mov r8b, 0x20
call fcn.140044030
mov r8d, r13d
mov rax, qword [rbp + 8]
xor esi, esi
mov rbx, qword [rax]
mov rax, qword [rax + 8]
mov rbx, qword [rbx]
mov qword [rsp + 0x78], rbx
cmp rax, 1
je 0x1400f15be
nop word [rax + rax]
cmp qword [rdi + 0x278], 0x10
lea rdx, [rdi + 0x260]
mov rcx, qword [rdi]
mov rax, qword [rcx]
jb 0x1400f152e
mov rdx, qword [rdi + 0x260]
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]
movzx r8d, r14b
mov rcx, rdi
call fcn.1400f1bf0
mov rcx, qword [rdi]
lea rdx, [0x1402707c4]
mov r8d, 3
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rbx + 0x40]
mov dword [rsp + 0x28], r13d
movzx r9d, r14b
mov dword [rsp + 0x20], r12d
mov r8b, 1
mov rcx, rdi
call fcn.1400f1400
mov rcx, qword [rdi]
lea rdx, [0x1402707c8]
mov r8d, 2
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rcx, [rsp + 0x78]
inc rsi
call fcn.1400ebbd0
mov rax, qword [rbp + 8]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rax + 8]
dec rcx
cmp rsi, rcx
jae 0x1400f15be
mov r8d, r13d
jmp 0x1400f1510
mov rcx, qword [rdi]
lea rsi, [rdi + 0x260]
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
mov rax, qword [rcx]
jb 0x1400f15d8
mov rdx, qword [rsi]
mov r8d, r13d
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]
movzx r8d, r14b
mov rcx, rdi
call fcn.1400f1bf0
mov rcx, qword [rdi]
lea rdx, [0x1402707c4]
mov r8d, 3
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rbx + 0x40]
mov dword [rsp + 0x28], r13d
movzx r9d, r14b
mov dword [rsp + 0x20], r12d
mov r8b, 1
mov rcx, rdi
call fcn.1400f1400
mov rcx, qword [rdi]
mov dl, 0xa
mov rax, qword [rcx]
call qword [rax]
cmp qword [rsi + 0x18], 0x10
mov rcx, qword [rdi]
mov rax, qword [rcx]
jb 0x1400f1645
mov rsi, qword [rsi]
mov r8d, r15d
mov rdx, rsi
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi]
mov dl, 0x7d
mov rax, qword [rcx]
call qword [rax]
jmp 0x1400f1b42
mov dl, 0x7b
call qword [r9]
mov rax, qword [rbp + 8]
xor esi, esi
mov r15d, dword [rsp + 0x98]
mov r12d, dword [rsp + 0x90]
mov rbx, qword [rax]
mov rax, qword [rax + 8]
mov rbx, qword [rbx]
mov qword [rsp + 0x78], rbx
cmp rax, 1
je 0x1400f170a
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
lea rdx, [rbx + 0x20]
movzx r8d, r14b
mov rcx, rdi
call fcn.1400f1bf0
mov rcx, qword [rdi]
lea rdx, [0x1402707cc]
mov r8d, 2
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rbx + 0x40]
mov dword [rsp + 0x28], r15d
movzx r9d, r14b
mov dword [rsp + 0x20], r12d
xor r8d, r8d
mov rcx, rdi
call fcn.1400f1400
mov rcx, qword [rdi]
mov dl, 0x2c
mov rax, qword [rcx]
call qword [rax]
lea rcx, [rsp + 0x78]
inc rsi
call fcn.1400ebbd0
mov rax, qword [rbp + 8]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rax + 8]
dec rcx
cmp rsi, rcx
jb 0x1400f1691
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
lea rdx, [rbx + 0x20]
movzx r8d, r14b
mov rcx, rdi
call fcn.1400f1bf0
mov rcx, qword [rdi]
lea rdx, [0x1402707cc]
mov r8d, 2
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rbx + 0x40]
mov dword [rsp + 0x28], r15d
movzx r9d, r14b
mov dword [rsp + 0x20], r12d
xor r8d, r8d
mov rcx, rdi
call fcn.1400f1400
mov rcx, qword [rdi]
mov dl, 0x7d
mov rax, qword [rcx]
call qword [rax]
jmp 0x1400f1b42
mov rdx, qword [rdx + 8]
mov rcx, qword [rdi]
mov rax, qword [rdx + 8]
mov r9, qword [rcx]
cmp qword [rdx], rax
jne 0x1400f178f
mov r8d, 2
lea rdx, [0x1402707d0]
call qword [r9 + reloc.WS2_32.dll_htonl]
jmp 0x1400f1b42
test r8b, r8b
je 0x1400f1902
mov r8d, 2
lea rdx, [0x1402707d4]
call qword [r9 + reloc.WS2_32.dll_htonl]
mov r15d, dword [rsp + 0x90]
mov esi, dword [rsp + 0x98]
mov rdx, qword [rdi + 0x270]
lea r12d, [r15 + rsi]
mov r13d, r12d
cmp rdx, r13
jae 0x1400f1800
lea rcx, [rdi + 0x260]
add rdx, rdx
mov rax, qword [rcx + 0x10]
cmp rdx, rax
ja 0x1400f17f5
cmp qword [rcx + 0x18], 0x10
mov rax, rcx
jb 0x1400f17eb
mov rax, qword [rcx]
mov qword [rcx + 0x10], rdx
mov byte [rax + rdx], 0
jmp 0x1400f1800
sub rdx, rax
mov r8b, 0x20
call fcn.140044030
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 8]
mov rbx, qword [rax]
sub rcx, 0x10
cmp rbx, rcx
je 0x1400f188b
nop dword [rax]
nop dword [rax + rax]
cmp qword [rdi + 0x278], 0x10
lea rdx, [rdi + 0x260]
mov rcx, qword [rdi]
mov rax, qword [rcx]
jb 0x1400f183e
mov rdx, qword [rdi + 0x260]
mov r8, r13
call qword [rax + reloc.WS2_32.dll_htonl]
movzx r9d, r14b
mov dword [rsp + 0x28], r12d
mov r8b, 1
mov dword [rsp + 0x20], r15d
mov rdx, rbx
mov rcx, rdi
call fcn.1400f1400
mov rcx, qword [rdi]
lea rdx, [0x1402707c8]
mov r8d, 2
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rbp + 8]
add rbx, 0x10
mov rcx, qword [rax + 8]
sub rcx, 0x10
cmp rbx, rcx
jne 0x1400f1820
mov rcx, qword [rdi]
lea rbx, [rdi + 0x260]
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
mov rax, qword [rcx]
jb 0x1400f18a5
mov rdx, qword [rbx]
mov r8, r13
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rbp + 8]
movzx r9d, r14b
mov dword [rsp + 0x28], r12d
mov r8b, 1
mov rcx, rdi
mov dword [rsp + 0x20], r15d
mov rdx, qword [rax + 8]
sub rdx, 0x10
call fcn.1400f1400
mov rcx, qword [rdi]
mov dl, 0xa
mov rax, qword [rcx]
call qword [rax]
cmp qword [rbx + 0x18], 0x10
mov rcx, qword [rdi]
mov rax, qword [rcx]
jb 0x1400f18ea
mov rbx, qword [rbx]
mov r8d, esi
mov rdx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi]
mov dl, 0x5d
mov rax, qword [rcx]
call qword [rax]
jmp 0x1400f1b42
mov dl, 0x5b
call qword [r9]
mov rdx, qword [rbp + 8]
mov esi, dword [rsp + 0x98]
mov r15d, dword [rsp + 0x90]
mov rax, qword [rdx + 8]
mov rbx, qword [rdx]
sub rax, 0x10
cmp rbx, rax
je 0x1400f196a
nop word [rax + rax]
mov dword [rsp + 0x28], esi
movzx r9d, r14b
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov rdx, rbx
mov rcx, rdi
call fcn.1400f1400
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 0x1400f1930
mov rdx, qword [rdx + 8]
movzx r9d, r14b
sub rdx, 0x10
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov rcx, rdi
call fcn.1400f1400
mov rcx, qword [rdi]
mov dl, 0x5d
mov rax, qword [rcx]
call qword [rax]
jmp 0x1400f1b42
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
mov rdx, qword [rbp + 8]
movzx r8d, r14b
mov rcx, rdi
call fcn.1400f1bf0
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
jmp 0x1400f1b42
cmp byte [rdx + 8], 0
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov r9, qword [rax + 8]
je 0x1400f19e7
mov r8d, 4
lea rdx, str.true
call r9
jmp 0x1400f1b42
mov r8d, 5
lea rdx, str.false
call r9
jmp 0x1400f1b42
mov r10, qword [rdx + 8]
mov r9, r10
test r10, r10
je 0x1400f1a91
xor esi, esi
lea rbx, [rdi + 0x10]
movabs r11, 0x6666666666666667
nop dword [rax]
mov rax, r11
imul r9
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 [rsi + rbx], al
inc rsi
test r8, r8
jne 0x1400f1a20
test r10, r10
jg 0x1400f1a65
mov byte [rsi + rdi + 0x10], 0x2d
inc rsi
lea rdx, [rsi + rbx]
mov rcx, rbx
call fcn.1401c1858
mov rcx, qword [rdi]
mov r8, rsi
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x1400f1b42
mov r10, qword [rdx + 8]
mov r9, r10
test r10, r10
jne 0x1400f1aa0
mov rcx, qword [rdi]
mov dl, 0x30
mov rax, qword [rcx]
call qword [rax]
jmp 0x1400f1b42
xor esi, esi
lea rbx, [rdi + 0x10]
movabs r11, 0xcccccccccccccccd
mov rax, r11
mul r9
mov r8, rdx
shr r8, 3
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 [rsi + rbx], al
inc rsi
test r8, r8
jne 0x1400f1ab0
test r10, r10
jne 0x1400f1aeb
mov byte [rsi + rdi + 0x10], 0x2d
inc rsi
lea rdx, [rsi + rbx]
mov rcx, rbx
call fcn.1401c1858
mov rcx, qword [rdi]
mov r8, rsi
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x1400f1b42
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x78]
movsd xmm6, qword [rdx + 8]
movsd qword [rsp + 0x78], xmm6
call fcn.14021293c
test ax, ax
jle 0x1400f1b6a
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 + 0x30]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x40]
add rsp, 0x50
pop r14
pop rdi
pop rbp
ret
lea rbx, [rdi + 0x10]
movaps xmm2, xmm6
lea rdx, [rbx + 0x40]
mov rcx, rbx
call fcn.1400e29a0
mov rcx, qword [rdi]
sub rax, rbx
mov r8, rax
mov rdx, rbx
mov r9, qword [rcx]
call qword [r9 + reloc.WS2_32.dll_htonl]
jmp 0x1400f1b3d
mov rcx, qword [rdi]
lea rdx, str._discarded_
mov r8d, ntohl
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x1400f1b42
mov rcx, qword [rdi]
lea rdx, str.null
mov r8d, 4
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x1400f1b42