Function at 0x7d225710
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x7d2abca0]
mov r15, rdx
mov r14, rcx
test rax, rax
jne 0x7d225758
lea rcx, str.oleaut32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, rax
lea rdx, str.LoadTypeLibEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x7d2abca0], rax
mov rcx, qword [0x7d2abca8]
mov qword [rsp + 0xc0], rbx
test rcx, rcx
jne 0x7d2257bd
lea rcx, [0x7d28ed80]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.CreateProxyFromTypeInfo
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CreateStubFromTypeInfo
mov rcx, rbx
mov qword [0x7d2abca8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x7d2abca8]
mov rdx, rax
mov qword [0x7d2abcb0], rax
mov rax, qword [0x7d2abca0]
jmp 0x7d2257c4
mov rdx, qword [0x7d2abcb0]
test rax, rax
je 0x7d225b52
test rcx, rcx
je 0x7d225b52
test rdx, rdx
je 0x7d225b52
mov ecx, 0x144
mov qword [rsp + 0x90], rdi
call fcn.7d2244c0
mov rdi, rax
test rax, rax
jne 0x7d22581b
mov eax, 0x8007000e
mov rdi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop r15
pop r14
pop rbp
ret
movups xmm0, xmmword [str.Interface_]
or rbx, 0xffffffffffffffff
mov qword [rsp + 0x98], rsi
movups xmmword [rax], xmm0
mov eax, dword [0x7d28ee18]
mov dword [rdi + 0x10], eax
movzx eax, word [0x7d28ee1c]
mov word [rdi + 0x14], ax
mov rax, rbx
nop dword [rax + rax]
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x7d225850
lea rdx, [rdi + rax*2]
mov r8d, 0x30
mov rcx, r14
call qword [0x7d2abc98]
lea rcx, [rdi - 2]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x7d225873
mov eax, dword [0x7d28ee24]
mov dword [rcx], eax
lea rcx, [rdi - 2]
nop word [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x7d225890
mov r8, qword [str.TypeLib]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x7d2258b0
lea rax, [rbp + 0x7f]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, 0xffffffff80000000
call qword [0x7d2abb88]
test eax, eax
jne 0x7d225b36
lea rdx, [0x7d28ed18]
lea rcx, [rbp - 0x21]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rbp + 0x7f]
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x21]
mov r9, rdi
mov dword [rsp + 0x20], 0x13c
mov r8d, 2
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
test eax, eax
jne 0x7d225a1f
mov ecx, dword [rdi + 8]
mov rax, qword [str.TypeLib]
shr ecx, 1
mov dword [rbp + 0x77], ecx
nop
cmp word [rax + rbx*2 + 2], 0
lea rbx, [rbx + 1]
jne 0x7d225940
mov r8d, ecx
lea rbx, [rdi + rbx*2]
add r8, r8
lea rcx, [rbx + 2]
lea rdx, [rdi + 0xc]
call sub.ntdll.dll_memmove
mov rcx, qword [str.TypeLib]
mov rdx, rdi
sub rdx, rcx
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x7d225970
mov eax, 0x5c
lea rdx, [0x7d28ee28]
mov word [rbx], ax
lea rcx, [rbp - 0x21]
mov word [rbx + 0x4e], ax
add rbx, 0x50
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rbp + 0x7f]
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 9]
mov r8d, 2
mov dword [rsp + 0x20], 0x40
lea rdx, [rbp - 0x21]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
test eax, eax
jne 0x7d225a1f
mov eax, dword [rbp - 1]
lea rdx, [rbp + 3]
shr eax, 1
mov rcx, rbx
mov r8d, eax
add r8, r8
mov dword [rbp + 0x77], eax
call sub.ntdll.dll_memcpy
mov ecx, dword [rbp + 0x77]
test ecx, ecx
je 0x7d225a04
lea edx, [rcx - 1]
cmp word [rbx + rdx*2], 0
jne 0x7d225a04
mov dword [rbp + 0x77], edx
mov ecx, edx
test edx, edx
jne 0x7d2259f1
movups xmm0, xmmword [str.0win32]
mov eax, ecx
lea rdx, [rbx + rax*2]
movups xmmword [rdx], xmm0
movzx eax, word [0x7d28ee50]
mov word [rdx + 0x10], ax
mov rcx, qword [rbp + 0x7f]
call qword [0x7d2abb90]
test esi, esi
jne 0x7d225b36
lea rax, [rbp + 0x7f]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, 0xffffffff80000000
call qword [0x7d2abb88]
test eax, eax
jne 0x7d225b36
lea rdx, [0x7d28ed18]
lea rcx, [rbp - 0x21]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rbp + 0x7f]
lea rax, [rbp + 0x77]
mov qword [rsp + 0x28], rax
lea r8d, [rsi + 2]
mov r9, rdi
mov dword [rsp + 0x20], 0x13c
lea rdx, [rbp - 0x21]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
jne 0x7d225abb
mov ecx, dword [rdi + 8]
lea rdx, [rdi + 0xc]
shr ecx, 1
mov r8d, ecx
mov dword [rbp + 0x77], ecx
add r8, r8
mov rcx, rdi
call sub.ntdll.dll_memmove
mov ecx, dword [rbp + 0x77]
xor eax, eax
mov word [rdi + rcx*2], ax
mov rcx, qword [rbp + 0x7f]
call qword [0x7d2abb90]
test ebx, ebx
jne 0x7d225b36
mov ecx, 0x410
call fcn.7d2212da
xor edx, edx
mov r8d, 0x410
mov rcx, rax
mov rbx, rax
call sub.ntdll.dll_memset
mov r8d, 0x200
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea r8, [rbp - 0x29]
mov edx, 2
mov rcx, rbx
call qword [0x7d2abca0]
mov rcx, rbx
mov esi, eax
call fcn.7d221938
test esi, esi
js 0x7d225b3b
mov rcx, qword [rbp - 0x29]
mov r8, r15
mov rdx, r14
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rbp - 0x29]
mov esi, eax
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x7d225b3b
mov esi, 0x8011041e
mov rcx, rdi
call fcn.7d225c90
mov eax, esi
mov rsi, qword [rsp + 0x98]
jmp 0x7d2257fe
lea rdx, str.CreateTypeInfo
mov ecx, 0x89d
call sym.imfsbDll.dll_SbieApi_Log
mov eax, 0x80004005
jmp 0x7d225806