Function at 0x14006c210
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
push rdi
push r15
sub rsp, 0xd0
movzx eax, byte [rdx]
movzx r15d, r9b
mov rbp, rdx
mov rdi, rcx
cmp eax, 8
ja case.default.0x14006c259
mov qword [r11 + 0x18], rbx
lea rdx, [0x140000000]
mov qword [r11 - 0x20], rsi
mov qword [r11 - 0x28], r12
mov qword [r11 - 0x30], r13
mov qword [r11 - 0x38], r14
mov ecx, dword [rdx + rax*4 + 0x6caa0]
add rcx, rdx
jmp rcx
mov rax, qword [rbp + 8]
mov rcx, qword [rdi]
cmp qword [rax + 8], 0
mov rax, qword [rcx]
jne 0x14006c281
mov r8d, 2
lea rdx, [0x1400ed714]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x14006c968
test r8b, r8b
je 0x14006c483
mov r8d, 2
lea rdx, [0x1400ed718]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r13d, dword [rsp + 0x118]
lea r14, [rdi + 0x260]
mov r12d, dword [rsp + 0x110]
add r13d, r12d
mov rcx, qword [rdi + 0x270]
mov r8d, r13d
cmp rcx, r8
jae 0x14006c2e7
mov eax, 2
mov r8b, reloc.WLDAP32.dll_Ordinal_32
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, r14
mov rdx, rax
call fcn.14003ae30
mov r8d, r13d
mov rax, qword [rbp + 8]
xor esi, esi
cmp qword [rax + 8], 1
mov rbx, qword [rax]
mov rbx, qword [rbx]
je 0x14006c3e6
nop
cmp qword [r14 + 0x18], 0x10
mov rdx, r14
mov rcx, qword [rdi]
jb 0x14006c310
mov rdx, qword [r14]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi]
mov dl, Ordinal_35
mov rax, qword [rcx]
call qword [rax]
lea rdx, [rbx + 0x20]
movzx r8d, r15b
mov rcx, rdi
call fcn.14006cad0
mov rcx, qword [rdi]
lea rdx, [0x1400ed71c]
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, r15b
mov dword [rsp + 0x20], r12d
mov r8b, 1
mov rcx, rdi
call fcn.14006c210
mov rcx, qword [rdi]
lea rdx, [0x1400ed720]
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 0x14006c3a8
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14006c3a3
cmp rbx, qword [rax + 0x10]
jne 0x14006c3a3
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14006c390
mov rbx, rax
jmp 0x14006c3cf
mov rcx, qword [rax]
mov rbx, rax
cmp byte [rcx + 0x19], 0
jne 0x14006c3cf
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rcx]
mov rbx, rcx
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x14006c3c0
mov rax, qword [rbp + 8]
mov r8d, r13d
mov rcx, qword [rax + 8]
dec rcx
cmp rsi, rcx
jb 0x14006c300
cmp qword [r14 + 0x18], 0x10
mov rdx, r14
mov rcx, qword [rdi]
jb 0x14006c3f6
mov rdx, qword [r14]
mov rax, qword [rcx]
mov r8d, r13d
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi]
mov dl, Ordinal_35
mov rax, qword [rcx]
call qword [rax]
lea rdx, [rbx + 0x20]
movzx r8d, r15b
mov rcx, rdi
call fcn.14006cad0
mov rcx, qword [rdi]
lea rdx, [0x1400ed71c]
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, r15b
mov dword [rsp + 0x20], r12d
mov r8b, 1
mov rcx, rdi
call fcn.14006c210
mov rcx, qword [rdi]
mov dl, 0xa
mov rax, qword [rcx]
call qword [rax]
cmp qword [r14 + 0x18], 0x10
mov rcx, qword [rdi]
jb 0x14006c463
mov r14, qword [r14]
mov rax, qword [rcx]
mov rdx, r14
mov r8d, dword [rsp + 0x118]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi]
mov dl, 0x7d
mov rax, qword [rcx]
call qword [rax]
jmp 0x14006c968
mov dl, 0x7b
call qword [rax]
mov rax, qword [rbp + 8]
xor esi, esi
mov r14d, dword [rsp + 0x118]
mov r12d, dword [rsp + 0x110]
cmp qword [rax + 8], 1
mov rbx, qword [rax]
mov rbx, qword [rbx]
je 0x14006c573
nop
mov rcx, qword [rdi]
mov dl, Ordinal_35
mov rax, qword [rcx]
call qword [rax]
lea rdx, [rbx + 0x20]
movzx r8d, r15b
mov rcx, rdi
call fcn.14006cad0
mov rcx, qword [rdi]
lea rdx, [0x1400ed724]
mov r8d, 2
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rbx + 0x40]
mov dword [rsp + 0x28], r14d
movzx r9d, r15b
mov dword [rsp + 0x20], r12d
xor r8d, r8d
mov rcx, rdi
call fcn.14006c210
mov rcx, qword [rdi]
mov dl, Ordinal_45
mov rax, qword [rcx]
call qword [rax]
mov rax, qword [rbx + 0x10]
inc rsi
cmp byte [rax + 0x19], 0
je 0x14006c538
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x14006c533
nop
cmp rbx, qword [rax + 0x10]
jne 0x14006c533
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14006c520
mov rbx, rax
jmp 0x14006c55f
mov rcx, qword [rax]
mov rbx, rax
cmp byte [rcx + 0x19], 0
jne 0x14006c55f
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rcx]
mov rbx, rcx
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x14006c550
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 8]
dec rcx
cmp rsi, rcx
jb 0x14006c4b0
mov rcx, qword [rdi]
mov dl, Ordinal_35
mov rax, qword [rcx]
call qword [rax]
lea rdx, [rbx + 0x20]
movzx r8d, r15b
mov rcx, rdi
call fcn.14006cad0
mov rcx, qword [rdi]
lea rdx, [0x1400ed724]
mov r8d, 2
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rbx + 0x40]
mov dword [rsp + 0x28], r14d
movzx r9d, r15b
mov dword [rsp + 0x20], r12d
xor r8d, r8d
mov rcx, rdi
call fcn.14006c210
mov rcx, qword [rdi]
mov dl, 0x7d
mov rax, qword [rcx]
call qword [rax]
jmp 0x14006c968
mov rdx, qword [rbp + 8]
mov rcx, qword [rdi]
mov rax, qword [rdx + 8]
cmp qword [rdx], rax
mov rax, qword [rcx]
jne 0x14006c5f7
mov r8d, 2
lea rdx, [0x1400ed728]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x14006c968
test r8b, r8b
je 0x14006c745
mov r8d, 2
lea rdx, [0x1400ed72c]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r12d, dword [rsp + 0x118]
lea rsi, [rdi + 0x260]
mov r14d, dword [rsp + 0x110]
add r12d, r14d
mov rcx, qword [rdi + 0x270]
mov r13d, r12d
cmp rcx, r13
jae 0x14006c65a
mov eax, 2
mov r8b, reloc.WLDAP32.dll_Ordinal_32
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rsi
mov rdx, rax
call fcn.14003ae30
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 8]
mov rbx, qword [rax]
sub rcx, 0x10
cmp rbx, rcx
je 0x14006c6d0
nop
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
mov rcx, qword [rdi]
jb 0x14006c680
mov rdx, qword [rsi]
mov rax, qword [rcx]
mov r8, r13
call qword [rax + reloc.WS2_32.dll_htonl]
movzx r9d, r15b
mov dword [rsp + 0x28], r12d
mov r8b, 1
mov dword [rsp + 0x20], r14d
mov rdx, rbx
mov rcx, rdi
call fcn.14006c210
mov rcx, qword [rdi]
lea rdx, [0x1400ed720]
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 0x14006c670
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
mov rcx, qword [rdi]
jb 0x14006c6e0
mov rdx, qword [rsi]
mov rax, qword [rcx]
mov r8, r13
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rbp + 8]
movzx r9d, r15b
mov dword [rsp + 0x28], r12d
mov r8b, 1
mov rcx, rdi
mov dword [rsp + 0x20], r14d
mov rdx, qword [rax + 8]
sub rdx, 0x10
call fcn.14006c210
mov rcx, qword [rdi]
mov dl, 0xa
mov rax, qword [rcx]
call qword [rax]
cmp qword [rsi + 0x18], 0x10
mov rcx, qword [rdi]
jb 0x14006c725
mov rsi, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
mov r8d, dword [rsp + 0x118]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi]
mov dl, 0x5d
mov rax, qword [rcx]
call qword [rax]
jmp 0x14006c968
mov dl, 0x5b
call qword [rax]
mov rdx, qword [rbp + 8]
mov esi, dword [rsp + 0x118]
mov r14d, dword [rsp + 0x110]
mov rax, qword [rdx + 8]
mov rbx, qword [rdx]
sub rax, 0x10
cmp rbx, rax
je 0x14006c7aa
nop dword [rax]
mov dword [rsp + 0x28], esi
movzx r9d, r15b
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov rdx, rbx
mov rcx, rdi
call fcn.14006c210
mov rcx, qword [rdi]
mov dl, Ordinal_45
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 0x14006c770
mov rdx, qword [rdx + 8]
movzx r9d, r15b
sub rdx, 0x10
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov rcx, rdi
call fcn.14006c210
mov rcx, qword [rdi]
mov dl, 0x5d
mov rax, qword [rcx]
call qword [rax]
jmp 0x14006c968
mov rcx, qword [rdi]
mov dl, Ordinal_35
mov rax, qword [rcx]
call qword [rax]
mov rdx, qword [rbp + 8]
movzx r8d, r15b
mov rcx, rdi
call fcn.14006cad0
mov rcx, qword [rdi]
mov dl, Ordinal_35
mov rax, qword [rcx]
call qword [rax]
jmp 0x14006c968
cmp byte [rbp + 8], 0
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov r9, qword [rax + 8]
je 0x14006c827
mov r8d, 4
lea rdx, str.true
call r9
jmp 0x14006c968
mov r8d, 5
lea rdx, str.false
call r9
jmp 0x14006c968
mov r11, qword [rbp + 8]
mov r9, r11
test r11, r11
je 0x14006c8b5
lea rbx, [rdi + 0x10]
xor esi, esi
mov r10, rbx
movabs rbp, 0x6666666666666667
nop dword [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 0x14006c860
test r11, r11
jg 0x14006c913
mov byte [rdi + rsi + 0x10], reloc.WLDAP32.dll_Ordinal_45
inc rsi
jmp 0x14006c913
mov r9, qword [rbp + 8]
test r9, r9
jne 0x14006c8c4
mov rcx, qword [rdi]
mov dl, 0x30
mov rax, qword [rcx]
call qword [rax]
jmp 0x14006c968
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 r9
inc rsi
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 [r10 - 1], al
test r8, r8
jne 0x14006c8e0
lea rdx, [rsi + rbx]
mov rcx, rbx
call fcn.1400d9430
mov rcx, qword [rdi]
mov r8, rsi
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x14006c968
movaps xmmword [rsp + 0xa0], xmm6
movsd xmm6, qword [rbp + 8]
movaps xmm0, xmm6
call sub.api_ms_win_crt_math_l1_1_0.dll__dclass
test ax, ax
jle 0x14006c99c
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 + 0xa0]
mov r13, qword [rsp + 0xb8]
mov r12, qword [rsp + 0xc0]
mov rsi, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0x100]
mov r14, qword [rsp + 0xb0]
add rsp, 0xd0
pop r15
pop rdi
pop rbp
ret
lea r14, [rdi + 0x10]
movaps xmm0, xmm6
mov rbx, r14
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__dsign]
test eax, eax
je 0x14006c9bf
xorps xmm6, xmmword [0x1400edf70]
lea rbx, [r14 + 1]
mov byte [r14], reloc.WLDAP32.dll_Ordinal_45
xorps xmm0, xmm0
ucomisd xmm6, xmm0
jp 0x14006c9d9
jne 0x14006c9d9
mov word [rbx], 0x2e30
lea rax, [rbx + 3]
mov byte [rbx + 2], Ordinal_50
jmp 0x14006ca52
xor esi, esi
lea rcx, [rsp + 0x70]
movaps xmm1, xmm6
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x30], esi
call fcn.140065210
lea r9, [rsp + 0x60]
mov rcx, rbx
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x34]
movups xmm1, xmmword [rax]
movups xmm2, xmmword [rax + 0x10]
movups xmm0, xmmword [rax + 0x20]
lea rax, [rsp + 0x40]
movaps xmmword [rsp + 0x50], xmm1
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x60], xmm2
call fcn.14006e400
mov r8d, dword [rsp + 0x30]
lea r9d, [rsi - 4]
mov edx, dword [rsp + 0x34]
mov rcx, rbx
mov dword [rsp + 0x20], reloc.WS2_32.dll_ntohs
call fcn.14006dd20
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 0x14006c960
mov rcx, qword [rdi]
lea rdx, str._discarded_
mov r8d, ntohs
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x14006c968
mov rcx, qword [rdi]
lea rdx, str.null
mov r8d, 4
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x14006c968