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

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0xa4
mov esi, dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [esp], edx
mov dword [ebp - 0x90], edx
call esi
mov dword [ebp - 0x84], edi
mov ebx, eax
mov dword [esp], edi
call esi
lea edx, [ebx + eax]
mov edi, eax
lea eax, [edx + edx + 0xa]
mov dword [ebp - 0x8c], edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x88], eax
test eax, eax
je 0x100125aa
add ebx, ebx
add edi, edi
mov esi, eax
mov dword [esp + 8], ebx
mov ecx, dword [ebp - 0x90]
add ebx, esi
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.ucrtbase.dll_memcpy
mov dword [esp + 8], edi
mov edi, dword [ebp - 0x84]
mov dword [esp], ebx
mov dword [esp + 4], edi
call sub.ucrtbase.dll_memcpy
mov edx, dword [ebp - 0x8c]
mov eax, dword [str..ppd]
mov edi, dword [sym.imp.ucrtbase.dll_wcspbrk]
mov dword [esi + edx*2], eax
mov eax, dword [0x1001e62c]
mov dword [esi + edx*2 + 4], eax
movzx eax, word [0x1001e630]
mov word [esi + edx*2 + 8], ax
jmp 0x100120fb
lea ebx, [eax + 2]
mov esi, 0x5f
mov word [eax], si
mov dword [esp + 4], str.______
mov dword [esp], ebx
call edi
test eax, eax
jne 0x100120f0
lea eax, [ebp - 0x78]
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0x410052
mov dword [ebp - 0x6c], 0x57
mov dword [ebp - 0x68], 0x690077
mov dword [ebp - 0x64], 0x65006e
mov dword [ebp - 0x60], 0x730070
mov dword [ebp - 0x5c], 0x64002e
mov dword [ebp - 0x58], 0x760072
mov word [ebp - 0x54], dx
mov dword [ebp - 0x52], 0x690077
mov dword [ebp - 0x4e], 0x65006e
mov dword [ebp - 0x4a], 0x730070
mov dword [ebp - 0x46], 0x360031
mov dword [ebp - 0x42], 0x64002e
mov dword [ebp - 0x3e], 0x760072
mov word [ebp - 0x3a], cx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
sub esp, 0x10
test al, al
je 0x10012530
movd xmm1, dword [ebp - 0x74]
lea eax, [ebp - 0x80]
movd xmm0, dword [ebp - 0x84]
punpckldq xmm0, xmm1
movq qword [ebp - 0x80], xmm0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 3
mov eax, dword [0x10021240]
mov edx, dword [0x10021244]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [0x1001a168]
sub esp, 0x10
test eax, eax
jne 0x10012358
lea eax, [ebp - 0x38]
mov dword [ebp - 0x8c], eax
lea ebx, [ebp - 0x68]
mov dword [esp], 0
xor edi, edi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], str.wineps
mov dword [esp + 4], 0
call sym.winspool.drv_AddPrintProcessorW
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
sub esp, 0x10
mov ebx, dword [ebp - 0x8c]
mov ecx, dword fs:[0x18]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x14], eax
mov eax, str.Windows_NT_x86
mov dword [ebp - 0x90], ecx
jmp 0x100122ac
test esi, esi
jne 0x10012297
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x703
jne 0x10012534
add edi, 1
cmp edi, 5
je 0x100124b0
mov eax, dword [edi*4 + 0x1001e710]
mov eax, dword [eax]
mov ecx, dword [edi*4 + 0x1001e710]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 8]
test eax, eax
jne 0x100122c6
lea eax, [ebp - 0x52]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [esp + 0xc], 0x18
mov dword [esp + 8], ebx
mov dword [esp + 4], 3
mov dword [esp], 0
call sym.winspool.drv_AddPrinterDriverExW
sub esp, 0x10
mov esi, eax
test byte [0x1001a0b8], 8
je 0x10012280
mov eax, dword [ebp - 0x30]
call fcn.10002fe0
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x84]
call fcn.10002fe0
mov ecx, dword [ebp - 0x8c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [ebp - 0x90]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.got__d_and__ld_for__s___s__n
mov dword [esp + 8], str.add_printer_driver
mov dword [esp + 4], 0x1001a0b8
mov dword [esp + 0x14], eax
mov dword [esp], 3
call fcn.100032c0
jmp 0x10012280
mov dword [esp + 8], str.PPDFILE
mov dword [esp + 4], 1
mov eax, dword [0x10021024]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x10012530
mov dword [esp + 4], eax
mov eax, dword [0x10021024]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadResource]
sub esp, 8
mov ebx, eax
test eax, eax
je 0x10012530
mov dword [esp + 4], esi
mov eax, dword [0x10021024]
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
mov dword [esp + 0x10], 2
test eax, eax
cmovne edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40000000
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov esi, eax
cmp eax, 0xffffffff
je 0x10012530
lea eax, [ebp - 0x38]
mov dword [esp + 0x10], 0
mov dword [ebp - 0x8c], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x10012512
cmp edi, dword [ebp - 0x38]
jne 0x10012512
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test byte [0x1001a0b8], 8
je 0x10012203
mov eax, dword [ebp - 0x88]
call fcn.10002fe0
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], 0x1001a0b8
mov dword [esp], 3
call fcn.100032c0
jmp 0x10012203
mov ebx, 1
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 3
mov eax, dword [0x10021240]
mov edx, dword [0x10021244]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [0x1001a168]
sub esp, 0x10
lea eax, [ebp - 0x78]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, dword [ebp - 0x88]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0x88]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
sub esp, 4
xor ebx, ebx
jmp 0x100124e6
mov ebx, esi
test byte [0x1001a0b8], 2
je 0x100124b5
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x2c]
call fcn.10002fe0
mov esi, eax
mov eax, dword [ebp - 0x30]
call fcn.10002fe0
mov edi, eax
mov eax, dword [ebp - 0x84]
call fcn.10002fe0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ecx + 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 + 4], 0x1001a0b8
mov dword [esp], 1
mov dword [esp + 0x10], eax
call fcn.100032c0
jmp 0x100124b5
xor ebx, ebx
jmp 0x10012504