joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ba0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401bcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add esp, 0x14
ret
push esi
push edi
lea edx, [esp + 0x10]
push edx
push 0x4328a8
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jne 0x401c29
push 1
push eax
push eax
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
test eax, eax
jne 0x401c31
call edi
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 8]
push 0
push 0
push 0
lea edx, [esp + 0x18]
push edx
push 0
push eax
mov dword [esp + 0x30], 0
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x14
ret

Function at 0x401cc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401cd9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401ced
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401d0e
cmp esi, eax
jae 0x401ce7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401d00
cmp esi, eax
jae 0x401ce7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402680
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4026ae
push edi
mov edi, dword [esp + 0xc]
push 0
lea eax, [esp + 0x10]
push eax
push edi
call fcn.004144df
mov ecx, dword [esi + 0x70]
add esp, 4
shl eax, 1
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
mov eax, 1
pop esi
ret 4

Function at 0x4026e0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
mov dword [esi + 0x70], eax
je 0x40272d
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x432c50
call fcn.004144df
mov edx, dword [esi + 0x70]
add esp, 4
shl eax, 1
push eax
push 0x432c50
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 1
pop esi
ret 4
Function at 0x402920
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x20
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
mov dword [esp + 4], edi
jne 0x40294b
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
add esp, 0x20
ret
push esi
push 0x94
push 0x432e98
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x402990
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
push edi
jne 0x402982
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, 1
pop edi
add esp, 0x20
ret
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop edi
add esp, 0x20
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4029c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jne 0x4029da
call esi
push edi
call esi
pop esi
mov eax, 1
pop edi
add esp, 0x20
ret
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4029e7
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
xor eax, eax
pop edi
add esp, 0x20
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
call ebx
mov ebp, dword [esp + 0x28]
mov edi, eax
cmp dword [esp + 0x18], 2
jne 0x402a5f
mov edi, edi
mov eax, 0x51eb851f
mul dword [esp + 0x2c]
shr edx, 5
cmp edx, 0x64
jae 0x402a18
mov edx, 0x64
jmp 0x402a25
cmp edx, 0x3e8
jbe 0x402a25
mov edx, 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x402a5f
cmp dword [esp + 0x28], ebp
jbe 0x402a4c
call ebx
mov ebp, dword [esp + 0x28]
mov edi, eax
jmp 0x402a58
call ebx
mov ecx, dword [esp + 0x2c]
sub eax, edi
cmp eax, ecx
ja 0x402a5f
cmp dword [esp + 0x18], 2
je 0x402a00
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
mov ecx, dword [esp + 0x18]
pop ebp
pop ebx
xor eax, eax
cmp ecx, 4
pop esi
sete al
pop edi
add esp, 0x20
ret
Function at 0x402a90
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
sub esp, 0x20
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
mov dword [esp + 4], edi
jne 0x402abb
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
pop edi
add esp, 0x20
ret
push esi
push 0xa4
push 0x432e98
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x402b00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
push edi
jne 0x402af2
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, 1
pop edi
add esp, 0x20
ret
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop edi
add esp, 0x20
ret
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x402b51
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x402b3a
cmp eax, 0x45b
je 0x402b3a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
xor eax, eax
pop edi
add esp, 0x20
ret
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
mov eax, 1
pop edi
add esp, 0x20
ret
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x402b26
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
call ebx
mov ebp, dword [esp + 0x28]
mov edi, eax
cmp dword [esp + 0x18], 3
jne 0x402be2
jmp 0x402b80
mov eax, 0xcccccccd
mul dword [esp + 0x2c]
shr edx, 3
cmp edx, 0x3e8
jae 0x402b9b
mov edx, 0x3e8
jmp 0x402ba8
cmp edx, 0x2710
jbe 0x402ba8
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x402be2
cmp dword [esp + 0x28], ebp
jbe 0x402bcf
call ebx
mov ebp, dword [esp + 0x28]
mov edi, eax
jmp 0x402bdb
call ebx
mov ecx, dword [esp + 0x2c]
sub eax, edi
cmp eax, ecx
ja 0x402be2
cmp dword [esp + 0x18], 3
je 0x402b80
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x18]
pop ebp
pop ebx
xor eax, eax
cmp ecx, 1
pop esi
sete al
pop edi
add esp, 0x20
ret
Function at 0x402d10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x744
mov eax, dword [0x4431cc]
push ebx
xor eax, ebp
push esi
push edi
mov dword [esp + 0x74c], eax
lea eax, [esp + 0x18]
push eax
xor edi, edi
push 0x104
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x18]
push ecx
call fcn.004144df
add esp, 4
cmp word [esp + eax*2 + 0x16], 0x5c
je 0x402d6a
lea edx, [esp + 0x18]
push 0x4330e4
push edx
call fcn.004145d0
add esp, 8
lea eax, [esp + 0x18]
push 0x444b28
push eax
call fcn.004145d0
add esp, 8
push edi
push 2
push edi
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x402dc7
push 0xa
lea edx, [esp + 0x42c]
push edx
push 0x13f0
call fcn.00414ddb
add esp, 0xc
push 0x43c88c
lea ecx, [esp + 0x10]
lea eax, [esp + 0x42c]
push ecx
mov dword [esp + 0x14], eax
call fcn.00414e9e
cmp dword [0x444d30], edi
mov dword [esp + 0xc], edi
jbe 0x402eaf
mov ebx, 0x444d6c
lea esp, [esp]
lea edx, [esp + 0x220]
xor eax, eax
push str.Setup.
mov ecx, 0x82
lea edi, [esp + 0x224]
push edx
rep stosd dword es:[edi], eax
call fcn.004145fa
lea eax, [ebx + 0x2eb8]
push eax
lea ecx, [esp + 0x22c]
push ecx
call fcn.004145d0
mov edi, dword [sym.imp.SETUPAPI.dll_SetupGetLineTextW]
add esp, 0x10
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0x4330b8
lea eax, [esp + 0x230]
push eax
push esi
push 0
call edi
test eax, eax
je 0x402efe
mov ecx, dword [esp + 0x14]
lea edx, [ecx + ecx]
push edx
call fcn.00414c75
mov esi, eax
add esp, 4
test esi, esi
je 0x402ecd
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 0
push eax
push esi
push 0x4330b8
lea ecx, [esp + 0x230]
push ecx
push edx
push 0
call edi
test eax, eax
je 0x402efe
push esi
push ebx
call fcn.004145fa
push esi
call fcn.00414b5d
mov eax, dword [esp + 0x18]
mov ecx, dword [0x444d30]
mov esi, dword [esp + 0x1c]
add esp, 0xc
inc eax
add ebx, 0x208
cmp eax, ecx
mov dword [esp + 0xc], eax
jb 0x402de0
push esi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x740]
xor ecx, ebp
call fcn.00414a22
mov esp, ebp
pop ebp
ret
push 0xa
lea eax, [esp + 0x42c]
push eax
push 0x13c9
call fcn.00414ddb
add esp, 0xc
push 0x43c88c
lea edx, [esp + 0x10]
lea ecx, [esp + 0x42c]
push edx
mov dword [esp + 0x14], ecx
call fcn.00414e9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x74c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414a22
mov esp, ebp
pop ebp
ret
Function at 0x403f90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x420
mov eax, dword [0x4431cc]
xor eax, ebp
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x424], eax
mov word [esp + 0x10], 0
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
push str.Checking_if_the_Reg_Entry_corresponds_to_the_printer_being_uninstalled._r_n
mov ecx, 0x44d2d0
stosw word es:[edi], ax
mov dword [esp + 0x10], 0x208
call fcn.00402680
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404120
push str.USB_
push esi
call fcn.00414fdb
add esp, 4
push eax
call fcn.00414f7d
add esp, 8
test eax, eax
je 0x40404f
push str.Getting_the_Printer_Name_from_the_USB_Registry_entry._r_n
mov ecx, 0x44d2d0
call fcn.00402680
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push str.LocationInformation
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4040d7
push str.USBPRINT_
push esi
call fcn.00414fdb
add esp, 4
push eax
call fcn.00414f7d
add esp, 8
test eax, eax
je 0x4040d7
push str.Getting_the_Printer_Name_from_the_USBPRINT_Registry_entry._r_n
mov ecx, 0x44d2d0
call fcn.00402680
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push str.DeviceDesc
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4040d7
push 0xa
lea ecx, [esp + 0x21c]
push ecx
push esi
call fcn.00414ddb
add esp, 0xc
push str.Couldnot_get_the_Printer_Name_from_the_USBPRINT_Registry_entry.Error:
mov ecx, 0x44d2d0
call fcn.00402680
lea edx, [esp + 0x218]
push edx
mov ecx, 0x44d2d0
call fcn.00402680
lea eax, [esp + 0x10]
push 0x4444e0
push eax
call fcn.004150fa
add esp, 8
test eax, eax
jne 0x404120
push 0x433698
mov ecx, 0x44d2d0
call fcn.00402680
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x41c]
xor ecx, ebp
call fcn.00414a22
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x424]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00414a22
mov esp, ebp
pop ebp
ret
Function at 0x4049e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x4431cc]
push ebx
xor eax, ebp
push esi
push edi
mov dword [esp + 0x424], eax
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x218]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x218]
push str.SOFTWAREHewlett_Packard_
mov esi, 1
push eax
mov dword [esp + 0x18], esi
call fcn.004145fa
add esp, 8
push str.Checking_Wether_Need_Delete_Whole_MarsOrwellRegistryEntries.__r_n
mov ecx, 0x44d2d0
call fcn.00402680
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push 0
lea edx, [esp + 0x224]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404ae3
xor ebx, ebx
mov edx, dword [esp + 0xc]
xor eax, eax
push eax
push eax
push eax
push eax
mov ecx, 0x80
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
push edx
mov dword [esp + 0x34], 0x200
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
je 0x404abf
test esi, esi
jne 0x404aba
lea eax, [esp + 0x18]
push 0x433ccc
push eax
call fcn.00414f7d
add esp, 8
test eax, eax
je 0x404aba
mov dword [esp + 0x10], esi
inc ebx
test esi, esi
je 0x404a63
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, ebp
call fcn.00414a22
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x424]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414a22
mov esp, ebp
pop ebp
ret
Function at 0x405290
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
sub esp, 0x870
mov eax, dword [0x4431cc]
xor eax, esp
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x878], eax
mov eax, dword [esp + 0x880]
push ecx
push eax
mov dword [esp + 0x14], 0x5c
xor ebx, ebx
xor edi, edi
call fcn.00414ed8
push eax
lea edx, [esp + 0x26c]
push edx
call fcn.004145fa
lea eax, [esp + 0x1c]
push eax
push edi
call fcn.00414ed8
mov esi, eax
add esp, 0x18
test esi, esi
je 0x405339
test edi, edi
je 0x405315
lea ecx, [esp + 0x260]
push 0x4330e4
push ecx
call fcn.004145d0
lea edx, [esp + 0x678]
push edx
lea eax, [esp + 0x26c]
push eax
call fcn.004145d0
add esp, 0x10
lea ecx, [esp + 0x670]
push esi
push ecx
call fcn.004145fa
lea edx, [esp + 0x14]
push edx
push 0
inc edi
call fcn.00414ed8
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4052e7
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x46c]
push ecx
call fcn.004145fa
lea edx, [esp + 0x470]
push 0x4339c4
push edx
call fcn.004145d0
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x46c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405397
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x86c]
xor ecx, esp
call fcn.00414a22
add esp, 0x870
ret
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [ecx]
push 1
lea edx, [esp + 0x40]
push 0x4339c0
push edx
call fcn.0041524b
add esp, 0xc
test eax, eax
je 0x4053d0
push 1
lea eax, [esp + 0x40]
push 0x4339b8
push eax
call fcn.0041524b
add esp, 0xc
test eax, eax
jne 0x405400
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x4053a0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x12
jne 0x405407
lea edx, [esp + 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405407
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x878]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00414a22
add esp, 0x870
ret
Function at 0x405440
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x4431cc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, ebp
mov dword [esp + 0x25c], eax
lea eax, [esp + 0x14]
push eax
push 0x104
push ebx
push 1
push 0
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryW
test eax, eax
mov dword [esp + 0x10], eax
je 0x40553b
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
mov ecx, 0x47
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x11c
call esi
test eax, eax
jne 0x4054d0
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0x114
call esi
test eax, eax
jne 0x4054d0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, ebp
call fcn.00414a22
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x28]
sub eax, 2
je 0x4054e0
push 0x4330e4
jmp 0x405534
xor eax, eax
mov ecx, 0x47
lea edi, [esp + 0x138]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x138]
push eax
mov dword [esp + 0x13c], 0x11c
call esi
test eax, eax
jne 0x40551e
lea ecx, [esp + 0x138]
push ecx
mov dword [esp + 0x13c], 0x114
call esi
cmp dword [esp + 0x13c], 5
jb 0x40552f
push 0x433f04
jmp 0x405534
push 0x433efc
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [esp + 0x25c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414a22
mov esp, ebp
pop ebp
ret
Function at 0x405560
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x628
mov eax, dword [0x4431cc]
xor eax, ebp
mov dword [esp + 0x624], eax
push esi
push edi
xor eax, eax
mov word [esp + 0x218], 0
mov ecx, 0x81
lea edi, [esp + 0x21a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [esp + 0x420], 0
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x422]
rep stosd dword es:[edi], eax
push str.Stopping_spooler_before_deleting_LM
mov ecx, 0x44d2d0
stosw word es:[edi], ax
call fcn.00402680
push 0x433110
mov ecx, 0x44d2d0
call fcn.00402680
call fcn.00402a90
test eax, eax
je 0x4055f9
push str.stopped_spooler_service
mov ecx, 0x44d2d0
call fcn.00402680
push 0x433110
mov ecx, 0x44d2d0
call fcn.00402680
push str.Starting_spooler_service
mov ecx, 0x44d2d0
call fcn.00402680
push 0x433110
mov ecx, 0x44d2d0
call fcn.00402680
call fcn.00402920
test eax, eax
je 0x405640
push str.spooler_service_started
mov ecx, 0x44d2d0
call fcn.00402680
push 0x433110
mov ecx, 0x44d2d0
call fcn.00402680
jmp 0x405645
call fcn.00402c10
push str.HP1006S
push 0
push 0
call sub.WINSPOOL.DRV_DeletePrintProcessorW
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x4056cf
lea eax, [esp + 0xc]
push eax
push 0x104
lea ecx, [esp + 0x428]
push ecx
push 1
push 0
push 0
call sub.WINSPOOL.DRV_GetPrintProcessorDirectoryW
lea edx, [esp + 0x420]
push edx
lea eax, [esp + 0x21c]
push eax
call fcn.004145fa
lea ecx, [esp + 0x220]
push str.HP1006S.DLL
push ecx
call fcn.004145d0
add esp, 0x10
lea edx, [esp + 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40570e
call esi
push 0xa
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00414ddb
add esp, 0xc
push str.Error_Delete_File
jmp 0x4056e6
call esi
push 0xa
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00414ddb
add esp, 0xc
push str.Error_Delete_Print_Processor
mov ecx, 0x44d2d0
call fcn.00402680
lea edx, [esp + 0x10]
mov ecx, 0x44d2d0
push edx
call fcn.00402680
mov ecx, 0x44d2d0
push 0x433110
call fcn.00402680
push str.HP_LaserJet_P1006_Language_Monitor
push 0
push 0
call sub.WINSPOOL.DRV_DeleteMonitorW
mov edi, eax
call esi
mov esi, eax
push 0xa
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00414ddb
add esp, 0xc
test edi, edi
mov ecx, 0x44d2d0
je 0x40574c
push str.Hurray____deleted_Language_monitor
call fcn.00402680
lea ecx, [esp + 0x10]
push ecx
jmp 0x40575b
push str.Error_deleting_Language_monitor
call fcn.00402680
lea edx, [esp + 0x10]
push edx
mov ecx, 0x44d2d0
call fcn.00402680
mov ecx, dword [esp + 0x62c]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00414a22
mov esp, ebp
pop ebp
ret
Function at 0x406330
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x4431cc]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x21c], eax
mov word [esp + 0x10], 0
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
push str.Trying_to_set_the_security_permissions_for_the_registry:
mov ecx, 0x44d2d0
stosw word es:[edi], ax
call fcn.00402680
push esi
mov ecx, 0x44d2d0
call fcn.00402680
push 0x433110
mov ecx, 0x44d2d0
call fcn.00402680
push esi
push ebx
call fcn.00404400
add esp, 8
test eax, eax
jne 0x4063a7
push str._:_Security_Properties_for_the_registry_key_are_set_r_n
jmp 0x4063da
push 0xa
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.00414ddb
add esp, 0xc
push str._:_failed_to_set_the_Security_options_for_the_registry_key__error_:
mov ecx, 0x44d2d0
call fcn.00402680
lea edx, [esp + 0x10]
push edx
mov ecx, 0x44d2d0
call fcn.00402680
push 0x433110
mov ecx, 0x44d2d0
call fcn.00402680
push esi
push ebx
call fcn.00406000
add esp, 8
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push esi
mov ecx, 0x44d2d0
mov edi, eax
call fcn.00402680
test edi, edi
jne 0x406412
push str._:_Registry_key_deleted_r_n
jmp 0x406445
push 0xa
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00414ddb
add esp, 0xc
push str._:_failed_to_delete_registry_key__error_:
mov ecx, 0x44d2d0
call fcn.00402680
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x44d2d0
call fcn.00402680
push 0x433110
mov ecx, 0x44d2d0
call fcn.00402680
mov ecx, dword [esp + 0x21c]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414a22
mov esp, ebp
pop ebp
ret
Function at 0x406fd0
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x66c
mov eax, dword [0x4431cc]
xor eax, ebp
push ebx
mov dword [esp + 0x66c], eax
mov eax, dword [0x44d2a8]
test eax, eax
push esi
push edi
jne 0x406ffb
call fcn.00405c70
call fcn.00404b00
call fcn.00406d30
call fcn.00406e80
lea eax, [esp + 0x468]
push 0x4471fc
push eax
call fcn.004145fa
lea ecx, [esp + 0x470]
push 0x4339c4
push ecx
call fcn.004145d0
add esp, 0x10
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x46c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea esp, [esp]
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x260]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x260]
push 0x4471fc
push ecx
call fcn.004145fa
lea edx, [esp + 0x268]
push 0x4330e4
push edx
call fcn.004145d0
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x274]
push ecx
call fcn.004145d0
add esp, 0x18
lea edx, [esp + 0x260]
push edx
call esi
test al, 0x10
je 0x4070cf
push 1
lea eax, [esp + 0x40]
push 0x434c20
push eax
call fcn.0041524b
add esp, 0xc
test eax, eax
jne 0x4070cf
lea ecx, [esp + 0x260]
push ecx
call fcn.00404150
add esp, 4
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407050
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x674]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00414a22
mov esp, ebp
pop ebp
ret