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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov dword [ebp - 0x48], 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x68], ecx
mov edx, dword [0x40a044]
add edx, dword [ebp - 0x5c]
mov dword [ebp - 0x1c], edx
push 0x4019a8
call fcn.004026e0
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004026e0
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [ebp - 0x18], 0x18
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0x40
lea eax, [ebp - 0x44]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x18]
push edx
push 0xf003f
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntdll.dll_NtCreateKey]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jl 0x403d68
mov ecx, dword [0x40a044]
add ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x58], ecx
push 0x4019ac
call fcn.004026e0
add esp, 4
mov edx, dword [ebp - 0x58]
push edx
call fcn.004026e0
add esp, 4
mov eax, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
cmp dword [ebp + 0x24], 3
jne 0x403c8c
cmp dword [ebp + 0x18], 4
jne 0x403a22
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x34], edx
push 4
lea eax, [ebp - 0x34]
push eax
push 4
push 0
lea ecx, [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jge 0x403a1d
push 0x4019b0
call fcn.004026e0
add esp, 4
jmp 0x403c87
cmp dword [ebp - 0x24], 1
je 0x403a38
cmp dword [ebp - 0x24], 2
je 0x403a38
cmp dword [ebp - 0x24], 7
jne 0x403c87
push 0x30
push 0
lea eax, [ebp - 0x9c]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x9c], 0x30
lea ecx, [ebp - 0x9c]
push ecx
push 0
push 0x1000
push 0x100000
push 0
push 2
call dword [sym.imp.ntdll.dll_RtlCreateHeap]
mov dword [0x40a038], eax
push 0x1000
push 0
mov edx, dword [0x40a038]
push edx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x50], eax
push 0x1000
push 0
mov eax, dword [ebp - 0x50]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov ecx, dword [0x40a044]
add ecx, dword [ebp - 0x34]
mov dword [ebp - 0x20], ecx
push 0x4019d8
call fcn.004026e0
add esp, 4
mov edx, dword [ebp - 0x20]
push edx
call fcn.004026e0
add esp, 4
lea eax, [ebp - 0x2c]
push eax
push 0x2001f
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004033a0
add esp, 0xc
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jl 0x403c74
push 0x4019dc
call fcn.004026e0
add esp, 4
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004026e0
add esp, 4
mov dword [ebp - 0x38], 0x800
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00403200
add esp, 0x10
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jl 0x403b45
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x50]
push eax
call fcn.00403300
add esp, 0xc
test eax, eax
jne 0x403c6a
push 0x4019fc
call fcn.004026e0
add esp, 4
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.004026e0
add esp, 4
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0xa0], edx
cmp dword [ebp - 0x4c], 0
jl 0x403bb5
mov eax, dword [ebp - 0xa0]
movzx ecx, word [eax]
test ecx, ecx
je 0x403bb5
mov edx, dword [ebp - 0xa0]
push edx
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 0xa0]
lea edx, [ecx + eax*2]
mov dword [ebp - 0xa0], edx
xor eax, eax
mov ecx, dword [ebp - 0xa0]
mov word [ecx], ax
mov edx, dword [ebp - 0xa0]
add edx, 2
mov dword [ebp - 0xa0], edx
jmp 0x403b6d
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0xa0]
push edx
call dword [sym.imp.ntdll.dll_wcsncat]
add esp, 0xc
mov eax, dword [ebp - 0xa0]
push eax
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 0xa0]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0xa0], edx
xor eax, eax
mov ecx, dword [ebp - 0xa0]
mov word [ecx], ax
mov edx, dword [ebp - 0xa0]
add edx, 2
mov dword [ebp - 0xa0], edx
xor eax, eax
mov ecx, dword [ebp - 0xa0]
mov word [ecx], ax
mov edx, dword [ebp - 0xa0]
add edx, 2
mov dword [ebp - 0xa0], edx
push 0x401a34
call fcn.004026e0
add esp, 4
mov eax, dword [ebp - 0x50]
push eax
call fcn.004026e0
add esp, 4
push 0x401a38
call fcn.004026e0
add esp, 4
mov ecx, dword [ebp - 0x50]
add ecx, 0x10
push ecx
call fcn.004026e0
add esp, 4
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00403140
add esp, 0xc
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [ebp - 0x50]
push eax
push 0
mov ecx, dword [0x40a038]
push ecx
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x403d66
cmp dword [ebp + 0x24], 1
jne 0x403d3c
cmp dword [ebp + 0x18], 4
jne 0x403cd2
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x34], edx
push 4
lea eax, [ebp - 0x34]
push eax
push 4
push 0
lea ecx, [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jge 0x403cd0
push 0x401a3c
call fcn.004026e0
add esp, 4
jmp 0x403d3a
cmp dword [ebp - 0x24], 1
je 0x403ce4
cmp dword [ebp - 0x24], 2
je 0x403ce4
cmp dword [ebp - 0x24], 7
jne 0x403d3a
mov eax, dword [0x40a044]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
push 0x401a64
call fcn.004026e0
add esp, 4
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004026e0
add esp, 4
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push 0
lea edx, [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ntdll.dll_NtSetValueKey]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jge 0x403d3a
push 0x401a68
call fcn.004026e0
add esp, 4
jmp 0x403d66
cmp dword [ebp + 0x24], 2
jne 0x403d66
lea ecx, [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jge 0x403d66
push 0x401a90
call fcn.004026e0
add esp, 4
jmp 0x403d75
push 0x401ac4
call fcn.004026e0
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov esp, ebp
pop ebp
ret