Function at 0x1001c360
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, 0x258
mov edi, edx
mov dword [ebp - 0x264], ecx
mov eax, dword [0x100a500c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push str.detoured.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
jne 0x1001c911
push str._etoured.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
jne 0x1001c911
push str.nvd3d9wrap.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
jne 0x1001c911
push str.nvdxgiwrap.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
jne 0x1001c911
push str.user32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
test eax, eax
je 0x1001c729
lea ebx, [ebp - 0x244]
mov ecx, dword [ebp - 0x264]
mov edx, ebx
push edi
call fcn.100530c0
add esp, 4
mov edi, dword [ebx + 4]
lea ebx, [edi - 5]
mov eax, dword [0x100a6a5c]
mov ecx, dword [0x100a53c8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1001c6e8
mov esi, dword [0x100a6a58]
mov dword [ebp - 0x260], edi
mov eax, edi
xor edx, edx
div esi
mov ecx, eax
mov eax, ebx
xor edx, edx
div esi
mov edi, dword [ebp - 0x244]
cmp ecx, eax
je 0x1001c44e
mov ecx, ebx
call fcn.10053160
test al, al
je 0x1001c6a0
lea eax, [ebp - 0x214]
mov dword [eax - 0x20], edi
mov dword [eax - 0x1c], ebx
mov ecx, 7
mov dword [eax - 0x18], ecx
xor esi, esi
mov dword [eax - 0x14], esi
mov dword [eax - 0x10], esi
mov dword [eax - 8], esi
mov dword [eax - 4], 0x10
mov dword [eax - 0xc], eax
mov byte [eax + 0x10], 1
lea ecx, [ebp - 0x200]
mov edx, edi
mov eax, 7
push eax
push ebx
call fcn.10013b10
add esp, 8
mov dword [ebp - 0x25c], 0
lea eax, [ebp - 0x200]
cmp dword [eax + 8], esi
je 0x1001c968
cmp byte [ebp - 0x204], 0
je 0x1001c968
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x228]
movzx ebx, byte [ecx + eax]
movzx edi, byte [ecx + eax + 2]
movzx esi, byte [ecx + eax + 3]
movzx edx, byte [ecx + eax + 4]
cmp ebx, 0xcc
je 0x1001c4eb
cmp ebx, 0x90
jne 0x1001c95e
movzx ebx, byte [eax + ecx + 1]
cmp ebx, 0xcc
je 0x1001c504
cmp ebx, 0x90
jne 0x1001c95e
cmp edi, 0xcc
je 0x1001c518
cmp edi, 0x90
jne 0x1001c95e
cmp esi, 0xcc
je 0x1001c52c
cmp esi, 0x90
jne 0x1001c95e
cmp edx, 0xcc
je 0x1001c540
cmp edx, 0x90
jne 0x1001c95e
movzx eax, word [eax + ecx + 5]
and eax, 0xfffffffd
cmp ax, 0xff89
jne 0x1001c95e
lea ebx, [ebp - 0x220]
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x1001c918
mov ecx, dword [ebp - 0x220]
mov byte [ecx + eax], 0xe9
mov esi, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x21c]
lea eax, [ecx + 1]
mov dword [ebp - 0x21c], eax
lea edx, [esi + 1]
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x25c], 0
cmp dword [ebp - 0x1f8], 0
je 0x1001c968
cmp byte [ebp - 0x204], 0
je 0x1001c968
not esi
add esi, dword [ebp + 8]
sub esi, dword [ebp - 0x230]
add ecx, 5
cmp ecx, dword [ebp - 0x218]
ja 0x1001c931
add esi, 0xfffffffc
mov ecx, dword [ebp - 0x220]
mov dword [ecx + eax], esi
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 dword [ebp - 0x1f8], 0
je 0x1001c968
cmp byte [ebp - 0x204], 0
je 0x1001c968
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x230]
add edx, eax
add edx, 6
mov dword [esi], edx
test ecx, ecx
je 0x1001c94c
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
jmp 0x1001c968
lea eax, [ebp - 0x214]
mov dword [eax - 0x20], edi
xor ecx, ecx
mov dword [eax - 8], ecx
xorps xmm0, xmm0
movups xmmword [eax - 0x1c], xmm0
mov dword [eax - 4], 0x10
mov dword [eax - 0xc], eax
mov byte [eax + 0x10], 0
mov dword [eax + 0x14], edi
mov dword [ebp - 0x25c], 0
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], 2
lea eax, [ebp - 0x1f0]
mov dword [eax - 0xc], eax
jmp 0x1001c968
push 0x100a6a5c
call fcn.1004fb5e
add esp, 4
cmp dword [0x100a6a5c], 0xffffffff
jne 0x1001c41b
lea esi, [ebp - 0x234]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x100a6a58], eax
push 0x100a6a5c
call fcn.1004fb5e
add esp, 4
jmp 0x1001c41b
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]
test eax, eax
jne 0x1001c3dd
mov eax, dword [ebp - 0x250]
lea edx, [ebp - 0x254]
mov dword [edx], ebx
movups xmm0, xmmword [0x1009507a]
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 - 0x25c], eax
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001c8d0
mov ebx, dword [ebp - 0x254]
inc ebx
and ebx, 0xfffffffe
push ebx
call sym.mozglue.dll_moz_xmalloc
add esp, 4
mov esi, eax
push ebx
xor ebx, ebx
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
mov dword [ebp - 0x260], esi
push esi
push ebx
push ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001c8c2
lea eax, [ebp - 0x24c]
mov word [eax + 4], 0
mov dword [eax], 0x20002c
lea ecx, [ebp - 0x258]
mov dword [ecx], 0
push ecx
push eax
push dword [ebp - 0x260]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
add esp, 0xc
test eax, eax
je 0x1001c8c2
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 0x1001c89f
mov word [ebp - 0x238], 0
mov dword [ebp - 0x23c], 0x740069
mov dword [ebp - 0x240], 0x6e0069
mov dword [ebp - 0x244], 0x76006e
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 0x1001c8ee
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 0x1001c814
push dword [ebp - 0x260]
call sym.mozglue.dll__aligned_free
add esp, 4
cmp dword [ebp - 0x25c], 0
je 0x1001c3dd
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001c3dd
push dword [ebp - 0x260]
call sym.mozglue.dll__aligned_free
add esp, 4
cmp dword [ebp - 0x25c], 0
je 0x1001c911
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
jmp 0x1001ca24
xor edx, edx
inc edx
mov ecx, ebx
call fcn.10081710
test al, al
je 0x1001c957
mov eax, dword [ebp - 0x21c]
jmp 0x1001c564
mov ecx, ebx
mov edx, 4
call fcn.10081710
test al, al
je 0x1001c957
mov eax, dword [ebp - 0x21c]
jmp 0x1001c5ca
mov ecx, dword [ebp - 0x224]
jmp 0x1001c675
mov byte [ebp - 0x204], 0
mov dword [ebp - 0x25c], 0
mov eax, dword [0x100a6a5c]
mov ecx, dword [0x100a53c8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1001ca3b
mov esi, dword [ebp - 0x1fc]
mov eax, dword [ebp - 0x1f8]
test eax, eax
je 0x1001c9bf
mov edi, dword [0x100a6a58]
lea ebx, [esi + eax*8]
lea eax, [ebp - 0x34]
push eax
push dword [esi]
push edi
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_VirtualProtect]
add esi, 8
cmp esi, ebx
jne 0x1001c9a2
mov esi, dword [ebp - 0x1fc]
lea eax, [ebp - 0x1f0]
mov dword [eax - 8], 0
cmp esi, eax
jne 0x1001ca79
lea ecx, [ebp - 0x214]
mov eax, dword [ecx - 0xc]
cmp eax, ecx
jne 0x1001ca88
cmp byte [ebp - 0x25c], 0
je 0x1001c911
mov esi, dword [ebp - 0x264]
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x18]
jne 0x1001ca13
lea ecx, [esi + 0x10]
call fcn.1001caa0
test al, al
je 0x1001c911
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x260]
mov dword [ecx + eax*4], edx
inc dword [esi + 0x14]
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004fb50
mov eax, ebx
add esp, 0x258
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x100a6a5c
call fcn.1004fb5e
add esp, 4
cmp dword [0x100a6a5c], 0xffffffff
jne 0x1001c989
lea esi, [ebp - 0x34]
push esi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [esi + 4]
mov dword [0x100a6a58], eax
push 0x100a6a5c
call fcn.1004fb5e
add esp, 4
jmp 0x1001c989
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x1001c9d4
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp 0x1001c9e5