Function at 0x140001360
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rax, qword [0x1400284a0]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x58], rax
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
mov rbx, rax
test rax, rax
je 0x1400017a1
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, Ordinal_130
call sub.VCRUNTIME140.dll_memset
mov r9, rbx
lea r8, [0x14001bdf8]
mov edx, Ordinal_130
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_strftime]
mov r8, qword [str.Afghanistan_Standard_Time]
lea rsi, str.Afghanistan_Standard_Time
xor ebx, ebx
mov r11d, ebx
test r8, r8
je 0x140001476
mov r9d, ebx
mov r10d, ebx
nop dword [rax]
lea rax, [rsp + 0x70]
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001423
inc rax
test ecx, ecx
jne 0x140001410
test edx, edx
je 0x1400016a6
mov r8, qword [r10 + rsi + 8]
lea rax, [rsp + 0x70]
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001453
inc rax
test ecx, ecx
jne 0x140001440
test edx, edx
je 0x1400016a6
inc r9
inc r11d
lea rax, [r9 + r9*2]
lea r10, [rax*8]
mov r8, qword [r10 + rsi]
test r8, r8
jne 0x140001400
xor edx, edx
lea rcx, [rbp + 0x1f0]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionTime_Zones
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400017a1
mov qword [rsp + 0x410], rdi
lea rcx, [rbp - 0x10]
xor edx, edx
mov r8d, 0x100
mov edi, ebx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
lea r8, [rbp - 0x10]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1400016ff
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400016ff
xor edx, edx
lea rcx, [rbp + 0xf0]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [0x14001be38]
lea rax, [rbp + 0xf0]
mov dword [rsp + 0x40], 0x100
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001647
lea rax, [rsp + 0x70]
lea r8, [rbp + 0xf0]
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400015c3
inc rax
test ecx, ecx
jne 0x1400015b0
test edx, edx
je 0x1400016d6
xor edx, edx
lea rcx, [rbp + 0xf0]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [0x14001be3c]
lea rax, [rbp + 0xf0]
mov dword [rsp + 0x40], 0x100
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001647
lea rax, [rsp + 0x70]
lea r8, [rbp + 0xf0]
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001643
inc rax
test ecx, ecx
jne 0x140001630
test edx, edx
je 0x1400016b7
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
lea rcx, [rbp - 0x10]
mov r8d, 0x100
inc edi
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
lea r8, [rbp - 0x10]
mov qword [rsp + 0x28], rbx
mov edx, edi
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x140001520
jmp 0x1400016ff
movsxd rax, r11d
lea rax, [rax + rax*2]
mov rax, qword [rsi + rax*8 + 0x10]
jmp 0x1400017a3
mov rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbp + rcx - 0x10]
mov byte [rbp + rcx + 0x1f0], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400016c0
jmp 0x1400016f4
mov rcx, rbx
nop dword [rax]
movzx eax, byte [rbp + rcx - 0x10]
mov byte [rbp + rcx + 0x1f0], al
lea rcx, [rcx + 1]
test al, al
jne 0x1400016e0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x410]
cmp byte [rbp + 0x1f0], bl
je 0x1400017a1
mov r8, qword [str.Afghanistan_Standard_Time]
test r8, r8
je 0x1400017a1
mov r9, rbx
mov r10, rbx
lea rax, [rbp + 0x1f0]
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001753
inc rax
test ecx, ecx
jne 0x140001740
test edx, edx
je 0x1400017c7
mov r8, qword [r10 + rsi + 8]
lea rax, [rbp + 0x1f0]
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001783
inc rax
test ecx, ecx
jne 0x140001770
test edx, edx
je 0x1400017c7
inc r9
inc ebx
lea rax, [r9 + r9*2]
lea r10, [rax*8]
mov r8, qword [r10 + rsi]
test r8, r8
jne 0x140001730
xor eax, eax
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.140014dd0
lea r11, [rsp + 0x400]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
movsxd rax, ebx
lea rax, [rax + rax*2]
mov rax, qword [rsi + rax*8 + 0x10]
jmp 0x1400017a3