Function at 0x14000de64
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, reloc.WLDAP32.dll_Ordinal_304
xor r12d, r12d
mov rbx, rcx
lea rcx, [rsp + 0x3c]
lea edi, [r12 + 1]
xor edx, edx
mov r8d, 0xf4
mov byte [rsp + 0x31], r12b
mov byte [rsp + 0x32], r12b
mov byte [rsp + 0x33], r12b
mov byte [rsp + 0x30], dil
mov byte [rsp + 0x3a], dil
mov byte [rsp + 0x34], r12b
mov byte [rsp + 0x35], r12b
mov byte [rsp + 0x36], 6
mov byte [rsp + 0x37], r12b
mov byte [rsp + 0x38], 0xaa
mov byte [rsp + 0x39], r12b
mov byte [rsp + 0x3b], 0x86
call sub.msvcrt.dll_memset
xor r11b, r11b
xor cl, cl
movzx eax, r11b
add r11b, dil
xor cl, byte [rsp + rax + 0x3a]
cmp r11b, 2
jb 0x14000dede
mov byte [rsp + 0x3c], cl
lea rcx, [0x1400e9d00]
mov byte [rsp + 0x3d], 0xbb
call fcn.14000c020
lea rcx, [rsp + 0x30]
mov r8d, edi
mov edx, reloc.Cabinet.dll_FCIDestroy
call fcn.140012c94
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000c020
mov esi, 0xa
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, 0x100
lea rdx, [rsp + 0x30]
mov r8d, ebp
mov rcx, rbx
call sub.HID.DLL_HidD_SetFeature
test al, al
je 0x14000e2ab
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x30]
mov r8d, ebp
mov rcx, rbx
call sub.HID.DLL_HidD_GetFeature
test al, al
je 0x14000e29c
mov al, byte [rsp + 0x30]
cmp al, 3
jne 0x14000e290
movzx ebx, word [rsp + 0x36]
cmp bx, 6
jb 0x14000e284
lea eax, [rbp - 8]
cmp bx, ax
ja 0x14000e284
lea rcx, [0x1400e9d08]
call fcn.14000c020
movzx edx, bx
lea rcx, [rsp + 0x30]
add edx, 8
mov r8d, edi
call fcn.140012c94
lea rcx, reloc.Cabinet.dll_FCICreate
call fcn.14000c020
mov al, byte [rsp + 0x38]
sub bl, 6
cmp al, 0xaa
jne 0x14000e278
movzx r8d, byte [rsp + 0x3a]
movzx edx, bl
dec r8d
cmp r8d, edx
jne 0x14000e26a
lea r9d, [rdx + 2]
xor r8b, r8b
xor cl, cl
test r9d, r9d
jle 0x14000e004
movzx eax, r8b
add r8b, dil
xor cl, byte [rsp + rax + 0x3a]
movzx eax, r8b
cmp eax, r9d
jl 0x14000dff0
movzx ebp, bl
cmp cl, byte [rsp + rbp + 0x3c]
jne 0x14000e258
mov byte [rsp + rbp + 0x3d], 0xbb
movzx r9d, byte [rsp + 0x3b]
mov ecx, r9d
test r9d, r9d
je 0x14000e1f5
sub ecx, edi
je 0x14000e0a3
sub ecx, edi
je 0x14000e088
sub ecx, edi
je 0x14000e07f
sub ecx, edi
je 0x14000e076
sub ecx, edi
je 0x14000e06d
sub ecx, 2
je 0x14000e064
sub ecx, 3
je 0x14000e05b
cmp ecx, 0xf5
je 0x14000e1f5
lea r8, str.unknow_error_code_
jmp 0x14000e08f
lea r8, str.parameter_value_out_of_range
jmp 0x14000e08f
lea r8, str.receive
jmp 0x14000e08f
lea r8, str.check_sequence
jmp 0x14000e08f
lea r8, str.timeout_reply
jmp 0x14000e08f
lea r8, str.not_COM_port_selected
jmp 0x14000e08f
lea r8, str.checksum
mov edx, r9d
lea rcx, str.ERROR_rdm_send_receive___Status_failure:_0x_02x____s_n
call fcn.14000c020
jmp 0x14000e2bf
cmp bl, dil
jne 0x14000e1e9
movzx edx, byte [rsp + 0x3c]
mov eax, reloc.WLDAP32.dll_Ordinal_140
cmp edx, eax
jg 0x14000e16a
je 0x14000e161
mov ecx, edx
sub ecx, 0x80
je 0x14000e158
sub ecx, edi
je 0x14000e14c
sub ecx, edi
je 0x14000e140
sub ecx, edi
je 0x14000e134
sub ecx, edi
je 0x14000e128
sub ecx, edi
je 0x14000e11c
sub ecx, 2
je 0x14000e110
sub ecx, 3
je 0x14000e104
cmp ecx, edi
jne 0x14000e199
lea r8, str.wrong_SNR_during_anticollision
jmp 0x14000e1dd
lea r8, str.initVal_process
jmp 0x14000e1dd
lea r8, str.unknown_internal_error
jmp 0x14000e1dd
lea r8, str.format_or_parameter_of_the_command
jmp 0x14000e1dd
lea r8, str.data_response_from_the_card
jmp 0x14000e1dd
lea r8, str.card_does_not_exist
jmp 0x14000e1dd
lea r8, str.reader_reply_timeout
jmp 0x14000e1dd
lea r8, str.set_failure
jmp 0x14000e1dd
lea r8, str.set_OK
jmp 0x14000e1dd
lea r8, str.authentication_failure
jmp 0x14000e1dd
mov ecx, edx
sub ecx, 0x8f
je 0x14000e1d6
sub ecx, edi
je 0x14000e1cd
sub ecx, edi
je 0x14000e1c4
sub ecx, edi
je 0x14000e1bb
sub ecx, edi
je 0x14000e1b2
sub ecx, edi
je 0x14000e1a9
sub ecx, edi
je 0x14000e1a0
cmp ecx, edi
jne 0x14000e199
lea r8, str.operation_did_not_succeed
jmp 0x14000e1dd
mov r8, qword [rsp + 0x20]
jmp 0x14000e1dd
lea r8, str.lock_operation_did_not_succeed
jmp 0x14000e1dd
lea r8, str.object_has_been_locked
jmp 0x14000e1dd
lea r8, str.block_does_not_exist
jmp 0x14000e1dd
lea r8, str.does_not_support_option_mode
jmp 0x14000e1dd
lea r8, str.format_of_the_command
jmp 0x14000e1dd
lea r8, str.card_does_not_support_this_command
jmp 0x14000e1dd
lea r8, str.reader_received_unknown_command
lea rcx, str.ERROR_rdm_send_receive___Command_failure:_0x_02x____s_n
jmp 0x14000e099
lea rcx, str.ERROR_rdm_send_receive___data_size_is_not_1_when_dealing_when_an_error_status___hhu__n
jmp 0x14000e2ba
mov rsi, qword [rsp + 0x160]
mov r12d, edi
test rsi, rsi
je 0x14000e2bf
mov rdi, qword [rsp + 0x168]
test rdi, rdi
je 0x14000e2bf
and qword [rsi], 0
mov byte [rdi], 0
test bl, bl
je 0x14000e2bf
mov rdx, rbp
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsi], rax
test rax, rax
je 0x14000e253
lea rdx, [rsp + 0x3c]
mov r8, rbp
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov byte [rdi], bl
jmp 0x14000e2bf
xor r12d, r12d
jmp 0x14000e2bf
movzx r8d, byte [rsp + rbp + 0x3c]
movzx edx, cl
lea rcx, str.ERROR_rdm_send_receive___Bad_CRC__0x_02x____0x_02x__n
jmp 0x14000e271
lea rcx, str.ERROR_rdm_send_receive___Bad_HID_size_vs_Data_size__0x_02x____0x_02x__n
call fcn.14000c020
jmp 0x14000e2bf
movzx edx, al
lea rcx, str.ERROR_rdm_send_receive___Bad_China_header__0x_02x__n
jmp 0x14000e2ba
movzx edx, bx
lea rcx, str.ERROR_rdm_send_receive___Bad_HID_size___hhu__n
jmp 0x14000e2ba
movzx edx, al
lea rcx, str.ERROR_rdm_send_receive___Bad_HID_header__0x_02x__n
jmp 0x14000e2ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_rdm_send_receive___HidD_GetFeature__0x_08x__n
jmp 0x14000e2b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_rdm_send_receive___HidD_SetFeature__0x_08x__n
mov edx, eax
call fcn.14000c020
lea r11, [rsp + reloc.WLDAP32.dll_Ordinal_304]
mov eax, r12d
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret