Function at 0x1000bf10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058450
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x10076658]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor eax, eax
mov ebx, edx
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 0x40], eax
mov word [ebp - 0x50], dx
push eax
or eax, 0xffffffff
lea edx, [ebp - 0x50]
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x3c], 7
call fcn.10003280
mov byte [ebp - 4], 1
cmp dword [ebp - 0x3c], 8
mov eax, dword [ebp - 0x50]
jae 0x1000bf7d
lea eax, [ebp - 0x50]
push 0
lea ecx, [ebp - 0x70]
push ecx
push 0
push 3
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1000bfc9
cmp dword [ebp - 0x3c], 8
jb 0x1000bfab
mov edx, dword [ebp - 0x50]
push edx
call fcn.1004076b
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.10040061
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ebx, 8
test eax, eax
jne 0x1000c06f
cmp dword [edi + 0x14], ebx
jb 0x1000bfe2
mov eax, dword [edi]
jmp 0x1000bfe4
mov eax, edi
mov edx, dword [ebp - 0x70]
push 0
push 0
lea ecx, [ebp + 0x10]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1000c06c
push 0xf
push str.RegQueryValueEx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
call fcn.10006530
mov byte [ebp - 4], 2
cmp dword [ebp - 0x20], 0x10
jb 0x1000c030
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x74], eax
jmp 0x1000c036
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x74], ecx
lea edx, [ebp - 0x74]
push edx
lea ecx, [ebp - 0x94]
call fcn.10040109
mov dword [ebp - 0x94], vtable.MBAMException.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x88], eax
push 0x1006d510
lea eax, [ebp - 0x94]
push eax
call fcn.100424f0
mov eax, dword [ebp + 0x10]
cmp eax, 4
jne 0x1000c145
cmp dword [esi + 0x14], ebx
jb 0x1000c07f
mov esi, dword [esi]
lea ecx, [ebp - 0x78]
push ecx
push 0x10064e38
push esi
call fcn.10040967
add esp, 0xc
cmp eax, 1
je 0x1000c0f1
push str.swscanf
lea ecx, [ebp - 0x34]
call fcn.100064f0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x20], 0x10
jb 0x1000c0b5
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x74], edx
jmp 0x1000c0bb
lea eax, [ebp - 0x34]
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.10040109
mov dword [ebp - 0xa4], vtable.MBAMException.0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x1006d510
lea edx, [ebp - 0xa4]
push edx
mov dword [ebp - 0x98], eax
call fcn.100424f0
cmp dword [edi + 0x14], ebx
jb 0x1000c0fa
mov eax, dword [edi]
jmp 0x1000c0fc
mov eax, edi
mov edx, dword [ebp - 0x70]
push 4
lea ecx, [ebp - 0x78]
push ecx
push 4
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1000c2bd
push str.RegSetValueEx
lea ecx, [ebp - 0x34]
call fcn.100064f0
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x104]
mov byte [ebp - 4], 4
call fcn.1000fbb0
push 0x1006d510
mov eax, esi
push eax
call fcn.100424f0
cmp eax, 0xb
jne 0x1000c1f1
cmp dword [esi + 0x14], ebx
jb 0x1000c155
mov esi, dword [esi]
lea ecx, [ebp - 0x84]
push ecx
push str._llu
push esi
call fcn.10040967
add esp, 0xc
cmp eax, 1
je 0x1000c19b
push str.swscanf
lea ecx, [ebp - 0x34]
call fcn.100064f0
lea eax, [ebp - 0x34]
lea esi, [ebp - 0xe4]
mov byte [ebp - 4], 5
call fcn.1000fbb0
push 0x1006d510
mov edx, esi
push edx
call fcn.100424f0
cmp dword [edi + 0x14], ebx
jb 0x1000c1a4
mov eax, dword [edi]
jmp 0x1000c1a6
mov eax, edi
mov edx, dword [ebp - 0x70]
push ebx
lea ecx, [ebp - 0x84]
push ecx
push 0xb
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1000c2bd
push str.RegSetValueEx
lea ecx, [ebp - 0x34]
call fcn.100064f0
lea eax, [ebp - 0x34]
lea esi, [ebp - 0xb4]
mov byte [ebp - 4], 6
call fcn.1000fbb0
push 0x1006d510
mov eax, esi
push eax
call fcn.100424f0
cmp eax, 3
jne 0x1000c2df
mov ebx, dword [esi + 0x10]
push ebx
call fcn.1003f6f0
add esp, 4
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x1000c210
mov esi, dword [esi]
push 0
push 0
push ebx
push edi
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1000c25b
push edi
call fcn.10040a88
add esp, 4
push 0x10069b00
lea ecx, [ebp - 0x34]
call fcn.100064f0
lea eax, [ebp - 0x34]
lea esi, [ebp - 0x124]
mov byte [ebp - 4], 7
call fcn.1000fbb0
push 0x1006d510
mov ecx, esi
push ecx
call fcn.100424f0
mov eax, dword [ebp - 0x78]
cmp dword [eax + 0x14], 8
jb 0x1000c266
mov eax, dword [eax]
mov edx, dword [ebp - 0x70]
push ebx
push edi
push 3
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
test eax, eax
je 0x1000c2b0
call fcn.10040a88
add esp, 4
push str.RegSetValueEx
lea ecx, [ebp - 0x34]
call fcn.100064f0
lea eax, [ebp - 0x34]
lea esi, [ebp - 0xd4]
mov byte [ebp - 4], 8
call fcn.1000fbb0
push 0x1006d510
mov eax, esi
push eax
call fcn.100424f0
call fcn.10040a88
add esp, 4
mov ebx, 8
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x3c], ebx
jb 0x1000c2d8
mov eax, dword [ebp - 0x50]
push eax
call fcn.1004076b
add esp, 4
mov al, 1
jmp 0x1000bfad
cmp eax, 7
jne 0x1000c3f4
mov ecx, esi
lea esi, [ebp - 0x34]
call fcn.10007ad0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x34]
mov ecx, esi
mov dword [ebp - 0x74], ecx
cmp dword [ebp - 0x20], ebx
jae 0x1000c305
mov eax, esi
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0x74]
lea eax, [ebp - 0x80]
lea esi, [ebp - 0x78]
call fcn.1000d0a0
lea edx, [ebp - 0x80]
mov al, 1
jmp 0x1000c320
test al, al
je 0x1000c348
mov ecx, dword [esi]
cmp ecx, dword [edx]
je 0x1000c348
xor al, al
lea esp, [esp]
test al, al
jne 0x1000c343
cmp word [ecx], 0x5e
jne 0x1000c33f
xor eax, eax
mov word [ecx], ax
mov al, 1
jmp 0x1000c330
add dword [esi], 2
jmp 0x1000c320
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
cmp edx, ebx
jae 0x1000c355
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2 - 2], 0
je 0x1000c367
mov ebx, 2
jmp 0x1000c37e
mov eax, dword [ebp - 0x34]
cmp edx, ebx
jae 0x1000c371
lea eax, [ebp - 0x34]
cmp word [eax + ecx*2 - 4], 0
je 0x1000c386
mov ebx, 1
lea esi, [ebp - 0x34]
call fcn.100055b0
mov ecx, dword [ebp - 0x34]
mov eax, 8
cmp dword [ebp - 0x20], eax
jae 0x1000c396
lea ecx, [ebp - 0x34]
cmp dword [edi + 0x14], eax
jb 0x1000c39f
mov eax, dword [edi]
jmp 0x1000c3a1
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, edx
push edx
push ecx
push 7
push 0
push eax
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1000c3e7
push str.RegSetValueEx
lea ecx, [ebp - 0x6c]
call fcn.100064f0
lea eax, [ebp - 0x6c]
lea esi, [ebp - 0x114]
mov byte [ebp - 4], 0xa
call fcn.1000fbb0
push 0x1006d510
mov ecx, esi
push ecx
call fcn.100424f0
lea ecx, [ebp - 0x34]
call fcn.100031a0
jmp 0x1000c2b8
cmp eax, 1
je 0x1000c42a
cmp eax, 2
je 0x1000c42a
push str.Invalid_value_type
lea ecx, [ebp - 0x6c]
call fcn.100064f0
lea eax, [ebp - 0x6c]
lea esi, [ebp - 0xf4]
mov byte [ebp - 4], 0xc
call fcn.1000fbb0
push 0x1006d510
mov edx, esi
push edx
call fcn.100424f0
mov edx, dword [esi + 0x10]
cmp dword [esi + 0x14], ebx
jb 0x1000c434
mov esi, dword [esi]
cmp dword [edi + 0x14], ebx
jb 0x1000c43d
mov ecx, dword [edi]
jmp 0x1000c43f
mov ecx, edi
lea edx, [edx + edx + 2]
push edx
push esi
push eax
mov eax, dword [ebp - 0x70]
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1000c2bd
push str.RegSetValueEx
lea ecx, [ebp - 0x6c]
call fcn.100064f0
lea eax, [ebp - 0x6c]
lea esi, [ebp - 0xc4]
mov byte [ebp - 4], 0xb
call fcn.1000fbb0
push 0x1006d510
mov ecx, esi
push ecx
call fcn.100424f0
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x1000bfab
ret