Function at 0x10009a60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10029170]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x40], 0x83
mov dword [ebp - 0x210], ecx
je 0x100144a0
push esi
push edi
mov edi, dword [ecx + 0xc]
lea eax, [ebp - 0x204]
mov esi, 0x100019d0
mov ecx, eax
mov edx, 0x200
sub esi, ecx
lea ecx, [edx + 0x7ffffdfe]
test ecx, ecx
je 0x10009abf
mov cl, byte [esi + eax]
test cl, cl
je 0x10009abf
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x10009aa1
jmp 0x100144a7
test edx, edx
je 0x100144a7
mov byte [eax], 0
mov ecx, 0x200
lea eax, [ebp - 0x204]
push ebx
cmp byte [eax], 0
je 0x10009ae6
inc eax
sub ecx, 1
jne 0x10009ad6
jmp 0x100144b3
test ecx, ecx
je 0x100144b3
mov esi, 0x200
lea eax, [ebp - 0x204]
mov edx, esi
sub edx, ecx
mov ecx, esi
lea eax, [eax + edx]
sub ecx, edx
je 0x100144ad
add edx, 0x7ffffdfe
add edx, ecx
sub edi, eax
test edx, edx
je 0x10009b2d
mov bl, byte [edi + eax]
test bl, bl
je 0x10009b2d
mov byte [eax], bl
dec edx
inc eax
sub ecx, 1
jne 0x10009b14
jmp 0x100144ad
test ecx, ecx
je 0x100144ad
mov byte [eax], 0
lea eax, [ebp - 0x218]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x204]
push eax
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001459f
mov ebx, dword [ebp - 0x218]
test ebx, ebx
je 0x1001459f
mov edi, dword [ebp - 0x210]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x208], 4
push eax
or dword [edi + 0x38], 1
lea eax, [ebp - 0x214]
push eax
push 0
push 0x100019bc
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
je 0x100144bd
and dword [edi + 0x38], 0xfffffffd
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x208], 4
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x100019a8
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
je 0x100144f2
test dword [edi + 0x38], 0x180
jne 0x10009dd3
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [edi + 0x20]
cmp word [eax], 0
jne 0x10009cf6
test dword [edi + 0x38], 0x100
je 0x10009cf6
mov ebx, dword [edi + 0xc]
lea ecx, [ebp - 0x204]
mov eax, 0x10001898
cmp eax, 0x100018b0
je 0x10014529
mov edi, 0x10001a20
mov eax, ecx
mov edx, 0x200
sub edi, eax
jmp 0x10009c40
lea eax, [edx + 0x7ffffdfe]
test eax, eax
je 0x10009c5e
mov al, byte [edi + ecx]
test al, al
je 0x10009c5e
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10009c40
jmp 0x10014546
test edx, edx
je 0x10014546
mov byte [ecx], 0
lea eax, [ebp - 0x204]
mov ecx, 0x200
cmp byte [eax], 0
je 0x10009c81
inc eax
sub ecx, 1
jne 0x10009c74
jmp 0x10009cc8
test ecx, ecx
je 0x10009cc8
mov edx, esi
lea eax, [ebp - 0x204]
sub edx, ecx
lea eax, [eax + edx]
sub esi, edx
je 0x1001454c
lea ecx, [edx + 0x7ffffdfe]
add ecx, esi
sub ebx, eax
test ecx, ecx
je 0x10009cbd
mov dl, byte [ebx + eax]
test dl, dl
je 0x10009cbd
mov byte [eax], dl
dec ecx
inc eax
sub esi, 1
jne 0x10009ca4
jmp 0x1001454c
test esi, esi
je 0x1001454c
mov byte [eax], 0
mov edi, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x204]
push eax
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
je 0x10014552
mov ecx, dword [edi + 0x20]
cmp word [ecx], 0
jne 0x10009d0d
mov eax, dword [edi + 0x170]
test eax, eax
jne 0x1001458c
mov al, 1
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012ae0
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x20c], 1
jne 0x10009d51
mov eax, dword [ebp - 0x208]
cmp eax, 2
jb 0x10009d51
shr eax, 1
xor ecx, ecx
mov word [edi + eax*2], cx
lea ecx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10009d40
sub edi, ecx
sar edi, 1
jne 0x10009db5
mov ecx, dword [ebp - 0x210]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x208], 0x100
mov edi, dword [ecx + 0x20]
push edi
push eax
push 0
push 0x10001980
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x10009dc0
cmp dword [ebp - 0x20c], 1
jne 0x10009dc0
mov eax, dword [ebp - 0x208]
cmp eax, 2
jb 0x10009dc0
shr eax, 1
xor ecx, ecx
mov word [edi + eax*2], cx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10009da4
sub edi, ecx
sar edi, 1
je 0x10009dc0
mov edi, dword [ebp - 0x210]
jmp 0x10009bf3
mov edi, dword [ebp - 0x210]
xor ecx, ecx
mov eax, dword [edi + 0x20]
mov word [eax], cx
jmp 0x10009bf3
mov edi, dword [edi + 0x20]
lea eax, [ebp - 0x208]
push eax
push edi
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x208], 0x100
push eax
push 0
push 0x10001998
push ebx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x10009d51
jmp 0x10009d20
xor al, al
jmp 0x10009d12
dec eax
jmp 0x10009ac7
dec eax
jmp 0x10009b35
mov esi, 0x200
jmp 0x10009b38
cmp dword [ebp - 0x214], 4
jne 0x10009bad
cmp dword [ebp - 0x208], 4
jne 0x10009bad
mov eax, dword [edi + 0x38]
xor ecx, ecx
cmp dword [ebp - 0x20c], ecx
setne cl
and eax, 0xfffffffe
or ecx, eax
mov dword [edi + 0x38], ecx
jmp 0x10009bad
cmp dword [ebp - 0x20c], 4
jne 0x10009be6
cmp dword [ebp - 0x208], 4
jne 0x10009be6
mov ecx, dword [ebp - 0x214]
mov eax, dword [edi + 0x38]
neg ecx
sbb ecx, ecx
and eax, 0xfffffffd
and ecx, 2
or ecx, eax
mov dword [edi + 0x38], ecx
jmp 0x10009be6
push 0x100019d0
mov edx, esi
call fcn.100058d0
push ebx
lea ecx, [ebp - 0x204]
call fcn.1001d8e8
jmp 0x10009cce
dec ecx
jmp 0x10009c66
dec eax
jmp 0x10009cc5
mov esi, dword [ebp - 0x20c]
test esi, esi
je 0x10009cf6
push dword [edi + 0x20]
mov edx, 0x1000259c
mov ecx, esi
push 0x102
call fcn.1000c4e7
test al, al
jne 0x10014580
mov eax, dword [edi + 0x20]
xor ecx, ecx
mov word [eax], cx
push esi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x10009cf6
add eax, 4
mov edx, 0x81
push eax
call fcn.1001d91c
jmp 0x10009d0d
xor al, al
jmp 0x10009d0f