Function at 0x401f50
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
lea ebp, [esp - 0xa04]
sub esp, 0xa04
push 0xffffffffffffffff
push 0x4c7f40
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x51c080]
xor eax, ebp
mov dword [ebp + 0xa00], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x94], ebx
push 0x38
push ebx
lea eax, [ebp - 0x90]
push eax
call fcn.004ab450
add esp, 0xc
mov dword [ebp - 4], ebx
push 0x200
push ebx
lea ecx, [ebp + 0x800]
push ecx
call fcn.004ab450
add esp, 0xc
lea edx, [esi + 0x200]
cmp edx, ebx
je 0x402035
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401ff0
sub eax, esi
sar eax, 1
je 0x402035
push 0xff
push edx
push 0x100
lea edx, [ebp + 0x800]
push edx
call fcn.004a9be0
add esp, 0x10
push 0xc
call fcn.004993b2
add esp, 4
cmp eax, ebx
je 0x40205e
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
jmp 0x402060
push ebx
push 0x100
push 0x527d38
lea edi, [ebp + 0x800]
mov edx, str._MFG_
call fcn.00458ee0
test eax, eax
je 0x40201b
mov eax, 0xd
jmp 0x4024d4
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], 0xf000c
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x28]
push ecx
push ebx
push ebx
push 6
push ebx
push ebx
call sub.WINSPOOL.DRV_EnumPrinterDriversW
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4020e5
call esi
cmp eax, 0x7a
jne 0x4020e5
mov edx, dword [ebp - 0x28]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x4020e5
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x28]
push ecx
push eax
push 6
push ebx
push ebx
call sub.WINSPOOL.DRV_EnumPrinterDriversW
test eax, eax
jne 0x4020e5
push str.DeleteAllDrivers_____EnumPrinterDrivers___is_failed___
mov ecx, 0x527b30
call fcn.00449000
add esp, 4
call esi
mov dword [ebp - 0x50], eax
push 0x5042a0
lea edx, [ebp - 0x50]
push edx
call fcn.004abd6e
push str.1111
mov ecx, 0x527b30
call fcn.00449000
add esp, 4
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x20]
push ecx
push ebx
push ebx
push 2
push ebx
push 6
call sub.WINSPOOL.DRV_EnumPrintersW
mov edx, dword [ebp - 0x20]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x40214c
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x20]
push ecx
push eax
push 2
push ebx
push 6
call sub.WINSPOOL.DRV_EnumPrintersW
test eax, eax
jne 0x40214c
call esi
mov dword [ebp - 0x54], eax
push 0x5042a0
lea edx, [ebp - 0x54]
push edx
call fcn.004abd6e
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
cmp ebx, dword [ebp - 0x38]
jge 0x40249e
mov byte [ebp - 0x11], 0
lea eax, [ebx + ebx*4]
shl eax, 4
mov ecx, dword [ebp - 0x1c]
mov edx, dword [eax + ecx + 0x40]
test edx, edx
je 0x402496
mov eax, edx
lea esi, [eax + 2]
jmp 0x402180
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402180
sub eax, esi
sar eax, 1
je 0x402496
lea eax, [ebp + 0x800]
push eax
push edx
call fcn.004a9af1
add esp, 8
test eax, eax
jne 0x402496
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x18], ecx
jge 0x402449
lea edx, [ebx + ebx*4]
shl edx, 4
mov eax, dword [ebp - 0x1c]
lea edi, [edx + eax + 4]
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x54
mov edx, dword [ebp - 0x24]
lea esi, [ecx + edx]
mov eax, dword [edi]
push eax
mov ecx, dword [esi + 0x10]
push ecx
call fcn.004a9af1
add esp, 8
test eax, eax
jne 0x402440
mov byte [ebp - 0x11], 1
test byte [esi + 0x34], 0x10
je 0x40233d
push 0x800
push eax
lea edx, [ebp]
push edx
call fcn.004ab450
mov eax, dword [esi + 4]
push eax
push str.printui.dll_PrintUIEntry__dn__n___s_
lea edx, [ebp]
call fcn.00411a00
add esp, 0x14
mov dword [ebp - 0x94], 0x3c
mov dword [ebp - 0x88], str.open
mov dword [ebp - 0x84], str.Rundll32.exe
lea ecx, [ebp]
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x90], 0x40
lea edx, [ebp - 0x94]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x402271
mov eax, dword [esi + 4]
push eax
push str.Fail_to_execuete_disconnecting___s_..
jmp 0x4023e4
push 0x1388
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4023f9
mov byte [ebp - 0x11], al
mov edx, dword [esi + 4]
push edx
push str.Network_Printer_Instance__s__is_removed_complete
mov ecx, 0x527b30
call fcn.00449000
add esp, 8
mov eax, str.FALSE
push eax
push str.bQueInstance_:___s_
mov ecx, 0x527b30
call fcn.00449000
add esp, 8
xor esi, esi
mov dword [ebp - 0x48], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 8
jge 0x4022fd
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [edi]
push ecx
push 0
push 0
call sub.WINSPOOL.DRV_DeletePrinterDriverW
test eax, eax
je 0x402403
mov edx, dword [edi]
push edx
push str.Delete_Printer_driver_complete_:___s_
mov ecx, 0x527b30
call fcn.00449000
add esp, 8
mov edi, dword [ebp - 0x30]
xor bl, bl
mov esi, dword [ebp - 0x18]
add esi, 1
mov dword [ebp - 0x4c], esi
cmp esi, edi
jge 0x402427
mov ecx, esi
imul ecx, ecx, 0x54
mov eax, dword [ebp - 0x24]
mov edx, dword [ecx + eax + 0x10]
push edx
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x54
mov edx, dword [ecx + eax + 0x10]
push edx
call fcn.004a9af1
add esp, 8
test eax, eax
je 0x40243d
jmp 0x402305
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [esi + 4]
push edx
call sub.WINSPOOL.DRV_OpenPrinterW
test eax, eax
je 0x4023db
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4023ab
push eax
call sub.WINSPOOL.DRV_DeletePrinter
test eax, eax
je 0x402380
mov eax, dword [esi + 4]
push eax
push str.Delete_Printer_Instance_complete_:___s_
mov ecx, 0x527b30
call fcn.00449000
mov byte [ebp - 0x11], 0
jmp 0x4023c2
mov byte [ebp - 0x11], 1
mov ecx, dword [esi + 4]
push ecx
push str.__s__cannot_Delete_Printer_Instance
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x527b30
call fcn.00448ec0
add esp, 8
add dword [ebp - 0x18], 1
jmp 0x4021b0
mov byte [ebp - 0x11], 0
mov edx, dword [esi + 0x10]
push edx
push str.failed_open_printer_:___s_
mov ecx, 0x527b30
call fcn.00449000
add esp, 8
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4022a1
push eax
call sub.WINSPOOL.DRV_ClosePrinter
jmp 0x4022a1
mov eax, dword [esi + 0x10]
push eax
push str.:__s__cannot_Open_Printer
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x527b30
call fcn.00448ec0
add esp, 8
mov eax, str.TRUE
jmp 0x4022a6
mov eax, dword [edi]
push eax
push str.__s__cannot_Delete_Printer_Driver
call ebx
mov ecx, eax
mov edx, 0x527b30
call fcn.00448ec0
add esp, 8
add esi, 1
mov dword [ebp - 0x48], esi
jmp 0x4022c4
test bl, bl
jne 0x40243d
push str.IsOtherPrintInstance_is_not_Exist
mov ecx, 0x527b30
call fcn.00449000
add esp, 4
mov ebx, dword [ebp - 0x2c]
add dword [ebp - 0x18], 1
jmp 0x4021b0
cmp byte [ebp - 0x11], 0
jne 0x402496
lea eax, [ebx + ebx*4]
shl eax, 4
mov ecx, dword [ebp - 0x1c]
lea esi, [eax + ecx + 4]
mov edx, dword [esi]
push edx
push str.Try_to_delete_Driver___s_
mov ecx, 0x527b30
call fcn.00449000
add esp, 8
mov eax, dword [esi]
push eax
push 0
push 0
call sub.WINSPOOL.DRV_DeletePrinterDriverW
test eax, eax
jne 0x402496
mov ecx, dword [esi]
push ecx
push str._cannot_Delete_Driver___s_
mov ecx, 0x527b30
call fcn.00449000
add esp, 8
add ebx, 1
jmp 0x40214e
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4024b3
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4024c1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4024d1
push eax
call fcn.004993dd
add esp, 4
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa00]
xor ecx, ebp
call fcn.004a998e
add ebp, 0xa04
mov esp, ebp
pop ebp
ret