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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x208
push esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 8], 0x104
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
cmp ebx, edi
pop ecx
mov dword [ebp - 0x14], ebx
je 0x100d42a
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
mov dword [ebp - 0x24], eax
jne 0x100d16b
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
jmp 0x100d189
push 0x40
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
mov dword [ebp - 0x18], eax
jne 0x100d18f
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x24]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
jmp 0x100d42a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
push 3
push edi
push 0x1001ee0
mov esi, 0x80000000
push esi
call ebx
cmp eax, edi
jne 0x100d2f8
lea eax, [ebp - 0x20]
push eax
push 3
push edi
push 0x1001e60
push esi
call ebx
mov esi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x18]
neg esi
sbb esi, esi
inc esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], 0x20
mov dword [ebp - 8], 0x104
push edi
jmp 0x100d2e7
push dword [ebp - 0x18]
inc dword [ebp - 0x1c]
mov dword [ebp - 8], 0x104
mov dword [ebp - 0x28], 0x20
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
je 0x100d2d1
push dword [ebp - 0x14]
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
je 0x100d2d1
cmp esi, edi
je 0x100d254
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp - 0x18]
mov dword [ebp - 8], 0x104
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x10], 1
je 0x100d259
push 0x1f
pop eax
jmp 0x100d259
mov eax, 0x80004005
cmp eax, edi
jne 0x100d277
push edi
push 1
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x24]
call fcn.0101ab13
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
jmp 0x100d28d
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x14]
call fcn.01016f8a
neg eax
sbb eax, eax
inc eax
cmp eax, edi
jne 0x100d296
cmp dword [ebp + 8], edi
je 0x100d2be
push dword [ebp - 0x18]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
dec dword [ebp - 0x1c]
cmp esi, edi
je 0x100d2be
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x1388
ja 0x100d2f8
mov dword [ebp - 8], 0x104
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x100d1f1
cmp dword [ebp - 0x20], edi
je 0x100d306
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], edi
je 0x100d314
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], edi
je 0x100d40f
push 0x1001df8
push 0x80000000
call fcn.01017d6c
lea eax, [ebp - 4]
push eax
push 0x20007
push edi
push 0x10017a8
push 0x80000002
call ebx
test eax, eax
mov esi, 0x1001ddc
jne 0x100d3a9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100d392
cmp dword [ebp - 0x10], 4
jne 0x100d392
cmp dword [ebp - 0xc], 0xd2af9
jne 0x100d392
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push edi
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1001dc4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20007
push edi
push 0x10017a8
push 0x80000001
call ebx
test eax, eax
jne 0x100d40f
push 4
pop ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100d406
cmp dword [ebp - 0x10], ebx
jne 0x100d406
cmp dword [ebp - 0xc], 0xd2af9
jne 0x100d406
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x14]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x24]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x18]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 4