Function at 0x1000cab0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4fc
mov eax, dword [0x100a80a4]
xor eax, esp
mov dword [esp + 0x4f8], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x20], ebx
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x3570], eax
lea eax, [ebx + 4]
mov dword [ebx], 0x1000100c
mov dword [ebx + 0x2c], 0
push eax
mov dword [ebx + 0x28], 1
mov dword [ebx + 0x3458], 0
mov dword [ebx + 0x24], ebx
mov dword [eax + 0x18], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebx + 0x3420]
mov ecx, 0xc
mov dword [eax - 0x18f0], 0
lea eax, [eax + 4]
mov dword [eax - 4], 0
sub ecx, 1
jne 0x1000cb32
push 0x1b00
push ecx
lea eax, [ebx + 0x30]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x54]
push 0x1a4
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 8
mov dword [esp + 0x54], 0x1a8
lea eax, [esp + 0x54]
xor edx, edx
xor edi, edi
push eax
call fcn.1001f1d0
add esp, 8
test eax, eax
je 0x1000cc8a
jmp 0x1000cba0
mov eax, dword [esp + 0xf4]
test al, 8
jne 0x1000cc71
test al, 1
je 0x1000cc71
test al, 4
je 0x1000cc71
mov eax, dword [ebx + 0x2c]
lea esi, [esp + 0x54]
mov edx, 0x104
lea ecx, [eax + eax*8]
mov eax, dword [0x10004168]
shl ecx, 6
add ecx, ebx
mov dword [ecx + 0x30], eax
mov eax, dword [0x1000416c]
mov dword [ecx + 0x34], eax
mov eax, dword [0x10004170]
mov dword [ecx + 0x38], eax
mov eax, dword [0x10004174]
mov dword [ecx + 0x3c], eax
lea ecx, [ebx + 0x40]
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
add dword [eax + ebx + 0x30], edi
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
add ecx, eax
sub esi, ecx
lea eax, [edx - 0xe5]
test eax, eax
je 0x1000cc30
mov al, byte [esi + ecx]
test al, al
je 0x1000cc2b
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1000cc10
jmp 0x1000cc2f
test edx, edx
jne 0x1000cc30
dec ecx
mov byte [ecx], 0
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0xf4]
shl ecx, 6
mov dword [ecx + ebx + 0x144], eax
mov ecx, dword [ebx + 0x2c]
lea eax, [ecx + ecx*8]
shl eax, 6
mov dword [eax + ebx + 0x268], ecx
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
mov dword [eax + ebx + 0x148], 1
inc dword [ebx + 0x2c]
push ecx
lea eax, [esp + 0x54]
inc edi
push eax
mov edx, edi
call fcn.1001f1d0
add esp, 8
test eax, eax
jne 0x1000cba0
push ecx
lea eax, [esp + 0x54]
xor edx, edx
push eax
xor edi, edi
call fcn.1001f1d0
add esp, 8
test eax, eax
je 0x1000cdaa
jmp 0x1000ccb0
mov eax, dword [esp + 0xf4]
test al, 8
jne 0x1000cd91
test al, 1
je 0x1000cd91
test al, 4
jne 0x1000cd91
mov eax, dword [ebx + 0x2c]
cmp eax, 0xc
jae 0x1000cd91
lea ecx, [eax + eax*8]
mov edx, 0x104
mov eax, dword [0x10004168]
lea esi, [esp + 0x54]
shl ecx, 6
add ecx, ebx
mov dword [ecx + 0x30], eax
mov eax, dword [0x1000416c]
mov dword [ecx + 0x34], eax
mov eax, dword [0x10004170]
mov dword [ecx + 0x38], eax
mov eax, dword [0x10004174]
mov dword [ecx + 0x3c], eax
lea ecx, [ebx + 0x40]
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
add dword [eax + ebx + 0x30], edi
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
add ecx, eax
sub esi, ecx
lea esp, [esp]
lea eax, [edx - 0xe5]
test eax, eax
je 0x1000cd50
mov al, byte [esi + ecx]
test al, al
je 0x1000cd4b
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1000cd30
jmp 0x1000cd4f
test edx, edx
jne 0x1000cd50
dec ecx
mov byte [ecx], 0
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0xf4]
shl ecx, 6
mov dword [ecx + ebx + 0x144], eax
mov ecx, dword [ebx + 0x2c]
lea eax, [ecx + ecx*8]
shl eax, 6
mov dword [eax + ebx + 0x268], ecx
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
mov dword [eax + ebx + 0x148], 1
inc dword [ebx + 0x2c]
push ecx
lea eax, [esp + 0x54]
inc edi
push eax
mov edx, edi
call fcn.1001f1d0
add esp, 8
test eax, eax
jne 0x1000ccb0
lea eax, [esp + 0x24]
push eax
push 0x100040b4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000d0da
push pe_nt_image_headers32
mov dword [esp + 0x10], eax
lea eax, [esp + 0x304]
push eax
push 0
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x1000d0d0
lea esp, [esp]
xor edi, edi
mov dword [esp + 0x14], 0
lea eax, [esp + 0x300]
mov dword [esp + 0x10], edi
mov cl, byte [eax]
mov edx, eax
mov dword [esp + 0x1c], edx
cmp cl, 0x2d
je 0x1000ce1f
test cl, cl
je 0x1000ce44
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x2d
jne 0x1000ce12
lea ecx, [eax + 1]
mov dword [esp + 0x14], ecx
dec eax
xor ebx, ebx
mov esi, 1
cmp eax, edx
jb 0x1000ce7f
mov dl, byte [eax]
lea ecx, [edx - 0x41]
cmp cl, 5
ja 0x1000ce4e
movzx ecx, dl
sub ecx, 0x37
jmp 0x1000ce70
mov dword [esp + 0x10], 1
jmp 0x1000ce26
lea ecx, [edx - 0x61]
cmp cl, 5
ja 0x1000ce5e
movzx ecx, dl
sub ecx, 0x57
jmp 0x1000ce70
lea ecx, [edx - 0x30]
cmp cl, 9
ja 0x1000d0a3
movzx ecx, dl
sub ecx, 0x30
imul ecx, esi
dec eax
shl esi, 4
add ebx, ecx
cmp eax, dword [esp + 0x1c]
jae 0x1000ce32
mov eax, edi
sub eax, 0
je 0x1000d036
sub eax, 1
je 0x1000d02f
sub eax, 1
je 0x1000d028
mov byte [esp + edi + 0x45], bl
inc edi
cmp edi, 0xb
jne 0x1000d03b
cmp dword [esp + 0x10], 0
je 0x1000d0a3
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x304]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000d0a3
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0xff
push eax
lea eax, [esp + 0x404]
push eax
lea eax, [esp + 0x30]
push eax
push 0
push 0x100040d0
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000d099
cmp dword [esp + 0x28], 1
jne 0x1000d099
mov eax, dword [esp + 0x18]
cmp eax, 0x100
jae 0x1000d4c8
mov byte [esp + eax + 0x400], 0
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x1fc]
mov dword [esp + 0x1c], 0x103
push eax
lea eax, [esp + 0x30]
push eax
push 0
push 0x100040dc
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000d099
mov eax, dword [esp + 0x18]
cmp eax, 0x104
jae 0x1000d4c8
lea ecx, [esp + 0x40]
mov byte [esp + eax + 0x1f8], 0
call fcn.10020fc0
test eax, eax
je 0x1000d099
lea ecx, [esp + 0x1f8]
call fcn.1001f400
mov edi, eax
test edi, edi
je 0x1000d099
cmp dword [esp + 0x28], 1
jne 0x1000d092
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx + 0x2c]
cmp eax, 0xc
jae 0x1000d092
mov ecx, dword [esp + 0x18]
cmp ecx, 0x104
jae 0x1000d4c8
mov byte [esp + ecx + 0x1f8], 0
lea esi, [esp + 0x1f8]
lea ecx, [eax + eax*8]
mov edx, 0x104
mov eax, dword [esp + 0x40]
shl ecx, 6
add ecx, ebx
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 0x34], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0x3c], eax
lea ecx, [ebx + 0x40]
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
add ecx, eax
sub esi, ecx
lea ecx, [ecx]
lea eax, [edx - 1]
test eax, eax
je 0x1000d051
mov al, byte [esi + ecx]
test al, al
je 0x1000d04c
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1000d010
jmp 0x1000d050
mov word [esp + 0x46], bx
jmp 0x1000d03a
mov word [esp + 0x44], bx
jmp 0x1000d03a
mov dword [esp + 0x40], ebx
inc edi
cmp dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
je 0x1000ce05
jmp 0x1000d0a3
test edx, edx
jne 0x1000d051
dec ecx
mov byte [ecx], 0
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0xf4]
shl ecx, 6
mov dword [ecx + ebx + 0x144], eax
mov ecx, dword [ebx + 0x2c]
lea eax, [ecx + ecx*8]
shl eax, 6
mov dword [eax + ebx + 0x268], ecx
mov eax, dword [ebx + 0x2c]
lea eax, [eax + eax*8]
shl eax, 6
mov dword [eax + ebx + 0x148], 0
inc dword [ebx + 0x2c]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x300]
push pe_nt_image_headers32
push eax
inc esi
push esi
push dword [esp + 0x30]
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x1000cdf0
mov ebx, dword [esp + 0x20]
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebx + 0x2c], 0
mov dword [esp + 0xc], 0
jbe 0x1000d3c3
lea esi, [ebx + 0x40]
nop
cmp byte [esi], 0x5c
jne 0x1000d10a
cmp byte [esi + 1], 0x5c
jne 0x1000d10a
cmp byte [esi + 2], 0x2e
jne 0x1000d10a
push 0
push 0
push esi
push 0
jmp 0x1000d111
push 0
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edi, eax
lea edx, [esi + 0x22c]
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
lea eax, [esp + 0x44]
push eax
call fcn.1000f6e0
add esp, 8
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0
push 0
push 0
push 0
push 1
lea edx, [esi - 0x10]
lea ecx, [esp + 0x28]
lea ebx, [esi + 0x118]
call fcn.10020300
add esp, 0x14
test eax, eax
jns 0x1000d17a
push 0x108
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [esi - 0x10]
call fcn.1000c8b0
jmp 0x1000d3a7
mov edx, dword [esp + 0x14]
lea edi, [esi - 0x10]
push ecx
mov ecx, ebx
mov dword [esi + 0x114], 0
call fcn.1000c360
add esp, 4
test eax, eax
js 0x1000d1d4
mov edi, dword [esi + 0x214]
test edi, edi
je 0x1000d1d1
mov ecx, dword [esi + 0x218]
add ecx, 0x50
lea ecx, [ecx]
test dword [ecx + 8], 0x400
je 0x1000d1c9
mov edx, dword [ecx]
lea eax, [edx - 0x17]
cmp eax, 1
ja 0x1000d1c9
mov dword [esi + 0x114], edx
add ecx, 0x6c
sub edi, 1
jne 0x1000d1b0
lea edi, [esi - 0x10]
cmp dword [esi + 0x114], 0
jne 0x1000d20d
push 0
push ecx
lea eax, [esp + 0x38]
mov edx, esi
push eax
call fcn.1001c6f0
test eax, eax
js 0x1000d203
cmp dword [esp + 0x3c], 0x18
jne 0x1000d203
mov dword [esi + 0x114], 0x18
jmp 0x1000d20d
mov dword [esi + 0x114], 0x17
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x1c8], 0
jne 0x1000d236
push 0x108
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, edi
call fcn.1000c8b0
jmp 0x1000d3a7
mov edx, dword [esi + 0x214]
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x10], eax
test edx, edx
je 0x1000d294
mov ecx, dword [esp + 0x20]
mov eax, esi
sub eax, ecx
mov ecx, dword [eax + ecx + 0x218]
add ecx, 0x50
lea ebx, [ebx]
test dword [ecx + 8], 0x400
je 0x1000d288
mov eax, dword [ecx]
cmp eax, 0x16
je 0x1000d283
add eax, 0xffffffe9
cmp eax, 1
ja 0x1000d288
mov eax, 1
mov dword [esp + 0x10], eax
jmp 0x1000d28c
mov ebx, 1
mov eax, dword [esp + 0x10]
add ecx, 0x6c
sub edx, 1
jne 0x1000d260
push ebx
push eax
push ecx
push dword [esi + 0x114]
lea edi, [esi + 0x10c]
xor edx, edx
push edi
mov ecx, esi
call fcn.1001e780
mov eax, dword [edi]
test eax, eax
je 0x1000d32a
shl eax, 4
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esi + 0x110], eax
test eax, eax
je 0x1000d31e
push ebx
push dword [esp + 0x14]
mov edx, eax
push ecx
push dword [esi + 0x114]
mov ecx, esi
push edi
call fcn.1001e780
mov eax, dword [edi]
test eax, eax
jne 0x1000d32a
mov eax, dword [esi + 0x110]
test eax, eax
je 0x1000d2f6
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push dword [esp + 0x14]
mov dword [esi + 0x110], 0
xor edx, edx
push ecx
push dword [esi + 0x114]
mov ecx, esi
push edi
call fcn.1001e780
mov eax, dword [edi]
test eax, eax
jne 0x1000d2b3
jmp 0x1000d328
mov dword [esi + 0x10c], 0
xor eax, eax
test ebx, ebx
je 0x1000d39e
cmp dword [esi + 0x134], 0
jne 0x1000d39e
cmp dword [esi + 0x1f4], 0x16
je 0x1000d39e
xor edx, edx
test eax, eax
je 0x1000d365
mov ecx, dword [esi + 0x110]
add ecx, 0xc
nop
cmp dword [ecx], 0x16
je 0x1000d361
mov eax, dword [edi]
inc edx
add ecx, 0x10
cmp edx, eax
jb 0x1000d350
jmp 0x1000d365
cmp edx, eax
jb 0x1000d39e
xor edx, edx
cmp dword [esi + 0x214], edx
jbe 0x1000d39e
xor edi, edi
mov ecx, dword [esi + 0x218]
mov eax, dword [ecx + edi + 0x58]
test eax, 0x400
je 0x1000d392
cmp dword [ecx + edi + 0x50], 0x16
jne 0x1000d392
and eax, 0xfffffbff
mov dword [ecx + edi + 0x58], eax
inc edx
add edi, 0x6c
cmp edx, dword [esi + 0x214]
jb 0x1000d371
mov ecx, dword [esp + 0x14]
call fcn.100204c0
mov eax, dword [esp + 0xc]
add esi, 0x240
mov ebx, dword [esp + 0x20]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [ebx + 0x2c]
jb 0x1000d0f0
lea eax, [esp + 0xc]
mov dword [ebx + 0x345c], 0
push eax
push 0x100040e8
push 0x80000002
mov dword [ebx + 0x3460], 0
mov dword [ebx + 0x3464], 0
mov dword [ebx + 0x3468], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000d451
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x104
push eax
lea esi, [ebx + 0x346c]
push esi
lea eax, [esp + 0x1c]
push eax
push 0
push 0x10004118
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000d447
cmp dword [esp + 0x14], 1
jne 0x1000d447
cmp byte [esi], al
je 0x1000d447
mov dword [ebx + 0x3468], 1
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0xc]
push eax
push 0x10004120
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000d4af
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 4
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
push 0
push 0x10004144
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000d4a5
xor ecx, ecx
cmp dword [esp + 0x14], ecx
setne cl
mov dword [ebx + 0x3454], ecx
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x504]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100a1500
mov esp, ebp
pop ebp
ret 4
call fcn.100a165a
int3