Function at 0x140039680
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x100
mov rax, qword [0x14009a2c0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x28], rcx
xor r15d, r15d
call fcn.1400394d0
mov rbp, rax
mov qword [rsp + 0x28], rax
mov rcx, rax
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x1400399b7
mov eax, dword [rbp + 0x4c]
cmp eax, 0x7fffffff
je 0x1400399c2
lea r8, [rsi + 8]
mov r9, r8
mov edx, r15d
lea r11, [r8 + 0x20]
movabs r12, 0xc6a4a7935bd1e995
mov r13d, 0xe6546b64
cmp r8, r11
je 0x140039738
nop word [rax + rax]
mov rax, qword [r9]
imul rax, r12
mov rcx, rax
shr rcx, 0x2f
xor rcx, rax
imul rcx, r12
xor rdx, rcx
imul rdx, r12
add rdx, r13
add r9, 8
cmp r9, r11
jne 0x140039710
mov r10, qword [rbp + 0x80]
mov rax, r10
and rax, rdx
mov rbx, qword [rbp + 0x68]
add rax, rax
mov rcx, qword [rbx + rax*8 + 8]
mov rdi, qword [rbp + 0x58]
cmp rcx, rdi
je 0x140039790
mov rdx, qword [rbx + rax*8]
mov r9, qword [r8]
cmp r9, qword [rcx + 0x18]
jne 0x140039785
mov rax, qword [rcx + 0x20]
cmp qword [r8 + 8], rax
jne 0x140039785
mov rax, qword [rcx + 0x28]
cmp qword [r8 + 0x10], rax
jne 0x140039785
mov rax, qword [rcx + 0x30]
cmp qword [r8 + 0x18], rax
je 0x140039793
cmp rcx, rdx
je 0x140039790
mov rcx, qword [rcx + 8]
jmp 0x140039761
mov rcx, r15
test rcx, rcx
je 0x140039857
mov r9, r8
mov rdx, r15
cmp r8, r11
je 0x1400397d8
nop word [rax + rax]
mov rax, qword [r9]
imul rax, r12
mov rcx, rax
shr rcx, 0x2f
xor rcx, rax
imul rcx, r12
xor rdx, rcx
imul rdx, r12
add rdx, r13
add r9, 8
cmp r9, r11
jne 0x1400397b0
and r10, rdx
add r10, r10
mov rdx, qword [rbx + r10*8 + 8]
cmp rdx, rdi
je 0x1400399d2
mov rcx, qword [rbx + r10*8]
mov r9, qword [r8]
cmp r9, qword [rdx + 0x18]
jne 0x140039817
mov rax, qword [rdx + 0x20]
cmp qword [r8 + 8], rax
jne 0x140039817
mov rax, qword [rdx + 0x28]
cmp qword [r8 + 0x10], rax
jne 0x140039817
mov rax, qword [rdx + 0x30]
cmp qword [r8 + 0x18], rax
je 0x140039826
cmp rdx, rcx
je 0x1400399d2
mov rdx, qword [rdx + 8]
jmp 0x1400397f3
test rdx, rdx
je 0x1400399d2
mov qword [r14], r15
mov qword [r14 + 8], r15
mov rcx, qword [rdx + 0x40]
test rcx, rcx
je 0x140039843
lock inc dword [rcx + 8]
mov rcx, qword [rdx + 0x38]
mov qword [r14], rcx
mov rcx, qword [rdx + 0x40]
mov qword [r14 + 8], rcx
jmp 0x14003993f
mov ecx, 0x20
call fcn.140066e10
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400398ba
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_struct_dev::eth::EthashAux::LightAllocation_.0
mov qword [rdi], rax
mov rcx, rsi
call fcn.140039a00
mov rbx, rax
mov rcx, rax
call fcn.14006b220
mov qword [rdi + 0x10], rax
test rax, rax
je 0x140039975
mov rcx, rbx
call fcn.14006ab70
mov qword [rdi + 0x18], rax
jmp 0x1400398bd
mov rdi, r15
lea rbx, [rdi + 0x10]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
lea rcx, [rbp + 0x50]
mov r8, rsi
lea rdx, [rsp + 0x40]
call fcn.140036ef0
mov rsi, qword [rax]
mov qword [rsi + 0x38], rbx
mov rbx, qword [rsi + 0x40]
mov qword [rsi + 0x40], rdi
test rbx, rbx
je 0x14003991c
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14003991c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14003991c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [r14], r15
mov qword [r14 + 8], r15
mov rax, qword [rsi + 0x40]
test rax, rax
je 0x140039930
lock inc dword [rax + 8]
mov rax, qword [rsi + 0x38]
mov qword [r14], rax
mov rax, qword [rsi + 0x40]
mov qword [r14 + 8], rax
mov rcx, rbp
call fcn.140065c8e
mov rax, r14
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140066cd0
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.ethash_light_new__
lea rcx, [rsp + 0x50]
call fcn.1400132f0
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140038200
nop
mov r9d, 0x5e
lea r8, str.C:DataDataSS_ProjectsIntelligenceGitHubethminerlibethcoreEthashAux.cpp
lea rdx, str.__cdecl_dev::eth::EthashAux::LightAllocation::LightAllocation_const_class_dev::FixedHash_32___
mov rcx, rax
call fcn.140037430
nop
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
dec eax
mov dword [rbp + 0x4c], eax
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
nop
lea rcx, str.invalid_unordered_map_K__T__key
call sub.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_
int3