Function at 0x401ee0
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x310
mov eax, dword [0x42104c]
xor eax, esp
mov dword [esp + 0x30c], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x10e]
push ecx
mov word [esp + 0x110], ax
call fcn.0040ae10
xor edx, edx
add esp, 0xc
xor eax, eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov word [esp + 0x3a], ax
mov eax, 0x423b38
mov word [esp + 0x14], dx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0x104
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401f60
sub eax, edx
sar eax, 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
je 0x401f8e
push 0x423b38
push 0
push reloc.KERNEL32.dll_WriteConsoleA
call esi
test eax, eax
jne 0x4021c6
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push 0x41cdd8
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402012
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0x41ce44
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402007
lea edx, [esp + 0x18]
push edx
push eax
push reloc.KERNEL32.dll_WriteConsoleA
call esi
test eax, eax
je 0x402007
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x30c]
xor ecx, esp
call fcn.00407cf2
add esp, 0x310
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x108]
push edx
push 0x104
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, 0x423b38
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402035
sub eax, edx
sar eax, 1
jne 0x402086
push 0x41ce54
lea eax, [esp + 0x10c]
push 0x104
push eax
call fcn.00407d01
add esp, 0xc
xor eax, eax
jmp 0x402070
movzx ecx, word [eax + 0x41ce54]
mov word [esp + eax + 0x18], cx
add eax, 2
test cx, cx
jne 0x402070
jmp 0x4020c4
push 0x423b38
lea ecx, [esp + 0x10c]
push 0x104
push ecx
call fcn.00407d01
add esp, 0xc
xor eax, eax
jmp 0x4020b0
movzx ecx, word [eax + 0x423b38]
mov word [esp + eax + 0x18], cx
add eax, 2
test cx, cx
jne 0x4020b0
push ebx
push 0x41cd5c
lea edx, [esp + 0x110]
push 0x104
push edx
call fcn.00407d01
lea eax, [esp + 0x18]
push eax
call fcn.004045dd
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4021c5
mov ecx, dword [esp + 0xc]
push edi
push ecx
lea edx, [esp + 0x114]
push ebx
push edx
call fcn.00404650
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x41cca8
lea eax, [esp + 0x11c]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x1a
mov esi, 0x41cdd8
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
push 0x5e
lea ecx, [esp + 0xb6]
push 0
push ecx
movsw word es:[edi], word [esi]
call fcn.0040ae10
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 3
push 0
lea eax, [esp + 0x54]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
test eax, eax
jne 0x4021bc
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
jmp 0x402180
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402180
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 8]
push ecx
lea edx, [esp + 0x20]
push edx
push 1
push 0
push 0x41ce44
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4021bc
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.004084fb
add esp, 4
pop ebx
mov ecx, dword [esp + 0x310]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00407cf2
add esp, 0x310
ret