Function at 0x14003dd50
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.0x14003dd97
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 + 0x3e4c4]
add r10, rcx
jmp r10
mov rax, qword [rdx + 8]
mov rcx, qword [rdi]
cmp qword [rax + 8], 0
mov r9, qword [rcx]
jne 0x14003ddc1
mov r8d, 2
lea rdx, [0x14025548c]
call qword [r9 + reloc.WS2_32.dll_htonl]
jmp 0x14003e442
test r8b, r8b
je 0x14003df8d
mov r8d, 2
lea rdx, [0x140255490]
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 0x14003de13
lea rcx, [rdi + 0x260]
add rdx, rdx
mov r8b, 0x20
call fcn.140055360
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 0x14003deee
nop dword [rax]
nop word [rax + rax]
cmp qword [rdi + 0x278], 0x10
lea rdx, [rdi + 0x260]
mov rcx, qword [rdi]
mov rax, qword [rcx]
jb 0x14003de5e
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.14003e4f0
mov rcx, qword [rdi]
lea rdx, [0x140255494]
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.14003dd50
mov rcx, qword [rdi]
lea rdx, [0x140255498]
mov r8d, 2
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rcx, [rsp + 0x78]
inc rsi
call fcn.14002ecf0
mov rax, qword [rbp + 8]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rax + 8]
dec rcx
cmp rsi, rcx
jae 0x14003deee
mov r8d, r13d
jmp 0x14003de40
mov rcx, qword [rdi]
lea rsi, [rdi + 0x260]
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
mov rax, qword [rcx]
jb 0x14003df08
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.14003e4f0
mov rcx, qword [rdi]
lea rdx, [0x140255494]
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.14003dd50
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 0x14003df75
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 0x14003e442
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 0x14003e03a
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.14003e4f0
mov rcx, qword [rdi]
lea rdx, [0x14025549c]
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.14003dd50
mov rcx, qword [rdi]
mov dl, 0x2c
mov rax, qword [rcx]
call qword [rax]
lea rcx, [rsp + 0x78]
inc rsi
call fcn.14002ecf0
mov rax, qword [rbp + 8]
mov rbx, qword [rsp + 0x78]
mov rcx, qword [rax + 8]
dec rcx
cmp rsi, rcx
jb 0x14003dfc1
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.14003e4f0
mov rcx, qword [rdi]
lea rdx, [0x14025549c]
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.14003dd50
mov rcx, qword [rdi]
mov dl, 0x7d
mov rax, qword [rcx]
call qword [rax]
jmp 0x14003e442
mov rdx, qword [rdx + 8]
mov rcx, qword [rdi]
mov rax, qword [rdx + 8]
mov r9, qword [rcx]
cmp qword [rdx], rax
jne 0x14003e0bf
mov r8d, 2
lea rdx, [0x1402554a0]
call qword [r9 + reloc.WS2_32.dll_htonl]
jmp 0x14003e442
test r8b, r8b
je 0x14003e203
mov r8d, 2
lea rdx, [0x1402554a4]
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 0x14003e10d
lea rcx, [rdi + 0x260]
add rdx, rdx
mov r8b, 0x20
call fcn.140055360
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 8]
mov rbx, qword [rax]
sub rcx, 0x10
cmp rbx, rcx
je 0x14003e18c
cmp qword [rdi + 0x278], 0x10
lea rdx, [rdi + 0x260]
mov rcx, qword [rdi]
mov rax, qword [rcx]
jb 0x14003e13f
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.14003dd50
mov rcx, qword [rdi]
lea rdx, [0x140255498]
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 0x14003e121
mov rcx, qword [rdi]
lea rbx, [rdi + 0x260]
cmp qword [rbx + 0x18], 0x10
mov rdx, rbx
mov rax, qword [rcx]
jb 0x14003e1a6
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.14003dd50
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 0x14003e1eb
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 0x14003e442
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 0x14003e26a
nop dword [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.14003dd50
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 0x14003e230
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.14003dd50
mov rcx, qword [rdi]
mov dl, 0x5d
mov rax, qword [rcx]
call qword [rax]
jmp 0x14003e442
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.14003e4f0
mov rcx, qword [rdi]
mov dl, 0x22
mov rax, qword [rcx]
call qword [rax]
jmp 0x14003e442
cmp byte [rdx + 8], 0
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov r9, qword [rax + 8]
je 0x14003e2e7
mov r8d, 4
lea rdx, str.true
call r9
jmp 0x14003e442
mov r8d, 5
lea rdx, str.false
call r9
jmp 0x14003e442
mov r10, qword [rdx + 8]
mov r9, r10
test r10, r10
je 0x14003e391
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 0x14003e320
test r10, r10
jg 0x14003e365
mov byte [rsi + rdi + 0x10], 0x2d
inc rsi
lea rdx, [rsi + rbx]
mov rcx, rbx
call fcn.1401b5b38
mov rcx, qword [rdi]
mov r8, rsi
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x14003e442
mov r10, qword [rdx + 8]
mov r9, r10
test r10, r10
jne 0x14003e3a0
mov rcx, qword [rdi]
mov dl, 0x30
mov rax, qword [rcx]
call qword [rax]
jmp 0x14003e442
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 0x14003e3b0
test r10, r10
jne 0x14003e3eb
mov byte [rsi + rdi + 0x10], 0x2d
inc rsi
lea rdx, [rsi + rbx]
mov rcx, rbx
call fcn.1401b5b38
mov rcx, qword [rdi]
mov r8, rsi
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x14003e442
movaps xmmword [rsp + 0x30], xmm6
lea rcx, [rsp + 0x78]
movsd xmm6, qword [rdx + 8]
movsd qword [rsp + 0x78], xmm6
call fcn.140203c04
test ax, ax
jle 0x14003e46a
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.140026a20
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 0x14003e43d
mov rcx, qword [rdi]
lea rdx, str._discarded_
mov r8d, ntohl
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x14003e442
mov rcx, qword [rdi]
lea rdx, str.null
mov r8d, 4
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x14003e442