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

Disassembly:
sub esp, 0x310
mov eax, dword [0x432c20]
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.00414570
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, 0x437640
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 0x401f40
sub eax, edx
sar eax, 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
je 0x401f6e
push 0x437640
push 0
push 0x20000
call esi
test eax, eax
jne 0x4021a6
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push 0x42d010
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401ff2
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 0x42d07c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401fe7
lea edx, [esp + 0x18]
push edx
push eax
push 0x20000
call esi
test eax, eax
je 0x401fe7
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.0041214d
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, 0x437640
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402015
sub eax, edx
sar eax, 1
jne 0x402066
push 0x42d08c
lea eax, [esp + 0x10c]
push 0x104
push eax
call fcn.0041215c
add esp, 0xc
xor eax, eax
jmp 0x402050
movzx ecx, word [eax + 0x42d098]
mov word [esp + eax + 0x18], cx
add eax, 2
test cx, cx
jne 0x402050
jmp 0x4020a4
push 0x437640
lea ecx, [esp + 0x10c]
push 0x104
push ecx
call fcn.0041215c
add esp, 0xc
xor eax, eax
jmp 0x402090
movzx ecx, word [eax + 0x437640]
mov word [esp + eax + 0x18], cx
add eax, 2
test cx, cx
jne 0x402090
push ebx
push 0x42d0a4
lea edx, [esp + 0x110]
push 0x104
push edx
call fcn.0041215c
lea eax, [esp + 0x18]
push eax
call fcn.004045bd
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4021a5
mov ecx, dword [esp + 0xc]
push edi
push ecx
lea edx, [esp + 0x114]
push ebx
push edx
call fcn.00404630
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x42d0c8
lea eax, [esp + 0x11c]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x1a
mov esi, 0x42d0d0
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.00414570
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 0x40219c
lea eax, [esp + 0x1c]
lea edx, [eax + 2]
jmp 0x402160
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402160
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 0x42d13c
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40219c
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00407d1d
add esp, 4
pop ebx
mov ecx, dword [esp + 0x310]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0041214d
add esp, 0x310
ret