Function at 0x401290
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 [0x422040]
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.00411ad0
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], 0x424b28
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 0x401320
mov ecx, dword [ebp - 0x254]
sub ecx, dword [ebp - 0x258]
sar ecx, 1
mov dword [ebp - 0x260], ecx
je 0x40137f
push 0x424b28
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
je 0x40137f
xor eax, eax
jmp 0x4016c8
lea edx, [ebp - 0x30]
push edx
push 0xf003f
push 0
push 0x41f9a0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401400
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x23c]
push edx
push 0
push 0x41fa0c
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4013f6
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 0x4013f6
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4016c8
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], 0x424b28
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 0x40143f
mov edx, dword [ebp - 0x264]
sub edx, dword [ebp - 0x268]
sar edx, 1
mov dword [ebp - 0x270], edx
jne 0x4014ff
push 0x41fa1c
push 0x104
lea eax, [ebp - 0x238]
push eax
call fcn.00408e4e
add esp, 0xc
mov dword [ebp - 0x274], 0x41fa28
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 0x4014b2
jmp 0x40157f
push 0x424b28
push 0x104
lea eax, [ebp - 0x238]
push eax
call fcn.00408e4e
add esp, 0xc
mov dword [ebp - 0x284], 0x424b28
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 0x401537
push 0x41fa34
push 0x104
lea eax, [ebp - 0x238]
push eax
call fcn.00408e4e
add esp, 0xc
lea ecx, [ebp - 0x248]
push ecx
push 0x41fa40
push 0x84
call fcn.00405727
add esp, 0xc
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
jne 0x4015ca
jmp 0x4016a2
mov edx, dword [ebp - 0x248]
push edx
mov eax, dword [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x238]
push ecx
call fcn.0040579e
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x41fa58
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 0x41fa60
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4016a2
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 0x40163d
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 0x41facc
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4016a2
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x24c], 0
je 0x4016c6
mov edx, dword [ebp - 0x24c]
mov dword [ebp - 0x250], edx
mov eax, dword [ebp - 0x250]
push eax
call fcn.00408ecb
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408e3f
mov esp, ebp
pop ebp
ret