Function at 0x140039110
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 [0x1400992c0]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x28], rcx
xor r15d, r15d
call fcn.140039090
mov rbp, rax
mov qword [rsp + 0x28], rax
mov rcx, rax
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x140039447
mov eax, dword [rbp + 0x4c]
cmp eax, 0x7fffffff
je 0x140039452
lea r8, [rsi + 8]
mov r9, r8
mov edx, r15d
lea r11, [r8 + 0x20]
movabs r12, 0xc6a4a7935bd1e995
mov r13d, 0xe6546b64
cmp r8, r11
je 0x1400391c8
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 0x1400391a0
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 0x140039220
mov rdx, qword [rbx + rax*8]
mov r9, qword [r8]
cmp r9, qword [rcx + 0x18]
jne 0x140039215
mov rax, qword [rcx + 0x20]
cmp qword [r8 + 8], rax
jne 0x140039215
mov rax, qword [rcx + 0x28]
cmp qword [r8 + 0x10], rax
jne 0x140039215
mov rax, qword [rcx + 0x30]
cmp qword [r8 + 0x18], rax
je 0x140039223
cmp rcx, rdx
je 0x140039220
mov rcx, qword [rcx + 8]
jmp 0x1400391f1
mov rcx, r15
test rcx, rcx
je 0x1400392e7
mov r9, r8
mov rdx, r15
cmp r8, r11
je 0x140039268
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 0x140039240
and r10, rdx
add r10, r10
mov rdx, qword [rbx + r10*8 + 8]
cmp rdx, rdi
je 0x140039462
mov rcx, qword [rbx + r10*8]
mov r9, qword [r8]
cmp r9, qword [rdx + 0x18]
jne 0x1400392a7
mov rax, qword [rdx + 0x20]
cmp qword [r8 + 8], rax
jne 0x1400392a7
mov rax, qword [rdx + 0x28]
cmp qword [r8 + 0x10], rax
jne 0x1400392a7
mov rax, qword [rdx + 0x30]
cmp qword [r8 + 0x18], rax
je 0x1400392b6
cmp rdx, rcx
je 0x140039462
mov rdx, qword [rdx + 8]
jmp 0x140039283
test rdx, rdx
je 0x140039462
mov qword [r14], r15
mov qword [r14 + 8], r15
mov rcx, qword [rdx + 0x40]
test rcx, rcx
je 0x1400392d3
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 0x1400393cf
mov ecx, 0x20
call fcn.1400665f0
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14003934a
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.140039490
mov rbx, rax
mov rcx, rax
call fcn.14006a9d0
mov qword [rdi + 0x10], rax
test rax, rax
je 0x140039405
mov rcx, rbx
call fcn.14006a320
mov qword [rdi + 0x18], rax
jmp 0x14003934d
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.140036b90
mov rsi, qword [rax]
mov qword [rsi + 0x38], rbx
mov rbx, qword [rsi + 0x40]
mov qword [rsi + 0x40], rdi
test rbx, rbx
je 0x1400393ac
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400393ac
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400393ac
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 0x1400393c0
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.140065469
mov rax, r14
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400664b0
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.140013160
mov r8d, 1
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140037ff0
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.1400370d0
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