Function at 0x140007ec0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
lea r14, [0x140297020]
lea r15, [0x14029a970]
mov r12, qword [str.2d2c_2h2c_2h2d_2s2c_2s2d_2s2h_3c2c_3c2d_3c2h_3c2s_3d2c_3d2d_3d2h_3d2s_3d3c_3h2c_3h2d_3h2h_3h2s_3h3c_3h3d_3s2c_3s2d_3s2h_3s2s_3s3c_3s3d_3s3h_4c2c_4c2d_4c2h_4c2s_4c3c_4c3d_4c3h_4c3s_4d2c_4d2d_4d2h_4d2s_4d3c_4d3d_4d3h_4d3s_4d4c_4h2c_4h2d_4h2h_4h2s_4h3c_4h3d_4h3h_4h3s_4h4c_4h4d_4s2c_4s2d_4s2h_4s2s_4s3c_4s3d_4s3h_4s3s_4s4c_4s4d_4s4h_5c2c_5c2d_5c2h_5c2s_5c3c_5c3d_5c3h_5c3s_5c4c_5c4d_5c4h_5c4s_5d2c_5d2d_5d2h_5d2s_5d3c_5d3d_5d3h_5d3s_5d4c_5d4d_5d4h_5d4s_5d5c_5h2c_5h2d_5h2h_5h2s_5h3c_5h3d_5h3h_5h3s_5h4c_5h4d_5h4h_5h4s_5h5c_5h5d_5s2c_5s2d_5s2h_5s2s_5s3c_5s3d_5s3h_5s3s_5s4c_5s4d_5s4h_5s4s_5s5c_5s5d_5s5h_6c2c_6c2d_6c2h_6c2s_6c3c_6c3d_6c3h_6c3s_6c4c_6c4d_6c4h_6c4s_6c5c_6c5d_6c5h_6c5s_6d2c_6d2d_6d2h_6d2s_6d3c_6d3d_6d3h_6d3s_6d4c_6d4d_6d4h_6d4s_6d5c_6d5d_6d5h_6d5s_6d6c_6h2c_6h2d_6h2h_6h2s_6h3c_6h3d_6h3h_6h3s_6h4c_6h4d_6h4h_6h4s_6h5c_6h5d_6h5h_6h5s_6h6c_6h6d_6s2c_6s2d_6s2h_6s2s_6s3c_6s3d_6s3h_6s3s_6s4c_6s4d_6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h_Js7s_Js8c_Js8d_Js8h_Js8s_Js9c_Js9d_Js9h_Js9s_JsTc_JsTd_JsTh_JsTs_JsJc_JsJd_JsJh_Qc2c_Qc2d_Qc2h_Qc2s_Qc3c_Qc3d_Qc3h_Qc3s_Qc4c_Qc4d_Qc4h_Qc4s_Qc5c_Qc5d_Qc5h_Qc5s_Qc6c_Qc6d_Qc6h_Qc6s_Qc7c_Qc7d_Qc7h_Qc7s_Qc8c_Qc8d_Qc8h_Qc8s_Qc9c_Qc9d_Qc9h_Qc9s_QcTc_QcTd_QcTh_QcTs_QcJc_QcJd_QcJh_Q]
xor r13d, r13d
lea rdi, [rsp + 0x28]
lea rbp, [0x14029b3d0]
lea rsi, [0x140299990]
lea rbx, [rsp + 0x26]
mov byte [rsp + 0x2c], 0
mov eax, dword [r12]
mov dword [rsp + 0x28], eax
lea rcx, [rsp + 0x30]
mov rdx, rdi
call fcn.140007ff0
mov rax, qword [rsp + 0x30]
mov qword [r14], rax
xor edx, edx
tzcnt rdx, rax
xor ecx, ecx
lzcnt rcx, rax
xor ecx, 0x3f
lea eax, [rcx - 1]
imul eax, ecx
shr eax, 1
add eax, edx
mov word [r15], ax
imul r8d, edx, 0x4f
shr r8d, 0xa
lea r9d, [r8 + r8*2]
lea r9d, [r8 + r9*4]
sub dl, r9b
movzx edx, dl
imul r9d, ecx, 0x4f
shr r9d, 0xa
lea r10d, [r9 + r9*2]
lea r10d, [r9 + r10*4]
sub cl, r10b
movzx ecx, cl
cmp r8b, r9b
mov r8d, ecx
cmove r8d, edx
mov r9d, edx
cmove r9d, ecx
lea r10d, [r8 + r8*2]
lea r10d, [r8 + r10*4]
add r10d, r9d
lea r11d, [r9 + r9*2]
lea r9d, [r9 + r11*4]
movsxd r11, eax
add r9d, r8d
cmp dl, cl
cmovb r9d, r10d
mov word [rbp + r11*2], r13w
lea rcx, [r9 + r9*2]
lea rcx, [rsi + rcx*8]
mov word [rsp + 0x26], ax
mov rdx, rbx
call fcn.1400082d0
add r12, 5
inc r13
add r14, 8
add r15, 2
cmp r13, 0x52e
jne 0x140007f00
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret