Function at 0x14002daf0
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
push r12
push r13
mov eax, 0x1a0
call fcn.140189b00
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x1c8], rbx
mov qword [rsp + 0x1d0], rbp
mov qword [rsp + 0x1d8], rsi
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rbp, rcx
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x34], r12d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x38], r12d
mov byte [rsp + 0x80], r12b
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x81]
call fcn.140041940
lea r13, str.CSSCUploadSampleQueue::ReadOsceApiKeyAndDdaUrl
mov qword [rsp + 0x20], r13
lea r9, [0x1401cd578]
mov r8d, 0x2a8
lea rdx, str..cnttmss_UploadSample.cpp
lea ecx, [r12 + 0x44]
call fcn.1400382e0
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20219
xor r8d, r8d
lea rdx, str.SOFTWARETrendMicroPC_cillinNTCorpCurrentVersionCCCA
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14002df7f
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.DdaRegistered
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14002df4c
cmp dword [rsp + 0x38], 1
jne 0x14002df4c
mov dword [rsp + 0x34], 0x105
xor edx, edx
mov r8d, 0x105
lea rcx, [rsp + 0x80]
call fcn.140041940
mov dword [rsp + 0x30], r12d
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.APIKEY
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14002ddc1
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x80]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
je 0x14002ddc1
lea rcx, [rsp + 0x80]
call fcn.14003b120
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x80]
repne scasb al, byte [rdi]
not rcx
lea rsi, [rcx - 1]
mov rdx, qword [rbp + 0xa0]
cmp rdx, 0x10
jb 0x14002dcce
lea rdi, [rbp + 0x88]
mov rax, qword [rdi]
jmp 0x14002dcd8
lea rdi, [rbp + 0x88]
mov rax, rdi
lea rcx, [rsp + 0x80]
cmp rcx, rax
jb 0x14002dd36
cmp rdx, 0x10
jb 0x14002dcf0
mov rcx, qword [rdi]
jmp 0x14002dcf3
mov rcx, rdi
add rcx, qword [rbp + 0x98]
lea rax, [rsp + 0x80]
cmp rcx, rax
jbe 0x14002dd36
cmp rdx, 0x10
jb 0x14002dd10
mov rdi, qword [rdi]
lea r8, [rsp + 0x80]
sub r8, rdi
mov r9, rsi
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x80]
call fcn.1400023d0
jmp 0x14002ddc1
cmp rsi, 0xfffffffffffffffe
jbe 0x14002dd41
call fcn.14003b3f0
mov rax, qword [rbp + 0xa0]
cmp rax, rsi
jae 0x14002dd65
mov r8, qword [rbp + 0x98]
mov rdx, rsi
lea rcx, [rbp + 0x80]
call fcn.1400026b0
jmp 0x14002dd7f
test rsi, rsi
jne 0x14002dd7f
mov qword [rbp + 0x98], r12
cmp rax, 0x10
jb 0x14002dd7a
mov rdi, qword [rdi]
mov byte [rdi], r12b
jmp 0x14002ddc1
test rsi, rsi
je 0x14002ddc1
mov rdx, qword [rbp + 0xa0]
cmp rdx, 0x10
jb 0x14002dd96
mov rcx, qword [rdi]
jmp 0x14002dd99
mov rcx, rdi
mov r9, rsi
lea r8, [rsp + 0x80]
call fcn.140041310
mov qword [rbp + 0x98], rsi
cmp qword [rbp + 0xa0], 0x10
jb 0x14002ddbd
mov rdi, qword [rdi]
mov byte [rdi + rsi], r12b
mov dword [rsp + 0x34], 0x105
xor edx, edx
mov r8d, 0x105
lea rcx, [rsp + 0x80]
call fcn.140041940
mov dword [rsp + 0x30], r12d
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.Host
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14002df3f
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x80]
repne scasb al, byte [rdi]
not rcx
lea rsi, [rcx - 1]
mov rdx, qword [rbp + 0xc8]
cmp rdx, 0x10
jb 0x14002de4c
lea rdi, [rbp + 0xb0]
mov rax, qword [rdi]
jmp 0x14002de56
lea rdi, [rbp + 0xb0]
mov rax, rdi
lea rcx, [rsp + 0x80]
cmp rcx, rax
jb 0x14002deb4
cmp rdx, 0x10
jb 0x14002de6e
mov rcx, qword [rdi]
jmp 0x14002de71
mov rcx, rdi
add rcx, qword [rbp + 0xc0]
lea rax, [rsp + 0x80]
cmp rcx, rax
jbe 0x14002deb4
cmp rdx, 0x10
jb 0x14002de8e
mov rdi, qword [rdi]
lea r8, [rsp + 0x80]
sub r8, rdi
mov r9, rsi
lea rdx, [rbp + 0xa8]
lea rcx, [rbp + 0xa8]
call fcn.1400023d0
jmp 0x14002df3f
cmp rsi, 0xfffffffffffffffe
jbe 0x14002debf
call fcn.14003b3f0
mov rax, qword [rbp + 0xc8]
cmp rax, rsi
jae 0x14002dee3
mov r8, qword [rbp + 0xc0]
mov rdx, rsi
lea rcx, [rbp + 0xa8]
call fcn.1400026b0
jmp 0x14002defd
test rsi, rsi
jne 0x14002defd
mov qword [rbp + 0xc0], r12
cmp rax, 0x10
jb 0x14002def8
mov rdi, qword [rdi]
mov byte [rdi], r12b
jmp 0x14002df3f
test rsi, rsi
je 0x14002df3f
mov rdx, qword [rbp + 0xc8]
cmp rdx, 0x10
jb 0x14002df14
mov rcx, qword [rdi]
jmp 0x14002df17
mov rcx, rdi
mov r9, rsi
lea r8, [rsp + 0x80]
call fcn.140041310
mov qword [rbp + 0xc0], rsi
cmp qword [rbp + 0xc8], 0x10
jb 0x14002df3b
mov rdi, qword [rdi]
mov byte [rdi + rsi], r12b
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14002dfa6
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x20], r13
lea r9, str._s______DDA_client_does_not_register_to_OSCE_Edge_server
mov r8d, 0x2b9
lea rdx, str..cnttmss_UploadSample.cpp
mov ecx, 0x44
call fcn.1400382e0
jmp 0x14002e016
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
lea r9, str._s___registry_key_error__d_
mov r8d, 0x2d4
lea rdx, str..cnttmss_UploadSample.cpp
mov ecx, 0x44
call fcn.1400382e0
mov qword [rsp + 0x70], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x68], r12
mov byte [rsp + 0x58], r12b
lea rcx, [rbp + 0x80]
lea rdx, [rsp + 0x50]
call fcn.14003b280
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rdx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], r13
lea r9, str._s______API_SHA1__s_
mov r8d, 0x2d9
lea rdx, str..cnttmss_UploadSample.cpp
mov ecx, 0x44
call fcn.1400382e0
nop
cmp qword [rsp + 0x70], 0x10
jb 0x14002e016
mov rcx, qword [rsp + 0x58]
call fcn.140041700
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140041910
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret