Function at 0x1000cb30
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, 0x504
mov eax, dword [0x100a70b4]
xor eax, esp
mov dword [esp + 0x500], eax
push ebx
mov ebx, ecx
push esi
lea esi, [ebx + 4]
mov dword [esp + 0xc], ebx
push edi
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebx], 0x1000100c
mov dword [ebx + 0x28], 1
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x3458], 0
mov dword [ebx + 0x3570], eax
mov dword [ebx + 0x24], ebx
push esi
mov dword [esi + 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 0x1000cbb2
push 0x1b00
push ecx
lea eax, [ebx + 0x30]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x58]
push 0x1a8
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 8
mov dword [esp + 0x5c], 0x1a8
lea eax, [esp + 0x5c]
xor edx, edx
xor edi, edi
push eax
call fcn.1001e3c0
add esp, 8
test eax, eax
je 0x1000cd0a
jmp 0x1000cc20
mov eax, dword [esp + 0xfc]
test al, 8
jne 0x1000ccf1
test al, 1
je 0x1000ccf1
test al, 4
je 0x1000ccf1
mov eax, dword [ebx + 0x2c]
lea esi, [esp + 0x5c]
mov edx, 0x104
lea ecx, [eax + eax*8]
mov eax, dword [0x100041c0]
shl ecx, 6
add ecx, ebx
mov dword [ecx + 0x30], eax
mov eax, dword [0x100041c4]
mov dword [ecx + 0x34], eax
mov eax, dword [0x100041c8]
mov dword [ecx + 0x38], eax
mov eax, dword [0x100041cc]
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 0x1000ccab
mov al, byte [esi + ecx]
test al, al
je 0x1000ccab
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1000cc90
jmp 0x1000ccaf
test edx, edx
jne 0x1000ccb0
dec ecx
mov byte [ecx], 0
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0xfc]
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 + 0x5c]
inc edi
push eax
mov edx, edi
call fcn.1001e3c0
add esp, 8
test eax, eax
jne 0x1000cc20
push ecx
lea eax, [esp + 0x5c]
xor edx, edx
push eax
xor edi, edi
call fcn.1001e3c0
add esp, 8
test eax, eax
je 0x1000ce2a
jmp 0x1000cd30
mov eax, dword [esp + 0xfc]
test al, 8
jne 0x1000ce11
test al, 1
je 0x1000ce11
test al, 4
jne 0x1000ce11
mov eax, dword [ebx + 0x2c]
cmp eax, 0xc
jae 0x1000ce11
lea ecx, [eax + eax*8]
mov edx, 0x104
mov eax, dword [0x100041c0]
lea esi, [esp + 0x5c]
shl ecx, 6
add ecx, ebx
mov dword [ecx + 0x30], eax
mov eax, dword [0x100041c4]
mov dword [ecx + 0x34], eax
mov eax, dword [0x100041c8]
mov dword [ecx + 0x38], eax
mov eax, dword [0x100041cc]
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 0x1000cdcb
mov al, byte [esi + ecx]
test al, al
je 0x1000cdcb
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1000cdb0
jmp 0x1000cdcf
test edx, edx
jne 0x1000cdd0
dec ecx
mov byte [ecx], 0
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0xfc]
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 + 0x5c]
inc edi
push eax
mov edx, edi
call fcn.1001e3c0
add esp, 8
test eax, eax
jne 0x1000cd30
lea eax, [esp + 0x2c]
push eax
push 0x1000410c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000d16a
push 0x100
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x30c]
push eax
push 0
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x1000d160
lea esp, [esp]
xor edx, edx
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x308]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], edx
lea esp, [esp]
mov al, byte [ecx]
mov edi, ecx
mov dword [esp + 0x28], edi
cmp al, 0x2d
je 0x1000ceac
lea esp, [esp]
test al, al
je 0x1000ceb0
mov al, byte [ecx + 1]
inc ecx
cmp al, 0x2d
jne 0x1000cea0
test al, al
jne 0x1000ceba
mov dword [esp + 0x14], 1
jmp 0x1000cec1
lea eax, [ecx + 1]
mov dword [esp + 0x1c], eax
dec ecx
xor ebx, ebx
mov esi, 1
cmp ecx, edi
jb 0x1000cf16
lea ecx, [ecx]
mov dl, byte [ecx]
mov edi, esi
lea eax, [edx - 0x41]
cmp al, 5
ja 0x1000cee3
movzx eax, dl
sub eax, 0x37
jmp 0x1000cf03
lea eax, [edx - 0x61]
cmp al, 5
ja 0x1000cef2
movzx eax, dl
sub eax, 0x57
jmp 0x1000cf03
lea eax, [edx - 0x30]
cmp al, 9
ja 0x1000d133
movzx eax, dl
sub eax, 0x30
imul eax, edi
dec ecx
shl esi, 4
add ebx, eax
cmp ecx, dword [esp + 0x28]
jae 0x1000ced0
mov edx, dword [esp + 0x20]
mov eax, edx
sub eax, 0
je 0x1000cf3b
sub eax, 1
je 0x1000cf34
sub eax, 1
je 0x1000cf2d
mov byte [esp + edx + 0x4d], bl
jmp 0x1000cf3f
mov word [esp + 0x4e], bx
jmp 0x1000cf3f
mov word [esp + 0x4c], bx
jmp 0x1000cf3f
mov dword [esp + 0x48], ebx
inc edx
mov dword [esp + 0x20], edx
cmp edx, 0xb
je 0x1000cf5d
cmp dword [esp + 0x14], 0
mov ecx, dword [esp + 0x1c]
je 0x1000ce90
jmp 0x1000d133
cmp dword [esp + 0x14], 0
je 0x1000d133
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x30c]
push eax
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000d133
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0xff
push eax
lea eax, [esp + 0x40c]
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0x10004128
push dword [esp + 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000d129
cmp dword [esp + 0x30], 1
jne 0x1000d129
mov eax, dword [esp + 0x24]
cmp eax, 0x100
jae 0x1000d5f6
mov byte [esp + eax + 0x408], 0
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x204]
mov dword [esp + 0x28], 0x103
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0x10004134
push dword [esp + 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000d129
mov esi, dword [esp + 0x24]
cmp esi, 0x104
jae 0x1000d5f6
lea ecx, [esp + 0x48]
mov byte [esp + esi + 0x200], al
call fcn.10020010
test eax, eax
je 0x1000d047
lea ecx, [esp + 0x200]
call fcn.1001e600
mov esi, dword [esp + 0x24]
mov edi, eax
jmp 0x1000d049
xor edi, edi
cmp dword [esp + 0x30], 1
jne 0x1000d11e
test edi, edi
je 0x1000d129
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x2c]
cmp eax, 0xc
jae 0x1000d11e
cmp esi, 0x104
jae 0x1000d5f6
lea ecx, [eax + eax*8]
mov byte [esp + esi + 0x200], 0
mov eax, dword [esp + 0x48]
lea esi, [esp + 0x200]
shl ecx, 6
mov edx, 0x104
add ecx, ebx
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0x34], eax
mov eax, dword [esp + 0x50]
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0x54]
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 eax, [edx - 1]
test eax, eax
je 0x1000d0d8
mov al, byte [ecx + esi]
test al, al
je 0x1000d0d8
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x1000d0c0
jmp 0x1000d0dc
test edx, edx
jne 0x1000d0dd
dec ecx
mov byte [ecx], 0
mov eax, dword [ebx + 0x2c]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0xfc]
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]
test edi, edi
je 0x1000d129
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x308]
push 0x100
push eax
inc esi
push esi
push dword [esp + 0x38]
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x1000ce70
mov ebx, dword [esp + 0x10]
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebx + 0x2c], 0
mov dword [esp + 0x18], 0
jbe 0x1000d4f1
mov eax, 0xffffffc0
lea esi, [ebx + 0x40]
sub eax, ebx
mov dword [esp + 0x1c], eax
lea ebx, [ebx]
cmp byte [esi], 0x5c
jne 0x1000d1aa
cmp byte [esi + 1], 0x5c
jne 0x1000d1aa
cmp byte [esi + 2], 0x2e
jne 0x1000d1aa
push 0
push 0
push esi
push 0
jmp 0x1000d1b1
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 + 0x28]
mov ecx, edi
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.100bde76
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 + 0x34]
call fcn.1001f340
add esp, 0x14
test eax, eax
jns 0x1000d221
mov eax, dword [esp + 0x1c]
add eax, 0x158
push 0x108
add eax, esi
add eax, ebx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [esi - 0x10]
call fcn.1000c930
jmp 0x1000d4d9
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push ecx
lea edi, [ecx + esi]
add edi, ebx
lea ecx, [edi + 0x158]
mov dword [edi + 0x154], 0
call fcn.1000c400
add esp, 4
test eax, eax
js 0x1000d285
mov ebx, dword [edi + 0x254]
test ebx, ebx
je 0x1000d281
mov ecx, dword [edi + 0x258]
add ecx, 0x50
mov edi, edi
test dword [ecx + 8], 0x400
je 0x1000d279
mov edx, dword [ecx]
lea eax, [edx - 0x17]
cmp eax, 1
ja 0x1000d279
mov dword [edi + 0x154], edx
add ecx, 0x6c
sub ebx, 1
jne 0x1000d260
mov ebx, dword [esp + 0x10]
cmp dword [edi + 0x154], 0
jne 0x1000d2be
push 0
push ecx
lea eax, [esp + 0x40]
push eax
lea edx, [edi + 0x40]
call fcn.1001ba20
mov eax, dword [esp + 0x44]
cmp eax, 0x18
je 0x1000d2b8
cmp eax, 0x17
je 0x1000d2b8
mov dword [edi + 0x154], 0x17
jmp 0x1000d2be
mov dword [edi + 0x154], eax
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x1c8], 0
jne 0x1000d2f5
mov eax, dword [esp + 0x1c]
add eax, 0x158
push 0x108
add eax, esi
add eax, ebx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [edi + 0x30]
call fcn.1000c930
jmp 0x1000d4d9
mov edi, dword [esp + 0x1c]
xor eax, eax
mov ecx, dword [esp + 0x10]
add edi, esi
xor ebx, ebx
mov dword [esp + 0x14], eax
mov edx, dword [ecx + edi + 0x254]
test edx, edx
je 0x1000d354
mov ecx, dword [ecx + edi + 0x258]
add ecx, 0x50
lea esp, [esp]
test dword [ecx + 8], 0x400
je 0x1000d348
mov eax, dword [ecx]
cmp eax, 0x16
je 0x1000d343
add eax, 0xffffffe9
cmp eax, 1
ja 0x1000d348
mov eax, 1
mov dword [esp + 0x14], eax
jmp 0x1000d34c
mov ebx, 1
mov eax, dword [esp + 0x14]
add ecx, 0x6c
sub edx, 1
jne 0x1000d320
push ebx
push eax
push ecx
push dword [esi + 0x114]
lea edi, [esi + 0x10c]
xor edx, edx
push edi
mov ecx, esi
call fcn.1001d9b0
mov eax, dword [edi]
test eax, eax
je 0x1000d3f1
shl eax, 4
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esi + 0x110], eax
test eax, eax
je 0x1000d445
mov edx, dword [esp + 0x1c]
lea edi, [esi + 0x10c]
push ebx
push dword [esp + 0x18]
add edx, esi
push ecx
mov ecx, dword [esp + 0x1c]
push dword [ecx + edx + 0x154]
mov edx, eax
mov ecx, esi
push edi
call fcn.1001d9b0
mov eax, dword [edi]
test eax, eax
jne 0x1000d3f1
mov eax, dword [esi + 0x110]
test eax, eax
je 0x1000d3cb
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
push dword [esp + 0x18]
mov dword [esi + 0x110], 0
xor edx, edx
push ecx
push dword [esi + 0x114]
mov ecx, esi
push edi
call fcn.1001d9b0
mov eax, dword [edi]
test eax, eax
jne 0x1000d373
mov ecx, dword [esp + 0x10]
test ebx, ebx
je 0x1000d49d
cmp dword [esi + 0x134], 0
jne 0x1000d49d
cmp dword [esi + 0x1f4], 0x16
je 0x1000d49d
xor edx, edx
test eax, eax
je 0x1000d462
mov ebx, dword [esp + 0x1c]
add ebx, esi
mov ecx, dword [ecx + ebx + 0x150]
add ecx, 0xc
lea ecx, [ecx]
cmp dword [ecx], 0x16
je 0x1000d45e
mov eax, dword [esi + 0x10c]
inc edx
add ecx, 0x10
cmp edx, eax
jb 0x1000d430
jmp 0x1000d462
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
add eax, esi
mov dword [ecx + eax + 0x14c], 0
xor eax, eax
jmp 0x1000d3f5
cmp edx, eax
jb 0x1000d49d
xor edx, edx
cmp dword [esi + 0x214], edx
jbe 0x1000d49d
xor edi, edi
mov edi, edi
mov ecx, dword [esi + 0x218]
mov eax, dword [ecx + edi + 0x58]
test eax, 0x400
je 0x1000d491
cmp dword [ecx + edi + 0x50], 0x16
jne 0x1000d491
and eax, 0xfffffbff
mov dword [ecx + edi + 0x58], eax
inc edx
add edi, 0x6c
cmp edx, dword [esi + 0x214]
jb 0x1000d470
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x1c8]
call fcn.1001d580
mov eax, dword [ebx + 0x1b4]
test eax, eax
je 0x1000d4bd
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebx + 0x100]
test eax, eax
je 0x1000d4ce
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add esi, 0x240
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [ebx + 0x2c]
jb 0x1000d190
lea eax, [esp + 0x18]
mov dword [ebx + 0x345c], 0
push eax
push 0x10004140
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 0x1000d57f
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x104
push eax
lea esi, [ebx + 0x346c]
push esi
lea eax, [esp + 0x28]
push eax
push 0
push 0x10004170
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000d575
cmp dword [esp + 0x20], 1
jne 0x1000d575
cmp byte [esi], al
je 0x1000d575
mov dword [ebx + 0x3468], 1
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x18]
push eax
push 0x10004178
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1000d5dd
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 4
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x1000419c
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000d5d3
xor ecx, ecx
cmp dword [esp + 0x20], ecx
setne cl
mov dword [ebx + 0x3454], ecx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x50c]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1009fbf0
mov esp, ebp
pop ebp
ret 4
call fcn.1009fd3a
int3