Function at 0x180019f30
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rdi
lea rbp, [r11 - 0x108]
sub rsp, 0x1f8
mov rax, qword [0x1800b7160]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov qword [r11 - 0x18], rbx
mov edi, 2
mov qword [r11 - 0x20], rsi
mov rbx, rcx
mov qword [r11 - 0x30], r13
xor ecx, ecx
mov qword [r11 - 0x38], r14
mov r13, r8
mov r14, rdx
mov qword [r11 - 0x40], r15
mov rdx, qword [rbp + 0x140]
mov qword [rsp + 0x58], rdx
mov esi, r9d
mov dword [rsp + 0x54], ecx
mov qword [rsp + 0x68], rcx
test byte [0x1800b78f1], 4
jne 0x1800400fe
cmp dword [0x1800b7ec0], 0
je 0x18001a316
mov qword [rsp + 0x1e0], r12
lea r12, str.Hostname
mov r15, rsi
cmp esi, 0x6d
ja 0x1800402c9
mov rax, rsi
add rax, rax
cmp qword [r12 + rax*8], 0
je 0x1800402c9
test r14, r14
jne 0x18001a2f6
test rbx, rbx
jne 0x180019ffd
lea rcx, [rsp + 0x70]
call fcn.18001b810
mov edi, eax
test eax, eax
jne 0x18001a2a5
lea rbx, [rsp + 0x70]
mov r10, qword [rbx]
test r10, r10
jne 0x1800401f0
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18001a029
mov rdx, r15
add rdx, rdx
cmp byte [r12 + rdx*8 + 0xe], 0
jne 0x18001a2c1
mov r14, qword [rbx + 8]
test r14, r14
je 0x18001a1ac
xor ecx, ecx
mov dword [rsp + 0x54], ecx
lea r9, [rsp + 0x54]
mov dword [rsp + 0x50], ecx
mov rax, r15
add rax, rax
mov qword [rsp + 0x60], rcx
xor r8d, r8d
mov r13, qword [r12 + rax*8]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rdx, r13
mov qword [rsp + 0x20], rcx
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jne 0x18001a293
mov eax, dword [rsp + 0x54]
cmp dword [rbp + 0x130], eax
jne 0x1800402a3
cmp eax, 1
jne 0x1800402ad
mov esi, dword [rsp + 0x50]
mov eax, 4
cmp esi, eax
cmovbe esi, eax
mov rax, qword [0x1800b8500]
mov dword [rsp + 0x50], esi
test rax, rax
jne 0x1800402dd
mov rax, qword [0x1800b7ed8]
test rax, rax
je 0x18001a3ca
mov r8d, esi
mov edx, 8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x60], rdi
test rdi, rdi
je 0x180040304
xor eax, eax
mov dword [rdi], eax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x54]
mov rdx, r13
mov qword [rsp + 0x20], rdi
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jne 0x180040337
mov eax, dword [rsp + 0x54]
cmp eax, 1
jne 0x18004030e
mov edx, dword [rbp + 0x138]
mov ecx, dword [rsp + 0x50]
test dl, 0x10
jne 0x180040325
test ecx, ecx
je 0x18004034c
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x18001a168
xor ecx, ecx
mov word [rdi + rax*2 - 2], cx
mov ecx, dword [rsp + 0x50]
test dl, 1
jne 0x180040355
cmp dword [rbp + 0x130], 4
je 0x18001a182
mov rax, qword [rsp + 0x58]
mov qword [rax], rdi
mov edi, esi
test esi, esi
jne 0x18001a2a5
test rbx, rbx
je 0x18001a304
cmp r14, qword [rbx + 8]
jne 0x18001a304
test byte [0x1800b78f1], 4
jne 0x1800403d9
mov rsi, qword [rsp + 0x58]
mov r15, qword [rsp + 0x1c8]
lea rax, [rsp + 0x70]
mov r14, qword [rsp + 0x1d0]
mov r13, qword [rsp + 0x1d8]
mov r12, qword [rsp + 0x1e0]
cmp rbx, rax
je 0x18001a247
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x1f0]
test rcx, rcx
jne 0x18004040e
test edi, edi
jne 0x18001a216
mov eax, dword [rbp + 0x130]
cmp eax, 4
je 0x180040420
cmp eax, 1
jne 0x18001a216
test byte [0x1800b78f1], 4
jne 0x180040447
test byte [0x1800b78f1], 4
mov rsi, qword [rsp + 0x1e8]
jne 0x180040461
mov eax, edi
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.18002d5c0
add rsp, 0x1f8
pop rdi
pop rbp
ret
test rbx, rbx
je 0x18001a1db
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1800403fc
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18001a26d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18001a282
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
jmp 0x18001a1db
test byte [0x1800b78f1], 4
je 0x18001a182
jmp 0x180040286
cmp dword [rbp + 0x130], 4
mov rsi, qword [rsp + 0x58]
je 0x1800403ed
xor eax, eax
mov qword [rsi], rax
jmp 0x18001a1b1
mov r9d, dword [rbp + 0x130]
lea rax, [rsp + 0x54]
mov r8d, dword [rbp + 0x138]
mov rdx, qword [r12 + rdx*8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call fcn.18001b510
mov edi, eax
test eax, eax
jne 0x18001a029
jmp 0x180040262
test r13, r13
je 0x18001a038
jmp 0x1800401b7
test byte [0x1800b78f1], 4
je 0x18001a1ac
jmp 0x1800403e3
lea rcx, [0x1800b7d60]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
nop dword [rax + rax]
cmp dword [0x1800b7ec0], 0
jne 0x18001a3b0
xor edx, edx
lea rcx, [sym.DNSAPI.dll_DnsGlobals]
mov r8d, 0x140
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
xor edx, edx
mov dword [0x1800b79cc], 1
mov r8d, 0x118
lea rcx, [rbp - 0x6c]
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
lea rcx, [rbp - 0x70]
mov dword [rbp - 0x70], 0x11c
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetVersionExW]
nop dword [rax + rax]
test eax, eax
je 0x18004013e
movzx eax, byte [rbp + 0xaa]
cmp al, 1
jne 0x180040162
mov dword [0x1800b79d0], 1
mov dword [0x1800b7ec0], 1
test byte [0x1800b78f0], 4
jne 0x180040188
lea rcx, [0x1800b7d60]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop dword [rax + rax]
xor ecx, ecx
jmp 0x180019faa
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov qword [0x1800b7ed8], rax
jmp 0x18001a0cd
mov ecx, esi
call fcn.18007f5fc
mov ecx, dword [rbp + 0x138]
mov r9, r14
mov qword [rsp + 0x48], rdx
mov r8, rbx
mov dword [rsp + 0x40], ecx
mov ecx, dword [rbp + 0x130]
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r13
call fcn.18008ae98
xor ecx, ecx
jmp 0x180019f9d
lea rcx, [rbp - 0x70]
mov dword [rbp - 0x70], 0x114
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetVersionExW]
nop dword [rax + rax]
test eax, eax
je 0x18001a3b0
jmp 0x18001a399
cmp al, 3
je 0x180040179
cmp al, dil
jne 0x18001a399
mov dword [0x1800b79dc], 1
mov dword [0x1800b79d4], 1
jmp 0x18001a399
mov eax, dword [0x1800b79dc]
lea rdx, [0x18009f188]
mov r9d, dword [0x1800b79d4]
mov ecx, 0xa
mov r8d, dword [0x1800b79d0]
mov dword [rsp + 0x20], eax
call fcn.180087cfc
nop
jmp 0x18001a3b0
lea rax, [rsp + 0x68]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r13
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x18001a2a5
mov r14, qword [rsp + 0x68]
jmp 0x18001a036
mov rax, r15
add rax, rax
cmp byte [r12 + rax*8 + 0xc], 0
je 0x18001a009
mov ecx, esi
call fcn.18007f5fc
mov rsi, qword [rsp + 0x58]
mov rdx, rax
mov r9d, dword [rbp + 0x130]
lea rax, [rsp + 0x54]
mov r8d, dword [rbp + 0x138]
mov rcx, r10
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call fcn.18001b510
mov edi, eax
test eax, eax
jne 0x18001a00e
test byte [0x1800b78f1], 4
je 0x18001a1ac
lea ecx, [rax + 0x10]
lea rdx, [0x18009f188]
call fcn.180087008
nop
jmp 0x18001a1b1
test byte [0x1800b78f1], 4
je 0x18001a1ac
mov ecx, 0x11
lea rdx, [0x18009f188]
call fcn.180087008
nop
jmp 0x18001a1ac
mov ecx, 0xc
lea rdx, [0x18009f440]
mov r9d, esi
mov r8, r13
call fcn.180087538
nop
jmp 0x18001a182
mov edi, 0x3f2
jmp 0x18001a2a5
cmp eax, 2
jb 0x1800402c9
cmp eax, 3
jbe 0x18001a09b
cmp eax, 4
je 0x1800402d3
cmp eax, 7
je 0x18001a09b
mov edi, 0x57
jmp 0x18001a2a5
mov rdi, qword [rsp + 0x58]
jmp 0x18001a0f9
mov ecx, esi
call qword [case.0x180030b5c.0]
mov rdi, rax
test rax, rax
je 0x18001a0e7
mov r8d, esi
xor edx, edx
mov rcx, rax
call sub.api_ms_win_core_crt_l1_1_0.dll_memset
nop
jmp 0x18001a0e7
mov edi, 0xe
jmp 0x18001a2a5
cmp eax, 2
je 0x18001a139
cmp eax, 7
jne 0x18001a171
jmp 0x18001a139
test ecx, ecx
je 0x180040332
cmp dword [rdi], 0
jne 0x18001a14c
mov esi, 0xd
mov rax, qword [rsp + 0x58]
xor ecx, ecx
cmp dword [rbp + 0x130], 4
je 0x18004039e
mov qword [rax], rcx
jmp 0x1800403a0
xor eax, eax
mov dword [rdi], eax
jmp 0x18001a164
add ecx, ecx
call fcn.180017d38
mov r13, rax
test rax, rax
jne 0x180040369
lea esi, [rax + 0xe]
jmp 0x180040337
mov edx, dword [rsp + 0x50]
mov r8, r13
mov rcx, rdi
lea r9d, [rdx + rdx]
shr edx, 1
call fcn.180079130
test eax, eax
jne 0x18004038c
mov rcx, r13
call sym.DNSAPI.dll_DnsApiFree
jmp 0x180040332
mov rcx, qword [rsp + 0x60]
call sym.DNSAPI.dll_DnsApiFree
mov rdi, r13
jmp 0x18001a171
mov dword [rax], ecx
mov rcx, qword [rsp + 0x60]
call sym.DNSAPI.dll_DnsApiFree
test esi, esi
je 0x18001a182
test byte [0x1800b78f1], 4
je 0x18001a182
mov ecx, 0xd
lea rdx, [0x18009f440]
mov r8d, esi
call fcn.1800876bc
nop
jmp 0x18001a182
mov ecx, 0x12
jmp 0x180040274
mov ecx, 0x13
jmp 0x180040274
add r15, r15
mov eax, dword [r12 + r15*8 + 8]
mov dword [rsi], eax
jmp 0x18001a1b1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x18001a258
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x18001a1f1
test byte [0x1800b78f1], 4
je 0x18001a216
mov r8d, dword [rsi]
lea rdx, [0x18009f188]
mov ecx, 0x14
call fcn.1800876bc
nop
jmp 0x18001a216
mov r8, qword [rsi]
lea rdx, [0x18009f188]
mov ecx, 0x15
call fcn.180087814
nop
jmp 0x18001a216
mov ecx, 0x16
lea rdx, [0x18009f188]
mov r8d, edi
call fcn.1800876bc
nop
jmp 0x18001a22b