Function at 0x10011f30
Capabilities:
Check for software breakpoints
Get system information on windows
Persist via appinit_dlls registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x25c
mov edi, edx
mov esi, ecx
mov eax, dword [0x1007a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push str.detoured.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
jne 0x10012575
push str._etoured.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
jne 0x10012575
push str.nvd3d9wrap.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
jne 0x10012575
push str.nvdxgiwrap.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
jne 0x10012575
push str.user32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov cl, 1
test eax, eax
je 0x100121f4
xor ebx, ebx
test edi, edi
je 0x100124e5
test cl, cl
je 0x100124e5
lea ebx, [ebp - 0x244]
mov ecx, esi
mov edx, ebx
push edi
call fcn.1002ff80
add esp, 4
lea edi, [ebp - 0x234]
mov ecx, ebx
mov edx, edi
push 0xfffffffffffffffb
push 7
call fcn.1000e1f0
add esp, 8
mov dword [ebp - 0x25c], 0
cmp dword [edi + 0x3c], 0
je 0x10012455
cmp byte [ebp - 0x204], 0
je 0x10012455
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x228]
mov bh, byte [ecx + eax]
mov bl, byte [ecx + eax + 2]
mov dh, byte [ecx + eax + 3]
mov dl, byte [ecx + eax + 4]
cmp bh, 0xcc
je 0x10012030
cmp bh, 0x90
jne 0x1001244b
mov bh, byte [eax + ecx + 1]
cmp bh, 0x90
je 0x10012042
cmp bh, 0xcc
jne 0x1001244b
cmp bl, 0xcc
je 0x10012050
cmp bl, 0x90
jne 0x1001244b
cmp dh, 0xcc
je 0x1001205e
cmp dh, 0x90
jne 0x1001244b
cmp dl, 0xcc
je 0x1001206c
cmp dl, 0x90
jne 0x1001244b
movzx eax, word [eax + ecx + 5]
and eax, 0xfffffffd
cmp ax, 0xff89
jne 0x1001244b
lea ecx, [ebp - 0x220]
mov eax, dword [ecx + 4]
cmp eax, dword [ecx + 8]
je 0x100122de
mov edx, dword [ebp - 0x220]
mov byte [edx + eax], 0xe9
mov ebx, dword [ebp - 0x228]
mov edi, dword [ebp - 0x21c]
lea eax, [edi + 1]
mov dword [ebp - 0x21c], eax
lea edx, [ebx + 1]
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x25c], 0
cmp byte [ebp - 0x204], 0
je 0x10012455
cmp dword [ebp - 0x1f8], 0
je 0x10012455
mov dword [ebp - 0x260], esi
not ebx
add ebx, dword [ebp + 8]
sub ebx, dword [ebp - 0x230]
add edi, 5
cmp edi, dword [ebp - 0x218]
ja 0x100122fd
add ebx, 0xfffffffc
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
shr edx, 0x18
mov esi, dword [ebp - 0x220]
mov byte [esi + eax], bl
mov byte [esi + eax + 1], bh
mov byte [esi + eax + 2], cl
mov byte [esi + eax + 3], dl
mov edx, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x21c]
add ecx, 4
mov dword [ebp - 0x21c], ecx
lea eax, [edx + 4]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x25c], 0
cmp byte [ebp - 0x204], 0
je 0x100121e9
cmp dword [ebp - 0x1f8], 0
mov esi, dword [ebp - 0x260]
je 0x10012455
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x230]
add edx, eax
add edx, 6
mov dword [esi], edx
test ecx, ecx
je 0x1001231a
add eax, dword [ebp - 0x224]
push ecx
push dword [ebp - 0x220]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
xor esi, esi
push esi
push esi
push eax
call dword [sym.imp.kernel32.dll_FlushInstructionCache]
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x224]
add ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x21c], esi
mov word [eax + ecx], 0xf9eb
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
xor ecx, ecx
push ecx
push ecx
push eax
call dword [sym.imp.kernel32.dll_FlushInstructionCache]
add dword [ebp - 0x224], 2
mov al, 1
mov dword [ebp - 0x25c], eax
mov esi, dword [ebp - 0x260]
jmp 0x10012455
mov dword [ebp - 0x260], esi
xor ebx, ebx
lea eax, [ebp - 0x250]
mov dword [eax], ebx
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWindows
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov cl, 1
mov dword [ebp - 0x25c], ecx
test eax, eax
je 0x10012235
mov esi, dword [ebp - 0x260]
mov ecx, dword [ebp - 0x25c]
jmp 0x10011fab
mov eax, dword [ebp - 0x250]
lea edx, [ebp - 0x254]
mov dword [edx], ebx
movups xmm0, xmmword [0x1006acd2]
lea ecx, [ebp - 0x34]
movups xmmword [ecx + 0xa], xmm0
movups xmm0, xmmword [str.AppInit_DLLs]
movups xmmword [ecx], xmm0
push edx
push ebx
push ebx
push ebx
push ecx
mov dword [ebp - 0x264], eax
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x10012288
cmp dword [ebp - 0x264], 0
je 0x10012224
push dword [ebp - 0x264]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x10012224
mov esi, dword [ebp - 0x254]
inc esi
and esi, 0xfffffffe
push esi
call sym.mozglue.dll_moz_xmalloc
add esp, 4
mov ebx, eax
push esi
xor esi, esi
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
mov dword [ebp - 0x268], ebx
push ebx
push esi
push esi
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x250]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
je 0x10012325
push dword [ebp - 0x268]
call sym.mozglue.dll__aligned_free
add esp, 4
jmp 0x10012271
xor edx, edx
inc edx
mov edi, ecx
call fcn.10013bf0
test al, al
je 0x10012444
mov eax, dword [ebp - 0x21c]
mov ecx, edi
jmp 0x10012090
mov edx, 4
call fcn.10013bf0
test al, al
je 0x1001259a
mov eax, dword [ebp - 0x21c]
jmp 0x100120fc
mov ecx, dword [ebp - 0x224]
jmp 0x100121c3
movzx eax, word [0x1006ace6]
lea ecx, [ebp - 0x24c]
mov word [ecx + 4], ax
mov eax, dword [0x1006ace2]
mov dword [ecx], eax
lea eax, [ebp - 0x258]
mov dword [eax], 0
push eax
push ecx
push dword [ebp - 0x268]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
add esp, 0xc
test eax, eax
je 0x100122ce
mov ebx, eax
xor esi, esi
push 0x200
push esi
lea eax, [ebp - 0x234]
push eax
call sub.VCRUNTIME140.dll_memset
sub esp, 0x18
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
lea eax, [ebp - 0x234]
mov dword [esp + 0x14], eax
xorps xmm0, xmm0
movups xmmword [esp + 4], xmm0
mov dword [esp], ebx
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 0x100123ea
movsd xmm0, qword [0x1006acee]
movsd qword [ebp - 0x23e], xmm0
movsd xmm0, qword [0x1006ace8]
movsd qword [ebp - 0x244], xmm0
push 7
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x10012412
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x24c]
push eax
push 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x10012366
jmp 0x100122ce
push dword [ebp - 0x268]
call sym.mozglue.dll__aligned_free
add esp, 4
cmp dword [ebp - 0x264], 0
je 0x10012435
push dword [ebp - 0x264]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x25c], 0
jmp 0x10012224
mov byte [ebp - 0x204], 0
mov dword [ebp - 0x25c], 0
mov eax, dword [0x1007a860]
mov ecx, dword [0x1007a2f0]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x10012533
mov edi, dword [ebp - 0x1fc]
mov eax, dword [ebp - 0x1f8]
test eax, eax
jne 0x100124fc
lea eax, [ebp - 0x1f0]
mov dword [eax - 8], 0
cmp edi, eax
jne 0x1001257c
lea ecx, [ebp - 0x214]
mov eax, dword [ecx - 0xc]
cmp eax, ecx
jne 0x1001258b
cmp byte [ebp - 0x25c], 0
je 0x10012575
mov edi, dword [ebp - 0x240]
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x18]
jne 0x100124da
lea ecx, [esi + 0x10]
call fcn.100125b0
test al, al
je 0x10012575
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
mov dword [ecx + eax*4], edi
inc dword [esi + 0x14]
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002cad0
mov eax, ebx
add esp, 0x25c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x260], esi
mov ebx, dword [0x1007a85c]
lea esi, [edi + eax*8]
lea eax, [ebp - 0x34]
push eax
push dword [edi]
push ebx
push dword [edi + 4]
call dword [sym.imp.kernel32.dll_VirtualProtect]
add edi, 8
cmp edi, esi
jne 0x1001250b
mov edi, dword [ebp - 0x1fc]
mov esi, dword [ebp - 0x260]
jmp 0x10012486
push 0x1007a860
call fcn.1002d432
add esp, 4
cmp dword [0x1007a860], 0xffffffff
jne 0x10012476
mov edi, esi
lea esi, [ebp - 0x34]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov esi, edi
mov dword [0x1007a85c], eax
push 0x1007a860
call fcn.1002d432
add esp, 4
jmp 0x10012476
xor ebx, ebx
jmp 0x100124e5
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x1001249b
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x100124ac
mov byte [ebp - 0x204], 0
mov dword [ebp - 0x25c], 0
jmp 0x100121e9