Function at 0x1400cfbd0
Capabilities:
Hash data using sha1

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x18f0
call fcn.1400a5da0
sub rsp, rax
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x18f0], rbx
mov rax, qword [0x140191010]
xor rax, rbp
mov qword [rbp + 0x18a0], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
mov qword [rbp + 0x18], r8
mov qword [rbp + 0x20], r9
call qword [sym.imp.WINMM.dll_timeGetTime]
mov dword [rbp + 0xf0], eax
mov rdi, 0xffffffffffffffff
mov r9, rdi
lea r8, str.CMainDialog::SetPasswordToRegistry
mov edx, 0x102
lea rcx, [rbp + 0xf4]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea r8, [0x14016059c]
mov edx, 0x104
lea rcx, [rbp + 0xf4]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov r9, rdi
lea r8, str.CMainDialog::SetPasswordToRegistry
mov edx, 0x104
lea rcx, [rbp + 0x2fc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov ecx, dword [0x1401993f8]
mov eax, dword [0x1401993fc]
xor r12d, r12d
lea r13d, [rdi + 2]
add ecx, eax
je 0x1400cfd26
mov dword [rbp + 8], r12d
call fcn.1400057e0
mov qword [rbp], rax
lock inc dword [rbp + 8]
mov rax, qword [rbp]
test rax, rax
jne 0x1400cfcbd
call fcn.1400057e0
mov qword [rbp], rax
lock inc dword [rbp + 8]
mov rcx, qword [rbp]
mov dword [rbp + 0x10], 0x20
lea rax, [rbp + 0xf4]
mov qword [rsp + 0x30], rax
lea rax, str.____s
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x2fc]
mov qword [rsp + 0x20], rax
lea r9, [0x140000000]
lea r8, [rbp + 0x10]
movsx edx, r13w
call fcn.140004bd0
nop
mov qword [rbp], r12
mov eax, edi
lock xadd dword [rbp + 8], eax
cmp eax, 1
js 0x1400cfd22
call fcn.140005b50
mov eax, edi
lock xadd dword [rbp + 8], eax
cmp eax, 1
jns 0x1400cfd11
lock inc dword [rbp + 8]
test rbx, rbx
jne 0x1400cfd52
lea rcx, [rbp + 0xf0]
call fcn.1400091b0
nop
mov rcx, r14
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
mov rcx, r15
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
xor al, al
jmp 0x1400d0125
cmp byte [rbx], 0x2d
jne 0x1400cfde0
cmp byte [rbx + 1], 0
jne 0x1400cfde0
mov qword [rbp + 0xad0], 0xffffffff80000003
mov r8, qword [r14]
mov edx, 0x64
lea rcx, [rbp + 0xad8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8, qword [r15]
mov edx, 0x64
lea rcx, [rbp + 0xba0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov dword [rbp + 0x1088], r13d
lea rdx, [rbp + 0xad0]
lea rcx, [0x140198dc0]
call fcn.14010ce90
nop
lea rcx, [rbp + 0xf0]
test al, al
je 0x1400cfd32
call fcn.1400091b0
nop
mov rcx, r14
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
mov rcx, r15
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov al, 1
jmp 0x1400d0125
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x14a0]
call sub.VCRUNTIME140.dll_memset
mov r8, rbx
mov edx, 0x400
lea rcx, [rbp + 0x14a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rax, vtable.CSHA1.0
mov qword [rbp + 0x30], rax
lea rax, [rbp + 0xa8]
mov qword [rbp + 0xe8], rax
mov dword [rbp + 0x38], 0x67452301
mov dword [rbp + 0x3c], 0xefcdab89
mov dword [rbp + 0x40], 0x98badcfe
mov dword [rbp + 0x44], 0x10325476
mov dword [rbp + 0x48], 0xc3d2e1f0
mov qword [rbp + 0x4c], r12
lea rax, [rbp + 0x14a0]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x1400cfe53
lea rdx, [rbp + 0x14a0]
lea rcx, [rbp + 0x30]
call fcn.1400a6e20
lea rcx, [rbp + 0x30]
call fcn.1400a6c80
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x10a0]
call sub.VCRUNTIME140.dll_memset
movzx r8d, byte [rbp + 0x94]
lea rdx, str._02X
lea rcx, [rbp + 0x1090]
call fcn.140004450
lea rcx, [rbp + 0x10a0]
dec rcx
nop
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x1400cfeb0
lea r8, [rbp + 0x1090]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400cfed0
lea rbx, [rbp + 0x95]
mov esi, Ordinal_21
nop dword [rax]
movzx r8d, byte [rbx]
lea rdx, str.__02X
lea rcx, [rbp + 0x1090]
call fcn.140004450
lea rax, [rbp + 0x10a0]
dec rax
lea rax, [rax + 1]
cmp byte [rax], 0
jne 0x1400cff11
lea r8, [rbp + 0x1090]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r8 + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x1400cff30
inc rbx
sub rsi, 1
jne 0x1400cfef0
mov qword [rbp + 0x510], 0xffffffff80000003
mov r8, qword [r14]
lea edx, [rsi + 0x64]
lea rcx, [rbp + 0x518]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov r8, qword [r15]
lea edx, [rsi + 0x64]
lea rcx, [rbp + 0x5e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov dword [rbp + 0x6a8], r13d
mov dword [rbp + 0xac8], r12d
lea rcx, [rbp + 0x10a0]
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x1400cff92
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x1400d0074
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400cffc7
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400a5da0
sub rsp, rcx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x1400d0074
lfence
mov word [rbx], r12w
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rbx
mov r9d, edi
lea r8, [rbp + 0x10a0]
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1400d0074
lea rax, [rbp + 0x6ac]
mov ecx, 8
nop dword [rax]
movups xmm0, xmmword [rbx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rbx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rbx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rbx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rbx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rbx + 0x60]
movups xmmword [rax + 0x60], xmm0
lea rax, [rax + 0x80]
movups xmm1, xmmword [rbx + 0x70]
movups xmmword [rax - 0x10], xmm1
lea rbx, [rbx + 0x80]
sub rcx, 1
jne 0x1400d0020
jmp 0x1400d009a
xor edx, edx
mov r8d, 0x410
lea rcx, [rbp + 0x6ac]
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea rax, [rbp + 0x10a0]
lea rdi, [rdi + 1]
cmp byte [rax + rdi], 0
jne 0x1400d00a1
lea rax, [rdi*2 + 1]
mov qword [rbp + 0xac0], rax
lea rdx, [rbp + 0x510]
lea rcx, [0x140198dc0]
call fcn.14010dce0
movzx ebx, al
lea rax, vtable.CSHA1.0
mov qword [rbp + 0x30], rax
mov dword [rbp + 0x38], 0x67452301
mov dword [rbp + 0x3c], 0xefcdab89
mov dword [rbp + 0x40], 0x98badcfe
mov dword [rbp + 0x44], 0x10325476
mov dword [rbp + 0x48], 0xc3d2e1f0
mov qword [rbp + 0x4c], r12
lea rcx, [rbp + 0xf0]
call fcn.1400091b0
nop
mov rcx, r14
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
mov rcx, r15
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
movzx eax, bl
mov rcx, qword [rbp + 0x18a0]
xor rcx, rbp
call fcn.140071e30
mov rbx, qword [rbp + 0x18f0]
lea rsp, [rbp + 0x18b0]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret