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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10021c58
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x1002e018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov ecx, 0x4f
xor eax, eax
mov dl, byte [eax + 0x10029488]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x3c], dl
jns 0x10016ae4
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xd
jl 0x10016ac7
lea eax, [ebp - 0x98]
push eax
push 0x20019
push ebx
lea ecx, [ebp - 0x3c]
push ecx
push 0x80000001
mov byte [ebp - 0x2f], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
setne al
cmp al, bl
je 0x10016b19
xor eax, eax
jmp 0x10016d3d
push 0x40
push ebx
push 0x1015eba0
mov dword [ebp - 0x94], 0x40
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x94]
push edx
mov edx, dword [ebp - 0x98]
push 0x1015eba0
lea eax, [ebp - 0x9c]
push eax
push ebx
lea ecx, [ebp - 0x90]
push ecx
push edx
mov dword [ebp - 0x90], 0x43414d
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
setne al
cmp al, bl
jne 0x10016b12
mov edi, 0x1010b4d5
lea esi, [ebp - 0x8c]
call fcn.1001c970
push 0x1015e22c
push 0xf003f
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, 1
mov eax, 0x100294d8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.10001570
mov dword [ebp - 4], ebx
lea ebx, [esi + 4]
call fcn.10003330
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10016bc4
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.100176d0
push 1
mov eax, 0x100294dc
lea ecx, [ebp - 0x2c]
call fcn.100176d0
call fcn.10003330
mov ecx, eax
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10016bf0
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.100176d0
push 1
mov eax, 0x100294dc
lea ecx, [ebp - 0x2c]
call fcn.100176d0
call fcn.10003330
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x10016c20
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10016c20
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.100176d0
push 1
mov eax, 0x100294dc
lea ecx, [ebp - 0x2c]
call fcn.100176d0
call fcn.10003330
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x10016c50
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10016c50
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.100176d0
push 1
mov eax, 0x100294dc
lea ecx, [ebp - 0x2c]
call fcn.100176d0
call fcn.10003330
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x10016c80
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10016c80
sub ecx, esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.100176d0
push 1
mov eax, 0x100294e0
lea ecx, [ebp - 0x2c]
call fcn.100176d0
mov edi, 0x1010b521
lea esi, [ebp - 0x3c]
call fcn.1001c9b0
cmp dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x2c]
jae 0x10016cba
lea ecx, [ebp - 0x2c]
push 0x1f
push ecx
push 1
push 0
push eax
mov eax, dword [0x1015e22c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, 0x1024b40f
lea esi, [ebp - 0x4c]
call fcn.1001ca30
mov ebx, eax
mov edi, 0x1024b41f
lea esi, [ebp - 0x3c]
call fcn.1001c9f0
push 0x100168e0
push ebx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.1001de70
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.1001edb0
mov edi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 0x10016500
mov esi, 7
mov dword [0x1015ea08], eax
call fcn.10002de0
add esp, 4
cmp dword [ebp - 0x18], 0x10
mov dword [0x1015f3bc], eax
jb 0x10016d3d
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001e242
mov esp, ebp
pop ebp
ret