Function at 0x467270
Capabilities:
Persist via appinit_dlls registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x260
mov esi, dword [0x4f62d0]
mov eax, dword [esi]
xor eax, ebp
mov dword [esp + 0x258], eax
push str.detoured.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4672cc
push str._etoured.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4672cc
push str.nvd3d9wrap.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4672cc
push str.nvdxgiwrap.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4672eb
xor ebx, ebx
mov eax, dword [esp + 0x258]
xor eax, ebp
mov ecx, dword [esi]
cmp ecx, eax
jne 0x4674e9
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov bl, 1
test eax, eax
jne 0x4672ce
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov bl, 1
test eax, eax
jne 0x4672ce
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], 0
movups xmm0, xmmword [0x4fd38c]
movups xmmword [esp + 0x23a], xmm0
movups xmm0, xmmword [str.AppInit_DLLs]
movaps xmmword [esp + 0x230], xmm0
lea ecx, [esp + 0x10]
lea eax, [esp + 0x230]
push ecx
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4674d5
mov dword [esp + 4], edi
mov edi, dword [esp + 0x10]
add edi, 1
and edi, 0xfffffffe
push edi
call dword [sym.imp.mozglue.dll_moz_xmalloc]
add esp, 4
push edi
mov edi, eax
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push edi
push 0
push 0
lea eax, [esp + 0x240]
push eax
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4674c8
movzx eax, word [0x4fd3a0]
mov word [esp + 0x1c], ax
mov eax, dword [0x4fd39c]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], 0
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x10], edi
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
add esp, 0xc
test eax, eax
je 0x4674c4
mov edi, eax
jmp 0x467419
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
add esp, 0xc
mov edi, eax
test eax, eax
je 0x4674c4
push 0x200
push 0
lea eax, [esp + 0x38]
push eax
call sub.ntdll.dll_memset
sub esp, 0x18
lea eax, [esp + 0x54]
mov dword [esp + 0x14], eax
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x100
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
add esp, 0x24
test eax, eax
jne 0x4673fa
movsd xmm0, qword [0x4fd3a8]
movsd qword [esp + 0x26], xmm0
movsd xmm0, qword [str.nvinit]
movsd qword [esp + 0x20], xmm0
push 7
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x4673fa
push dword [esp + 8]
call sub.mozglue.dll_free
add esp, 4
cmp dword [esp + 4], 0
je 0x4672cc
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4672cc
mov edi, dword [esp + 8]
push edi
call sub.mozglue.dll_free
add esp, 4
mov edi, dword [esp + 4]
test edi, edi
je 0x4672ce
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4672ce
call fcn.00468008
int3