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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor esi, esi
mov dword [ebp - 0x24], str.detoured.dll
mov dword [ebp - 0x20], str._etoured.dll
mov dword [ebp - 0x1c], str.nvd3d9wrap.dll
mov dword [ebp - 0x18], str.nvdxgiwrap.dll
push dword [ebp + esi*4 - 0x24]
call edi
test eax, eax
jne 0x10002148
inc esi
cmp esi, 4
jb 0x10001f70
push 0x10024820
call edi
test eax, eax
jne 0x10002127
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10002127
movups xmm0, xmmword [str.AppInit_DLLs]
mov ebx, dword [ebp - 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
mov ax, word [0x100248bc]
mov word [ebp - 0x28], ax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
push eax
movq xmm0, qword [0x100248b4]
push ebx
movq qword [ebp - 0x30], xmm0
call edi
test eax, eax
jne 0x1000211c
mov eax, dword [ebp - 8]
shr eax, 1
push eax
lea eax, [ebp - 4]
push eax
call fcn.10001240
add esp, 8
mov esi, dword [eax]
mov dword [eax], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 4], 0
test eax, eax
je 0x1000202e
push eax
call sym.mozglue.dll__aligned_free
add esp, 4
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x1000210f
mov eax, dword [0x100248c0]
mov dword [ebp - 0x14], eax
mov ax, word [0x100248c4]
mov word [ebp - 0x10], ax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1000210f
nop dword [eax]
push 0x200
lea eax, [ebp - 0x240]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0
push 0
push 0x100
lea eax, [ebp - 0x240]
push eax
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
add esp, 0x30
test eax, eax
jne 0x100020f2
mov eax, dword [0x100248d0]
movq xmm0, qword [str.nvinit]
mov dword [ebp - 0x1c], eax
mov ax, word [0x100248d4]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x24]
push 7
push eax
lea eax, [ebp - 0x240]
movq qword [ebp - 0x24], xmm0
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x10002130
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10002080
test esi, esi
je 0x1000211c
push esi
call sym.mozglue.dll__aligned_free
add esp, 4
test ebx, ebx
je 0x10002127
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1000213d
push esi
call sym.mozglue.dll__aligned_free
add esp, 4
test ebx, ebx
je 0x10002148
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret