Function at 0x1001c470
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push esi
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0x80000002
jne 0x1001c733
movzx ecx, word [0x10038b3c]
cmp ecx, 9
jne 0x1001c733
cmp dword [0x1003a84c], 0
je 0x1001c733
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0
push 0x2bed
call fcn.10015230
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x925
call fcn.10015350
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0x18], 0
je 0x1001c705
cmp dword [ebp + 0x14], 4
jne 0x1001c529
push 0x10039ed4
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax + 1]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esi + eax + 0x28]
mov dword [ebp - 0x18], edx
jmp 0x1001c588
cmp dword [ebp + 0x14], 1
jne 0x1001c576
push 0x10039ed4
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax + 1]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, eax
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, eax
mov eax, dword [ebp + 0x18]
add eax, 0x28
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, eax
mov dword [ebp - 0x18], esi
jmp 0x1001c588
xor ecx, ecx
je 0x1001c57c
jmp 0x1001c576
mov dword [ebp - 0x14], 0xfffffffc
jmp 0x1001c705
mov edx, dword [ebp - 0x18]
lea eax, [edx + edx + 2]
push eax
call fcn.10013960
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1001c5b3
xor ecx, ecx
je 0x1001c5a7
jmp 0x1001c5a1
mov dword [ebp - 0x14], 0xfffffffb
jmp 0x1001c705
push 0x10039ed4
push str._s_system32_
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.10013ca0
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x1001c5e8
xor ecx, ecx
je 0x1001c5dc
jmp 0x1001c5d6
mov dword [ebp - 0x14], 0xfffffffa
jmp 0x1001c705
cmp dword [ebp + 0x14], 4
jne 0x1001c63d
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
push eax
push 0x1002f978
push 0x40
lea ecx, [ebp - 0xb0]
push ecx
call fcn.10013ca0
add esp, 0x10
lea edx, [ebp - 0xb0]
push edx
mov eax, dword [ebp + 0x10]
push eax
push str.REG_DWORD
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
lea eax, [edx + ecx*2]
push eax
call fcn.10013ca0
add esp, 0x1c
jmp 0x1001c66b
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push str.REG_SZ
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + eax*2]
push edx
call fcn.10013ca0
add esp, 0x1c
xor eax, eax
je 0x1001c671
jmp 0x1001c66b
push str.Wow64DisableWow64FsRedirection
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x24]
push edx
call fcn.10015460
add esp, 4
cmp dword [ebp - 0x30], 0
je 0x1001c6a9
lea eax, [ebp - 0xb4]
push eax
call dword [ebp - 0x30]
add esp, 4
push 1
push 0x1388
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.1001b220
add esp, 0x10
test eax, eax
jne 0x1001c6d3
xor eax, eax
je 0x1001c6ca
jmp 0x1001c6c4
mov dword [ebp - 0x14], 0xfffffff9
jmp 0x1001c6d9
xor ecx, ecx
je 0x1001c6d9
jmp 0x1001c6d3
push str.Wow64EnableWow64FsRedirection
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x1001c705
lea eax, [ebp - 0xb8]
push eax
call dword [ebp - 0x28]
add esp, 4
push 0xfffffffffffffffe
lea ecx, [ebp - 0x20]
push ecx
call fcn.10013990
add esp, 8
lea edx, [ebp - 0x1c]
push edx
call fcn.10015460
add esp, 4
lea eax, [ebp - 0x24]
push eax
call fcn.10015460
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x1001c7ea
lea ecx, [ebp - 4]
push ecx
push 2
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1001c760
xor ecx, ecx
je 0x1001c758
jmp 0x1001c752
or eax, 0xffffffff
jmp 0x1001c7ea
cmp dword [ebp + 0x18], 0
je 0x1001c7aa
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1001c7a2
xor ecx, ecx
je 0x1001c791
jmp 0x1001c78b
mov edx, dword [ebp - 4]
push edx
call dword [0x1003aa98]
mov eax, 0xfffffffe
jmp 0x1001c7ea
xor eax, eax
je 0x1001c7a8
jmp 0x1001c7a2
jmp 0x1001c7de
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x1001c7d8
xor eax, eax
je 0x1001c7c7
jmp 0x1001c7c1
mov ecx, dword [ebp - 4]
push ecx
call dword [0x1003aa98]
mov eax, 0xfffffffd
jmp 0x1001c7ea
xor edx, edx
je 0x1001c7de
jmp 0x1001c7d8
mov eax, dword [ebp - 4]
push eax
call dword [0x1003aa98]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret