Function at 0x140064180
Capabilities:
Authenticate hmac
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x810]
sub rsp, 0x910
mov rax, qword [0x1400a4010]
xor rax, rsp
mov qword [rbp + 0x800], rax
mov qword [rbp - 0x50], rcx
mov qword [rbp + 0x50], rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
mov qword [rcx + 0x10], rbx
mov dword [rsp + 0x30], 1
lea rax, [rbp + 0x5f0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r13, [rbx - 1]
mov qword [rbp + 0xf0], rbx
test eax, eax
js 0x140064244
mov qword [rbp + 0x100], rbx
mov qword [rbp + 0x108], 7
mov word [rbp + 0xf0], bx
lea rax, [rbp + 0x5f0]
mov r8, r13
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x140064230
lea rdx, [rbp + 0x5f0]
jmp 0x140064267
mov qword [rbp + 0x100], rbx
mov qword [rbp + 0x108], 7
mov word [rbp + 0xf0], bx
xor r8d, r8d
lea rdx, [0x140084d8c]
lea rcx, [rbp + 0xf0]
call fcn.140069830
mov dword [rsp + 0x30], 0x21
mov cl, 0x5a
mov word [rsp + 0x50], 0x5a
movsx r9d, cl
movzx r8d, r9w
xor r8w, 6
mov word [rsp + 0x52], r8w
movzx eax, r9w
xor ax, 8
mov word [rsp + 0x54], ax
movzx edx, r9w
xor dx, 0x35
mov word [rsp + 0x56], dx
movzx eax, r9w
xor ax, 0x38
mov word [rsp + 0x58], ax
movzx ecx, r9w
xor cx, 0x36
mov word [rsp + 0x5a], cx
mov word [rsp + 0x5c], dx
movzx eax, r9w
xor ax, 0x22
mov word [rsp + 0x5e], ax
mov word [rsp + 0x60], r8w
mov word [rsp + 0x62], cx
mov word [rsp + 0x64], dx
movzx eax, r9w
xor ax, 0x3d
mov word [rsp + 0x66], ax
xor r9w, 0x29
mov word [rsp + 0x68], r9w
mov word [rsp + 0x6a], bx
lea rax, [rsp + 0x52]
mov rdi, r13
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140064312
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
mov r15, qword [rbp + 0x100]
sub rax, r15
cmp rax, rdi
jb 0x140064da5
lea r12, [rbp + 0xf0]
cmp qword [rbp + 0x108], 8
setae byte [rsp + 0x34]
cmovae r12, qword [rbp + 0xf0]
mov qword [rbp + 0xd0], rbx
mov qword [rbp + 0xe0], rbx
mov qword [rbp + 0xe8], rbx
lea r14, [rdi + r15]
mov qword [rbp + 0xa0], r14
mov ebx, 7
lea rsi, [rbp + 0xd0]
cmp r14, rbx
jbe 0x140064419
mov rbx, r14
or rbx, 7
cmp rbx, rcx
jbe 0x14006439e
mov rbx, rcx
jmp 0x1400643aa
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
mov rax, rbx
add rax, 1
cmovb rax, r13
movabs rcx, 0x7fffffffffffffff
cmp rax, rcx
ja 0x140064dab
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x140064401
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140064dab
mov rcx, rax
call fcn.14006d8d4
test rax, rax
je 0x140064cf9
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140064412
test rcx, rcx
je 0x14006440d
call fcn.14006d8d4
jmp 0x14006440f
xor eax, eax
mov rsi, rax
mov qword [rbp + 0xd0], rsi
mov qword [rbp + 0xe0], r14
mov qword [rbp + 0xe8], rbx
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, r12
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbx + rsi]
lea r8, [rdi + rdi]
lea rdx, [rsp + 0x52]
call sub.VCRUNTIME140.dll_memcpy
xor r15d, r15d
mov word [rsi + r14*2], r15w
mov dword [rsp + 0x30], 0x61
lea rdx, [rbp + 0xd0]
cmp qword [rbp + 0xe8], 8
cmovae rdx, qword [rbp + 0xd0]
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r15w
mov r8, qword [rbp + 0xe0]
lea rcx, [rbp - 0x28]
call fcn.140069830
mov edi, 0x1e1
mov dword [rsp + 0x30], edi
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xb0], xmm0
xor r8d, r8d
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0x120]
call fcn.140062860
nop
cmp byte [rbp + 0x398], r15b
je 0x140064524
lea ecx, [r15 + 0x58]
call fcn.14006d8d4
mov rsi, rax
mov qword [rsp + 0x38], rax
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_std::filesystem::_Dir_enum_impl_.0
mov qword [rsi], rax
lea rbx, [rsi + 0x10]
lea rdx, [rbp + 0x120]
mov rcx, rbx
call fcn.140062b80
nop
mov edi, 0x3e1
mov dword [rsp + 0x30], edi
mov qword [rbp + 0xb0], rbx
mov qword [rbp + 0xb8], rsi
jmp 0x14006452b
mov rsi, qword [rbp + 0xb8]
mov ebx, dword [rbp + 0x39c]
mov rcx, qword [rbp + 0x140]
call fcn.14006e4b4
mov rdx, qword [rbp + 0x138]
cmp rdx, 8
jb 0x140064586
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064581
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064581
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006d39c
mov qword [rbp + 0x130], r15
mov qword [rbp + 0x138], 7
mov word [rbp + 0x120], r15w
test ebx, ebx
jne 0x140064db1
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1400645eb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400645e6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400645e6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006d39c
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
test rsi, rsi
je 0x140064609
lock inc dword [rsi + 8]
mov rsi, qword [rbp + 0xb8]
mov edi, dword [rsp + 0x30]
movaps xmm0, xmmword [rbp + 0xb0]
movdqa xmmword [rbp + 0xc0], xmm0
test rsi, rsi
je 0x14006462c
lock inc dword [rsi + 8]
mov rsi, qword [rbp + 0xb8]
mov edi, dword [rsp + 0x30]
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x110], xmm1
mov r12, 0xffffffffffffffff
test rsi, rsi
je 0x14006467d
mov eax, r12d
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x140064679
mov rbx, qword [rbp + 0xb8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140064679
mov rcx, qword [rbp + 0xb8]
mov rax, qword [rcx]
call qword [rax + 8]
mov edi, dword [rsp + 0x30]
mov r13, qword [rbp + 0xc0]
test r13, r13
je 0x140064c37
lea rdx, [rbp - 8]
mov rcx, r13
call fcn.1400626f0
mov rax, qword [rbp - 8]
mov edx, dword [rbp]
test edx, edx
je 0x1400646b3
lea ecx, [rax - 1]
test ecx, 0xfffffff7
jne 0x140064dc4
cmp eax, 2
jne 0x1400649bb
mov dword [rsp + 0x40], 0x6f6c2e01
mov word [rsp + 0x44], 0x67
lea rax, [rsp + 0x41]
mov qword [rbp + 0x30], rax
lea rcx, [rsp + 0x41]
mov rax, r12
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400646e0
mov qword [rbp + 0x38], rax
call fcn.14006e234
movaps xmm0, xmmword [rbp + 0x30]
movdqa xmmword [rbp + 0x60], xmm0
lea r8, [rbp + 0x60]
mov edx, eax
lea rcx, [rbp + 8]
call fcn.140061780
or edi, 0xc00
or edi, 2
mov dword [rsp + 0x30], edi
lea rsi, [r13 + 0x20]
mov rax, qword [rsi + 0x10]
mov rcx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14006472c
mov rcx, qword [rsi]
lea rbx, [rcx + rax*2]
mov r11, rbx
mov rdx, rbx
call fcn.1400618c0
cmp rax, rbx
je 0x14006477b
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14006474f
cmp cx, 0x2f
jne 0x140064760
add rax, 2
cmp rax, rbx
jne 0x140064740
mov r8, rbx
jmp 0x1400647d0
lea rdx, [r11 - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x14006477b
cmp cx, 0x2f
je 0x14006477b
mov r11, rdx
cmp rax, rdx
jne 0x140064760
mov r8, r11
cmp r11, rbx
je 0x1400647d0
cmp word [r8], 0x3a
je 0x140064793
add r8, 2
cmp r8, rbx
jne 0x140064783
cmp r11, r8
je 0x1400647d0
lea rdx, [r8 - 2]
cmp r11, rdx
je 0x1400647d0
cmp word [rdx], 0x2e
jne 0x1400647b8
lea rax, [rdx - 2]
cmp r11, rax
jne 0x1400647d3
cmp word [rax], 0x2e
jne 0x1400647d3
jmp 0x1400647d0
sub rdx, 2
cmp r11, rdx
je 0x1400647d0
cmp word [rdx], 0x2e
je 0x1400647d3
sub rdx, 2
cmp r11, rdx
jne 0x1400647c1
mov rdx, r8
sub r8, rdx
sar r8, 1
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r15w
lea rcx, [rbp - 0x48]
call fcn.140069830
or edi, 0x7000
or edi, 4
mov dword [rsp + 0x30], edi
lea rax, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rax, qword [rbp + 8]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x48], rax
movaps xmm0, xmmword [rbp + 0x40]
movdqa xmmword [rbp + 0x70], xmm0
lea rdx, [rbp + 0x70]
lea rcx, [rbp - 0x48]
call fcn.140061cb0
test eax, eax
jne 0x1400649bb
mov rax, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 8
jb 0x14006484a
mov rsi, qword [rsi]
lea rbx, [rsi + rax*2]
mov r11, rbx
mov rdx, rbx
mov rcx, rsi
call fcn.1400618c0
cmp rax, rbx
je 0x14006489b
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140064870
cmp cx, 0x2f
jne 0x140064880
add rax, 2
jmp 0x14006485c
lea rdx, [r11 - 2]
movzx ecx, word [rdx]
cmp cx, 0x5c
je 0x14006489b
cmp cx, 0x2f
je 0x14006489b
mov r11, rdx
cmp rax, rdx
jne 0x140064880
sub rbx, r11
sar rbx, 1
mov qword [rsp + 0x70], r15
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r15w
mov r8, rbx
mov rdx, r11
lea rcx, [rsp + 0x70]
call fcn.140069830
or edi, 0x38000
or edi, 8
lea r14, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae r14, qword [rsp + 0x70]
mov rsi, qword [rbp - 0x80]
call fcn.14006e234
mov r15d, eax
xor eax, eax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 0xf
mov byte [rbp - 0x70], al
bts edi, 0x15
mov dword [rsp + 0x30], edi
test rsi, rsi
je 0x140064982
cmp rsi, 0x7fffffff
ja 0x140064de9
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, esi
mov rdx, r14
mov ecx, r15d
call fcn.14006e2a4
mov rbx, rax
mov qword [rsp + 0x38], rax
shr rax, 0x20
test eax, eax
jne 0x140064ddf
movsxd rdx, ebx
lea rcx, [rbp - 0x70]
call fcn.14004c150
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], 0x10
cmovae r9, qword [rbp - 0x70]
mov dword [rsp + 0x20], ebx
mov r8d, esi
mov rdx, r14
mov ecx, r15d
call fcn.14006e2a4
mov qword [rsp + 0x38], rax
shr rax, 0x20
test eax, eax
jne 0x140064dd5
btr edi, 0x15
or edi, 0x1c0000
or edi, 0x10
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x48], 0x616c5020
mov dword [rsp + 0x4c], 0x726579
lea rdx, [rsp + 0x49]
lea rcx, [rbp - 0x70]
call fcn.140069410
cmp rax, 0xffffffffffffffff
je 0x1400649bb
mov bl, 1
jmp 0x1400649bd
xor bl, bl
test dil, 0x10
je 0x140064a1a
and edi, 0xffffffef
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140064a05
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064a00
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140064c1b
call fcn.14006d39c
xor r15d, r15d
mov qword [rbp - 0x60], r15
mov qword [rbp - 0x58], 0xf
mov byte [rbp - 0x70], r15b
jmp 0x140064a1d
xor r15d, r15d
test dil, 8
je 0x140064a7d
and edi, 0xfffffff7
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140064a6b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064a66
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140064c22
call fcn.14006d39c
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r15w
test dil, 4
je 0x140064adb
and edi, 0xfffffffb
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x140064aca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064ac5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140064c29
call fcn.14006d39c
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r15w
test dil, 2
je 0x140064b28
and edi, 0xfffffffd
mov dword [rsp + 0x30], edi
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x140064b28
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064b23
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140064c30
call fcn.14006d39c
test bl, bl
je 0x140064b60
lea r8, [r13 + 0x20]
mov rbx, qword [rbp - 0x50]
mov rax, qword [rbx + 8]
cmp rax, qword [rbx + 0x10]
je 0x140064b50
mov rdx, r8
mov rcx, rax
call fcn.140069320
add qword [rbx + 8], 0x20
jmp 0x140064b60
mov rdx, rax
mov rcx, rbx
call fcn.140069dd0
nop dword [rax + rax]
lea rdx, [rbp + 0x3a0]
mov rcx, qword [r13 + 0x40]
call fcn.14006e494
cmp eax, 0x12
je 0x140064bb7
test eax, eax
jne 0x140064d9d
cmp word [rbp + 0x3cc], 0x2e
jne 0x140064ba3
movzx eax, word [rbp + 0x3ce]
test ax, ax
je 0x140064b60
cmp ax, 0x2e
jne 0x140064ba3
cmp word [rbp + 0x3d0], 0
je 0x140064b60
lea rdx, [rbp + 0x3a0]
mov rcx, r13
call fcn.140062a00
jmp 0x140064684
mov r13, r15
mov qword [rbp + 0xc0], r15
mov rbx, qword [rbp + 0xc8]
mov qword [rbp + 0xc8], r15
test rbx, rbx
je 0x140064684
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140064c00
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
je 0x140064c09
nop word [rax + rax]
mov edi, dword [rsp + 0x30]
jmp 0x14006467d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov edi, dword [rsp + 0x30]
jmp 0x14006467d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
je 0x140064c7a
mov eax, r12d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140064c7a
mov rbx, qword [rbp + 0xc8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r12d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140064c7a
mov rcx, qword [rbp + 0xc8]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x140064cbc
mov eax, r12d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140064cbc
mov rbx, qword [rbp + 0xb8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r12d
cmp r12d, 1
jne 0x140064cbc
mov rcx, qword [rbp + 0xb8]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0xe8]
cmp rdx, 8
jb 0x140064d05
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064d00
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064d00
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006d39c
mov qword [rbp + 0xe0], r15
mov qword [rbp + 0xe8], 7
mov word [rbp + 0xd0], r15w
cmp byte [rsp + 0x34], 0
je 0x140064d69
mov rax, qword [rbp + 0x108]
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064d64
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064d64
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006d39c
mov rax, qword [rbp - 0x50]
mov rcx, qword [rbp + 0x800]
xor rcx, rsp
call fcn.14006d200
lea r11, [rsp + 0x910]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov edx, eax
call fcn.140062590
nop
call fcn.14004c070
int3
call fcn.14004bfd0
nop
lea r8, [rbp - 0x28]
mov edx, ebx
lea rcx, str.directory_iterator::directory_iterator
call fcn.140062680
nop
lea r8, [r13 + 0x20]
lea rcx, str.directory_entry::status
call fcn.140062680
nop
mov ecx, dword [rsp + 0x3c]
call fcn.140061740
int3
mov ecx, dword [rsp + 0x3c]
call fcn.140061740
int3
call fcn.140061350
int3