joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10021520
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1009ba90
push 0x10055f70
mov eax, dword fs:[0]
push eax
add esp, 0xfffffdbc
mov eax, dword [0x100a21a4]
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
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x250], 0
cmp dword [ebp - 0x24c], 0xffffffff
je 0x10021609
mov dword [ebp - 4], 0
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0x24c]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
je 0x100215eb
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100215d0
mov dword [ebp - 0x250], 1
jmp 0x100215eb
lea ecx, [ebp - 0x248]
push ecx
mov edx, dword [ebp - 0x24c]
push edx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x254], eax
jmp 0x100215a6
mov dword [ebp - 4], 0xfffffffe
call fcn.100215f9
jmp 0x10021607
jmp 0x10021613
mov dword [ebp - 0x250], 0
mov eax, dword [ebp - 0x250]
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.10037e81
mov esp, ebp
pop ebp
ret 4

Function at 0x10021660
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b410
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
mov eax, dword [ebp + 0x10]
push eax
call fcn.10002cc0
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
mov edx, dword [ebp + 0xc]
push edx
call fcn.10002cc0
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
mov eax, dword [ebp + 8]
push eax
call fcn.10002cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.1001ed80
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x10020430
call dword [sym.imp.USER32.dll_EnumWindows]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10021704
mov dword [ebp - 0x24], 1
lea ecx, [ebp - 0x1c]
call fcn.1001f210
mov eax, dword [ebp - 0x24]
jmp 0x10021716
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x1c]
call fcn.1001f210
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002b660
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007baf6
mov eax, dword fs:[0]
push eax
sub esp, 0x698
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6a0], ecx
cmp dword [ebp + 8], 0
jne 0x1002b69e
xor eax, eax
jmp 0x1002b87d
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x1002b6af
xor eax, eax
jmp 0x1002b87d
mov edx, dword [ebp + 8]
mov dword [ebp - 0x688], edx
mov eax, dword [ebp - 0x688]
add eax, 2
mov dword [ebp - 0x694], eax
mov ecx, dword [ebp - 0x688]
mov dx, word [ecx]
mov word [ebp - 0x68a], dx
add dword [ebp - 0x688], 2
cmp word [ebp - 0x68a], 0
jne 0x1002b6c7
mov eax, dword [ebp - 0x688]
sub eax, dword [ebp - 0x694]
sar eax, 1
mov dword [ebp - 0x698], eax
mov ecx, dword [ebp - 0x698]
mov dword [ebp - 0x69c], ecx
cmp dword [ebp - 0x69c], 0x104
jl 0x1002b71b
xor eax, eax
jmp 0x1002b87d
push 0x410
push 0
lea edx, [ebp - 0x420]
push edx
call fcn.10054b00
add esp, 0xc
push 0x10087c08
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x260
lea ecx, [ebp - 0x684]
call fcn.100062d0
lea ecx, [ebp - 0x684]
call fcn.10027f50
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebp - 0x684]
call fcn.1002ba30
mov dword [ebp - 0x690], eax
cmp dword [ebp - 0x690], 0
je 0x1002b846
lea ecx, [ebp - 0x684]
call fcn.1002c300
test eax, eax
je 0x1002b7b2
lea ecx, [ebp - 0x684]
call fcn.1002bd20
mov dword [ebp - 0x690], eax
jmp 0x1002b783
push 4
lea ecx, [ebp - 0x424]
call fcn.100062d0
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x684]
call fcn.1002be60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x684]
call fcn.1002c2e0
test eax, eax
je 0x1002b80f
lea ecx, [ebp - 0x424]
call fcn.100034b0
push eax
mov ecx, dword [ebp - 0x6a0]
call fcn.1002b660
lea ecx, [ebp - 0x424]
call fcn.100034b0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x1002b821
lea ecx, [ebp - 0x424]
call fcn.100034b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x684]
call fcn.1002bd20
mov dword [ebp - 0x690], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x424]
call fcn.10003140
jmp 0x1002b783
lea ecx, [ebp - 0x684]
call fcn.1002b190
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x6a4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x684]
call fcn.10027fd0
mov eax, dword [ebp - 0x6a4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret 4
Function at 0x1002b8a0
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007bb2b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x42c], ecx
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.10054b00
add esp, 0xc
push 1
push 0x19
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 4
lea ecx, [ebp - 0x424]
call fcn.100062d0
lea ecx, [ebp - 0x424]
call fcn.10002d70
mov dword [ebp - 4], 0
xor edx, edx
mov byte [ebp - 0x425], dl
lea ecx, [ebp - 0x425]
call fcn.10029640
push eax
push str._s.lnk
lea eax, [ebp - 0x424]
push eax
call fcn.100046a0
add esp, 0xc
lea ecx, [ebp - 0x424]
call fcn.100034b0
push eax
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002b978
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x208
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.10054b00
add esp, 0xc
push 1
push 0x17
lea edx, [ebp - 0x420]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov byte [ebp - 0x426], al
lea ecx, [ebp - 0x426]
call fcn.1002a5f0
push eax
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002b9e5
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp - 0x42c]
call fcn.1002b660
push 0
push 0
push 0x1000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.10003140
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret
Function at 0x1002c6d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x428], 1
mov dword [ebp - 0x41c], 1
mov dword [ebp - 0x418], 0x104
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.10054b00
add esp, 0xc
xor ecx, ecx
mov byte [ebp - 0x41d], cl
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x41c]
push ecx
push str.DisplayIcon
lea ecx, [ebp - 0x41d]
call fcn.1002ab70
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0xea
jne 0x1002c76d
jmp 0x1002c7f6
mov dword [ebp - 0x41c], 1
mov dword [ebp - 0x418], 0x104
push 0x208
push 0
lea edx, [ebp - 0x414]
push edx
call fcn.10054b00
add esp, 0xc
xor eax, eax
mov byte [ebp - 0x41e], al
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x41c]
push eax
push str.UninstallString
lea ecx, [ebp - 0x41e]
call fcn.10029ee0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0xea
jne 0x1002c7e4
jmp 0x1002c7f6
mov dword [ebp - 0x428], 0
xor ecx, ecx
jne 0x1002c6f3
cmp dword [ebp - 0x428], 0
je 0x1002c80a
mov ecx, dword [ebp - 0x42c]
call fcn.1002cba0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret
Function at 0x1002c820
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x218], 4
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x214], 4
xor eax, eax
mov byte [ebp - 0x219], al
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x218]
push eax
push 0x10087c38
lea ecx, [ebp - 0x219]
call fcn.10029e20
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1002c89d
cmp dword [ebp - 0x210], 1
je 0x1002c8a2
jmp 0x1002c9ac
push 0x208
push 0
lea ecx, [ebp - 0x20c]
push ecx
call fcn.10054b00
add esp, 0xc
push 1
push 0x19
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov byte [ebp - 0x21a], al
lea ecx, [ebp - 0x21a]
call fcn.10029690
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str..lnk
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002c94a
mov dword [ebp - 0x210], 0
xor ecx, ecx
mov byte [ebp - 0x21b], cl
push 4
lea edx, [ebp - 0x210]
push edx
push 4
push 0x10087c58
lea ecx, [ebp - 0x21b]
call fcn.1002a040
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
jmp 0x1002c9ac
mov ecx, dword [ebp - 0x220]
call fcn.1002b8a0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x220]
call fcn.1002b200
test eax, eax
je 0x1002c9ac
mov ecx, dword [ebp - 0x220]
call fcn.1002cba0
mov dword [ebp - 0x210], 0
xor ecx, ecx
mov byte [ebp - 0x21c], cl
push 4
lea edx, [ebp - 0x210]
push edx
push 4
push str.shortcut
lea ecx, [ebp - 0x21c]
call fcn.10028770
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret 4
Function at 0x1002c9e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x21c], ecx
mov ecx, dword [ebp - 0x21c]
call fcn.1002aed0
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x210], 0x104
push 0x208
push 0
lea eax, [ebp - 0x20c]
push eax
call fcn.10054b00
add esp, 0xc
xor ecx, ecx
mov byte [ebp - 0x215], cl
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
push ecx
push 0x100879c0
lea ecx, [ebp - 0x215]
call fcn.1002a640
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x220], eax
xor edx, edx
mov byte [ebp - 0x216], dl
lea ecx, [ebp - 0x216]
call fcn.10028dd0
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x1002ca94
jmp 0x1002cabd
cmp dword [ebp - 0x220], 0
jne 0x1002caaa
mov ecx, dword [ebp - 0x21c]
call fcn.1002cba0
jmp 0x1002cabd
mov ecx, dword [ebp - 0x21c]
call fcn.1002cba0
xor ecx, ecx
jne 0x1002ca04
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret
Function at 0x10030600
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2ec], ebx
push edi
test ebx, ebx
je 0x10030804
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10030804
push esi
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.10054b00
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x2d8]
add esp, 0xc
push eax
push 8
push 0
push 0x1008b104
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x100307d9
xor edi, edi
mov dword [ebp - 0x2dc], 0x104
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x1d0]
push eax
push edi
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100307c8
lea eax, [ebp - 0x2e0]
push eax
push 1
push 0
lea eax, [ebp - 0x1d0]
push eax
push dword [ebp - 0x2d8]
call esi
test eax, eax
jne 0x10030792
lea eax, [ebp - 0x2e4]
mov dword [ebp - 0x2e8], 1
push eax
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2e4], 0x104
push eax
lea eax, [ebp - 0x2e8]
push eax
push 0
push 0x1008b140
push dword [ebp - 0x2e0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1003078a
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.10054b00
push 0x64
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.10030820
add esp, 0x18
test eax, eax
je 0x1003078a
cmp byte [ebp - 0x68], 0
je 0x1003074c
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x1003078a
lea ecx, [ebp - 0x68]
mov edx, 0x64
lea esi, [ebp - 0xcc]
mov eax, ecx
sub esi, eax
nop
lea eax, [edx + 0x7fffff9a]
test eax, eax
je 0x10030779
mov al, byte [esi + ecx]
test al, al
je 0x10030779
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10030760
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov byte [eax], 0
push dword [ebp - 0x2e0]
call ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2dc], 0x104
push eax
lea eax, [ebp - 0x1d0]
inc edi
push eax
push edi
push dword [ebp - 0x2d8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x100306a0
push dword [ebp - 0x2d8]
call ebx
mov ebx, dword [ebp - 0x2ec]
mov edi, dword [ebp + 0xc]
cmp byte [ebp - 0x68], 0
pop esi
je 0x10030804
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
call fcn.100318a0
xor ecx, ecx
test eax, eax
pop edi
setns cl
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.10037e81
mov esp, ebp
pop ebp
ret
Function at 0x10030940
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10030abf
cmp dword [ebp + 0xc], 0x20
jb 0x10030abf
push 0x400
lea eax, [ebp - 0x504]
mov dword [ebp - 0x50c], 1
push 0
push eax
mov dword [ebp - 0x508], 0x400
call fcn.10054b00
add esp, 0xc
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x50c]
push eax
push 0x1008b1ac
push str.SoftwareMaster2Liveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x10030abf
lea ecx, [ebp - 0x504]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100309d0
sub ecx, edx
cmp ecx, 0x40
jne 0x10030abf
lea edx, [ecx + 0x40]
push esi
lea ecx, [ebp - 0x84]
lea esi, [ebp - 0x504]
mov eax, ecx
sub esi, eax
lea eax, [edx - 0x60]
test eax, eax
je 0x10030a0c
mov al, byte [esi + ecx]
test al, al
je 0x10030a0c
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x100309f6
test edx, edx
lea eax, [ecx - 1]
lea esi, [ebp - 0x4e4]
mov edx, 0x80
cmovne eax, ecx
lea ecx, [ebp - 0x104]
mov byte [eax], 0
mov eax, ecx
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7fffff7e]
test eax, eax
je 0x10030a49
mov al, byte [esi + ecx]
test al, al
je 0x10030a49
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10030a30
test edx, edx
lea eax, [ecx - 1]
push 0x400
cmovne eax, ecx
push 0
mov byte [eax], 0
lea eax, [ebp - 0x504]
push eax
call fcn.10054b00
push 0x400
lea eax, [ebp - 0x504]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.10030ad0
add esp, 0x18
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
test eax, eax
jne 0x10030abf
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
push edi
call fcn.100318a0
neg eax
pop edi
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.10037e81
mov esp, ebp
pop ebp
ret
Function at 0x10031390
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c10
call fcn.10037ea0
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c10], eax
test eax, eax
je 0x100314fd
cmp dword [ebp + 0xc], 0
je 0x100314fd
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
nop dword [eax]
push esi
push 0x1008b0b4
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.10031910
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100314e0
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x2c0c], 0
lea eax, [ebp - 0x2bfc]
movq qword [ebp - 0x2c08], xmm0
push 0
push eax
mov dword [ebp - 0x2c00], 0
mov dword [ebp - 0x2c08], 0
mov dword [ebp - 0x2c04], 0
call fcn.10054b00
add esp, 0xc
lea eax, [ebp - 0x2c0c]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2bfc]
push eax
push 0xc
lea eax, [ebp - 0x2c08]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100314d5
push 0x3e8
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.10054b00
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x2be4]
lea eax, [ebp - 0x2bfc]
push eax
call fcn.100326a0
add esp, 0x1c
lea eax, [ebp - 0x4ec]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x2c10]
call fcn.100318a0
test eax, eax
mov eax, 1
cmove ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x100314ea
inc esi
cmp esi, 0x10
jl 0x100313d0
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret
Function at 0x10031510
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x100315f8
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10054b00
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test edx, edx
je 0x100315f8
mov ecx, ebx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10031567
sub ecx, esi
mov eax, 0x103
sar ecx, 1
sub eax, ecx
cmp edx, eax
jae 0x100315f8
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10031590
mov eax, dword [0x1008b0a4]
mov esi, ebx
mov dword [edi], eax
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x100315a5
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100315c0
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.10037e81
mov esp, ebp
pop ebp
ret
Function at 0x10031610
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push edi
push 0x80
push 0
push eax
call fcn.10054b00
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.10030ad0
lea ecx, [ebp - 0x188]
mov edi, esi
mov eax, ecx
add esp, 0x18
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1003167a
mov al, byte [edi + ecx]
test al, al
je 0x1003167a
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10031661
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, 0x104
mov byte [eax], 0
lea eax, [ebp - 0x188]
cmp byte [eax], 0
je 0x1003169b
inc eax
sub ecx, 1
jne 0x10031690
mov edx, 0x104
mov edi, ecx
mov eax, edx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x100316f0
lea ecx, [ebp - 0x188]
lea ecx, [ecx + edi]
sub edx, edi
je 0x100316e5
lea edi, [ebp - 0x84]
mov eax, SysReAllocString
sub edi, ecx
push ebx
nop dword [eax + eax]
test eax, eax
je 0x100316e4
mov bl, byte [edi + ecx]
test bl, bl
je 0x100316e4
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x100316d0
pop ebx
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x100
lea eax, [ebp - 0x288]
mov dword [ebp - 0x290], 1
push 0
push eax
call fcn.10054b00
add esp, 0xc
mov dword [ebp - 0x28c], 0x100
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x1008b1ac
push str.SoftwareMaster2Liveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x100317aa
lea eax, [ebp - 0x288]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x10031774
test cl, cl
je 0x10031770
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x10031774
add eax, 2
add esi, 2
test cl, cl
jne 0x10031754
xor eax, eax
jmp 0x10031779
sbb eax, eax
or eax, 1
test eax, eax
je 0x100317aa
lea ecx, [ebp - 0x288]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10031786
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
push 1
push str.mid_old
push str.SoftwareMaster2Liveup
push reloc.OLEAUT32.dll_SysReAllocString
call edi
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100317b3
sub ecx, edx
lea eax, [ebp - 0x188]
push ecx
push eax
push 1
push 0x1008b1ac
push str.SoftwareMaster2Liveup
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10037e81
mov esp, ebp
pop ebp
ret