Function at 0x4d3f04
Capabilities:
Copy file
Get common file path
Persist via run registry key
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4d3f0c
push ebx
xor eax, eax
push ebp
push 0x4d425b
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov edx, 0x4d4270
call fcn.004bdcb8
lea eax, [ebp - 8]
mov edx, 0x12c
call fcn.00405dfc
mov eax, dword [ebp - 8]
call fcn.00405b6c
push eax
push 0x12c
call sub.kernel32.dll_GetTempPathA
test eax, eax
jbe 0x4d4233
mov eax, dword [ebp - 8]
call fcn.00405b6c
call fcn.0040b494
mov edx, eax
lea eax, [ebp - 8]
call fcn.00405dfc
lea ecx, [ebp - 0x2c]
mov edx, 0x4d4270
mov eax, dword [ebp - 8]
call fcn.004bdcb8
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 8]
call fcn.00405774
push 0x20
mov eax, dword [ebp - 8]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
mov eax, dword [ebp - 8]
call fcn.00405b6c
push eax
mov eax, dword [ebp - 4]
call fcn.00405b6c
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x4d4233
push 0x20
mov eax, dword [ebp - 8]
call fcn.00405b6c
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0042afcc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, 0x80000001
call fcn.0042b000
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, 1
mov edx, 0x4d4284
call fcn.0042b070
test al, al
je 0x4d41f0
mov ebx, 1
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.0040a944
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0xc]
mov edx, 0x4d42c0
call fcn.004059f4
jmp 0x4d4047
inc ebx
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.0040a944
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
mov edx, 0x4d42c0
call fcn.004059f4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0xc]
call fcn.0042b938
test al, al
jne 0x4d402c
push dword [ebp - 8]
push 0x4d42d0
call fcn.004bd7fc
and eax, 0x7f
lea edx, [ebp - 0x38]
call fcn.0040a944
push dword [ebp - 0x38]
push 0x4d42dc
lea ecx, [ebp - 0x3c]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d42e8
call fcn.00481428
push dword [ebp - 0x3c]
push 0x4d42dc
lea ecx, [ebp - 0x40]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d4320
call fcn.00481428
push dword [ebp - 0x40]
push 0x4d42dc
mov eax, dword [ebp + 8]
push dword [eax - 8]
push 0x4d42dc
mov eax, dword [ebp + 8]
push dword [eax - 0xc]
push 0x4d42dc
mov eax, dword [ebp + 8]
push dword [eax - 0x10]
push 0x4d42dc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
push dword [eax + 0x7c]
push 0x4d4330
lea eax, [ebp - 0x10]
mov edx, 0x10
call fcn.00405a70
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0xc
call fcn.00403b3c
mov dword [ebp - 0x20], 0xf000c
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00405b6c
push eax
call sub.winspool.drv_OpenPrinterA
test eax, eax
je 0x4d41e5
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0x14]
push eax
call sub.winspool.drv_GetPrinterA
cmp dword [ebp - 0x18], 0
jbe 0x4d41e5
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
call fcn.00402ef8
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4d41de
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
push 2
mov eax, dword [ebp - 0x14]
push eax
call sub.winspool.drv_GetPrinterA
test eax, eax
je 0x4d41c8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00405b6c
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0xc], eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 2
mov eax, dword [ebp - 0x14]
push eax
call sub.winspool.drv_SetPrinterA
test eax, eax
je 0x4d41c8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.0042b6c0
mov eax, dword [0x4f3618]
mov byte [eax], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d41e5
mov eax, dword [ebp - 0x1c]
call fcn.00402f14
ret
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0042afcc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov cl, 1
mov edx, 0x4d433c
call fcn.0042b070
test al, al
je 0x4d4223
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
mov edx, 0x4d4364
call fcn.0042b7b0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0042afcc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, 0x80000002
call fcn.0042b000
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d4262
lea eax, [ebp - 0x40]
mov edx, 6
call fcn.00405700
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405700
ret