Function at 0x10012321
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push 0x21c
mov eax, 0x1001810e
call fcn.100165d7
mov esi, dword [ebp + 0xc]
lea edx, [ebp - 0x1e8]
mov eax, 0x9d
mov dword [ebp - 0x1e8], 0x9c
mov dword [ebp - 0x1d8], eax
sub esp, 0xc
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x1e4], 0x49
lea ecx, [eax + 8]
mov dword [ebp - 0x1e0], 0x98
add eax, 0x15
mov dword [ebp - 0x1c4], ecx
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x1b0], eax
mov eax, 0x95
mov dword [ebp - 0x1c0], ecx
mov dword [ebp - 0x1a8], ecx
mov dword [ebp - 0x1a4], ecx
add ecx, 3
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x188], eax
add eax, 0x23
mov dword [ebp - 0x194], ecx
mov dword [ebp - 0x184], ecx
mov ecx, esp
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x170], eax
lea eax, [ebp - 0x16c]
push ecx
push eax
push edx
mov dword [ebp - 0x1dc], 0x8f
mov dword [ebp - 0x1d4], 0xa0
mov dword [ebp - 0x1d0], 0x8a
mov dword [ebp - 0x1cc], 0x9b
mov dword [ebp - 0x1c8], 0x8e
mov dword [ebp - 0x1b4], 0xab
mov dword [ebp - 0x1ac], 0xaa
mov dword [ebp - 0x1a0], 0xc3
mov dword [ebp - 0x19c], 0x9a
mov dword [ebp - 0x198], 0xbd
mov dword [ebp - 0x190], 0x8d
mov dword [ebp - 0x180], 0x90
mov dword [ebp - 0x178], 0xbb
mov dword [ebp - 0x174], 0xb0
call fcn.10003518
lea ecx, [ebp - 0x200]
call fcn.10013265
add esp, 0xc
xor ebx, ebx
push 0xf
pop edi
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], edi
jbe 0x1001247d
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x140]
call fcn.10003a0d
lea ecx, [ebp - 0x200]
mov byte [ebp - 4], 2
call fcn.100039ab
mov edx, 0xb6
mov dword [ebp - 0x160], 0x44
sub esp, 0xc
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x14c], 0xa6
lea ecx, [edx - 0xd]
lea eax, [edx - 5]
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x154], ecx
lea edx, [ebp - 0x164]
mov dword [ebp - 0x148], ecx
mov ecx, esp
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x140]
push ecx
push eax
push edx
call fcn.10003518
lea ecx, [ebp - 0x218]
call fcn.10013265
add esp, 0xc
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], edi
jbe 0x10012513
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x128]
call fcn.10003a0d
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 5
call fcn.100039ab
mov eax, dword [ebp + 8]
mov dword [ebp - 0x224], 0xff
mov dword [ebp - 0x220], ebx
test eax, eax
jne 0x100125ec
lea eax, [ebp - 0x140]
cmp dword [ebp - 0x12c], edi
jbe 0x1001255d
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x21c]
push ecx
push 0x20019
push ebx
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100126e3
lea eax, [ebp - 0x128]
cmp dword [ebp - 0x114], edi
jbe 0x10012592
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x220]
push ecx
push ebx
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100126d7
cmp dword [ebp - 0x220], 1
jne 0x100126d7
lea eax, [ebp - 0x110]
mov byte [0x10020954], 1
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
pop ecx
push eax
lea eax, [ebp - 0x110]
push eax
jmp 0x100126cd
cmp eax, 1
jne 0x10012666
lea eax, [ebp - 0x140]
cmp dword [ebp - 0x12c], edi
jbe 0x10012605
mov eax, dword [ebp - 0x140]
push ebx
lea ecx, [ebp - 0x21c]
push ecx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x100126e3
cmp dword [ebp - 0x114], 0xf
lea edi, [ebp - 0x128]
jbe 0x1001263f
mov edi, dword [ebp - 0x128]
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
push esi
call ebx
pop ecx
inc eax
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x100126d7
push esi
call ebx
jmp 0x100126ca
cmp eax, 2
jne 0x100126e3
lea eax, [ebp - 0x140]
cmp dword [ebp - 0x12c], edi
jbe 0x1001267f
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x21c]
push ecx
push 2
push ebx
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100126e3
lea eax, [ebp - 0x128]
cmp dword [ebp - 0x114], edi
jbe 0x100126ad
mov eax, dword [ebp - 0x128]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x100126d7
mov esi, 0x10019357
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strlen]
pop ecx
push eax
push esi
mov ecx, 0x10020958
call fcn.10003c21
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x128]
call fcn.100039ab
lea ecx, [ebp - 0x140]
call fcn.100039ab
call fcn.10016586
ret 8