joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024e2
Capabilities:
Print debug messages
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ff0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x20], ecx
push 0x443884
mov eax, dword [ebp + 0xc]
push eax
call fcn.00419f10
add esp, 8
test eax, eax
jne 0x402521
mov dword [ebp - 0x18], SysReAllocStringLen
jmp 0x4025d6
push 0x443898
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00419f10
add esp, 8
test eax, eax
jne 0x402542
mov dword [ebp - 0x18], SysReAllocStringLen
jmp 0x4025d6
push 0x4438ac
mov edx, dword [ebp + 0xc]
push edx
call fcn.00419f10
add esp, 8
test eax, eax
jne 0x402560
mov dword [ebp - 0x18], reloc.OLEAUT32.dll_SysReAllocString
jmp 0x4025d6
push 0x4438c0
mov eax, dword [ebp + 0xc]
push eax
call fcn.00419f10
add esp, 8
test eax, eax
jne 0x40257e
mov dword [ebp - 0x18], OleUIBusyA
jmp 0x4025d6
push 0x4438cc
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00419f10
add esp, 8
test eax, eax
jne 0x40259c
mov dword [ebp - 0x18], reloc.OLEAUT32.dll_SysReAllocStringLen
jmp 0x4025d6
push 0x4438e4
mov edx, dword [ebp + 0xc]
push edx
call fcn.00419f10
add esp, 8
test eax, eax
jne 0x4025ba
mov dword [ebp - 0x18], OleUIBusyA
jmp 0x4025d6
push 0x4438f8
mov eax, dword [ebp + 0xc]
push eax
call fcn.00419f10
add esp, 8
test eax, eax
jne 0x4025d6
mov dword [ebp - 0x18], reloc.OLEAUT32.dll_SysStringLen
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x402640
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.00415b70
add esp, 4
add eax, 2
push eax
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.00415c76
add esp, 4
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402682
lea ecx, [ebp - 0x1c]
call fcn.00401fc0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
push ecx
push 0x443908
lea edx, [ebp - 0x1c]
push edx
call fcn.004239f9
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00408ae0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00425f4e
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x402697
Capabilities:
Create process on windows
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ff45
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x140
mov dword [ebp - 0x13c], ecx
mov ecx, dword [ebp - 0x13c]
call fcn.00404c38
mov eax, dword [ebp - 0x13c]
cmp dword [eax + 4], 0
je 0x4026d7
jmp 0x4027e9
mov ecx, dword [ebp - 0x13c]
call fcn.00405ef6
push 0
push 0x443910
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0
push 0x443934
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0
push 0x443954
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0
push 0x443974
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0
push 0x44399c
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x12c]
call fcn.00406440
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.004066f1
mov ecx, dword [ebp - 0x13c]
call fcn.00403e02
mov ecx, dword [ebp - 0x13c]
call fcn.00403f53
push 0x4439b0
mov ecx, dword [ebp - 0x13c]
call fcn.004060e8
mov ecx, dword [ebp - 0x13c]
mov dword [ecx + 8], 1
push 0x4439c4
lea edx, [ebp - 0x130]
push edx
mov ecx, dword [0x449e64]
call fcn.00407f98
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x130]
call fcn.00406380
test eax, eax
jne 0x4027b9
push 1
push 0
mov ecx, dword [ebp - 0x13c]
call fcn.0040313c
jmp 0x4027c8
push 0
push 0
mov ecx, dword [ebp - 0x13c]
call fcn.0040313c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x130]
call fcn.00425f4e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.00406461
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
push 0
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x118]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
push 0
push 0x100000
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp - 0x118]
push edx
call fcn.00415c90
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0xa
jge 0x402917
push 0
push 0x4439f4
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [0x449e64]
call fcn.00407f98
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x144], ecx
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x144]
call fcn.00408ae0
push eax
push 0x443a2c
lea edx, [ebp - 0x138]
push edx
mov ecx, dword [0x449e64]
call fcn.00407f98
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x14c], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14c]
call fcn.00408ae0
push eax
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x138]
call fcn.00425f4e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.00425f4e
jmp 0x402922
mov ecx, dword [ebp - 0x13c]
call fcn.00402930
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x403783
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov dword [ebp - 0x34c], ecx
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x403902
push 0x104
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x403902
push 0x104
lea eax, [ebp - 0x348]
push eax
push 0x443ce0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x403902
push 0x443ce8
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x443cf4
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x244], 0x3c
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0x443d00
lea edx, [ebp - 0x348]
mov dword [ebp - 0x234], edx
lea eax, [ebp - 0x208]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x240], 0x40
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea ecx, [ebp - 0x244]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4038e4
push 0x40
mov edx, dword [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 1
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
push 0
lea ecx, [ebp - 0x104]
push ecx
push 1
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, 1
jmp 0x403904
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4054c6
Capabilities:
Delete directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43050c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
mov dword [ebp - 0x144], ecx
mov ecx, dword [ebp - 0x144]
call fcn.00405794
lea ecx, [ebp - 0x128]
call fcn.00423e37
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.00406270
push 0x4446d4
lea ecx, [ebp - 0x128]
call fcn.004062d0
push 0x4446dc
lea ecx, [ebp - 0x128]
call fcn.004062d0
push 0x4446e8
lea ecx, [ebp - 0x128]
call fcn.004062d0
push 0x4446f4
lea ecx, [ebp - 0x128]
call fcn.004062d0
push 0x4446fc
lea ecx, [ebp - 0x128]
call fcn.004062d0
push 0x444708
lea ecx, [ebp - 0x128]
call fcn.004062d0
push 0x444714
lea ecx, [ebp - 0x128]
call fcn.004062d0
push 0x444720
lea ecx, [ebp - 0x128]
call fcn.004062d0
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.00415b10
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [ebp - 0x110]
push edx
lea ecx, [ebp - 0x114]
call fcn.00425fbc
mov byte [ebp - 4], 1
push 3
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x114]
call fcn.004235d9
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x148]
mov dword [ebp - 0x14c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14c]
push edx
lea ecx, [ebp - 0x114]
call fcn.00426087
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x134]
call fcn.00425f4e
mov dword [ebp - 0x130], 0
jmp 0x405636
mov eax, dword [ebp - 0x130]
add eax, 1
mov dword [ebp - 0x130], eax
lea ecx, [ebp - 0x128]
call fcn.00406250
cmp dword [ebp - 0x130], eax
jge 0x4056e1
mov ecx, dword [ebp - 0x130]
push ecx
lea edx, [ebp - 0x138]
push edx
lea ecx, [ebp - 0x128]
call fcn.00406290
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x154]
push ecx
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x13c]
push eax
call fcn.0042617d
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x15c], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x15c]
call fcn.00408ae0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x13c]
call fcn.00425f4e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x138]
call fcn.00425f4e
jmp 0x405627
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x12c]
call fcn.00425cc3
mov byte [ebp - 4], 5
push 0x44472c
lea ecx, [ebp - 0x12c]
call fcn.0042632a
lea ecx, [ebp - 0x12c]
call fcn.00408ae0
push eax
mov ecx, dword [ebp - 0x144]
call fcn.00402c67
push ecx
mov ecx, esp
mov dword [ebp - 0x140], esp
lea eax, [ebp - 0x12c]
push eax
call fcn.00425cc3
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x144]
call fcn.00405d07
lea ecx, [ebp - 0x12c]
call fcn.00408ae0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
call fcn.00425f4e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x114]
call fcn.00425f4e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.00423e6a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x405af3
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4305bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x10]
call fcn.00408f60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401fc0
mov byte [ebp - 4], 1
push 0x104
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0042637e
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004263cd
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00423a5f
push 0x444770
lea ecx, [ebp - 0x14]
call fcn.0042632a
lea ecx, [ebp - 0x10]
call fcn.00409b86
and eax, 0xff
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x405c6a
push 0x444774
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004261e3
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x3c]
call fcn.00408ae0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00425f4e
push 0x444788
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.004261e3
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x44]
call fcn.00408ae0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00425f4e
push 0x44479c
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004261e3
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x4c]
call fcn.00408ae0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00425f4e
push 0x4447b0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.004261e3
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x54], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x54]
call fcn.00408ae0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00425f4e
jmp 0x405ca4
push 0x4447c4
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004261e3
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], edx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x5c]
call fcn.00408ae0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00425f4e
push 0x4447e0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.004261e3
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x64], edx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x64]
call fcn.00408ae0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.00425f4e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00425f4e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00408f7f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x405d07
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4305db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push edi
mov dword [ebp - 0x140], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x13c]
call fcn.00401fc0
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00426087
mov cl, byte [0x449bb0]
mov byte [ebp - 0x114], cl
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x13c]
call fcn.00408ae0
push eax
lea edx, [ebp - 0x114]
push edx
call fcn.004162a0
add esp, 8
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 3
lea eax, [ebp - 0x114]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], 0
mov word [ebp - 0x128], 0x410
mov dword [ebp - 0x126], 0
mov dword [ebp - 0x122], 0
mov dword [ebp - 0x11e], 0
lea ecx, [ebp - 0x138]
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x13c]
call fcn.00425f4e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00425f4e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x40609f
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4060c8
xor eax, eax
jmp 0x4060e2
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8

Function at 0x406142
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
push 0xf01ff
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40616b
xor eax, eax
jmp 0x40618b
lea edx, [ebp - 0x20]
push edx
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 8
Function at 0x406890
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
push esi
push edi
mov dword [ebp - 0x48c], ecx
mov ecx, 0x13
mov esi, 0x444e8c
lea edi, [ebp - 0x270]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [0x444edc]
mov dword [ebp - 0x220], eax
mov ecx, dword [0x444ee0]
mov dword [ebp - 0x21c], ecx
mov edx, dword [0x444ee4]
mov dword [ebp - 0x218], edx
mov al, byte [0x444ee8]
mov byte [ebp - 0x214], al
mov dword [ebp - 0x210], 0x200
mov ecx, dword [0x444eec]
mov dword [ebp - 0x20c], ecx
mov dx, word [0x444ef0]
mov word [ebp - 0x208], dx
mov al, byte [0x444ef2]
mov byte [ebp - 0x206], al
lea ecx, [ebp - 0x274]
push ecx
lea edx, [ebp - 0x270]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov dword [ebp - 0x204], eax
cmp dword [ebp - 0x204], 0
je 0x406941
xor eax, eax
jmp 0x406b1b
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x200]
push ecx
lea edx, [ebp - 0x278]
push edx
push 0
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x274]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x204], eax
cmp dword [ebp - 0x204], 0
je 0x40698f
mov edx, dword [ebp - 0x274]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x406b1b
cmp dword [ebp - 0x210], 0
jbe 0x406b09
mov dword [ebp - 0x484], 0
lea eax, [ebp - 0x200]
mov dword [ebp - 0x27c], eax
lea ecx, [ebp - 0x480]
mov dword [ebp - 0x488], ecx
mov dword [ebp - 0x280], 0
push 0x200
push 0
lea edx, [ebp - 0x480]
push edx
call fcn.00415b10
add esp, 0xc
mov eax, dword [ebp - 0x27c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x406ac5
mov edx, dword [ebp - 0x210]
lea eax, [ebp + edx - 0x200]
cmp dword [ebp - 0x27c], eax
jae 0x406ac5
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 0x27c]
push edx
call fcn.00419f10
add esp, 8
test eax, eax
je 0x406a97
mov eax, dword [ebp - 0x27c]
push eax
mov ecx, dword [ebp - 0x488]
push ecx
call fcn.004162a0
add esp, 8
mov edx, dword [ebp - 0x27c]
push edx
call fcn.00415b70
add esp, 4
mov ecx, dword [ebp - 0x484]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x484], edx
mov eax, dword [ebp - 0x27c]
push eax
call fcn.00415b70
add esp, 4
mov ecx, dword [ebp - 0x27c]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x27c], edx
mov eax, dword [ebp - 0x488]
push eax
call fcn.00415b70
add esp, 4
mov ecx, dword [ebp - 0x488]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x488], edx
jmp 0x406ac0
mov dword [ebp - 0x280], 1
mov eax, dword [ebp - 0x27c]
push eax
call fcn.00415b70
add esp, 4
mov ecx, dword [ebp - 0x27c]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x27c], edx
jmp 0x4069de
cmp dword [ebp - 0x280], 0
je 0x406b09
mov eax, dword [ebp - 0x484]
add eax, 2
mov dword [ebp - 0x484], eax
mov ecx, dword [ebp - 0x484]
push ecx
lea edx, [ebp - 0x480]
push edx
push 7
push 0
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp - 0x274]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x204], eax
mov edx, dword [ebp - 0x274]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4072dd
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43077e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x2c]
call fcn.0040d5e1
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040d6a4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4073d3
lea ecx, [ebp - 0x2c]
call fcn.0040d8c4
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x2c]
call fcn.0040d88b
test eax, eax
je 0x40733e
jmp 0x40731b
lea ecx, [ebp - 0x2c]
call fcn.00406320
test eax, eax
je 0x407390
mov ecx, dword [ebp + 0xc]
and ecx, 1
test ecx, ecx
je 0x40738e
push 1
push 1
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040d993
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x44]
call fcn.00408ae0
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.00406e8c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00425f4e
jmp 0x4073ce
mov ecx, dword [ebp + 0xc]
and ecx, 2
test ecx, ecx
je 0x4073ce
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0040d993
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4c]
call fcn.00408ae0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00425f4e
jmp 0x40731b
lea ecx, [ebp - 0x2c]
call fcn.0040d65a
mov dword [ebp - 0x38], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040d61e
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4077cb
Capabilities:
Unmount volume via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4307d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x20]
call fcn.00401fc0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0x445088
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x18]
call fcn.0040a4f4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x407999
mov ecx, dword [0x4450c0]
mov dword [ebp - 0x2c], ecx
mov dx, word [0x4450c4]
mov word [ebp - 0x28], dx
mov al, byte [0x4450c6]
mov byte [ebp - 0x26], al
push 0x10
lea ecx, [ebp - 0x40]
push ecx
push 0x4450c8
mov edx, dword [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x18]
call fcn.0040a5af
mov al, byte [ebp - 0x40]
mov byte [ebp - 0x28], al
push 0
push 0x20000000
push 3
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x2c]
push eax
push 0x4450d4
call fcn.00401fe0
add esp, 0xc
cmp dword [ebp - 0x30], 0xffffffff
je 0x407920
push 0
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0
push 0
push 0
push 0x90018
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
push 0x4450f0
call fcn.00401fe0
add esp, 8
push 0
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0
push 0
push 0
push 0x90020
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
push 0x445110
call fcn.00401fe0
add esp, 8
push 0
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0
push 0
push 0
push 0x9001c
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea ecx, [ebp - 0x28]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
push 0x445134
call fcn.00401fe0
add esp, 8
lea eax, [ebp - 0x30]
push eax
push 0x445158
call fcn.00407b48
add esp, 8
test eax, eax
je 0x407999
mov dword [ebp - 0x48], 1
push 0
lea ecx, [ebp - 0x4c]
push ecx
push 0
push 0
push 0
push 0
push 0x8000200c
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
push eax
push 0x445164
call fcn.00401fe0
add esp, 8
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x445188
lea ecx, [ebp - 0x20]
call fcn.004260d7
lea ecx, [ebp - 0x20]
call fcn.00408ae0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x18]
call fcn.0040a7b0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x50], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00425f4e
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret