Function at 0x140001944
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x78]
sub rsp, 0x178
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rbx, r9
mov qword [rbp - 0x58], rbx
mov r11d, r8d
mov dword [rsp + 0x54], r8d
mov r14, rdx
mov qword [rsp + 0x40], rcx
xor r15d, r15d
mov edi, r15d
mov dword [rsp + 0x4c], r15d
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r15
mov qword [rsp + 0x68], r15
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x40], r15
mov dword [rsp + 0x50], r15d
mov eax, r15d
mov rcx, qword [r9 + 0x18]
test rcx, rcx
je 0x1400019c1
call fcn.14000257c
mov r11d, dword [rsp + 0x54]
mov rdx, qword [rbx + 0x10]
test rdx, rdx
je 0x1400019d4
mov rcx, rdx
mov qword [rsp + 0x78], rdx
jmp 0x1400019ee
test eax, eax
je 0x1400019e6
mov rcx, qword [rbx + 8]
mov qword [rsp + 0x78], rcx
test rcx, rcx
jne 0x1400019ee
mov rcx, qword [rbx]
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x48], r15
mov rax, rcx
mov r9d, 2
mov qword [rbp - 0x60], r9
lea esi, [r9 - 1]
mov r10d, r15d
mov dword [rsp + 0x58], r15d
test rcx, rcx
je 0x140001a27
cmp word [rcx], r15w
je 0x140001a27
add rax, r9
add r10d, esi
cmp word [rax], r15w
jne 0x140001a16
mov dword [rsp + 0x58], r10d
mov rax, qword [rbx + 0x20]
mov r8d, r15d
mov dword [rsp + 0x48], r15d
test rax, rax
je 0x140001a4f
cmp word [rax], r15w
je 0x140001a4f
add rax, r9
add r8d, esi
cmp word [rax], r15w
jne 0x140001a3e
mov dword [rsp + 0x48], r8d
mov rax, r14
mov ebx, r15d
test r14, r14
je 0x140001a6b
cmp word [r14], r15w
je 0x140001a6b
add rax, r9
add ebx, esi
cmp word [rax], r15w
jne 0x140001a60
mov qword [rsp + 0x70], r15
lea r12, str.WinWord
test rdx, rdx
je 0x140001ab5
mov eax, r11d
lea rcx, [rax + rax*8]
cmp dword [r12 + rcx*8 + 0x30], r15d
je 0x140001ab5
jmp 0x140001aa3
cmp ax, 0x2f
je 0x140001d34
cmp ax, 0x5c
je 0x140001d34
add rdx, r9
movzx eax, word [rdx]
test ax, ax
jne 0x140001a8c
mov eax, r15d
test eax, eax
mov r13d, esi
je 0x140001ab8
mov r13d, r15d
lea r12d, [r10 + 0x104]
cmp r12d, 0x104
jb 0x1400022bc
mov eax, r12d
add rax, 3
mov edx, 0xffffffff
cmp rax, rdx
ja 0x1400022bc
lea ecx, [rax + r8]
cmp ecx, eax
jb 0x1400022bc
mov eax, ecx
add rax, r9
cmp rax, rdx
ja 0x1400022bc
mov eax, eax
add rax, rax
shr rax, 0x20
xor al, sil
je 0x1400022bc
lea eax, [r8 + r10]
mov dword [rsp + 0x64], eax
lea ecx, [rax + 0x108]
mov dword [rsp + 0x5c], ecx
mov eax, ebx
add rax, 7
cmp rax, rdx
ja 0x1400022bc
mov eax, eax
add rax, rax
shr rax, 0x20
xor al, sil
je 0x1400022bc
lea r15d, [rcx + 1]
mov esi, r15d
add rsi, rsi
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
mov eax, dword [rsp + 0x5c]
inc rax
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x140002248
mov eax, eax
add rax, rax
shr rax, 0x20
xor al, 1
je 0x140002248
add ebx, 7
mov edx, ebx
add rdx, rdx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rsp + 0x70], rax
mov dword [rbp - 0x78], r15d
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
mov qword [rbp - 0x50], rax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140002231
test rdi, rdi
je 0x140002231
test rax, rax
je 0x140002248
mov r8d, ebx
lea rdx, [0x1400099e0]
call fcn.140002ef0
xor edx, edx
test r14, r14
je 0x140001c04
mov rax, rcx
cmp word [rax], dx
je 0x140001bf9
mov eax, 0xffffffff
add rcx, 2
add ebx, eax
je 0x140001c04
cmp word [rcx], dx
jne 0x140001bec
mov r8d, ebx
mov rdx, r14
call fcn.140002ef0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edx, edx
test eax, eax
jne 0x140002231
mov eax, dword [rsp + 0x54]
mov ecx, 0xffffffff
cmp eax, ecx
je 0x14000216a
lea ecx, [rdx + 4]
cmp eax, ecx
jae 0x140002231
lea rcx, [rax + rax*8]
lea rbx, str.WinWord
mov rbx, qword [rbx + rcx*8 + 8]
cmp word [rbx], dx
jne 0x140001c7f
mov rcx, qword [rsp + 0x68]
call fcn.140002324
mov qword [rbp - 0x48], rax
test rax, rax
je 0x140002231
mov rbx, rax
xor r9d, r9d
lea r8d, [r9 + 0x10]
lea rdx, [fcn.140002c80]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_DdeInitializeW]
test eax, eax
jne 0x140002231
mov r8d, 0x4b0
mov rdx, rbx
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.USER32.dll_DdeCreateStringHandleW]
mov qword [rbp - 0x38], rax
xor ebx, ebx
test rax, rax
je 0x140002165
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.USER32.dll_DdeConnectList]
mov qword [rbp - 0x70], rax
test rax, rax
je 0x140002165
lea esi, [rbx + 1]
lea rdx, [0x140009718]
mov rcx, r14
call fcn.140002c84
test eax, eax
jne 0x140001d3b
lea rdx, str.OpenAsReadOnly
mov rcx, r14
call fcn.140002c84
xor r14d, r14d
test eax, eax
jne 0x140001d3e
mov eax, dword [rsp + 0x54]
lea rdx, [rax + rax*8]
mov r8d, r15d
lea rax, str.WinWord
mov rdx, qword [rax + rdx*8 + 0x28]
mov rcx, rdi
call fcn.140002ef0
jmp 0x140001d42
mov eax, esi
jmp 0x140001aae
xor r14d, r14d
mov word [rdi], r14w
mov rax, rdi
mov ebx, r14d
cmp word [rdi], r14w
je 0x140001d5a
lea rax, [rax + 2]
inc ebx
cmp word [rax], r14w
jne 0x140001d4e
add ebx, ebx
mov dword [rsp + 0x40], ebx
test r13d, r13d
je 0x140001e2d
mov r8d, r15d
lea rdx, str._Activate___1___
mov rcx, rdi
call fcn.140002ef0
mov ebx, 0x20
mov dword [rsp + 0x40], ebx
mov r14d, dword [rsp + 0x48]
xor r15d, r15d
test r14d, r14d
je 0x140001f27
lea rdx, str.__1_
mov rcx, rdi
call fcn.140002d80
mov r9, rax
test rax, rax
jne 0x140001dc7
lea rdx, [0x1400099cc]
mov rcx, rdi
call fcn.140002d80
mov r9, rax
test rax, rax
je 0x140001f27
mov rcx, qword [rbp - 0x58]
mov rcx, qword [rcx + 0x20]
cmp word [rcx], 0x22
jne 0x140001de5
mov eax, r14d
cmp word [rcx + rax*2 - 2], 0x22
mov edx, 1
je 0x140001de8
mov edx, r15d
mov r12d, 4
mov eax, r12d
cmp word [r9], 0x22
lea r8d, [r12 - 2]
cmovne eax, r8d
mov dword [rbp - 0x60], eax
shr ebx, 1
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
mov r8d, dword [rsp + 0x5c]
mov edx, ebx
mov rcx, rdi
call fcn.140002fe0
test eax, eax
je 0x140002234
jmp 0x140001f21
test ebx, ebx
jne 0x140001d84
lea eax, [r12 + r12]
mov dword [rsp + 0x40], eax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.ddeexec
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001f06
mov rcx, qword [rbp - 0x68]
cmp dword [rsp + 0x60], esi
jne 0x140001e76
mov byte [rdi], r14b
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001f06
mov r14d, dword [rsp + 0x48]
xor r12d, r12d
test r14d, r14d
je 0x140001f1a
xor edx, edx
mov rcx, rdi
call fcn.140002f6c
mov rbx, rax
test rax, rax
je 0x140001efd
mov rcx, rdi
cmp word [rdi], r12w
je 0x140001ed5
mov eax, 0xffffffff
add rcx, 2
add r15d, eax
je 0x140001ee0
cmp word [rcx], r12w
jne 0x140001ec6
mov r8d, r15d
mov rdx, rbx
call fcn.140002ef0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [rsp + 0x40]
lea ebx, [rax*2 - 2]
mov dword [rsp + 0x40], ebx
jmp 0x140001d89
mov ebx, dword [rsp + 0x40]
jmp 0x140001d89
xor r15d, r15d
mov esi, r15d
mov ebx, dword [rsp + 0x40]
mov r14d, dword [rsp + 0x48]
jmp 0x140001d8c
xor r15d, r15d
lea r12d, [r15 + 4]
mov ebx, dword [rsp + 0x40]
jmp 0x140001f2d
mov r12d, 4
lea rdx, str.__1_
mov rcx, rdi
call fcn.140002d80
mov r9, rax
test rax, rax
jne 0x140001f60
lea rdx, [0x1400099cc]
mov rcx, rdi
call fcn.140002d80
mov r9, rax
test rax, rax
jne 0x140001f60
mov esi, r15d
jmp 0x140001fb5
cmp word [r9], 0x22
mov rdx, qword [rbp - 0x60]
cmove edx, r12d
test ebx, ebx
jne 0x140001f76
mov ecx, r15d
jmp 0x140001f7a
mov ecx, ebx
shr ecx, 1
lea eax, [rcx + r14]
cmp eax, ecx
jb 0x140002234
shr ebx, 1
add ebx, r14d
mov dword [rsp + 0x30], r15d
mov r8, qword [rsp + 0x78]
mov qword [rsp + 0x28], r8
mov dword [rsp + 0x20], edx
mov r8d, dword [rsp + 0x5c]
mov edx, ebx
mov rcx, rdi
call fcn.140002fe0
test eax, eax
je 0x140002234
test esi, esi
je 0x140002234
mov r14d, 0xffffffff
mov esi, r14d
mov eax, 0xbb8
mov r12d, dword [rsp + 0x54]
cmp r12d, 1
cmove esi, eax
xor edx, edx
mov r13, qword [rbp - 0x70]
mov rcx, r13
call qword [sym.imp.USER32.dll_DdeQueryNextServer]
mov rbx, rax
test rax, rax
je 0x140002109
mov r14d, dword [rsp + 0x64]
mov r15d, dword [rsp + 0x58]
mov ecx, 0xffffffff
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp r14d, r15d
jb 0x140002231
lea rax, [r14 + 1]
mov ecx, 0xffffffff
cmp rax, rcx
ja 0x140002231
mov eax, eax
add rax, rax
mov rcx, rax
shr rcx, 0x20
xor r8d, r8d
mov edx, r8d
test ecx, ecx
cmove edx, eax
xor cl, 1
je 0x140002231
mov ecx, dword [rsp + 0x40]
lea eax, [rdx + rcx]
cmp eax, edx
jb 0x140002231
lea edx, [rcx + 2]
lea edx, [rdx + r14*2]
mov qword [rsp + 0x38], r8
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], 0x4050
mov dword [rsp + 0x20], r8d
xor r9d, r9d
mov r8, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_DdeClientTransaction]
mov qword [rbp - 0x40], rax
test rax, rax
jne 0x1400020fe
cmp r12d, 1
je 0x1400020fe
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.USER32.dll_DdeQueryNextServer]
mov rbx, rax
test rax, rax
jne 0x140001ffc
mov ecx, dword [rsp + 0x4c]
mov r14d, 0xffffffff
xor r15d, r15d
test ecx, ecx
je 0x140002234
lea rcx, [r12 + r12*8]
lea rax, str.WinWord
cmp dword [rax + rcx*8 + 0x34], r15d
je 0x140002234
mov esi, 0x90
mov r8d, esi
xor edx, edx
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x30], esi
lea r8, [rbp - 0x30]
mov edx, r14d
mov rcx, rbx
call qword [sym.imp.USER32.dll_DdeQueryConvInfo]
mov rbx, qword [rbp + 0x58]
mov rcx, rbx
jmp 0x14000211e
mov ecx, 1
mov dword [rsp + 0x4c], ecx
jmp 0x1400020a8
mov ecx, dword [rsp + 0x4c]
jmp 0x1400020b1
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetParent]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.USER32.dll_GetParent]
test rax, rax
jne 0x14000210f
cmp qword [rbp + 0x58], r15
je 0x140002234
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x14000214e
mov edx, 9
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
mov ecx, r14d
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x140002234
mov rbx, qword [rsp + 0x40]
mov dword [rsp + 0x64], 0x208
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x1400097f0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r15d, r15d
test eax, eax
jne 0x140002234
mov rcx, qword [rbp - 0x80]
cmp dword [rsp + 0x60], 1
jne 0x1400021af
mov byte [rdi], r15b
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002234
lea rax, [rbp - 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov r9, r14
mov r8, rbx
mov edx, 2
lea ecx, [rdx + 0x1e]
call qword [sym.imp.SHLWAPI.dll_AssocQueryStringByKeyW]
test eax, eax
js 0x140002234
mov rcx, qword [rbp - 0x58]
mov rax, qword [rcx + 0x28]
mov qword [rsp + 0x28], rax
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x58]
mov r8, qword [rsp + 0x78]
mov rdx, rdi
mov rcx, rsi
call fcn.1400014a0
mov ecx, r15d
test eax, eax
setne cl
mov dword [rsp + 0x4c], ecx
jmp 0x140002234
xor r15d, r15d
mov rbx, qword [rbp - 0x50]
test rbx, rbx
je 0x14000224b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14000224b
xor r15d, r15d
test rdi, rdi
je 0x140002259
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rax, qword [rbp - 0x48]
test rax, rax
je 0x14000226b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x14000227e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x140002290
mov rcx, rax
call qword [sym.imp.USER32.dll_DdeFreeDataHandle]
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x1400022a6
mov rdx, rax
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.USER32.dll_DdeFreeStringHandle]
mov rax, qword [rbp - 0x70]
test rax, rax
je 0x1400022b8
mov rcx, rax
call qword [sym.imp.USER32.dll_DdeDisconnectList]
mov edi, dword [rsp + 0x4c]
mov ecx, dword [rsp + 0x50]
test ecx, ecx
je 0x1400022cb
call qword [sym.imp.USER32.dll_DdeUninitialize]
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400022da
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x80], r15
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400022ee
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], r15
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140002302
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1400070a0
add rsp, 0x178
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret