joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d5df
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov eax, closesocket
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x41d60f
push esi
lea ecx, [ebp - 4]
push ecx
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x41d635
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x10], esi
je 0x41d638
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
jne 0x41d628
jmp 0x41d62a

Function at 0x41d67c
Capabilities:
Enumerate services
Query service status

Disassembly:
push 0x70
push 0x688458
call fcn.0057da60
call fcn.0041db7e
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0x7530
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
xor edi, edi
push edi
push edi
xor ebx, ebx
inc ebx
push ebx
push dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
call esi
test eax, eax
jne 0x41d7d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x41d6ce
xor eax, eax
jmp 0x41d7d6
push dword [ebp - 0x20]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x2c], eax
cmp eax, edi
je 0x41d6c7
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x20]
push eax
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x41d715
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x6b06f8
call fcn.00589b94
add esp, 0xc
jmp 0x41d6c7
mov dword [ebp - 0x24], edi
mov esi, dword [ebp - 0x24]
cmp esi, dword [ebp - 0x28]
jae 0x41d7c8
imul esi, esi, 0x24
add esi, dword [ebp - 0x2c]
push 9
pop ecx
lea edi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
push 0x24
push dword [ebp - 0x80]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x41d700
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x5c]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x41d700
cmp dword [ebp - 0x58], ebx
je 0x41d7aa
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push 0x24
lea eax, [ebp - 0x5c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x41d700
cmp dword [ebp - 0x58], ebx
je 0x41d7aa
call fcn.0041db7e
xor ecx, ecx
sub eax, dword [ebp - 0x30]
sbb edx, ecx
cmp edx, ecx
jb 0x41d75c
ja 0x41d700
cmp eax, dword [ebp - 0x34]
jbe 0x41d75c
jmp 0x41d700
and dword [ebp - 4], 0
call fcn.0041d7be
inc dword [ebp - 0x24]
jmp 0x41d718
mov dword [ebp - 4], 0xfffffffe
call fcn.0041d7df
mov eax, ebx
call fcn.0057daa5
ret
Function at 0x41d864
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
call fcn.0041db7e
push 0xf003f
push esi
push esi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x41d894
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 0x2c
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x41d8b4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x41d88f
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
lea ecx, [ebp - 0xc]
push ecx
push 0x24
lea ecx, [ebp - 0x34]
push ecx
push esi
push eax
call edi
test eax, eax
je 0x41d994
xor eax, eax
inc eax
cmp dword [ebp - 0x30], eax
je 0x41d88f
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41d920
push dword [ebp - 0x1c]
call esi
lea eax, [ebp - 0xc]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push dword [ebp - 4]
call edi
test eax, eax
je 0x41d994
cmp dword [ebp - 0x30], 1
je 0x41d994
call fcn.0041db7e
xor ecx, ecx
sub eax, ebx
sbb edx, ecx
test edx, edx
ja 0x41d994
jb 0x41d920
cmp eax, 0x7530
ja 0x41d994
cmp dword [ebp - 0x30], 3
je 0x41d8e0
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0041d67c
pop ecx
pop ecx
lea eax, [ebp - 0x34]
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x41d994
push 0x3e8
call esi
jmp 0x41d987
lea eax, [ebp - 0xc]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push dword [ebp - 4]
call edi
test eax, eax
je 0x41d994
cmp dword [ebp - 0x30], 1
je 0x41d98d
push dword [ebp - 0x1c]
call esi
call fcn.0041db7e
xor ecx, ecx
sub eax, ebx
sbb edx, ecx
test edx, edx
ja 0x41d994
jb 0x41d987
cmp eax, 0x7530
ja 0x41d994
cmp dword [ebp - 0x30], 1
jne 0x41d94f
mov dword [ebp - 0x10], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x10]
jmp 0x41d8a7
Function at 0x41d9a5
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x10], esi
cmp esi, ebx
jne 0x41d9f1
cmp dword [0x6af38c], 1
jl 0x41d9ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WD_OpenSCManager__i
push str.Helper::ToolsStartService
push 1
call fcn.00532962
add esp, 0x10
xor eax, eax
jmp 0x41db79
push 0x14
push str.TrustedInstaller
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0xc], edi
cmp edi, ebx
jne 0x41da35
cmp dword [0x6af38c], 1
jl 0x41da2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WD_OpenService__i
push str.Helper::ToolsStartService
push 1
call fcn.00532962
add esp, 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41d9ea
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x41da79
cmp dword [0x6af38c], 1
jl 0x41da66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WD_StartService__i
push str.Helper::ToolsStartService
push 1
call fcn.00532962
add esp, 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push dword [ebp - 0x10]
call esi
jmp 0x41d9ea
lea eax, [ebp - 0x14]
push eax
push 0x24
lea eax, [ebp - 0x38]
push eax
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
call edi
test eax, eax
jne 0x41daaf
cmp dword [0x6af38c], 1
jl 0x41d9ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WD_QueryServiceStatusEx__i
jmp 0x41d9db
call fcn.0041db7e
mov ebx, dword [ebp - 0x24]
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
jmp 0x41db31
mov eax, dword [ebp - 0x20]
push 0xa
xor edx, edx
pop ecx
div ecx
mov esi, eax
mov eax, 0x3e8
cmp esi, eax
jb 0x41dade
mov eax, 0x2710
cmp esi, eax
jbe 0x41dae0
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [ebp - 4], esi
lea eax, [ebp - 0x14]
push eax
push 0x24
lea eax, [ebp - 0x38]
push eax
push 0
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x41db37
cmp dword [ebp - 0x24], ebx
jbe 0x41db11
call fcn.0041db7e
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 8], eax
jmp 0x41db28
call fcn.0041db7e
xor ecx, ecx
sub eax, dword [ebp - 8]
sbb edx, ecx
cmp edx, ecx
ja 0x41db37
jb 0x41db28
cmp eax, dword [ebp - 0x20]
ja 0x41db37
cmp dword [ebp - 4], 0xea60
ja 0x41db37
cmp dword [ebp - 0x34], 2
je 0x41dac0
xor eax, eax
cmp dword [ebp - 0x34], 4
sete al
cmp dword [0x6af38c], 1
mov edi, eax
jl 0x41db67
xor eax, eax
test edi, edi
setne al
push eax
push str.WD_start_res__i
push str.Helper::ToolsStartService
push 1
call fcn.00532962
add esp, 0x10
push dword [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41dd6f
Capabilities:
Get hostname

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x6b06f8]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x5b1ac0
call fcn.00580e6b
and dword [ebp - 0x10], 0
xor eax, eax
push 0x206
push eax
mov word [ebp], ax
lea eax, [ebp + 2]
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0x104
call fcn.005783f0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp]
push eax
push esi
call fcn.00408561
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0057372c
add ebp, 0x20c
leave
ret
Function at 0x41de01
Capabilities:
Get common file path
Get disk information

Disassembly:
push 0xa88
mov eax, 0x5b4d47
call fcn.00580ed4
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, 0x3ff
push esi
mov dword [ebp - 0xa90], eax
lea eax, [ebp - 0xa2b]
push ebx
mov dword [ebp - 0xa94], ebx
push eax
mov byte [ebp - 0xa2c], bl
call fcn.005783f0
add esp, 0xc
push esi
lea eax, [ebp - 0x62b]
push ebx
push eax
mov byte [ebp - 0x62c], bl
call fcn.005783f0
lea eax, [ebp - 0x62c]
add esp, 0xc
push eax
call fcn.0041f428
lea eax, [ebp - 0x22c]
mov dword [esp], 0x104
push eax
mov dword [ebp - 0xa88], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0xa88], ebx
cmp eax, ebx
je 0x41deb3
cmp eax, 3
jb 0x41deb3
push ebx
push ebx
push ebx
xor eax, eax
push ebx
mov word [ebp - 0x226], ax
lea eax, [ebp - 0xa88]
push eax
push ebx
push ebx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp eax, ebx
setne al
jmp 0x41deb5
xor al, al
mov edi, 0x400
cmp al, bl
je 0x41def0
lea eax, [ebp - 0x62c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41dec7
push dword [ebp - 0xa88]
sub eax, edx
mov ecx, edi
sub ecx, eax
push str._08X
push ecx
lea eax, [ebp + eax - 0x62c]
push eax
call fcn.00573d73
add esp, 0x10
lea ecx, [ebp - 0xa84]
call fcn.0041c336
lea eax, [ebp - 0x62c]
push eax
mov eax, edi
lea esi, [ebp - 0xa84]
call fcn.0042c709
pop ecx
mov edx, esi
lea ecx, [ebp - 0x24]
call fcn.0042c7a3
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0x19]
push eax
movzx eax, byte [ebp - 0x1a]
push eax
movzx eax, byte [ebp - 0x1b]
push eax
movzx eax, byte [ebp - 0x1c]
push eax
movzx eax, byte [ebp - 0x1d]
push eax
movzx eax, byte [ebp - 0x1e]
push eax
movzx eax, byte [ebp - 0x1f]
push eax
movzx eax, byte [ebp - 0x20]
push eax
movzx eax, byte [ebp - 0x21]
push eax
movzx eax, byte [ebp - 0x22]
push eax
movzx eax, byte [ebp - 0x23]
push eax
movzx eax, byte [ebp - 0x24]
push eax
push str._02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X_02X
lea eax, [ebp - 0xa2c]
push edi
push eax
call fcn.00573d73
add esp, 0x4c
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0xa8c]
push eax
call fcn.00408420
xor esi, esi
inc esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0xa8c]
push eax
push dword [ebp - 0xa90]
call fcn.0041bece
pop ecx
pop ecx
mov dword [ebp - 0xa94], esi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0xa8c]
call fcn.00408461
mov eax, dword [ebp - 0xa90]
call fcn.00580f57
ret
Function at 0x41dfcc
Capabilities:
Get mac address on windows

Disassembly:
push 0xc
mov eax, 0x5b1a8c
call fcn.00580e6b
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ebx
push ebx
mov dword [ebp - 0x10], ebx
xor esi, esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x41dffc
push dword [ebp - 0x10]
call fcn.005726e9
pop ecx
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp esi, ebx
je 0x41e075
lea eax, [ebp - 0x14]
push eax
call fcn.0040850b
xor edi, edi
inc edi
mov dword [ebp - 4], edi
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
push str._02x:_02x:_02x:_02x:_02x:_02x
lea eax, [ebp - 0x14]
call fcn.00417833
add esp, 0x1c
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.00408532
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.004085a2
jmp 0x41e08c
push 0x670fd0
push dword [ebp + 8]
call fcn.00408561
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], 1
mov eax, dword [ebp + 8]
call fcn.00580f43
ret

Function at 0x41e1e5
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x238
mov eax, dword [0x6b06f8]
xor eax, esp
mov dword [esp + 0x234], eax
push esi
push edi
push 0
push 2
mov esi, ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x41e229
xor eax, eax
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
xor ecx, esp
call fcn.0057372c
mov esp, ebp
pop ebp
ret
lea eax, [esp + 8]
push eax
push edi
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x41e24d
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x41e215
lea eax, [esp + 8]
push eax
call fcn.00426bea
lea eax, [esp + 8]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41e24d
xor esi, esi
inc esi
jmp 0x41e242
Function at 0x41e4fd
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x5a871c
call fcn.00580e6b
xor ebx, ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], ebx
je 0x41e54e
cmp dword [ebp - 0x14], ebx
je 0x41e52c
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x41e582
mov eax, dword [ebp - 0x14]
jmp 0x41e553
mov eax, reloc.OLEAUT32.dll_SysReAllocString
push 4
lea ecx, [ebp + 0x10]
push ecx
push 4
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp eax, ebx
jne 0x41e582
mov eax, dword [ebp - 0x14]
cmp dword [ebp + 8], ebx
jne 0x41e577
mov eax, reloc.OLEAUT32.dll_SysReAllocString
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov byte [ebp - 0xd], 1
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], ebx
je 0x41e590
push dword [ebp - 0x14]
call esi
mov al, byte [ebp - 0xd]
call fcn.00580f43
ret

Function at 0x41e599
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x5a86f9
call fcn.00580e6b
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 4
cmp byte [0x6c8ed0], bl
je 0x41e5c8
cmp byte [ebp + 0x10], bl
je 0x41e5c8
mov esi, 0x101
jmp 0x41e5cb
xor esi, esi
inc esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], ebx
je 0x41e606
cmp dword [ebp - 0x10], ebx
je 0x41e5e9
push dword [ebp - 0x10]
call edi
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x41e634
mov eax, dword [ebp - 0x10]
jmp 0x41e60b
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x41e631
cmp dword [ebp - 0x18], 4
jne 0x41e631
cmp dword [ebp - 0x1c], ebx
jne 0x41e634
mov dword [ebp - 0x14], ebx
mov esi, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x10], ebx
je 0x41e645
push dword [ebp - 0x10]
call edi
mov eax, esi
call fcn.00580f43
ret
Function at 0x41f23d
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push 0x34
mov eax, 0x5a6baf
call fcn.00580e6b
lea eax, [ebp - 0x18]
push eax
push 0x5cdacc
xor edi, edi
inc edi
push edi
xor ebx, ebx
push ebx
push 0x5cdb9c
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x41f273
xor eax, eax
call fcn.00580f43
ret
push dword [ebp - 0x18]
lea esi, [ebp - 0x1c]
call fcn.0042b23a
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x6776ac
mov dword [ebp - 0x14], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jge 0x41f2b7
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 4]
jmp 0x41f26b
push dword [ebp - 0x14]
lea esi, [ebp - 0x24]
call fcn.0042b28e
mov byte [ebp - 4], 1
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
jge 0x41f2f3
mov byte [ebp - 4], bl
mov esi, dword [ebp - 0x24]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 4]
jmp 0x41f2a0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_Processor
push 0x6776c4
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp eax, ebx
jge 0x41f348
xor edi, edi
mov byte [ebp - 4], bl
mov esi, dword [ebp - 0x24]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov eax, edi
jmp 0x41f26d
push dword [ebp - 0x10]
lea esi, [ebp - 0x2c]
call fcn.0042b2e2
mov byte [ebp - 4], 2
xor edi, edi
xor esi, esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x10], ebx
je 0x41f3c9
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push 1
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [eax + 0x10]
cmp dword [ebp - 0x28], ebx
je 0x41f3ae
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x40]
push edx
push ebx
push str.MaxClockSpeed
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x41f39f
inc edi
add esi, dword [ebp - 0x38]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp - 0x10], ebx
jne 0x41f366
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x41f3bb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp edi, ebx
je 0x41f3c9
mov eax, esi
xor edx, edx
div edi
mov edi, eax
jmp 0x41f3cb
xor edi, edi
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
jmp 0x41f316
Function at 0x41f428
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2f38
call fcn.00578bc0
mov eax, dword [0x6b06f8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x2f34], eax
mov byte [eax], 0
mov ebx, 0x400
push ebx
lea eax, [ebp - 0x80c]
push eax
mov byte [ebp - 0x2f29], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push dword [ebp - 0x80c]
lea eax, [ebp - 0x2f30]
push eax
call fcn.0041f598
pop ecx
pop ecx
test al, al
je 0x41f583
push dword [ebp - 0x2f30]
lea eax, [ebp - 0x80c]
push str..PhysicalDrive_d
push ebx
push eax
call fcn.005757d3
add esp, 0x10
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push closesocket
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2f30], eax
cmp eax, 0xffffffff
je 0x41f583
xor eax, eax
lea edi, [ebp - 0x2f28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x2710
push edi
lea eax, [ebp - 0x2f1c]
push esi
push eax
mov dword [ebp - 0x2f38], esi
mov dword [ebp - 0x2f28], esi
mov dword [ebp - 0x2f24], esi
call fcn.005783f0
add esp, 0xc
push esi
lea eax, [ebp - 0x2f38]
push eax
push edi
lea eax, [ebp - 0x2f1c]
push eax
push 0xc
lea eax, [ebp - 0x2f28]
push eax
push 0x2d1400
push dword [ebp - 0x2f30]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41f577
mov eax, dword [ebp - 0x2f04]
mov edi, dword [ebp - 0x2f34]
cmp eax, 0xffffffff
je 0x41f54a
mov esi, edi
lea ecx, [ebp - 0x2f1c]
call fcn.0041f82d
xor esi, esi
mov eax, dword [ebp - 0x2f0c]
cmp eax, esi
je 0x41f56b
cmp byte [edi], 0
jne 0x41f570
lea eax, [ebp + eax - 0x2f1c]
push eax
push ebx
push edi
call fcn.00576360
add esp, 0xc
cmp byte [edi], 0
je 0x41f577
mov byte [ebp - 0x2f29], 1
push dword [ebp - 0x2f30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov al, byte [ebp - 0x2f29]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057372c
leave
ret
Function at 0x41fba4
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x20
mov eax, 0x5b18d8
call fcn.00580e6b
and dword [ebp - 0x14], 0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 0xd], 0
mov esi, 0x677b98
push 0x80
push dword [ebp + 8]
call fcn.0041fe8c
pop ecx
pop ecx
push dword [ebp + 8]
call edi
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x41fc25
push esi
lea eax, [ebp - 0x24]
push eax
call fcn.00408561
and dword [ebp - 4], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call fcn.0040fc53
pop ecx
pop ecx
mov byte [ebp - 4], 1
push dword [eax]
call edi
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004085a2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004085a2
push dword [ebp + 8]
call ebx
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x41fc75
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.00408561
mov dword [ebp - 4], 2
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.0040fc53
pop ecx
pop ecx
mov byte [ebp - 4], 3
push dword [eax]
call ebx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004085a2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004085a2
cmp dword [ebp - 0x18], 0
jne 0x41fcbc
cmp dword [ebp - 0x1c], 0
je 0x41fcbc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xa
jb 0x41fbc9
cmp dword [0x6af38c], 1
jl 0x41fcb3
push str.CLEAN:_Processing_file:_file_failed_to_delete
push str.Helper::virDeleteFile
push 1
call fcn.00532962
add esp, 0xc
mov al, byte [ebp - 0xd]
call fcn.00580f43
ret
cmp dword [0x6af38c], 1
mov byte [ebp - 0xd], 1
jl 0x41fcb3
push str.CLEAN:_Processing_file:_file_deleted_successfully
jmp 0x41fca4

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

Disassembly:
push 8
mov eax, 0x5b40b7
call fcn.00580e6b
push 0x677b98
lea eax, [ebp - 0x14]
push eax
call fcn.00408561
and dword [ebp - 4], 0
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, eax
call fcn.0040fc53
pop ecx
pop ecx
mov byte [ebp - 4], 1
push dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call esi
mov edi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004085a2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004085a2
cmp edi, 0xffffffff
jne 0x41fe84
push dword [ebp + 8]
call esi
mov edi, eax
mov eax, edi
call fcn.00580f43
ret