joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4104b0
Capabilities:
Delete service

Disassembly:
push 0xffffffffffffffff
push 0x47f800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebp
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], ebp
call fcn.0042e840
push 0xf003f
push ebp
push ebp
mov byte [esp + 0x40], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [esp + 0x3c]
mov edi, eax
cmp edi, ebp
je 0x410538
mov eax, dword [ebx]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, eax
test ebp, ebp
je 0x41052d
push ebp
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, dword [esp + 0x14]
mov eax, dword [ebx]
lea ecx, [esp + 0x10]
push eax
push str.RegistryMachineSYSTEMCurrentControlSetServices_s
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.0042e970
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
push eax
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x20]
call fcn.0042ea80
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 0x104]
or ebp, eax
cmp ebp, 1
jne 0x410636
mov ebx, dword [esp + 0x40]
lea edi, [esi + 0xa0]
push ebx
mov ecx, edi
call sub.MFC42u.DLL_CListCtrl::GetItemData
cmp eax, ebp
jne 0x4105a8
dec dword [esi + 0x118]
push ebx
mov ecx, edi
call fcn.0040c010
mov eax, dword [0x513e5c]
cmp eax, 1
jne 0x4105df
mov edx, dword [esi + 0xc0]
push 0
push 0
push 0x1004
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x118]
push ecx
push eax
push 0x49ffc4
jmp 0x41061c
cmp eax, 2
mov eax, dword [esi + 0xc0]
push 0
push 0
push 0x1004
push eax
jne 0x410609
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x118]
push ecx
push eax
push 0x49ffa0
jmp 0x41061c
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x118]
push ecx
push eax
push str.Services:__d__Hidden_Services:__d
lea edx, [esp + 0x1c]
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esi + 0x60]
push eax
call sub.MFC42u.DLL_CWnd::SetWindowTextW
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 0
call fcn.0042e8f0
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x4104ca
Capabilities:
Delete service

Disassembly:
push 0xffffffffffffffff
push 0x47f800
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebp
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], ebp
call fcn.0042e840
push 0xf003f
push ebp
push ebp
mov byte [esp + 0x40], 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [esp + 0x3c]
mov edi, eax
cmp edi, ebp
je 0x410538
mov eax, dword [ebx]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, eax
test ebp, ebp
je 0x41052d
push ebp
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, dword [esp + 0x14]
mov eax, dword [ebx]
lea ecx, [esp + 0x10]
push eax
push str.RegistryMachineSYSTEMCurrentControlSetServices_s
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.0042e970
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
push eax
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x20]
call fcn.0042ea80
mov eax, dword [esi]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call dword [eax + 0x104]
or ebp, eax
cmp ebp, 1
jne 0x410636
mov ebx, dword [esp + 0x40]
lea edi, [esi + 0xa0]
push ebx
mov ecx, edi
call sub.MFC42u.DLL_CListCtrl::GetItemData
cmp eax, ebp
jne 0x4105a8
dec dword [esi + 0x118]
push ebx
mov ecx, edi
call fcn.0040c010
mov eax, dword [0x513e5c]
cmp eax, 1
jne 0x4105df
mov edx, dword [esi + 0xc0]
push 0
push 0
push 0x1004
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x118]
push ecx
push eax
push 0x49ffc4
jmp 0x41061c
cmp eax, 2
mov eax, dword [esi + 0xc0]
push 0
push 0
push 0x1004
push eax
jne 0x410609
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x118]
push ecx
push eax
push 0x49ffa0
jmp 0x41061c
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esi + 0x118]
push ecx
push eax
push str.Services:__d__Hidden_Services:__d
lea edx, [esp + 0x1c]
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esi + 0x60]
push eax
call sub.MFC42u.DLL_CWnd::SetWindowTextW
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 0
call fcn.0042e8f0
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x4125d0
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov dword [edi + 0x104], 1
lea ebx, [edi + 0xec]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi + 0xe8]
test esi, esi
je 0x412600
mov dword [edi + 0xe8], 0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x412638
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xbb8
push esi
call edi
cmp eax, 0x102
jne 0x412631
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x3e8
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
ret
Function at 0x417f70
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x480291
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
xor ebx, ebx
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x10]
mov dword [esp + 0x138], ebx
call sub.MFC42u.DLL_CString::CString_4
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.autocheck_autochk_
mov byte [esp + 0x13c], 1
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ebp, [eax + eax + 2]
lea eax, [esp + 0x14]
push str.RegistryMachineSystemCurrentControlSetControlSession_Manager
push 0x49e1d8
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push str.BootExecute
push 0x49e1d8
push ecx
call sub.MFC42u.DLL_CString::Format
mov ecx, ebp
mov esi, str.autocheck_autochk_
mov edx, ecx
lea edi, [esp + 0x3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 0xc
and ecx, 3
lea eax, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x20]
add ebp, 2
call fcn.0042e880
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 2
push ecx
push 0x20019
lea ecx, [esp + 0x24]
call fcn.0042e920
push eax
lea ecx, [esp + 0x28]
call fcn.0042e930
push eax
call fcn.0041eb90
add esp, 0x10
cmp al, 1
jne 0x41809d
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
push eax
call sub.MFC42u.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push ebp
push eax
push 7
push ecx
call fcn.0041ee00
add esp, 0x14
cmp al, 1
jne 0x418092
mov ebx, 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 1
call fcn.0042e8f0
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x130]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
Function at 0x4180f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4802b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
lea ecx, [esp + 4]
xor esi, esi
call sub.MFC42u.DLL_CString::CString_4
push str.AutoRun
lea eax, [esp + 8]
push 0x49e1d8
push eax
mov dword [esp + 0x34], esi
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push ecx
lea ecx, [esp + 0x10]
call fcn.0042e880
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
push 0x20019
mov byte [esp + 0x30], 1
call fcn.0042e920
push eax
lea ecx, [esp + 0x18]
call fcn.0042e930
push eax
call fcn.0041eb90
add esp, 0x10
cmp al, 1
jne 0x41819f
mov eax, dword [esp + 4]
lea ecx, [esp + 4]
mov eax, dword [eax - 8]
push eax
call sub.MFC42u.DLL_CString::GetBuffer
mov ecx, dword [esp + 8]
push eax
push ecx
call fcn.0041ed80
add esp, 8
cmp al, 1
jne 0x418194
mov esi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.0042e8f0
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x418570
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push esi
lea eax, [esp + 4]
push 0x104
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [esp + 0x210]
lea ecx, [esp + 4]
cmp eax, 1
mov word [esp + 0x20a], si
push ecx
jne 0x4185b7
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, 0x104
sub edx, eax
push edx
push str.GroupPolicyMachineScripts_scripts.ini
jmp 0x4185ca
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, 0x104
sub edx, eax
push edx
push str.GroupPolicyUserScripts_scripts.ini
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncat]
add esp, 0x10
lea ecx, [esp + 4]
push ecx
call fcn.0041f3a0
add esp, 4
cmp al, 1
mov eax, 1
je 0x4185f0
mov eax, esi
pop esi
add esp, 0x208
ret 4
Function at 0x41c930
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
push 0x28
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41c99b
lea ecx, [esp + 0xc]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x41c990
mov eax, dword [esp + 4]
push esi
push esi
lea edx, [esp + 0x10]
push esi
push edx
push esi
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x41c990
mov esi, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x41db60
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
push 0
push 0
push 0x41db50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x41db88
mov dword [esp + 4], 0xffffffff
mov ecx, dword [esp + 4]
push ecx
push 0xf
call fcn.0041e6a0
add esp, 8
test esi, esi
je 0x41dba2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ecx
ret

Function at 0x41f400
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x481298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov esi, dword [esp + 0x20]
push edi
mov byte [esp + 0x13], 0
xor edi, edi
push 0x80
push esi
call ebx
test eax, eax
jne 0x41f447
push 0x64
call ebp
inc edi
cmp edi, 0x10
jl 0x41f431
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, 1
cmp eax, ebx
jne 0x41f46c
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x4000000
push 3
push 0
push 3
push 0x10000
push esi
call edi
cmp eax, 0xffffffff
je 0x41f4a8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::CString_4
push esi
lea eax, [esp + 0x28]
push str.___s
push eax
mov dword [esp + 0x28], 0
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x24]
push eax
call sub.MFC42u.DLL_CString::GetBuffer
mov esi, dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
push eax
push str.xuetrkillfile
push ebx
call esi
test eax, eax
je 0x41f524
push 0
push 0x4000000
push 3
push 0
push 3
push 0x10000
push str..xuetrkillfile
call edi
cmp eax, 0xffffffff
je 0x41f519
push eax
mov byte [esp + 0x17], bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push str.xuetrkillfile
push 2
call esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x421810
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x410
lea eax, [esp]
push ebx
push 0x208
push eax
push 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 4]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x4218e5
push ebp
push esi
push edi
mov word [eax + 2], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
push 0x49e700
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 8
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_rand]
mov ebp, dword [esp + 0x424]
and eax, 3
add ebx, eax
test ebx, ebx
jbe 0x42189e
mov esi, ebp
mov edi, ebx
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x1a
add esi, 2
idiv ecx
add edx, 0x61
dec edi
mov word [esi - 2], dx
jne 0x421883
lea edx, [esp + 0x10]
push ebp
push edx
push 0x4b9224
lea eax, [esp + 0x224]
push 0x208
push eax
mov word [ebp + ebx*2], 0
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea ecx, [esp + 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42187b
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x410
ret
mov al, bl
pop ebx
add esp, 0x410
ret

Function at 0x4218f0
Capabilities:
Delete file
Extract resource via kernel32 functions
Get file attributes
Set file attributes
Write file on windows

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x20c
lea edx, [esp + 4]
push ebx
push ebp
push esi
push edi
push eax
push ecx
push str._s_s.sys
push 0x208
push edx
xor bl, bl
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x421a07
mov eax, dword [esp + 0x228]
push 0x4b9238
test eax, eax
jne 0x421947
push 0xb2
jmp 0x42194c
push 0xa7
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x421a07
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x421a07
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x421a07
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x421a07
push 0
push 0x80
push 1
push 0
push 0
lea eax, [esp + 0x28]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x421a07
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or al, 6
lea edx, [esp + 0x14]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebp
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x4219fc
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x20c
ret
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0x20c
ret
Function at 0x421a20
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x208
lea edx, [esp]
push ebx
push esi
push edi
push eax
push ecx
push str._s_s.sys
push 0x208
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x14
xor esi, esi
lea eax, [esp + 0xc]
push 0x80
push eax
call ebx
test eax, eax
jne 0x421a73
push 0x64
call edi
inc esi
cmp esi, 0x10
jb 0x421a59
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
lea ecx, [esp + 0xc]
push ecx
call ebx
test eax, eax
jne 0x421a90
push 0x64
call edi
inc esi
cmp esi, 0x10
jb 0x421a7b
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x421b20
Capabilities:
Get common file path
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4812db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push ebx
push ebp
push esi
lea ecx, [esp + 0xc]
xor ebx, ebx
call sub.MFC42u.DLL_CString::CString_4
mov dword [esp + 0x220], ebx
call fcn.00421aa0
lea eax, [esp + 0x10]
push 0x104
push eax
push ebx
mov word [0x513ee0], 0x58
mov word [0x513ee2], 0x75
mov word [0x513ee4], 0x65
mov word [0x513ee6], 0x54
mov word [0x513ee8], 0x72
mov word [0x513eea], bx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
mov word [esp + 0x21e], bx
call dword [sym.imp.MSVCRT.dll_wcsrchr]
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x421bfc
mov word [esi], bx
add esi, 2
push 0x2e
push esi
call dword [sym.imp.MSVCRT.dll_wcschr]
add esp, 8
cmp eax, ebx
je 0x421bd1
mov word [eax], bx
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
cmp eax, ebx
jbe 0x421bfc
cmp eax, 0x20
jae 0x421bfc
push 0x20
push esi
push 0x513ee0
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
mov word [0x513f1e], bx
mov ebp, dword [sym.imp.MSVCRT.dll_swprintf]
push 0x513ee0
push str.._s
push 0x513e60
xor esi, esi
call ebp
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push 0x513e60
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x421c41
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x421d25
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
and edx, 0xffff
push edx
push str._c:_
push eax
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x421ca4
lea edx, [esp + 0x10]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, 0x104
lea edx, [esp + 0x14]
sub ecx, eax
push ecx
push str.drivers
push edx
call dword [sym.imp.MSVCRT.dll_wcsncat]
add esp, 0x10
push edi
xor edi, edi
push edi
lea eax, [esp + 0x18]
push 0x513ee0
push eax
call fcn.004218f0
add esp, 0xc
cmp al, 1
jne 0x421d0a
cmp esi, 2
lea edx, [esp + 0x14]
setae cl
push ecx
push 1
push 0x513ee0
push edx
call fcn.004214e0
add esp, 0x10
cmp al, 1
jne 0x421cf3
push 0x513ee0
push str.._s
push 0x513e60
call ebp
add esp, 0xc
mov bl, 1
lea eax, [esp + 0x14]
push 0x513ee0
push eax
call fcn.00421a20
add esp, 8
cmp bl, 1
je 0x421d24
inc esi
mov edi, esi
and edi, 1
jne 0x421d1f
push 0x513ee0
call fcn.00421810
add esp, 4
cmp esi, 0x20
jb 0x421ca7
pop edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x220], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x218]
pop esi
mov al, bl
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x218
ret
Function at 0x421f40
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
push esi
push edi
xor edi, edi
push edi
push 2
mov dword [esp + 0x10], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x421ff0
lea eax, [esp + 0xc]
push ebx
push eax
push esi
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x421fdb
mov ebx, dword [sym.imp.MSVCRT.dll__wcsicmp]
lea ecx, [esp + 0x34]
push str.System
push ecx
call ebx
add esp, 8
test eax, eax
je 0x421fc9
lea edx, [esp + 0x10]
mov ecx, 0x8b
xor eax, eax
lea edi, [esp + 0x10]
push edx
push esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x421fdb
lea eax, [esp + 0x34]
push str.System
push eax
call ebx
add esp, 8
test eax, eax
jne 0x421f92
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xc], 1
mov dword [0x513f30], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop ebx
pop edi
pop esi
add esp, 0x230
ret
mov eax, edi
pop edi
pop esi
add esp, 0x230
ret
Function at 0x4220d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc60
push ebx
lea eax, [esp + 0xc]
push esi
xor ebx, ebx
push eax
push 0x20019
push ebx
xor esi, esi
push str.SYSTEMCurrentControlSetControlhivelist
push 0x80000002
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x20], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4222e5
push ebp
mov ebp, dword [esp + 0xc70]
push edi
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x860]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ebx
lea edx, [esp + 0xa78]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4222cb
mov eax, dword [esp + 0x28]
mov esi, 1
cmp eax, esi
jne 0x4222ad
lea edx, [esp + 0x860]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x4222ad
lea eax, [esp + 0xa68]
push 0x104
lea ecx, [esp + 0x65c]
mov dword [esp + 0x24], esi
mov esi, dword [sym.imp.MSVCRT.dll_wcsncpy]
push eax
push ecx
call esi
lea edx, [esp + 0x86c]
push 0x104
lea eax, [esp + 0x48]
push edx
push eax
mov word [esp + 0x876], bx
mov dword [esp + 0x258], ebx
call esi
mov eax, dword [ebp + 4]
mov ecx, 0x82
lea esi, [esp + 0x670]
lea edi, [esp + 0x25c]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x83
lea esi, [esp + 0x50]
lea edi, [esp + 0x464]
mov word [esp + 0x256], bx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [eax + 4]
mov ecx, dword [0x513f38]
add esp, 0x18
mov edi, eax
cmp esi, ecx
mov al, 1
je 0x42223b
lea ecx, [esi + 0xc]
lea edx, [esp + 0x244]
push ecx
push edx
mov edi, esi
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
setg al
cmp al, bl
je 0x422230
mov esi, dword [esi]
jmp 0x422233
mov esi, dword [esi + 8]
cmp esi, dword [0x513f38]
jne 0x42220c
cmp byte [ebp + 8], bl
je 0x422251
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push edi
push esi
push ecx
jmp 0x4222a6
cmp al, bl
mov dword [esp + 0x24], edi
je 0x42227a
mov edx, dword [ebp + 4]
cmp edi, dword [edx]
jne 0x422271
lea eax, [esp + 0x244]
lea ecx, [esp + 0x34]
push eax
push edi
push esi
push ecx
jmp 0x4222a6
lea ecx, [esp + 0x24]
call fcn.00423980
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x244]
push ecx
lea eax, [edx + 0xc]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jle 0x4222ad
lea edx, [esp + 0x244]
lea eax, [esp + 0x30]
push edx
push edi
push esi
push eax
mov ecx, ebp
call fcn.00423630
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], 0x104
inc eax
mov dword [esp + 0x14], 0x208
mov dword [esp + 0x10], eax
jmp 0x422120
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xc60
ret
mov eax, esi
pop esi
pop ebx
add esp, 0xc60
ret