Function at 0x300025a8
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rax, rsp
sub rsp, 0x158
xor ebx, ebx
mov r15, rcx
mov rcx, r9
mov rsi, r9
mov rbp, rdx
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0x68], rbx
mov qword [rax - 0xd8], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0xa0], rbx
mov dword [rax + 0x60], ebx
call fcn.3000256c
lea r14d, [rbx + 2]
cmp rax, rbx
mov qword [rsp + 0xa8], rbx
mov qword [rsp + 0x98], r14
mov rcx, rax
mov qword [rsp + 0xb8], rax
mov r12d, ebx
je 0x3000263b
cmp word [rax], bx
je 0x3000263b
add rax, r14
add r12d, 1
cmp word [rax], bx
jne 0x3000262f
cmp rsi, rbx
je 0x3000265c
mov rax, qword [rsi + 0x20]
cmp rax, rbx
je 0x3000265c
mov r13d, ebx
jmp 0x30002655
add rax, r14
add r13d, 1
cmp word [rax], bx
jne 0x3000264e
jmp 0x3000265f
mov r13d, ebx
lea eax, [r13 + r12]
xor ecx, ecx
mov dword [rsp + 0x78], eax
add eax, 0x108
lea ebx, [rax + 1]
mov dword [rsp + 0x40], eax
mov edx, ebx
mov dword [rsp + 0x58], ebx
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, ebx
xor ecx, ecx
add rdx, rdx
mov rdi, rax
mov dword [rsp + 0x7c], ebx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rbp
mov qword [rsp + 0x70], rax
xor eax, eax
test rbp, rbp
je 0x300026ba
cmp word [rbp], ax
je 0x300026ba
add rcx, r14
add eax, 1
cmp word [rcx], 0
jne 0x300026ae
lea ebx, [rax + 7]
xor ecx, ecx
mov edx, ebx
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [rsp + 0x1b0]
mov rcx, rsi
mov r9, rax
mov qword [rsp + 0x90], rax
call fcn.300011e8
test r9, r9
mov r14d, eax
je 0x30002d06
test rdi, rdi
je 0x30002d06
cmp qword [rsp + 0x70], 0
je 0x30002d18
lea rdx, str.shell_
mov r8d, ebx
mov rcx, r9
call fcn.300017e4
mov r8d, ebx
mov rdx, rbp
mov rbx, rcx
call fcn.30001870
lea r11, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x30002d06
mov eax, dword [rsp + 0x1b0]
cmp eax, 0xffffffff
je 0x30002c21
cmp dword [rsp + 0x1c0], 0
je 0x30002c21
shl rax, 6
lea rcx, str.WinWord
mov rbx, qword [rax + rcx + 8]
mov qword [rsp + 0x88], rax
cmp word [rbx], 0
jne 0x300027a6
mov rcx, qword [rsp + 0x50]
call fcn.30002214
test rax, rax
mov qword [rsp + 0xa8], rax
je 0x30002d06
mov rbx, rax
xor r9d, r9d
lea rdx, [0x300012dc]
lea rcx, [rsp + 0x1b8]
lea r8d, [r9 + 0x10]
call sub.USER32.dll_DdeInitializeW
test eax, eax
jne 0x30002d06
mov ecx, dword [rsp + 0x1b8]
mov r8d, 0x4b0
mov rdx, rbx
call sub.USER32.dll_DdeCreateStringHandleW
test rax, rax
mov qword [rsp + 0xb0], rax
je 0x30002c21
mov ecx, dword [rsp + 0x1b8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov qword [rsp + 0x20], 0
call sub.USER32.dll_DdeConnectList
test rax, rax
mov qword [rsp + 0x68], rax
je 0x30002c21
mov rdx, qword [0x3000c0e8]
mov rcx, rbp
mov dword [rsp + 0x1a8], 0
mov r15d, 1
call fcn.300013e0
test eax, eax
je 0x30002877
mov rdx, qword [str.OpenAsReadOnly]
mov rcx, rbp
call fcn.300013e0
test eax, eax
je 0x30002877
mov rdx, qword [rsp + 0x88]
mov ebp, dword [rsp + 0x58]
lea rax, str.WinWord
mov rdx, qword [rdx + rax + 0x28]
mov r8d, ebp
mov rcx, rdi
call fcn.300017e4
jmp 0x30002880
mov ebp, dword [rsp + 0x58]
mov word [rdi], 0
xor ebx, ebx
mov rax, rdi
cmp word [rdi], bx
je 0x30002897
add rax, 2
add ebx, r15d
cmp word [rax], 0
jne 0x3000288a
add ebx, ebx
test r14d, r14d
mov dword [rsp + 0x1a8], ebx
je 0x300028c8
lea rdx, str._Activate___1___
mov r8d, ebp
mov rcx, rdi
call fcn.300017e4
mov ebx, 0x20
mov dword [rsp + 0x1a8], ebx
jmp 0x3000298f
test ebx, ebx
jne 0x3000298f
mov rdx, qword [str.ddeexec]
mov rcx, qword [rsp + 0x50]
lea eax, [r12 + r12 + 0x208]
mov dword [rsp + 0x1a8], eax
lea rax, [rsp + 0x80]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x30002985
cmp dword [rsp + 0x48], r15d
mov rcx, qword [rsp + 0x80]
jne 0x3000291c
mov byte [rdi], al
lea rax, [rsp + 0x1a8]
lea r9, [rsp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x30002985
test r13d, r13d
je 0x30002a26
xor edx, edx
mov rcx, rdi
call fcn.300018ac
test rax, rax
mov rbx, rax
je 0x30002988
mov r8d, ebp
mov rdx, rax
mov rcx, rdi
call fcn.30001870
mov rcx, rbx
call fcn.300034e4
mov r11d, dword [rsp + 0x1a8]
lea ebx, [r11 + r11 - 2]
jmp 0x300028bc
xor r15d, r15d
mov ebx, dword [rsp + 0x1a8]
test r13d, r13d
je 0x30002a38
lea rdx, str.__1_
mov rcx, rdi
call fcn.300016d4
test rax, rax
mov r9, rax
jne 0x300029c6
lea rdx, [0x30009b04]
mov rcx, rdi
call fcn.300016d4
test rax, rax
mov r9, rax
je 0x30002a38
mov rcx, qword [rsi + 0x20]
cmp word [rcx], 0x22
jne 0x300029e2
mov eax, r13d
cmp word [rcx + rax*2 - 2], 0x22
jne 0x300029e2
mov eax, 1
jmp 0x300029e4
xor eax, eax
cmp word [r9], 0x22
mov esi, dword [rsp + 0x40]
mov edx, 2
lea ebp, [rdx + 2]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rcx
cmove edx, ebp
shr ebx, 1
mov r8d, esi
mov qword [rsp + 0x98], rdx
mov dword [rsp + 0x20], edx
mov edx, ebx
mov rcx, rdi
call fcn.30001cec
test eax, eax
je 0x30002d06
jmp 0x30002a2f
mov esi, dword [rsp + 0x40]
mov ebp, 4
mov ebx, dword [rsp + 0x1a8]
jmp 0x30002a41
mov esi, dword [rsp + 0x40]
mov ebp, 4
lea rdx, str.__1_
mov rcx, rdi
call fcn.300016d4
test rax, rax
jne 0x30002a6d
lea rdx, [0x30009b04]
mov rcx, rdi
call fcn.300016d4
test rax, rax
je 0x30002d06
mov r8, qword [rsp + 0xb8]
cmp word [rax], 0x22
mov rcx, qword [rsp + 0x98]
cmove ecx, ebp
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], r8
mov dword [rsp + 0x20], ecx
shr ebx, 1
mov r9, rax
lea edx, [r13 + rbx]
mov r8d, esi
mov rcx, rdi
call fcn.30001cec
test eax, eax
je 0x30002d06
test r15d, r15d
je 0x30002d06
mov r14d, dword [rsp + 0x1b0]
mov r12, qword [rsp + 0x68]
mov eax, 0xbb8
mov r13d, 0xffffffff
cmp r14d, 1
mov rcx, r12
mov esi, r13d
cmove esi, eax
xor edx, edx
call sub.USER32.dll_DdeQueryNextServer
test rax, rax
mov rbx, rax
je 0x30002d06
mov ebp, dword [rsp + 0x78]
lea ebp, [rbp + rbp + 2]
mov ecx, r13d
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov r11d, dword [rsp + 0x1a8]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], esi
lea edx, [rbp + r11]
xor r9d, r9d
mov r8, rbx
mov rcx, rdi
mov dword [rsp + 0x28], 0x4050
mov dword [rsp + 0x20], 0
call sub.USER32.dll_DdeClientTransaction
test rax, rax
mov qword [rsp + 0xa0], rax
jne 0x30002b67
cmp r14d, 1
je 0x30002b67
mov rdx, rbx
mov rcx, r12
call sub.USER32.dll_DdeQueryNextServer
test rax, rax
mov rbx, rax
jne 0x30002afb
jmp 0x30002d06
mov rax, qword [rsp + 0x88]
lea rcx, str.WinWord
mov dword [rsp + 0x44], 1
cmp dword [rax + rcx + 0x34], 0
je 0x30002d06
mov esi, 0x90
lea rcx, [rsp + 0xc0]
xor edx, edx
mov r8, rsi
call sub.MSVCR80.dll_memset
lea r8, [rsp + 0xc0]
mov edx, r13d
mov rcx, rbx
mov dword [rsp + 0xc0], esi
call sub.USER32.dll_DdeQueryConvInfo
mov rbx, qword [rsp + 0x148]
mov rcx, rbx
jmp 0x30002bd6
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 0x30002bc7
cmp qword [rsp + 0x148], rax
je 0x30002d06
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x30002c0a
mov edx, 9
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
mov ecx, r13d
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x30002d06
mov rdx, qword [0x3000c0e0]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x1a8], 0x208
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x30002d06
cmp dword [rsp + 0x48], 1
mov rcx, qword [rsp + 0x60]
jne 0x30002c67
mov byte [rdi], al
lea rax, [rsp + 0x1a8]
lea r9, [rsp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x30002d06
mov r13, qword [rsp + 0x70]
mov edx, 2
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x28], rax
lea ecx, [rdx + 0x1e]
mov r9, rbp
mov r8, r15
mov qword [rsp + 0x20], r13
call qword [sym.imp.SHLWAPI.dll_AssocQueryStringByKeyW]
test eax, eax
js 0x30002d06
test rsi, rsi
je 0x30002cc4
mov rcx, qword [rsi + 0x28]
jmp 0x30002cc6
xor ecx, ecx
test rsi, rsi
je 0x30002cd1
mov rax, qword [rsi + 0x20]
jmp 0x30002cd3
xor eax, eax
mov r8, qword [rsp + 0xb8]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rcx
mov r9d, r12d
mov rdx, rdi
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.30001e30
xor ecx, ecx
test eax, eax
setne cl
mov dword [rsp + 0x44], ecx
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x30002d18
mov rcx, rax
call fcn.300034e4
test rdi, rdi
je 0x30002d25
mov rcx, rdi
call fcn.300034e4
mov rax, qword [rsp + 0xa8]
test rax, rax
je 0x30002d3a
mov rcx, rax
call fcn.300034e4
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x30002d4f
mov rcx, rax
call fcn.300034e4
mov rax, qword [rsp + 0xa0]
test rax, rax
je 0x30002d64
mov rcx, rax
call sub.USER32.dll_DdeFreeDataHandle
mov rax, qword [rsp + 0xb0]
test rax, rax
je 0x30002d80
mov ecx, dword [rsp + 0x1b8]
mov rdx, rax
call sub.USER32.dll_DdeFreeStringHandle
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x30002d92
mov rcx, rax
call sub.USER32.dll_DdeDisconnectList
mov ecx, dword [rsp + 0x1b8]
test ecx, ecx
je 0x30002da2
call sub.USER32.dll_DdeUninitialize
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x30002db2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x60], 0
test rcx, rcx
je 0x30002dcb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x50], 0
test rcx, rcx
je 0x30002de7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x44]
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret