Function at 0x140037728
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2c0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rsi, rcx
xor r12d, r12d
mov qword [rsp + 0x48], r12
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp - 0x60]
call sub.msvcrt.dll_memset
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov r15d, r12d
mov qword [rsp + 0x68], r12
movdqu xmmword [rsp + 0x70], xmm0
mov r14d, r12d
mov qword [rbp - 0x80], r12
lea rdx, [rsi + 0x58]
lea edi, [r12 + 8]
cmp qword [rdx + 0x18], rdi
jb 0x1400377ae
mov rdx, qword [rdx]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140037a02
lea rax, [rsp + 0x48]
mov qword [rbp - 0x70], rax
mov byte [rbp - 0x68], 1
mov dword [rsp + 0x50], 0x20a
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9d, [rbx + 2]
lea r8, str.UserName
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov ebx, eax
test eax, eax
jne 0x140037949
mov dword [rsp + 0x40], r12d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov r9d, edi
lea r8, str.Password
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov ebx, eax
mov ecx, ntohs
mov eax, dword [rsp + 0x40]
test ebx, ebx
jne 0x1400378ae
test eax, eax
je 0x1400378b0
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.140036f24
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, edi
lea r8, str.Password
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov ebx, eax
mov r14, qword [rbp - 0x80]
jmp 0x1400378b3
test eax, eax
cmove ebx, ecx
test ebx, ebx
jne 0x140037949
mov dword [rsp + 0x40], r12d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov r9d, edi
lea r8, str.Salt
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov ebx, eax
mov eax, dword [rsp + 0x40]
test ebx, ebx
jne 0x14003793f
test eax, eax
je 0x140037941
mov edx, eax
lea rcx, [rsp + 0x58]
call fcn.140036f24
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r12
lea r9d, [rbx + 8]
lea r8, str.Salt
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov ebx, eax
mov r15, qword [rsp + 0x68]
jmp 0x14003794e
test eax, eax
mov eax, ntohs
cmove ebx, eax
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
jne 0x140037a07
lea rbx, [rsi + 0x28]
lea rax, [rsp + 0x70]
cmp rbx, rax
je 0x14003799f
mov rcx, qword [rbx]
test rcx, rcx
je 0x14003797d
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov rax, qword [rsp + 0x70]
mov qword [rbx], rax
mov rax, qword [rsp + 0x78]
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r12
cmp word [rbp - 0x60], r12w
jne 0x1400379ab
mov r8, r12
jmp 0x1400379bd
lea rax, [rbp - 0x60]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r12w
jne 0x1400379b3
lea rcx, [rsi + 8]
lea rdx, [rbp - 0x60]
call fcn.140007004
lea rbx, [rsi + 0x40]
lea rax, [rsp + 0x58]
cmp rbx, rax
je 0x1400379f9
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400379e6
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbx], rdi
mov rax, qword [rsp + 0x60]
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], r15
mov rdi, r12
mov byte [rsi + 0x78], 1
mov esi, r12d
jmp 0x140037a69
mov rdi, qword [rsp + 0x58]
cmp dword [0x140142444], 2
jb 0x140037a24
mov r8d, ebx
lea rdx, str.Failed_to_read_credentials_from_the_registry:_0x_x
mov ecx, 2
call fcn.14003929c
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x140037a5b
test byte [rcx + 0x1c], 8
je 0x140037a5b
cmp byte [rcx + 0x19], 2
jb 0x140037a5b
mov edx, 0xa
mov r9d, ebx
lea r8, [0x1400fe2a0]
mov rcx, qword [rcx + 0x10]
call fcn.140007608
movzx esi, bx
or esi, 0x80070000
test ebx, ebx
cmovle esi, ebx
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140037a7a
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop
test rdi, rdi
je 0x140037a88
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, esi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400c20a0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret