joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42bdb0
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x5d687d
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x878], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x894]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x8a4]
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x491]
push ebx
mov dword [esp + 0x24], ebx
push eax
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x498], bl
call fcn.005985f0
add esp, 0xc
push 0x3ff
lea ecx, [esp + 0x91]
push ebx
push ecx
mov byte [esp + 0x98], bl
call fcn.005985f0
add esp, 0xc
lea ecx, [esp + 0x8c]
call fcn.0042dd70
lea esi, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.0042e160
test al, al
je 0x42be8b
lea eax, [esp + 0x8c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42be60
sub eax, edx
mov edx, dword [esp + 0x18]
push edx
mov ecx, 0x400
push str._08X
sub ecx, eax
push ecx
lea edx, [esp + eax + 0x98]
push edx
call fcn.00593f81
add esp, 0x10
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x8c]
push eax
mov eax, 0x400
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
call fcn.00441e90
add esp, 4
lea esi, [esp + 0x24]
lea edi, [esp + 0x7c]
call fcn.00441f30
movzx ecx, byte [esp + 0x8b]
movzx edx, byte [esp + 0x8a]
movzx eax, byte [esp + 0x89]
push ecx
movzx ecx, byte [esp + 0x8c]
push edx
movzx edx, byte [esp + 0x8f]
push eax
movzx eax, byte [esp + 0x92]
push ecx
movzx ecx, byte [esp + 0x95]
push edx
movzx edx, byte [esp + 0x98]
push eax
movzx eax, byte [esp + 0x9b]
push ecx
movzx ecx, byte [esp + 0x9e]
push edx
movzx edx, byte [esp + 0xa1]
push eax
movzx eax, byte [esp + 0xa4]
push ecx
movzx ecx, byte [esp + 0xa7]
push edx
movzx edx, byte [esp + 0xaa]
push eax
movzx eax, byte [esp + 0xad]
push ecx
movzx ecx, byte [esp + 0xb0]
push edx
push eax
push ecx
push str._02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X
lea edx, [esp + 0x4d0]
push 0x400
push edx
call fcn.00593f81
add esp, 0x4c
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x490]
call fcn.0040b670
mov esi, 1
mov dword [esp + 0x89c], esi
lea ecx, [esp + 0x14]
push ecx
push ebp
call fcn.00429380
add esp, 8
mov dword [esp + 0x1c], esi
mov byte [esp + 0x89c], bl
lea ecx, [esp + 0x14]
call fcn.0040b720
mov eax, ebp
mov ecx, dword [esp + 0x894]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x878]
xor ecx, esp
call fcn.0059393a
add esp, 0x88c
ret
Function at 0x42bff0
Capabilities:
Get mac address on windows

Disassembly:
push 0xffffffffffffffff
push 0x5d34e1
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
mov dword [esp + 0x20], ebx
push ebx
mov dword [esp + 0x1c], ebx
xor esi, esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x42c046
mov ecx, dword [esp + 0x14]
push ecx
call fcn.005928f7
add esp, 4
mov esi, eax
lea edx, [esp + 0x14]
push edx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp esi, ebx
je 0x42c0c6
lea eax, [esp + 0x18]
push eax
call fcn.0040b7e0
mov dword [esp + 0x28], 1
movzx ecx, byte [esi + 0x199]
movzx edx, byte [esi + 0x198]
movzx eax, byte [esi + 0x197]
push ecx
movzx ecx, byte [esi + 0x196]
push edx
movzx edx, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push ecx
push edx
push eax
push str._02x:_02x:_02x:_02x:_02x:_02x
lea edi, [esp + 0x34]
call fcn.00421d60
add esp, 0x1c
mov ecx, edi
push ecx
push ebp
call fcn.0040b840
mov dword [esp + 0x1c], 1
mov byte [esp + 0x28], bl
mov ecx, edi
call fcn.0040b950
jmp 0x42c0dd
push ebp
mov ecx, 0x692fd0
call fcn.0040b8a0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], 1
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x42c2f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x238
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x234], eax
push esi
push edi
push 0
push 2
mov edi, ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x42c33c
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x42c352
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.0059393a
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
push ecx
call fcn.004386a0
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42c352
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0059393a
mov esp, ebp
pop ebp
ret
Function at 0x42c830
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x5c8bd8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
xor ebx, ebx
mov byte [esp + 0xf], bl
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x42c89e
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x42c87c
push eax
call edi
mov dword [esp + 0x10], ebx
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x42c8d6
mov eax, dword [esp + 0x10]
jmp 0x42c8a3
mov eax, reloc.OLEAUT32.dll_SysReAllocString
mov edx, dword [esp + 0x24]
push 4
lea ecx, [esp + 0x2c]
push ecx
push 4
push edx
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp eax, ebx
jne 0x42c8d6
mov eax, dword [esp + 0x10]
cmp esi, ebx
jne 0x42c8ca
mov eax, reloc.OLEAUT32.dll_SysReAllocString
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov byte [esp + 0xf], 1
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x42c8e9
push eax
call edi
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x14
ret

Function at 0x42c900
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5c8ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 4
cmp byte [0x6eaed0], bl
je 0x42c94e
mov edi, 0x101
cmp byte [esp + 0x38], bl
jne 0x42c953
mov edi, 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x42c991
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x42c974
push eax
call ebp
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
push eax
push edi
push ebx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x42c9c7
mov eax, dword [esp + 0x14]
jmp 0x42c996
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x24]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x42c9c3
cmp dword [esp + 0x1c], 4
jne 0x42c9c3
cmp dword [esp + 0x20], ebx
jne 0x42c9c7
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x42c9de
push eax
call ebp
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x42dd70
Capabilities:
Get common file path
Get storage device properties

Disassembly:
mov eax, 0x2f30
call fcn.00598dc0
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x2f28], eax
push ebx
push esi
push edi
push 0x400
lea eax, [esp + 0x24]
mov edi, ecx
xor ebx, ebx
push eax
mov byte [edi], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
call fcn.0042ded0
add esp, 4
test al, al
je 0x42de9c
mov edx, dword [esp + 0x10]
push edx
push str..PhysicalDrive_d
lea eax, [esp + 0x28]
push 0x400
push eax
call fcn.005959d3
add esp, 0x10
push ebx
push ebx
push 3
push ebx
push 3
push closesocket
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42de9c
xor eax, eax
push 0x2710
lea edx, [esp + 0x824]
push ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.005985f0
add esp, 0xc
push ebx
lea eax, [esp + 0x14]
push eax
push 0x2710
lea ecx, [esp + 0x82c]
push ecx
push 0xc
lea edx, [esp + 0x28]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42de95
mov eax, dword [esp + 0x838]
cmp eax, 0xffffffff
je 0x42de6a
lea ecx, [esp + 0x820]
call fcn.0042e1e0
mov eax, dword [esp + 0x830]
cmp eax, ebx
je 0x42de8f
cmp byte [edi], bl
jne 0x42de93
lea eax, [esp + eax + 0x820]
push eax
push 0x400
push edi
call fcn.00596560
add esp, 0xc
cmp byte [edi], bl
je 0x42de95
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2f34]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0059393a
add esp, 0x2f30
ret

Function at 0x42e160
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x20c
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x208], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [esi], 0
test eax, eax
je 0x42e1c6
cmp eax, 3
jb 0x42e1c6
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push esi
push ecx
push ecx
lea edx, [esp + 0x1c]
push edx
mov word [esp + 0x26], cx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
setne al
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0059393a
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor al, al
call fcn.0059393a
add esp, 0x20c
ret
Function at 0x42e6e0
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5d3350
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], 0
mov ecx, 0x80
mov edx, ebx
call fcn.0042eb00
push ebx
call ebp
mov edi, eax
test edi, edi
jne 0x42e7ab
lea eax, [esp + 0x20]
push eax
mov ecx, 0x699ba0
call fcn.0040b8a0
mov dword [esp + 0x34], edi
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004176f0
add esp, 8
mov byte [esp + 0x34], 1
mov eax, dword [eax]
push eax
call ebp
mov edi, eax
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42e783
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e7ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
test esi, esi
jne 0x42e83e
lea ecx, [esp + 0x28]
push ecx
mov ecx, 0x699ba0
call fcn.0040b8a0
mov dword [esp + 0x34], 4
push eax
lea edx, [esp + 0x28]
push edx
call fcn.004176f0
add esp, 8
mov byte [esp + 0x34], 5
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
mov byte [esp + 0x34], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e816
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42e83e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x42e895
test esi, esi
je 0x42e895
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 0xa
jb 0x42e71c
cmp dword [0x6d138c], 1
jl 0x42e87d
push str.CLEAN:_Processing_file:_file_failed_to_delete
push str.Helper::virDeleteFile
push 1
call fcn.00552bc2
add esp, 0xc
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
cmp dword [0x6d138c], 1
mov bl, 1
jl 0x42e8b4
push str.CLEAN:_Processing_file:_file_deleted_successfully
push str.Helper::virDeleteFile
push 1
call fcn.00552bc2
add esp, 0xc
mov al, bl
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x42e8d0
Capabilities:
Get token privileges

Disassembly:
mov eax, 0x100c
call fcn.00598dc0
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x1008], eax
push 0xfff
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.005985f0
add esp, 0xc
lea ecx, [esp]
push ecx
push 0xf01ff
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42e97a
mov ecx, dword [esp]
lea edx, [esp + 4]
push edx
push 0x1000
lea eax, [esp + 0x10]
push eax
push 3
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x42e97a
xor eax, eax
cmp dword [esp + 8], eax
jbe 0x42e960
lea ecx, [esp + 0x14]
mov edi, edi
mov dword [ecx], 2
inc eax
add ecx, 0xc
cmp eax, dword [esp + 8]
jb 0x42e950
mov edx, dword [esp + 4]
mov ecx, dword [esp]
push 0
push 0
push edx
lea eax, [esp + 0x14]
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [esp]
test eax, eax
je 0x42e988
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.0059393a
add esp, 0x100c
ret

Function at 0x42ea50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5d32f0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [esp + 0x14]
push eax
mov ecx, 0x699ba0
call fcn.0040b8a0
mov dword [esp + 0x20], 0
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.004176f0
add esp, 8
mov byte [esp + 0x20], 1
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x10]
call fcn.0040b950
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.0040b950
cmp esi, 0xffffffff
jne 0x42eae9
push ebx
call edi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x42eb00
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5d32c2
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, edx
push esi
mov dword [esp + 0x18], 0
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call edi
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
mov ecx, 0x699ba0
call fcn.0040b8a0
mov dword [esp + 0x28], 0
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x1c], 1
call fcn.004176f0
add esp, 8
mov dword [esp + 0x28], 1
mov eax, dword [eax]
push esi
mov ebx, 3
push eax
mov dword [esp + 0x1c], ebx
call edi
test eax, eax
jne 0x42eb8f
test ebp, ebp
jne 0x42eb8f
xor esi, esi
jmp 0x42eb94
mov esi, 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], ebx
and ebx, 0xfffffffd
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebx
call fcn.0040b950
mov dword [esp + 0x28], 0xffffffff
test bl, 1
je 0x42ebcd
and ebx, 0xfffffffe
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], ebx
call fcn.0040b950
test esi, esi
je 0x42ebe1
cmp dword [0x6d138c], 1
jl 0x42ebfe
push str.CLEAN:_Processing_file:_attributes_changed_successfully
jmp 0x42ebef
cmp dword [0x6d138c], 1
jl 0x42ebfe
push str.CLEAN:_Processing_file:_attributes_failed_to_change
push str.Helper::virSetFileAttributes
push 1
call fcn.00552bc2
add esp, 0xc
test esi, esi
setne al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x42efe0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x5c6e78
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1c]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [esp + 8], esi
mov dword [esp + 0x14], 0
test esi, esi
je 0x42f052
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x42f052
mov dword [esp + 0x14], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
mov dword [esp + 0x14], 0xffffffff
test esi, esi
je 0x42f065
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x42f080
Capabilities:
Get number of processors
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d3268
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push esi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
xor eax, eax
xor ebx, ebx
mov word [esp + 0x1c], ax
push 6
mov eax, str..X:
lea esi, [esp + 0x1c]
mov byte [esp + 0x17], bl
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
call fcn.0040d4e0
mov dword [esp + 0x78], ebx
cmp dword [esp + 0x2c], 4
jae 0x42f0ef
call fcn.0059471a
mov eax, dword [esp + 0x1c]
mov ecx, 8
cmp dword [esp + 0x30], ecx
jae 0x42f102
lea eax, [esp + 0x1c]
mov edx, dword [ebp + 8]
mov dx, word [edx]
mov word [eax + 8], dx
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ecx
jae 0x42f11a
lea eax, [esp + 0x1c]
push ebx
push ebx
push 3
push ebx
push 7
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x42f1a8
xor eax, eax
push ebx
mov word [esp + 0x41], ax
mov byte [esp + 0x43], al
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
lea eax, [esp + 0x18]
push eax
push 0x28
lea ecx, [esp + 0x4c]
push ecx
push 0xc
lea edx, [esp + 0x48]
push edx
push 0x2d1400
push esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x5c], bl
mov dword [esp + 0x60], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42f1a1
cmp dword [esp + 0x5c], 7
sete byte [esp + 0x13]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x30], 8
jb 0x42f1c4
mov eax, dword [esp + 0x1c]
push eax
call fcn.0059392f
add esp, 4
mov al, byte [esp + 0x13]
xor ecx, ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.0059393a
mov esp, ebp
pop ebp
ret
Function at 0x42f5a0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x5cfb41
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
mov eax, dword [0x6d26f8]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x48]
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
call fcn.0040b7e0
mov dword [esp + 0x40], esi
mov dword [esp + 0x2c], esi
xor eax, eax
push esi
lea ebx, [esi + 0xa]
mov ebp, 1
lea esi, [esp + 0x1c]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x34], 7
mov word [esp + 0x20], ax
call fcn.00439bb0
mov dword [esp + 0x40], ebp
xor ebp, ebp
mov eax, dword [esp + 0x1c]
mov ebx, 8
cmp dword [esp + 0x30], ebx
jae 0x42f62f
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
dec ecx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [esp + 0x2c]
mov esi, eax
lea edx, [ecx - 1]
cmp esi, edx
jbe 0x42f676
lea ebx, [esi + 1]
cmp ebx, ecx
ja 0x42f65f
or eax, 0xffffffff
lea esi, [esp + 0x18]
call fcn.0040b3a0
jmp 0x42f66e
mov eax, ebx
push 0
sub eax, ecx
lea ebx, [esp + 0x1c]
call fcn.00439b50
inc ebp
cmp ebp, 5
jb 0x42f61c
jmp 0x42f6cb
cmp esi, ecx
jbe 0x42f67f
call fcn.0059471a
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebx
jae 0x42f68d
lea eax, [esp + 0x1c]
xor ecx, ecx
mov word [eax + esi*2], cx
cmp dword [esp + 0x30], ebx
jb 0x42f6a5
mov eax, dword [esp + 0x1c]
mov esi, eax
test eax, eax
jne 0x42f6a9
jmp 0x42f6bf
lea esi, [esp + 0x1c]
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f6b0
sub eax, edx
sar eax, 1
mov ebx, eax
mov eax, dword [esp + 0x10]
push esi
call fcn.0040f6d0
xor ebx, ebx
mov byte [esp + 0x40], bl
cmp dword [esp + 0x30], 8
jb 0x42f6e5
mov edx, dword [esp + 0x1c]
push edx
call fcn.0059392f
add esp, 4
xor eax, eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], ax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0059393a
add esp, 0x34
ret