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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x437c20]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x238], ax
push 0x206
push 0
lea ecx, [ebp - 0x236]
push ecx
call fcn.0041ac90
add esp, 0xc
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x244], 0x104
xor edx, edx
mov word [ebp - 0x2c], dx
xor eax, eax
mov dword [ebp - 0x2a], eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov dword [ebp - 0x254], 0x43c678
mov ecx, dword [ebp - 0x254]
add ecx, 2
mov dword [ebp - 0x258], ecx
mov edx, dword [ebp - 0x254]
mov ax, word [edx]
mov word [ebp - 0x25a], ax
add dword [ebp - 0x254], 2
cmp word [ebp - 0x25a], 0
jne 0x405d40
mov ecx, dword [ebp - 0x254]
sub ecx, dword [ebp - 0x258]
sar ecx, 1
mov dword [ebp - 0x260], ecx
je 0x405d9f
push 0x43c678
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
je 0x405d9f
xor eax, eax
jmp 0x4060e8
lea edx, [ebp - 0x30]
push edx
push 0xf003f
push 0
push 0x432cb8
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405e20
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x23c]
push edx
push 0
push 0x432d24
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405e16
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
je 0x405e16
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4060e8
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
lea ecx, [ebp - 0x238]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x264], 0x43c678
mov edx, dword [ebp - 0x264]
add edx, 2
mov dword [ebp - 0x268], edx
mov eax, dword [ebp - 0x264]
mov cx, word [eax]
mov word [ebp - 0x26a], cx
add dword [ebp - 0x264], 2
cmp word [ebp - 0x26a], 0
jne 0x405e5f
mov edx, dword [ebp - 0x264]
sub edx, dword [ebp - 0x268]
sar edx, 1
mov dword [ebp - 0x270], edx
jne 0x405f1f
push 0x432d34
push 0x104
lea eax, [ebp - 0x238]
push eax
call fcn.004188b9
add esp, 0xc
mov dword [ebp - 0x274], 0x432d40
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x278], ecx
mov edx, dword [ebp - 0x278]
mov dword [ebp - 0x27c], edx
mov eax, dword [ebp - 0x274]
mov cx, word [eax]
mov word [ebp - 0x27e], cx
mov edx, dword [ebp - 0x278]
mov ax, word [ebp - 0x27e]
mov word [edx], ax
mov ecx, dword [ebp - 0x274]
add ecx, 2
mov dword [ebp - 0x274], ecx
mov edx, dword [ebp - 0x278]
add edx, 2
mov dword [ebp - 0x278], edx
cmp word [ebp - 0x27e], 0
jne 0x405ed2
jmp 0x405f9f
push 0x43c678
push 0x104
lea eax, [ebp - 0x238]
push eax
call fcn.004188b9
add esp, 0xc
mov dword [ebp - 0x284], 0x43c678
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x288], ecx
mov edx, dword [ebp - 0x288]
mov dword [ebp - 0x28c], edx
mov eax, dword [ebp - 0x284]
mov cx, word [eax]
mov word [ebp - 0x28e], cx
mov edx, dword [ebp - 0x288]
mov ax, word [ebp - 0x28e]
mov word [edx], ax
mov ecx, dword [ebp - 0x284]
add ecx, 2
mov dword [ebp - 0x284], ecx
mov edx, dword [ebp - 0x288]
add edx, 2
mov dword [ebp - 0x288], edx
cmp word [ebp - 0x28e], 0
jne 0x405f57
push 0x432d4c
push 0x104
lea eax, [ebp - 0x238]
push eax
call fcn.004188b9
add esp, 0xc
lea ecx, [ebp - 0x248]
push ecx
push 0x432d58
push 0x82
call fcn.00406100
add esp, 0xc
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
jne 0x405fea
jmp 0x4060c2
mov edx, dword [ebp - 0x248]
push edx
mov eax, dword [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x238]
push ecx
call fcn.004061e0
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x432d70
lea edx, [ebp - 0x238]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [ebp - 0x30]
push eax
push 3
push 0
push 0x432d78
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4060c2
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x294], ecx
mov edx, dword [ebp - 0x294]
add edx, 2
mov dword [ebp - 0x298], edx
mov eax, dword [ebp - 0x294]
mov cx, word [eax]
mov word [ebp - 0x29a], cx
add dword [ebp - 0x294], 2
cmp word [ebp - 0x29a], 0
jne 0x40605d
mov edx, dword [ebp - 0x294]
sub edx, dword [ebp - 0x298]
sar edx, 1
mov dword [ebp - 0x2a0], edx
mov eax, dword [ebp - 0x2a0]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x2c]
push edx
push 1
push 0
push 0x432de4
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4060c2
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24c], 0
je 0x4060e6
mov edx, dword [ebp - 0x24c]
mov dword [ebp - 0x250], edx
mov eax, dword [ebp - 0x250]
push eax
call fcn.0040e47b
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004188aa
mov esp, ebp
pop ebp
ret