Function at 0x4028a0
Capabilities:
Create process on windows
Delete file
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x690
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.00408f50
add esp, 0xc
xor edx, edx
mov word [ebp - 0x630], dx
push 0x206
push 0
lea eax, [ebp - 0x62e]
push eax
call fcn.00408f50
add esp, 0xc
push 0x200
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.00408f50
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.HGDraw.dll
push 0x104
lea eax, [ebp - 0x420]
push eax
call fcn.00405607
add esp, 0xc
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00402e30
mov dword [ebp - 4], eax
cmp dword [0x418638], 1
jne 0x402974
cmp dword [ebp - 4], 0
jne 0x402974
xor eax, eax
jmp 0x402e1a
call fcn.00403450
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x218], 0x504d534d
mov edx, 0x51
mov word [ebp - 0x194], dx
mov eax, 0x2b8e
mov word [ebp - 0xf2], ax
mov dword [ebp - 0x634], 0x4142dc
lea ecx, [ebp - 0x172]
mov dword [ebp - 0x638], ecx
mov edx, dword [ebp - 0x638]
mov dword [ebp - 0x63c], edx
mov eax, dword [ebp - 0x634]
mov cx, word [eax]
mov word [ebp - 0x63e], cx
mov edx, dword [ebp - 0x638]
mov ax, word [ebp - 0x63e]
mov word [edx], ax
mov ecx, dword [ebp - 0x634]
add ecx, 2
mov dword [ebp - 0x634], ecx
mov edx, dword [ebp - 0x638]
add edx, 2
mov dword [ebp - 0x638], edx
cmp word [ebp - 0x63e], 0
jne 0x4029c0
mov dword [ebp - 0x644], 0x4142fc
lea eax, [ebp - 0x214]
mov dword [ebp - 0x648], eax
mov ecx, dword [ebp - 0x648]
mov dword [ebp - 0x64c], ecx
mov edx, dword [ebp - 0x644]
mov ax, word [edx]
mov word [ebp - 0x64e], ax
mov ecx, dword [ebp - 0x648]
mov dx, word [ebp - 0x64e]
mov word [ecx], dx
mov eax, dword [ebp - 0x644]
add eax, 2
mov dword [ebp - 0x644], eax
mov ecx, dword [ebp - 0x648]
add ecx, 2
mov dword [ebp - 0x648], ecx
cmp word [ebp - 0x64e], 0
jne 0x402a2a
mov dword [ebp - 0x654], 0x41431c
lea edx, [ebp - 0x192]
mov dword [ebp - 0x658], edx
mov eax, dword [ebp - 0x658]
mov dword [ebp - 0x65c], eax
mov ecx, dword [ebp - 0x654]
mov dx, word [ecx]
mov word [ebp - 0x65e], dx
mov eax, dword [ebp - 0x658]
mov cx, word [ebp - 0x65e]
mov word [eax], cx
mov edx, dword [ebp - 0x654]
add edx, 2
mov dword [ebp - 0x654], edx
mov eax, dword [ebp - 0x658]
add eax, 2
mov dword [ebp - 0x658], eax
cmp word [ebp - 0x65e], 0
jne 0x402a94
mov dword [ebp - 0x50], 5
push 0x4185f8
push 0x10
lea ecx, [ebp - 0x90]
push ecx
call fcn.0040567c
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x402b05
cmp dword [ebp - 0xc], 0
je 0x402b75
push 0x418470
lea edx, [ebp - 0x192]
push edx
call fcn.00402320
add esp, 8
push 0x4184f0
lea eax, [ebp - 0x214]
push eax
call fcn.00402300
add esp, 8
push 0x418570
lea ecx, [ebp - 0x172]
push ecx
call fcn.00402300
add esp, 8
mov dx, word [0x41846c]
mov word [ebp - 0x194], dx
mov ax, word [0x4185f0]
mov word [ebp - 0xf2], ax
mov ecx, dword [0x4185f4]
mov dword [ebp - 0x50], ecx
cmp dword [0x4185f4], 0
jne 0x402b75
mov dword [ebp - 0x50], 5
movzx edx, word [ebp - 0x214]
test edx, edx
je 0x402b8b
movzx eax, word [ebp - 0x194]
test eax, eax
jg 0x402b95
jmp 0x402e10
mov dword [ebp - 0x218], 0x504d534d
mov dword [ebp - 0x664], 0x4185f8
mov ecx, dword [ebp - 0x664]
add ecx, 2
mov dword [ebp - 0x668], ecx
mov edx, dword [ebp - 0x664]
mov ax, word [edx]
mov word [ebp - 0x66a], ax
add dword [ebp - 0x664], 2
cmp word [ebp - 0x66a], 0
jne 0x402bb8
mov ecx, dword [ebp - 0x664]
sub ecx, dword [ebp - 0x668]
sar ecx, 1
mov dword [ebp - 0x670], ecx
je 0x402c1b
push 0x4185f8
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x402c1b
push 0x4185f8
push 0x10
lea edx, [ebp - 0x90]
push edx
call fcn.0040567c
add esp, 0xc
movzx eax, word [ebp - 0x90]
test eax, eax
jne 0x402c3a
push str.fiode
lea ecx, [ebp - 0x90]
push ecx
call fcn.00402320
add esp, 8
movzx edx, word [ebp - 0x70]
test edx, edx
jne 0x402cb4
push str.dofhir
lea eax, [ebp - 0x70]
push eax
call fcn.00402320
add esp, 8
mov dword [ebp - 0x674], 0x418618
mov ecx, dword [ebp - 0x674]
add ecx, 2
mov dword [ebp - 0x678], ecx
mov edx, dword [ebp - 0x674]
mov ax, word [edx]
mov word [ebp - 0x67a], ax
add dword [ebp - 0x674], 2
cmp word [ebp - 0x67a], 0
jne 0x402c6c
mov ecx, dword [ebp - 0x674]
sub ecx, dword [ebp - 0x678]
sar ecx, 1
mov dword [ebp - 0x680], ecx
je 0x402cb4
push 0x418618
lea edx, [ebp - 0x70]
push edx
call fcn.00402320
add esp, 8
mov eax, dword [0x416f34]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x50], 0
jne 0x402cc9
mov dword [ebp - 0x50], 5
lea ecx, [ebp - 0x218]
push ecx
call fcn.00402700
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x402ceb
jmp 0x402e10
lea edi, [ebp - 0x420]
lea esi, [ebp - 0x70]
call fcn.00403750
push 0x104
lea edx, [ebp - 0x630]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
xor edx, edx
mov ecx, 0x64
div ecx
mov dword [ebp - 8], edx
lea edx, [ebp - 0x420]
push edx
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x630]
call fcn.00403df0
add esp, 4
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x424]
push eax
push 3
push 0
push 0x414350
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402df6
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x684], ecx
mov edx, dword [ebp - 0x684]
add edx, 2
mov dword [ebp - 0x688], edx
mov eax, dword [ebp - 0x684]
mov cx, word [eax]
mov word [ebp - 0x68a], cx
add dword [ebp - 0x684], 2
cmp word [ebp - 0x68a], 0
jne 0x402d88
mov edx, dword [ebp - 0x684]
sub edx, dword [ebp - 0x688]
sar edx, 1
mov dword [ebp - 0x690], edx
mov eax, dword [ebp - 0x690]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x420]
push edx
push 1
push 0
push 0x414344
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402df6
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 0
push 0x41434c
lea edx, [ebp - 0x420]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004055f8
mov esp, ebp
pop ebp
ret