Function at 0x14000cc00
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
push rbp
push rbx
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rbx, rcx
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x2c]
mov dword [rsp + 0x24], 0x60000
xor edx, edx
mov dword [rsp + 0x28], 0x860100aa
mov r8d, 0xf4
xor r15d, r15d
call fcn.14011adb0
xor dl, dl
xor cl, cl
nop dword [rax]
movzx eax, cl
inc cl
xor dl, byte [rsp + rax + 0x2a]
cmp cl, 2
jb 0x14000cc50
lea rcx, [0x14015ae80]
mov byte [rsp + 0x2c], dl
mov byte [rsp + 0x2d], 0xbb
call fcn.14000afb0
mov rcx, qword [0x140144a60]
lea rax, [rsp + 0x20]
mov r8d, reloc.Cabinet.dll_FCIDestroy
movzx edx, byte [rax]
call fcn.14000afb0
lea rax, [rax + 1]
sub r8, 1
jne 0x14000cc85
mov qword [rsp + 0x140], rsi
lea rcx, reloc.Cabinet.dll_FCICreate
mov qword [rsp + 0x148], rdi
mov qword [rsp + 0x158], r14
call fcn.14000afb0
lea ecx, [r8 + 0xa]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.HID.DLL_HidD_SetFeature]
test al, al
je 0x14000d1d0
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.HID.DLL_HidD_GetFeature]
test al, al
je 0x14000d1c1
movzx eax, byte [rsp + 0x20]
cmp al, 3
jne 0x14000d1b8
movzx ebx, word [rsp + 0x26]
mov edx, 0xf2
lea eax, [rbx - 6]
cmp ax, dx
ja 0x14000d1ad
lea rcx, [0x14015ae88]
call fcn.14000afb0
lea edx, [rbx + 8]
mov r8d, 1
lea rcx, [rsp + 0x20]
call fcn.1400124b0
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000afb0
movzx eax, byte [rsp + 0x28]
sub bl, 6
cmp al, 0xaa
jne 0x14000d1a4
movzx r8d, byte [rsp + 0x2a]
dec r8d
movzx r9d, bl
cmp r8d, r9d
jne 0x14000d193
xor dl, dl
lea r8d, [r9 + 2]
xor al, al
cmp r8d, 0x20
jb 0x14000ce0a
mov edx, r8d
xorps xmm2, xmm2
and edx, 0xffffffe0
xorps xmm1, xmm1
nop word [rax + rax]
movzx ecx, al
movdqu xmm0, xmmword [rsp + rcx + 0x2a]
lea ecx, [rax + 0x10]
add al, 0x20
movzx ecx, cl
pxor xmm0, xmm2
movdqa xmm2, xmm0
movdqu xmm0, xmmword [rsp + rcx + 0x2a]
movzx ecx, al
pxor xmm0, xmm1
movdqa xmm1, xmm0
cmp ecx, edx
jb 0x14000cda0
pxor xmm1, xmm2
movdqa xmm0, xmm1
psrldq xmm0, 8
pxor xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 4
pxor xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 2
pxor xmm1, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 1
pxor xmm1, xmm0
movd edx, xmm1
movzx ecx, al
cmp ecx, r8d
jae 0x14000ce31
nop dword [rax]
nop word [rax + rax]
movzx ecx, al
inc al
xor dl, byte [rsp + rcx + 0x2a]
movzx ecx, al
cmp ecx, r8d
jb 0x14000ce20
movzx eax, byte [rsp + r9 + 0x2c]
cmp dl, al
jne 0x14000d17f
mov byte [rsp + r9 + 0x2d], 0xbb
movzx edx, byte [rsp + 0x2b]
cmp edx, 0xff
ja case.0x14000ce77.6
je case.0x14000ce77.0
cmp edx, 0xa
ja case.0x14000ce77.6
lea r8, [0x140000000]
mov eax, dword [r8 + rdx*4 + 0xd20c]
add rax, r8
jmp rax
cmp bl, 1
jne 0x14000d067
movzx edx, byte [rsp + 0x2c]
lea eax, [rdx - 0x80]
cmp eax, 0x16
ja case.0x14000cea0.134
cdqe
mov ecx, dword [r8 + rax*4 + 0xd238]
add rcx, r8
jmp rcx
lea r8, str.set_OK
lea rcx, str.ERROR_rdm_send_receive___Command_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
lea r8, str.set_failure
lea rcx, str.ERROR_rdm_send_receive___Command_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
lea r8, str.reader_reply_timeout
lea rcx, str.ERROR_rdm_send_receive___Command_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
lea r8, str.card_does_not_exist
lea rcx, str.ERROR_rdm_send_receive___Command_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
lea r8, str.data_response_from_the_card
lea rcx, str.ERROR_rdm_send_receive___Command_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
lea r8, str.format_or_parameter_of_the_command
lea rcx, str.ERROR_rdm_send_receive___Command_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
lea r8, str.unknown_internal_error
lea rcx, str.ERROR_rdm_send_receive___Command_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
lea r8, str.initVal_process
lea rcx, str.ERROR_rdm_send_receive___Command_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
lea r8, str.wrong_SNR_during_anticollision
lea rcx, str.ERROR_rdm_send_receive___Command_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
lea r8, str.authentication_failure
lea rcx, str.ERROR_rdm_send_receive___Command_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
lea r8, str.reader_received_unknown_command
lea rcx, str.ERROR_rdm_send_receive___Command_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
lea r8, str.card_does_not_support_this_command
lea rcx, str.ERROR_rdm_send_receive___Command_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
lea r8, str.format_of_the_command
lea rcx, str.ERROR_rdm_send_receive___Command_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
lea r8, str.does_not_support_option_mode
lea rcx, str.ERROR_rdm_send_receive___Command_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
lea r8, str.block_does_not_exist
lea rcx, str.ERROR_rdm_send_receive___Command_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
lea r8, str.object_has_been_locked
lea rcx, str.ERROR_rdm_send_receive___Command_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
lea r8, str.lock_operation_did_not_succeed
lea rcx, str.ERROR_rdm_send_receive___Command_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
lea r8, str.operation_did_not_succeed
lea rcx, str.ERROR_rdm_send_receive___Command_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
mov r8, qword [rbp + 0x50]
lea rcx, str.ERROR_rdm_send_receive___Command_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
mov edx, r9d
lea rcx, str.ERROR_rdm_send_receive___data_size_is_not_1_when_dealing_when_an_error_status___hhu__n
jmp 0x14000d1df
lea r8, str.checksum
lea rcx, str.ERROR_rdm_send_receive___Status_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
lea r8, str.not_COM_port_selected
lea rcx, str.ERROR_rdm_send_receive___Status_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
lea r8, str.timeout_reply
lea rcx, str.ERROR_rdm_send_receive___Status_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
lea r8, str.check_sequence
lea rcx, str.ERROR_rdm_send_receive___Status_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
lea r8, str.receive
lea rcx, str.ERROR_rdm_send_receive___Status_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
lea r8, str.parameter_value_out_of_range
lea rcx, str.ERROR_rdm_send_receive___Status_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
mov rsi, qword [rbp + 0x60]
mov r15d, 1
test rsi, rsi
je 0x14000d1e4
mov rdi, qword [rbp + 0x68]
test rdi, rdi
je 0x14000d1e4
mov qword [rsi], 0
mov byte [rdi], 0
test bl, bl
je 0x14000d1e4
movzx r14d, bl
lea ecx, [r15 + 0x3f]
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x14000d165
mov r8d, r14d
lea rdx, [rsp + 0x2c]
mov rcx, rax
call fcn.14011b4a0
mov byte [rdi], bl
jmp 0x14000d1e4
xor r15d, r15d
jmp 0x14000d1e4
lea r8, str.unknow_error_code_
lea rcx, str.ERROR_rdm_send_receive___Status_failure:_0x_02x____s_n
call fcn.14000afb0
jmp 0x14000d1e4
mov r8d, eax
movzx edx, dl
lea rcx, str.ERROR_rdm_send_receive___Bad_CRC__0x_02x____0x_02x__n
call fcn.14000afb0
jmp 0x14000d1e4
mov edx, r9d
lea rcx, str.ERROR_rdm_send_receive___Bad_HID_size_vs_Data_size__0x_02x____0x_02x__n
call fcn.14000afb0
jmp 0x14000d1e4
lea rcx, str.ERROR_rdm_send_receive___Bad_China_header__0x_02x__n
jmp 0x14000d1dd
mov edx, ebx
lea rcx, str.ERROR_rdm_send_receive___Bad_HID_size___hhu__n
jmp 0x14000d1df
lea rcx, str.ERROR_rdm_send_receive___Bad_HID_header__0x_02x__n
jmp 0x14000d1dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_rdm_send_receive___HidD_GetFeature__0x_08x__n
jmp 0x14000d1dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_rdm_send_receive___HidD_SetFeature__0x_08x__n
mov edx, eax
call fcn.14000afb0
mov r14, qword [rsp + 0x158]
mov eax, r15d
mov rdi, qword [rsp + 0x148]
mov rsi, qword [rsp + 0x140]
add rsp, 0x120
pop r15
pop rbx
pop rbp
ret