Function at 0x641947f0
Capabilities:
Contain obfuscated stackstrings
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0xac
mov dword [ebp - 0x94], edx
mov esi, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp], edx
call esi
mov dword [ebp - 0x8c], edi
mov dword [esp], edi
mov ebx, eax
call esi
lea edx, [ebx + eax]
mov edi, eax
lea eax, [edx + edx + 0xa]
mov dword [ebp - 0x90], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x64194cfb
mov ecx, dword [ebp - 0x94]
add ebx, ebx
mov dword [esp], eax
add edi, edi
mov dword [esp + 8], ebx
mov esi, eax
mov dword [esp + 4], ecx
add ebx, esi
call sym._memcpy
mov dword [esp + 8], edi
mov edi, dword [ebp - 0x8c]
mov dword [esp], ebx
mov dword [esp + 4], edi
call sym._memcpy
mov edx, dword [ebp - 0x90]
mov eax, dword [str..ppd]
mov edi, dword [sym.imp.ucrtbase.dll_wcspbrk]
mov dword [esi + edx*2], eax
mov eax, dword [0x6419e7a4]
mov dword [esi + edx*2 + 4], eax
movzx eax, word [0x6419e7a8]
mov word [esi + edx*2 + 8], ax
jmp 0x641948ab
mov ecx, 0x5f
lea ebx, [eax + 2]
mov word [eax], cx
mov dword [esp + 4], str.______
mov dword [esp], ebx
call edi
test eax, eax
jne 0x641948a0
xor edx, edx
lea eax, [ebp - 0x80]
mov dword [ebp - 0x78], 0x410052
xor ebx, ebx
mov word [ebp - 0x5c], dx
mov dword [esp], eax
mov dword [ebp - 0x74], 0x57
mov dword [ebp - 0x70], 0x690077
mov dword [ebp - 0x6c], 0x65006e
mov dword [ebp - 0x68], 0x730070
mov dword [ebp - 0x64], 0x64002e
mov dword [ebp - 0x60], 0x760072
mov dword [esp + 4], 0
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp - 0x80]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
sub esp, 0x10
test al, al
je 0x64194a8c
mov eax, dword [ebp - 0x8c]
mov edx, dword [0x6419a074]
mov dword [esp + 8], 3
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp + 4], edx
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x88]
mov dword [esp + 0xc], eax
mov eax, dword [0x6419a070]
mov dword [esp], eax
call dword [0x6419a06c]
sub esp, 0x10
test eax, eax
jne 0x64194ab0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x28], 0
xor edi, edi
mov dword [ebp - 0x24], 0
mov ebx, edi
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
mov eax, dword fs:[0x18]
mov dword [ebp - 0x40], 3
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], str.Windows_NT_x86
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x90]
mov dword [esp + 0xc], 0x18
mov dword [esp + 4], 3
mov dword [esp + 8], eax
mov dword [esp], 0
call sym.winspool.drv_AddPrinterDriverExW
sub esp, 0x10
mov edi, eax
test byte [0x6419a04c], 8
jne 0x64194c20
test edi, edi
jne 0x64194a27
mov eax, dword [ebp - 0x94]
cmp dword [eax + 0x34], 0x703
jne 0x64194c81
inc ebx
cmp ebx, 5
je 0x64194a50
mov eax, dword [ebx*4 + 0x6419e730]
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
mov eax, dword [eax + 8]
test eax, eax
jne 0x641949d8
lea eax, [ebp - 0x5a]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
jmp 0x641949d8
mov ebx, 1
lea eax, [ebp - 0x88]
mov edx, dword [0x6419a074]
mov dword [ebp - 0x88], 0
mov dword [esp + 0xc], eax
mov eax, dword [0x6419a070]
mov dword [esp + 8], 3
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [0x6419a06c]
sub esp, 0x10
lea eax, [ebp - 0x80]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x6419a018]
mov dword [esp + 8], str.PPDFILE
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x64194c19
mov dword [esp + 4], eax
mov eax, dword [0x6419a018]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
mov ebx, eax
test eax, eax
je 0x64194c19
mov eax, dword [0x6419a018]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SizeofResource]
sub esp, 8
mov edi, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_memchr]
mov dword [esp + 0x18], 0
mov edx, eax
mov dword [esp + 0x14], 0
sub edx, ebx
test eax, eax
mov dword [esp + 0x10], 2
cmovne edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40000000
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov edx, eax
cmp eax, 0xffffffff
je 0x64194c19
lea eax, [ebp - 0x40]
mov dword [esp], edx
mov dword [ebp - 0x94], edx
mov dword [esp + 0x10], 0
mov dword [ebp - 0x90], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
call dword [sym.imp.kernel32.dll_WriteFile]
mov edx, dword [ebp - 0x94]
sub esp, 0x14
test eax, eax
je 0x64194c01
cmp edi, dword [ebp - 0x40]
jne 0x64194c01
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test byte [0x6419a04c], 8
je 0x6419498a
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.using_internal_fallback_for__s_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.get_internal_fallback_ppd
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6419498a
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_DeleteFileW]
sub esp, 4
xor ebx, ebx
jmp 0x64194a8c
mov eax, dword [ebp - 0x38]
call sym._wine_dbgstr_wn.constprop.0
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x8c]
call sym._wine_dbgstr_wn.constprop.0
mov ecx, dword [ebp - 0x98]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x94]
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 0x34]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.got__d_and__ld_for__s___s__n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.add_printer_driver
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x64194a10
mov ebx, edi
test byte [0x6419a04c], 2
je 0x64194a55
mov eax, dword [ebp - 0x34]
call sym._wine_dbgstr_wn.constprop.0
mov edi, eax
mov eax, dword [ebp - 0x38]
call sym._wine_dbgstr_wn.constprop.0
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x8c]
call sym._wine_dbgstr_wn.constprop.0
mov ecx, dword [ebp - 0x90]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x94]
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.failed_with__lu_for__s___s___s_n
mov dword [esp + 8], str.add_printer_driver
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x6419a04c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x64194a55
xor ebx, ebx
jmp 0x64194aa4