joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf00e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0xf168f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0xf00ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.00efd7a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0xf00e61
mov edx, dword [eax]
jmp 0xf00e63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.00eff050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0xf00ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xf00ebf
cmp esi, edi
je 0xf00ebf
mov ecx, esi
call fcn.00ef8a00
push esi
call fcn.00f061c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00efd990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0xf00ef5
mov eax, dword [eax]
jmp 0xf00ef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.00efc640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0xf00f25
mov eax, dword [eax]
jmp 0xf00f27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0xf00f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xf00f76
cmp esi, edi
je 0xf00f76
mov eax, dword [esi]
cmp eax, edi
je 0xf00f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0xf00f6d
push eax
call fcn.00f061c8
add esp, 4
push esi
call fcn.00f061c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xf00f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0xf00ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xf01035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00f00e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0xf00fc5
mov edi, 0xf1b8b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xf01035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00f00e00
add edi, 4
add esp, 0xc
cmp edi, 0xf1b8c0
jb 0xf01000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0xf01070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00f07082
mov esi, eax
add esp, 8
test esi, esi
je 0xf01107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0xf01102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00f06946
add esp, 8
test eax, eax
je 0xf010e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0xf010e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00f06946
add esp, 8
test eax, eax
jne 0xf010c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0xf01102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0xf01f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xf169fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xf02002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00f05dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xf02002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00efd6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00f0620b
push 0x10
call fcn.00f061d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xf01fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00ef21c0
jmp 0xf01fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00f01b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xf01ff0
mov ecx, edi
call fcn.00ef22c0
push edi
call fcn.00f061c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xf02021
inc ebx
cmp ebx, 0x20
jb 0xf01f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xf03250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xf17808
push 0xf07288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xf03329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xf03329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00f061d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xf03329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xf03329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xf0332c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00f03351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xf03d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xf03d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xf03d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xf03d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xf03d94
push eax
push esi
call fcn.00f0620b
add esp, 8
pop esi
ret 0x10

Function at 0xf03da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xf03e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xf03e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xf1c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00f05dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xf03dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xf03e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xf03ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xf03eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xf1c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00f05dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xf03eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xf03e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xf04000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xf04131
push esi
call fcn.00f07145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00ef6080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xf04131
push 0
push ebp
call fcn.00ef63a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00ef6260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xf0408b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00ef62f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xf04121
push 0xf1c918
push edi
call fcn.00f053f0
push eax
push ebx
push esi
call fcn.00f03f60
push 0xf1c8f8
push edi
call fcn.00f053f0
push eax
push ebx
push esi
call fcn.00f03f60
push 0xf1c8d8
push edi
call fcn.00f053f0
push eax
push ebx
push esi
call fcn.00f03f60
push 0xf1c8c0
push edi
call fcn.00f053f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00f03f60
push 0xf1c8a0
push edi
call fcn.00f053f0
push eax
push ebx
push esi
call fcn.00f03f60
push 0xf1c888
push edi
call fcn.00f053f0
push eax
push ebx
push esi
call fcn.00f03f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xf051b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00f05140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00f05140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00f05140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00f05140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xf05bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf05c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xf1787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xf05c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xf05c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4010b0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ecx
push ebx
push edi
push 0x434f04
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [section..data]
cmp edi, 0xffffffff
je 0x4010ef
mov edx, dword [ebx]
mov eax, edx
push esi
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4010d3
push 0
lea ecx, [esp + 0x10]
push ecx
sub eax, esi
push eax
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov edx, dword [ebx]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x434f04
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
pop ecx
ret

Function at 0x401460
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
push edi
push 0x400
push 0x20
push eax
call fcn.004132a0
mov edx, dword [esp + 0x1c]
mov eax, dword [0x434f1c]
lea ecx, [esp + 0x20]
push ecx
push edx
mov edx, dword [esi]
mov ecx, 0x3fc
sub ecx, eax
push ecx
add edx, eax
push edx
call fcn.004133cb
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x4014a7
mov eax, dword [esi]
mov byte [eax + 0x3fc], 0
mov edx, dword [esi]
mov eax, edx
lea edi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4014b0
sub eax, edi
lea eax, [edx + eax - 1]
push 0x4294e0
push eax
call fcn.00412936
add esp, 8
test eax, eax
jne 0x4014ea
mov edi, dword [esi]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4014d6
mov cx, word [0x4294e0]
mov word [edi], cx
pop edi
mov ecx, esi
pop esi
jmp fcn.004010b0
Function at 0x403060
Capabilities:
Terminate process

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, dword [esp + 8]
push edi
jne 0x403073
cmp dword [esi + 0xc], 0
jne 0x4030c2
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
push 0
push 0x1f0fff
call edi
test eax, eax
je 0x4030c2
mov ecx, dword [esi]
push ecx
push 0
push 0x1f0fff
call edi
mov esi, eax
test esi, esi
je 0x4030af
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
jne 0x4030b4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
ret
mov edx, dword [esi + 0xc]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
mov eax, 1
pop esi
ret
Function at 0x403910
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x2c
push ebx
push edi
push str.CScrubber::StartSpooler
lea ecx, [esp + 0x14]
xor ebx, ebx
call fcn.00401130
push 0xf003f
push ebx
push ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebx
mov dword [esp + 8], edi
je 0x4039c9
push esi
push 0xf01ff
push str.spooler
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebx
je 0x4039c1
push ebx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x4039ba
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push ebp
lea eax, [esp + 0x20]
push eax
push esi
call edi
test eax, eax
je 0x4039a6
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x24], 4
je 0x4039ad
mov ecx, ebx
add ebx, 1
cmp ecx, 5
jge 0x4039a6
push 0x1f4
call ebp
lea edx, [esp + 0x20]
push edx
push esi
call edi
test eax, eax
jne 0x403982
cmp dword [esp + 0x24], 4
jne 0x4039b5
mov dword [esp + 0x14], 1
mov edi, dword [esp + 0x10]
pop ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
lea ecx, [esp + 0x10]
call fcn.004012e0
mov eax, dword [esp + 0xc]
pop edi
pop ebx
add esp, 0x2c
ret

Function at 0x4039e0
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x2c
push ebp
push edi
push str.StopSpooler
lea ecx, [esp + 0x14]
xor ebp, ebp
call fcn.00401130
push 0xf003f
push ebp
push ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebp
mov dword [esp + 8], edi
je 0x403aaf
push esi
push 0xf01ff
push str.spooler
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebp
je 0x403aa7
lea eax, [esp + 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x403aa0
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push 0x7d0
call edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x20]
push ecx
push esi
call ebx
test eax, eax
je 0x403a89
cmp dword [esp + 0x24], 1
je 0x403a89
mov edx, ebp
add ebp, 1
cmp edx, 5
jge 0x403a89
push 0x1f4
call edi
lea eax, [esp + 0x20]
push eax
push esi
call ebx
test eax, eax
jne 0x403a65
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov edi, dword [esp + 0x10]
pop ebx
jne 0x403aa0
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
lea ecx, [esp + 0x10]
call fcn.004012e0
mov eax, dword [esp + 0xc]
pop edi
pop ebp
add esp, 0x2c
ret
Function at 0x403b10
Capabilities:
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x427aa8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x433a70]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
push str.CScrubber::DeleteFile
lea ecx, [esp + 0x18]
xor edi, edi
call fcn.00401130
mov bl, byte [esp + 0x30]
test bl, 1
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x24], edi
je 0x403b71
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xffffffde
jne 0x403b69
mov eax, 0x80
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
test ebp, ebp
je 0x403b87
test bl, 2
je 0x403c33
push esi
lea eax, [esp + 0x18]
push str.Arranging_to_remove_file_on_reboot:__s
push eax
call fcn.00401460
add esp, 0xc
call fcn.004096a0
cmp eax, 1
je 0x403be9
call fcn.004096a0
cmp eax, 2
je 0x403be9
call fcn.004096a0
cmp eax, 3
je 0x403be9
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x403c33
push str.MoveFileExA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403be0
push 4
push 0
push esi
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x403c33
push 0x104
call fcn.00409b95
add esp, 4
push 0x104
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x403c5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x18]
call fcn.004013d0
test ebx, ebx
je 0x403c26
push ebx
call fcn.00409b90
add esp, 4
test edi, edi
je 0x403c33
push edi
call fcn.00409b90
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.004012e0
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
push 0x104
call fcn.00409b95
add esp, 4
mov edi, eax
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, edi
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x403c80
mov ecx, dword [str.WININIT.INI]
mov dword [eax], ecx
mov edx, dword [0x429a20]
mov dword [eax + 4], edx
mov ecx, dword [0x429a24]
push edi
push ebx
mov dword [eax + 8], ecx
mov dl, byte [0x429a28]
push 0x429a18
push str.rename
mov byte [eax + 0xc], dl
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x403c19
Function at 0x404440
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x427b38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x433a70]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
push str.CScrubber::DeletePrintProcessors
lea ecx, [esp + 0x20]
call fcn.00401130
xor ebp, ebp
cmp dword [esi], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x14], ebp
je 0x40459b
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
je 0x40459b
mov eax, dword [ecx + 0xc]
cmp eax, ebp
je 0x40459b
mov ebx, dword [ecx + 4]
jle 0x404584
jmp 0x4044b4
mov esi, dword [esp + 0x18]
mov eax, ebx
mov edi, dword [eax + 8]
mov ebx, dword [ebx]
push edi
lea eax, [esp + 0x20]
push str.Print_Processor:__s
push eax
call fcn.00401460
add esp, 0xc
push edi
mov ecx, esi
call fcn.00403490
test eax, eax
jne 0x404574
push edi
push eax
push eax
call sub.WINSPOOL.DRV_DeletePrintProcessorA
test eax, eax
jne 0x404502
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [esp + 0x14], eax
call esi
push eax
lea ecx, [esp + 0x20]
call fcn.004013d0
call fcn.004096a0
cmp eax, 1
je 0x404520
call fcn.004096a0
cmp eax, 2
je 0x404520
call fcn.004096a0
cmp eax, 3
jne 0x404574
push 0x104
call fcn.00409b95
mov esi, eax
add esp, 4
test esi, esi
je 0x404574
push edi
push str.SystemCurrentControlSetControlPrintPrintProcessors_s
push 0x104
push esi
call fcn.004131ec
add esp, 0x10
cmp eax, 0xffffffff
je 0x404574
push esi
lea ecx, [esp + 0x20]
push str.Delete_key:__s
push ecx
call fcn.00401460
add esp, 0xc
push esi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push esi
call fcn.00409b90
add esp, 4
mov edx, dword [esp + 0x34]
add ebp, 1
cmp ebp, dword [edx + 0xc]
jl 0x4044b0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004012e0
mov eax, dword [esp + 0x14]
jmp 0x4045b1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004012e0
mov eax, 0x57
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4