Function at 0x4011a0
Capabilities:
Create directory
Create process on windows
Delete file
Delete registry key
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3bc
mov dword [esp], str.advpack.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
sub esp, 4
test eax, eax
je 0x401700
lea ebx, [esp + 0xa4]
mov ebp, eax
mov dword [esp], 0x104
mov edi, dword [sym.imp.kernel32.dll_GetTempPathA]
mov dword [esp + 4], ebx
call edi
sub esp, 8
mov esi, dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40300c
mov dword [esp], ebx
call esi
mov eax, dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 0x38], eax
call eax
sub esp, 4
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
sub esp, 8
mov dword [esp + 4], str.ExtractFiles
mov dword [esp], ebp
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
test eax, eax
mov dword [esp + 0x34], eax
je 0x401700
mov eax, dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [esp + 0x60], 0
mov dword [esp + 8], 0x3e8
mov dword [esp + 4], 0x3e8
mov dword [esp], 0
mov dword [esp + 0x40], eax
call eax
sub esp, 0xc
test eax, eax
je 0x401700
mov dword [esp + 4], eax
mov dword [esp + 0x3c], eax
mov eax, dword [sym.imp.kernel32.dll_LoadResource]
mov dword [esp], 0
mov dword [esp + 0x44], eax
call eax
sub esp, 8
mov ebp, eax
mov eax, dword [sym.imp.kernel32.dll_SizeofResource]
mov edx, dword [esp + 0x3c]
mov dword [esp], 0
mov dword [esp + 0x48], eax
mov dword [esp + 4], edx
call eax
sub esp, 8
test eax, eax
mov dword [esp + 0x3c], eax
je 0x401700
test ebp, ebp
je 0x401700
lea ecx, [esp + 0x1a8]
mov dword [esp], 0x104
mov dword [esp + 4], ecx
call edi
sub esp, 8
lea edi, [esp + 0x1a8]
mov dword [esp + 0xc], 0x404120
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call esi
mov ecx, dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x10
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x404120
mov dword [esp + 0x4c], ecx
call ecx
sub esp, 0x1c
cmp eax, 0xffffffff
mov esi, eax
je 0x401700
mov edx, dword [esp + 0x3c]
lea edi, [esp + 0x60]
mov dword [esp + 4], ebp
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov dword [esp + 0xc], edi
mov ebp, dword [sym.imp.kernel32.dll_WriteFile]
mov dword [esp + 8], edx
call ebp
sub esp, 0x14
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], esi
call edi
sub esp, 4
mov dword [esp + 0x1a8], 0
mov dword [esp + 8], 0x3e9
mov dword [esp + 4], 0x3e9
mov dword [esp], 0
call dword [esp + 0x40]
sub esp, 0xc
test eax, eax
je 0x401750
mov dword [esp + 4], eax
mov dword [esp + 0x3c], eax
mov dword [esp], 0
call dword [esp + 0x44]
sub esp, 8
mov esi, eax
mov edx, dword [esp + 0x3c]
mov dword [esp], 0
mov dword [esp + 4], edx
call dword [esp + 0x48]
sub esp, 8
test eax, eax
mov dword [esp + 0x3c], eax
je 0x401750
test esi, esi
je 0x401750
mov dword [esp + 4], ebx
mov dword [esp], global_tmp_file_name
call dword [sym.imp.ucrtbase.dll_strcpy]
mov dword [esp + 4], str.cnfont.inf
mov dword [esp], global_tmp_file_name
call dword [sym.imp.ucrtbase.dll_strcat]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], global_tmp_file_name
call dword [esp + 0x4c]
sub esp, 0x1c
cmp eax, 0xffffffff
mov edx, eax
je 0x401750
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x1a8]
mov dword [esp], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
call ebp
sub esp, 0x14
mov ebp, global_tmp_file_name
mov edx, dword [esp + 0x3c]
mov dword [esp], edx
call edi
sub esp, 4
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x404120
call dword [esp + 0x34]
sub esp, 0x18
test eax, eax
js 0x401640
lea eax, [esp + 0x60]
lea esi, [esp + 0x50]
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
mov edi, dword [sym.imp.ucrtbase.dll_memset]
mov dword [esp], eax
call edi
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
lea eax, [esp + 0x1a8]
mov dword [esp + 8], ebp
mov dword [esp + 4], str.rundll32.exe_setupapi.dll_InstallHinfSection_DefaultInstall_128__s
mov dword [esp], eax
call dbg.sprintf
lea eax, [esp + 0x60]
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x8000020
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1a8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
mov ebp, dword [sym.imp.kernel32.dll_CreateProcessA]
call ebp
sub esp, 0x28
test eax, eax
jne 0x401730
lea eax, [esp + 0x60]
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], esi
call edi
lea eax, [esp + 0x1a8]
mov dword [esp + 4], str.cxinstallfonts_C:windows_fontsuming.ttc
mov dword [esp], eax
call dbg.sprintf
lea eax, [esp + 0x60]
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x8000020
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1a8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call ebp
sub esp, 0x28
test eax, eax
jne 0x401710
mov eax, 0x14
mov dword [esp + 0x1b0], ebx
mov dword [esp + 0x1a8], 0
mov word [esp + 0x1b8], ax
lea eax, [esp + 0x1a8]
mov dword [esp + 0x1ac], 3
mov dword [esp + 0x1b4], 0
mov dword [esp + 0x1ba], 0
mov dword [esp], eax
mov dword [esp + 0x1be], 0
mov dword [esp + 0x1c2], 0
call sym._SHFileOperationA_4
sub esp, 4
mov dword [esp], 0x404120
call dword [esp + 0x38]
sub esp, 4
call dword [sym.imp.kernel32.dll_GetProcessHeap]
mov dword [esp + 8], 0x404120
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionFontLinkSystemLink
mov dword [esp], 0x80000002
call sym._RegDeleteTreeW_8
sub esp, 8
xor eax, eax
add esp, 0x3bc
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x3bc
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x50]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
jmp 0x401640
mov eax, dword [esp + 0x50]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
jmp 0x4015a0
xor ebp, ebp
jmp 0x4014b2