joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461680
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
mov eax, dword [0x4e412c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.00473800
cmp eax, 0x500
je 0x4616a8
xor eax, eax
jmp 0x4617f7
mov ecx, 0xf
mov esi, str.SYSTEMCurrentControlSetControlPrintMonitorsLPR_PortPorts
lea edi, [ebp - 0x558]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [str.Server_Name]
mov dword [ebp - 0x564], eax
mov ecx, dword [0x4c8494]
mov dword [ebp - 0x560], ecx
mov edx, dword [0x4c8498]
mov dword [ebp - 0x55c], edx
mov dword [ebp - 0x518], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x558]
push ecx
push 0x4c849c
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x514]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x408]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46179e
mov dword [ebp - 0x568], 1
mov dword [ebp - 0x674], 0x104
lea edx, [ebp - 0x674]
push edx
lea eax, [ebp - 0x670]
push eax
lea ecx, [ebp - 0x568]
push ecx
push 0
lea edx, [ebp - 0x564]
push edx
mov eax, dword [ebp - 0x514]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x461791
lea ecx, [ebp - 0x670]
push ecx
lea edx, [ebp - 0x510]
push edx
call fcn.00489ae0
add esp, 8
mov dword [ebp - 0x518], 1
mov eax, dword [ebp - 0x514]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x510]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00489ae0
add esp, 8
cmp dword [ebp - 0x518], 0
je 0x4617c6
mov dword [ebp - 0x678], 0x4c84a4
jmp 0x4617d0
mov dword [ebp - 0x678], 0x4c84ac
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x678]
push ecx
push str.LTconnectedAddrNT4___returns__s__err:_d____s__n
push 0
call fcn.00461a70
add esp, 0x14
mov eax, dword [ebp - 0x518]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488550
mov esp, ebp
pop ebp
ret
Function at 0x4654d0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4e412c]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x4654f9
mov eax, dword [ebp + 8]
push eax
call fcn.00489c70
add esp, 4
test eax, eax
ja 0x4654fe
jmp 0x465655
mov ecx, dword [ebp + 8]
push ecx
call fcn.00489c70
add esp, 4
add eax, 5
push eax
call fcn.0047645c
add esp, 4
mov dword [ebp - 0x25c], eax
mov edx, dword [ebp - 0x25c]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00489ae0
add esp, 8
push 0x4c8cec
mov edx, dword [ebp - 8]
push edx
call fcn.00489af0
add esp, 8
push 0x140
push 0
lea eax, [ebp - 0x258]
push eax
call fcn.004886d0
add esp, 0xc
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x465645
cmp dword [ebp - 4], 0xffffffff
je 0x465645
push 0x4c8cf4
lea eax, [ebp - 0x22c]
push eax
call fcn.004405d0
add esp, 8
test eax, eax
je 0x4655b4
push 0x4c8cf8
lea ecx, [ebp - 0x22c]
push ecx
call fcn.004405d0
add esp, 8
test eax, eax
jne 0x4655b6
jmp 0x465622
lea edx, [ebp - 0x22c]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x4c8cfc
lea ecx, [ebp - 0x118]
push ecx
call fcn.00489bd8
add esp, 0x10
mov edx, dword [ebp - 0x258]
and edx, 1
je 0x4655f7
mov eax, dword [ebp - 0x258]
and eax, 0xfffffffe
push eax
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp - 0x258]
and edx, 0x10
je 0x465615
push 1
lea eax, [ebp - 0x118]
push eax
call fcn.004654d0
add esp, 8
jmp 0x465622
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x258]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x465584
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 0
je 0x465655
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00488550
mov esp, ebp
pop ebp
ret
Function at 0x468970
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4e412c]
xor eax, ebp
mov dword [ebp - 0xc], eax
push 0x5c
mov eax, dword [ebp + 0x10]
push eax
call fcn.00468590
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4689a5
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x4689ab
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x4c95e4
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x4c95ec
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x220]
push ecx
push str.CopyFileNoOverwrite___copy_from__s_to__s
push 0
call fcn.00468960
add esp, 0x10
push 1
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x468a57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0xb7
je 0x468a57
cmp dword [ebp - 0x224], 0x50
je 0x468a57
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c9620
push 0
call fcn.00468960
add esp, 0xc
xor eax, eax
jmp 0x468ac0
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x468a87
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c9638
push 0
call fcn.00468960
add esp, 0xc
xor eax, eax
jmp 0x468ac0
mov edx, dword [ebp - 8]
and edx, 0xfffffffe
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x468abb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4c9658
push 0
call fcn.00468960
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00488550
mov esp, ebp
pop ebp
ret
Function at 0x469880
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4e412c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.00489ae0
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x4698b2
mov edx, dword [ebp + 0x14]
mov byte [edx], 0
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.LTGetInfFile___start_class_s_path_s_n
push 0
call fcn.0046b360
add esp, 0x10
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
je 0x469a3b
mov dword [ebp - 0x118], 0
lea eax, [ebp - 0x114]
push eax
push 0
lea ecx, [ebp - 0x114]
push ecx
push 2
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupGetInfFileListA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x469a1f
mov eax, dword [ebp - 0x114]
push eax
call fcn.0048a9a4
add esp, 4
mov dword [ebp - 0x118], eax
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x118]
push eax
push 2
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupGetInfFileListA]
test eax, eax
je 0x469a10
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x11c], edx
jmp 0x469988
mov eax, dword [ebp - 0x11c]
push eax
call fcn.00489c70
add esp, 4
mov ecx, dword [ebp - 0x11c]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x11c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x469a10
mov edx, dword [ebp - 0x11c]
push edx
lea eax, [ebp - 0x110]
push eax
push 0x4c9ee8
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00489bd8
add esp, 0x10
push 0
push 2
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0xffffffff
je 0x469a0b
mov ecx, dword [ebp + 0x10]
push ecx
push str.LTGetInfFile___found_valid_inf_file__s_n
push 0
call fcn.0046b360
add esp, 0xc
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov eax, dword [ebp - 0x118]
push eax
call fcn.00488f35
add esp, 4
mov eax, 1
jmp 0x469a53
jmp 0x469969
mov ecx, dword [ebp - 0x118]
push ecx
call fcn.00488f35
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LTGetInfFile___cant_find_valid_inf_file__d__n
push 0
call fcn.0046b360
add esp, 0xc
xor eax, eax
jmp 0x469a53
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00489ae0
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488550
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46bfa0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
push str.____MKDaddLocalPrinterIndirect___start___s___s___s__n
push 0
call fcn.0046c3c0
add esp, 0x14
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x46bfed
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0046bd90
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
push str.MKDaddLocalPrinterIndirect___call_AddPrinter_____s___s___s___s___n
push 0
call fcn.0046c3c0
add esp, 0x18
mov edx, dword [ebp + 8]
push edx
push 2
push 0
call sub.WINSPOOL.DRV_AddPrinterA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x46c0a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MKDaddLocalPrinterIndirect___end_AddPrinter___with_retry__d__n
push 0
call fcn.0046c3c0
add esp, 0xc
push 1
lea eax, [ebp - 0x10]
push eax
call fcn.0046ba30
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x46c099
mov dword [ebp - 0x14], 0
jmp 0x46c06d
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x10]
jge 0x46c087
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + eax*4]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x46c064
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00476457
add esp, 4
mov edx, dword [ebp + 8]
push edx
push 2
push 0
call sub.WINSPOOL.DRV_AddPrinterA
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MKDaddLocalPrinterIndirect___end_AddPrinter___with_err__d__n
push 0
call fcn.0046c3c0
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x46c0fa
mov dword [ebp - 4], 1
push str.MKDaddLocalPrinterIndirect___call_ClosePrinter___n
push 0
call fcn.0046c3c0
add esp, 8
mov eax, dword [ebp - 8]
push eax
call sub.WINSPOOL.DRV_ClosePrinter
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MKDaddLocalPrinterIndirect___end_ClosePrinter___with_err__d__n
push 0
call fcn.0046c3c0
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x46c12d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00476270
add esp, 4
call fcn.00476280
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
push str.____MKDaddLocalPrinterIndirect__s__fail__d__n
push 0
call fcn.0046c3c0
add esp, 0x10
jmp 0x46c13c
push str.____MKDaddLocalPrinterIndirect___success_n
push 0
call fcn.0046c3c0
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x46eee0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4e412c]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x46ef09
mov eax, dword [ebp + 8]
push eax
call fcn.00489c70
add esp, 4
test eax, eax
ja 0x46ef0e
jmp 0x46f065
mov ecx, dword [ebp + 8]
push ecx
call fcn.00489c70
add esp, 4
add eax, 5
push eax
call fcn.0047645c
add esp, 4
mov dword [ebp - 0x25c], eax
mov edx, dword [ebp - 0x25c]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00489ae0
add esp, 8
push str..
mov edx, dword [ebp - 8]
push edx
call fcn.00489af0
add esp, 8
push 0x140
push 0
lea eax, [ebp - 0x258]
push eax
call fcn.004886d0
add esp, 0xc
lea ecx, [ebp - 0x258]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46f055
cmp dword [ebp - 4], 0xffffffff
je 0x46f055
push 0x4cb79c
lea eax, [ebp - 0x22c]
push eax
call fcn.004405d0
add esp, 8
test eax, eax
je 0x46efc4
push 0x4cb7a0
lea ecx, [ebp - 0x22c]
push ecx
call fcn.004405d0
add esp, 8
test eax, eax
jne 0x46efc6
jmp 0x46f032
lea edx, [ebp - 0x22c]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x4cb7a4
lea ecx, [ebp - 0x118]
push ecx
call fcn.00489bd8
add esp, 0x10
mov edx, dword [ebp - 0x258]
and edx, 1
je 0x46f007
mov eax, dword [ebp - 0x258]
and eax, 0xfffffffe
push eax
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp - 0x258]
and edx, 0x10
je 0x46f025
push 1
lea eax, [ebp - 0x118]
push eax
call fcn.0046eee0
add esp, 8
jmp 0x46f032
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x258]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x46ef94
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 0
je 0x46f065
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00488550
mov esp, ebp
pop ebp
ret
Function at 0x46f080
Capabilities:
Check if file exists
Enumerate files on windows
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x4e412c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x324], 0
mov dword [ebp - 0x470], 0
push str.DeleteDriverOEMInf___Start_n
push 0
call fcn.0046fd10
add esp, 8
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x320]
push edx
call fcn.00489ae0
add esp, 8
push 0x4cb7c8
lea eax, [ebp - 0x320]
push eax
call fcn.00489af0
add esp, 8
push str.OEM.inf
lea ecx, [ebp - 0x320]
push ecx
call fcn.00489af0
add esp, 8
lea edx, [ebp - 0x468]
push edx
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x474], eax
cmp dword [ebp - 0x474], 0xffffffff
je 0x46f2a4
cmp dword [ebp - 0x324], 0
jne 0x46f297
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.00489ae0
add esp, 8
push str.inf_
lea eax, [ebp - 0x218]
push eax
call fcn.00489af0
add esp, 8
lea ecx, [ebp - 0x43c]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.00489af0
add esp, 8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.0046f2f0
add esp, 0xc
mov dword [ebp - 0x46c], eax
cmp dword [ebp - 0x46c], 0
je 0x46f270
lea eax, [ebp - 0x218]
push eax
push str.DeleteDriverOEMInf___InfFile_s_n
push 0
call fcn.0046fd10
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.0046f5f0
add esp, 8
test eax, eax
jne 0x46f270
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x478], eax
cmp dword [ebp - 0x478], 0xffffffff
jne 0x46f218
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteDriverOEMInf___GetFileAttributes_fail__d__n
push 0
call fcn.0046fd10
add esp, 0xc
xor eax, eax
jmp 0x46f2d6
mov ecx, dword [ebp - 0x478]
and ecx, 0xfffffffe
mov dword [ebp - 0x478], ecx
mov edx, dword [ebp - 0x478]
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x46f259
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteDriverOEMInf___SetFileAttributes_fail__d__n
push 0
call fcn.0046fd10
add esp, 0xc
xor eax, eax
jmp 0x46f2d6
push 0
push 1
lea ecx, [ebp - 0x43c]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupUninstallOEMInfA]
mov dword [ebp - 0x46c], eax
lea edx, [ebp - 0x468]
push edx
mov eax, dword [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x46f292
mov dword [ebp - 0x324], 1
jmp 0x46f137
mov ecx, dword [ebp - 0x474]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x470], 0xffffffff
je 0x46f2ba
mov edx, dword [ebp - 0x470]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x46c]
push eax
push str.DeleteDriverOEMInf___bRet_d_End_n
push 0
call fcn.0046fd10
add esp, 0xc
mov eax, dword [ebp - 0x46c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488550
mov esp, ebp
pop ebp
ret
Function at 0x471b60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0x4e412c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push str.LTaddPort_P2PCROWN___start_n
push 0
call fcn.004718a0
add esp, 8
mov al, byte [0x4cc00d]
mov byte [ebp - 5], al
mov dword [ebp - 0xc], 0x238c
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 5]
push edx
push 0x4cc348
push 0x53f2c0
call fcn.00489bd8
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
push 0x53f2c0
call fcn.004611d0
add esp, 8
test eax, eax
je 0x471bca
mov eax, 0x53f2c0
jmp 0x471d1a
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMinolta_QMSCrown_Print_MonitorAddPort
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x471cca
mov dword [ebp - 0x7c], 1
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 5]
push eax
push 0x4cc384
lea ecx, [ebp - 0x188]
push ecx
call fcn.00489bd8
add esp, 0x10
add eax, 1
mov dword [ebp - 0x18c], eax
mov edx, dword [ebp - 0x18c]
push edx
lea eax, [ebp - 0x188]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
push 0
push str.PortName
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x188]
push eax
push 0x53f2c0
call fcn.00489ae0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
push 0x4cc398
lea edx, [ebp - 0x188]
push edx
call fcn.00489bd8
add esp, 0xc
add eax, 1
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x188]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
push 0
push str.IPAddress
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x7c], 4
push 4
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x7c]
push edx
push 0
push str.Port
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x471ce4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegCreateKeyEx_LTaddPort_P2PCROWN__error__d__n
push 2
call fcn.004718a0
add esp, 0xc
xor eax, eax
jmp 0x471d1a
push str.Crown_Port
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0
call sub.WINSPOOL.DRV_AddPortA
test eax, eax
jne 0x471d15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AddPort_crown__fail__d__n
push 2
call fcn.004718a0
add esp, 0xc
xor eax, eax
jmp 0x471d1a
mov eax, 0x53f2c0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00488550
mov esp, ebp
pop ebp
ret
Function at 0x473800
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x4e412c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5401e8], 0
je 0x473826
mov eax, dword [0x5401e8]
jmp 0x47399d
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 1
jne 0x4738ba
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0xa4], ecx
cmp dword [ebp - 0xa4], 0
je 0x47386f
cmp dword [ebp - 0xa4], 0xa
je 0x47387b
cmp dword [ebp - 0xa4], 0x5a
je 0x47389f
jmp 0x4738ab
mov dword [0x5401e8], 3
jmp 0x4738b5
movsx edx, byte [ebp - 0x8c]
cmp edx, 0x41
jne 0x473893
mov dword [0x5401e8], 0xd
jmp 0x47389d
mov dword [0x5401e8], 5
jmp 0x4738b5
mov dword [0x5401e8], 0x11
jmp 0x4738b5
mov dword [0x5401e8], 0x21
jmp 0x473998
cmp dword [ebp - 0x90], 2
jne 0x473985
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0xa8]
sub ecx, 3
mov dword [ebp - 0xa8], ecx
cmp dword [ebp - 0xa8], 3
ja case.default.0x4738f5
mov edx, dword [ebp - 0xa8]
jmp dword [edx*4 + 0x4739ac]
mov dword [0x5401e8], 0x300
jmp 0x473983
mov dword [0x5401e8], 0x500
jmp 0x473983
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
je 0x47393d
cmp dword [ebp - 0xac], 1
je 0x473949
cmp dword [ebp - 0xac], 2
je 0x473955
jmp 0x473961
mov dword [0x5401e8], 0x900
jmp 0x47396b
mov dword [0x5401e8], 0x1100
jmp 0x47396b
call fcn.004739c0
mov dword [0x5401e8], eax
jmp 0x47396b
mov dword [0x5401e8], 0x8100
jmp 0x473983
call fcn.00473a80
mov dword [0x5401e8], eax
jmp 0x473983
call fcn.00473a80
mov dword [0x5401e8], eax
jmp 0x473998
cmp dword [ebp - 0x90], 0
jne 0x473998
mov dword [0x5401e8], 0xf0f0
mov eax, dword [0x5401e8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488550
mov esp, ebp
pop ebp
ret