Function at 0x401060
Capabilities:
Set registry value

Disassembly:
sub esp, 0x5a0
mov eax, dword [0x40d004]
xor eax, esp
mov dword [esp + 0x59c], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 2
xor eax, eax
jmp 0x401090
movzx ecx, word [eax + str.___]
mov word [esp + eax + 0x19c], cx
add eax, 2
test cx, cx
jne 0x401090
mov eax, 0x459468
mov edx, eax
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4010b0
push ebx
push esi
push edi
lea edi, [esp + 0x1a8]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4010d0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
push 0x18e
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.00407160
add esp, 0xc
xor eax, eax
jmp 0x401110
movzx ecx, word [eax + str.SYSTEMCurrentControlSetServices_]
mov word [esp + eax + 0x18], cx
add eax, 2
test cx, cx
jne 0x401110
lea eax, [esp + 0x18]
add eax, 0xfffffffe
jmp 0x401130
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x401130
mov edx, dword [str.NtHook]
mov ecx, dword [0x40bb38]
mov dword [eax], edx
mov edx, dword [0x40bb3c]
mov dword [eax + 4], ecx
mov cx, word [0x40bb40]
mov dword [eax + 8], edx
mov word [eax + 0xc], cx
lea eax, [esp + 0x1a8]
lea edx, [eax + 2]
jmp 0x401170
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401170
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 0
sub eax, edx
lea edx, [esp + 0x10]
push edx
push 0
push 0x20006
push 0
sar eax, 1
push 0
mov edi, eax
push 0
lea eax, [esp + 0x34]
push eax
push 0x80000002
call esi
mov eax, dword [esp + 0xc]
lea ecx, [edi + edi + 2]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ecx
lea edx, [esp + 0x1ac]
push edx
push 2
push 0
push str.ImagePath
push eax
call edi
mov eax, str.NtHook
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4011d2
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
sar eax, 1
push 0x80000002
mov ebx, eax
call esi
mov ecx, dword [esp + 0xc]
lea eax, [ebx + ebx + 2]
push eax
push str.NtHook
push 1
push 0
push str.DisplayName
push ecx
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push 0x80000002
call esi
mov edx, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0
push str.ErrorControl
push edx
call edi
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea ecx, [esp + 0x34]
push ecx
push 0x80000002
call esi
mov eax, dword [esp + 0xc]
push 4
lea edx, [esp + 0x14]
push edx
push 4
push 0
push str.Type
push eax
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
push 0x80000002
call esi
push 0xa
push str.Base
push 1
mov eax, dword [esp + 0x18]
push 0
push str.Group
push eax
call edi
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
push 0x80000002
call esi
mov ecx, dword [esp + 0xc]
push 4
lea eax, [esp + 0x18]
push eax
push 4
push 0
push 0x40b49c
push ecx
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push 0x80000002
call esi
mov edx, dword [esp + 0xc]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push 0
push str.Start
push edx
call edi
mov ecx, dword [esp + 0x5a8]
pop edi
test eax, eax
pop esi
sete al
pop ebx
xor ecx, esp
call fcn.00402b9c
add esp, 0x5a0
ret