Function at 0x401570
Capabilities:
Accept command line arguments
Create process on windows
Persist via run registry key
Query or enumerate registry value
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x77c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edi, [esp + 0x50]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], edi
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov dword [esp], 0x80000001
mov ebx, eax
call esi
sub esp, 0x14
test eax, eax
je 0x401c90
lea eax, [esp + 0x54]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x11c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersion
mov dword [esp], 0x80000002
call esi
sub esp, 0x14
test eax, eax
lea esi, [esp + 0x1e4]
je 0x401c30
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
xor ecx, 0xffffffff
and eax, ecx
and eax, 0x80808080
je 0x40160a
test eax, 0x8080
je 0x401bf0
add al, al
mov eax, dword [esp + 0x3c]
sbb edx, 3
sub edx, eax
dec edx
cmp byte [esp + edx + 0x54], 0x5c
je 0x401c10
mov edx, dword [esp + 0x30]
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
xor ecx, 0xffffffff
and eax, ecx
and eax, 0x80808080
je 0x401647
test eax, 0x8080
je 0x401be0
add al, al
mov ebp, dword [esp + 0x30]
sbb edx, 3
sub edx, ebp
dec edx
cmp byte [esp + edx + 0x11c], 0x5c
je 0x401c00
mov edx, esi
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
xor ecx, 0xffffffff
and eax, ecx
and eax, 0x80808080
je 0x401685
test eax, 0x8080
je 0x401bd0
add al, al
sbb edx, 3
sub edx, esi
dec edx
cmp byte [esp + edx + 0x1e4], 0x5c
je 0x401c20
mov dword [esp + 4], 0x5c
mov dword [esp], esi
call sub.msvcrt.dll_strchr
test eax, eax
je 0x4016d4
mov byte [eax], 0
xor eax, eax
cmp byte [ebx], 0x22
sete al
add ebx, eax
mov dword [esp + 4], str..exe
mov dword [esp], ebx
call sub.msvcrt.dll_strstr
test eax, eax
je 0x4016f6
mov byte [eax + 4], 0
mov eax, dword [str.MySkills_test_0xZL28DGhr2]
mov dword [esp + 8], esi
lea esi, [esp + 0x4aa]
mov dword [esp + 0xc], eax
mov dword [esp + 4], str._s_s
mov dword [esp], esi
lea ebp, [esp + 0x5a9]
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], ebx
mov dword [esp], ebp
lea ebx, [esp + 0x4ad]
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], 0x5c
mov dword [esp], ebx
call sub.msvcrt.dll_strchr
mov edi, eax
test eax, eax
je 0x401d50
mov eax, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [esp + 0x2c], eax
mov byte [edi], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [esp + 0x2c]
push ebx
push ebx
lea ebx, [edi + 1]
mov byte [edi], 0x5c
mov dword [esp + 4], 0x5c
mov dword [esp], ebx
call sub.msvcrt.dll_strchr
mov edi, eax
test eax, eax
jne 0x401757
mov dword [esp + 4], 0x2f
mov dword [esp], ebx
call sub.msvcrt.dll_strchr
mov edi, eax
test eax, eax
jne 0x401757
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [esp + 0x2c]
push edi
push edi
lea eax, [esp + 0x2ac]
mov dword [esp + 8], esi
mov dword [esp + 4], str._sinstall.bat
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea eax, [esp + 0x2ac]
mov dword [esp + 4], 0x4050cc
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov edi, eax
test eax, eax
je 0x401dce
mov dword [esp + 4], 0x4050f4
mov dword [esp], ebp
call sub.msvcrt.dll_fopen
mov ebx, eax
test eax, eax
je 0x401e36
mov dword [esp + 8], 2
mov dword [esp + 4], 0xffffffe0
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov dword [esp], ebx
call sub.msvcrt.dll_ftell
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x20
mov dword [esp + 4], 1
mov dword [esp], 0x406020
mov dword [esp + 0x48], eax
call sub.msvcrt.dll_fread
mov ecx, dword [0x406020]
mov dword [esp + 4], ecx
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 0x34], ecx
call sub.msvcrt.dll_fseek
mov edx, dword [esp + 0x48]
lea eax, [edx + 0xff]
mov dword [esp + 0x28], edx
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
mov dword [esp + 0xc], ebx
sub edx, ecx
mov dword [esp + 4], 1
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 0x34], eax
call sub.msvcrt.dll_fread
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov eax, dword [0x406024]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], edi
lea edi, [esp + 0x3ab]
call sub.msvcrt.dll_fclose
mov dword [esp + 8], esi
mov dword [esp + 4], str._sinstdata.7z
mov dword [esp], edi
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], 0x4050cc
mov dword [esp], edi
call sub.msvcrt.dll_fopen
mov ebx, eax
test eax, eax
je 0x401e02
mov dword [esp + 0xc], eax
mov eax, dword [0x406028]
mov ecx, dword [0x406024]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], 1
add eax, ecx
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp + 8], esi
mov dword [esp + 4], str._s7zr.exe
mov dword [esp], edi
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], 0x4050cc
mov dword [esp], edi
call sub.msvcrt.dll_fopen
mov ebx, eax
test eax, eax
je 0x401e1c
mov dword [esp + 0xc], eax
mov eax, dword [0x40602c]
mov edx, dword [0x406028]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [0x406024]
add eax, edx
mov dword [esp + 4], 1
add eax, ecx
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov eax, dword [0x406024]
mov ebx, dword [0x406028]
mov edx, dword [esp + 0x34]
add ebx, eax
mov eax, dword [0x40602c]
add ebx, eax
mov eax, dword [0x406030]
add ebx, eax
mov eax, dword [0x406034]
add ebx, eax
mov eax, dword [0x406038]
add ebx, eax
mov eax, dword [0x40603c]
add ebx, eax
add ebx, edx
mov dword [esp + 0x28], ebx
xor ebx, ebx
mov eax, dword [ebx + 0x404024]
test eax, eax
je 0x401b43
mov eax, dword [ebx + 0x404014]
mov dword [esp + 4], str._s_s.exe
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov dword [esp], edi
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], 0x4050cc
mov dword [esp], edi
call sub.msvcrt.dll_fopen
test eax, eax
je 0x401dae
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x404024]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], str._s_s
mov dword [esp], ebp
call sub.msvcrt.dll_sprintf
mov eax, dword [esp + 0x28]
mov dword [esp + 4], ebp
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov edx, dword [esp + 0x28]
mov eax, dword [ebx + 0x40603c]
mov ecx, dword [esp + 0x38]
sub edx, eax
add eax, 0xff
mov dword [esp + 0x28], edx
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 8], eax
mov dword [esp], edx
mov dword [esp + 4], 1
call sub.msvcrt.dll_fwrite
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
call sub.msvcrt.dll_fclose
mov eax, dword [str.Test_MySkills]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_s
mov dword [esp], ebp
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], 0
mov dword [esp], ebp
call dword [esp + 0x2c]
mov eax, dword [ebx + 0x404014]
push ecx
push ecx
mov dword [esp + 0x10], eax
mov eax, dword [str.Test_MySkills]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s_s_s.exe
mov dword [esp], edi
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], 0x4050cc
mov dword [esp], edi
call sub.msvcrt.dll_fopen
test eax, eax
je 0x401d78
mov dword [esp + 0xc], eax
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x40603c]
mov dword [esp + 4], 1
add eax, 0xff
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
call sub.msvcrt.dll_fclose
sub ebx, 4
cmp ebx, 0xfffffff0
jne 0x4019dc
mov eax, dword [str.MySkills.exe]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0x2ac]
mov dword [esp + 0x14], 2
mov dword [esp + 8], eax
mov dword [esp + 4], str.open
mov dword [esp], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
sub esp, 0x18
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.MySkills
mov dword [esp + 4], str.A_telep
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
sub esp, 0x10
add esp, 0x77c
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
shr eax, 0x10
add edx, 2
jmp 0x4016a7
shr eax, 0x10
add edx, 2
jmp 0x401669
shr eax, 0x10
add edx, 2
jmp 0x40162c
mov byte [esp + edx + 0x11c], 0
jmp 0x401683
mov byte [esp + edx + 0x54], 0
jmp 0x401643
mov byte [esp + edx + 0x1e4], 0
jmp 0x4016bd
lea eax, [esp + 0x48]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 8], 0
mov dword [esp + 4], str.ProgramFilesDir
mov dword [esp], eax
mov dword [esp + 0x48], 0xc7
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
je 0x401c78
mov byte [esp + 0x1e4], 0
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
jmp 0x401606
lea eax, [esp + 0x54]
lea ecx, [esp + 0x48]
lea edx, [esp + 0x4c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.Desktop
mov dword [esp], eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x48], 0xc7
call ebp
sub esp, 0x18
test eax, eax
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
je 0x401cef
mov byte [esp + 0x54], 0
lea eax, [esp + 0x11c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.Programs
mov dword [esp], eax
mov dword [esp + 0x48], 0xc7
call ebp
sub esp, 0x18
test eax, eax
je 0x401d36
mov byte [esp + 0x11c], 0
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
jmp 0x4015cf
mov dword [esp + 4], 0x2f
mov dword [esp], ebx
call sub.msvcrt.dll_strchr
mov edi, eax
test eax, eax
jne 0x40174e
mov eax, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [esp + 0x2c], eax
jmp 0x40179d
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Installer_error
mov dword [esp + 4], str.File_system_error_6_
mov dword [esp], eax
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
mov dword [esp], 0
call sub.msvcrt.dll_exit
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Installer_error
mov dword [esp + 4], str.File_system_error_5_
jmp 0x401d96
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Installer_error
mov dword [esp + 4], str.File_system_error_1_
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
mov dword [esp], 0
call sub.msvcrt.dll_exit
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Installer_error
mov dword [esp + 4], str.File_system_error_3_
jmp 0x401de6
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Installer_error
mov dword [esp + 4], str.File_system_error_4_
jmp 0x401de6
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Installer_error
mov dword [esp + 4], str.File_system_error_2_
jmp 0x401de6