joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008800
Capabilities:
Get disk size

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
push esi
push str.KERNEL32.DLL
xor bl, bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x10008856
push str.GetDiskFreeSpaceExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000884b
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x28]
push ecx
push ebp
call eax
test eax, eax
je 0x1000884b
mov edx, dword [esp + 0x20]
mov dword [edi], edx
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test bl, bl
jne 0x1000888e
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x1000888e
mov ecx, dword [esp + 0xc]
imul ecx, dword [esp + 0x10]
imul ecx, dword [esp + 0x18]
pop esi
pop ebp
mov dword [edi], ecx
mov al, 1
pop ebx
add esp, 0x1c
ret
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x1c
ret
Function at 0x100088a0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000f4f0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1001601c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x34], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov edi, edx
push ebx
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x20], bl
call esi
test eax, eax
jne 0x1000891d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x1000891d
push 8
push 1
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
call esi
test eax, eax
je 0x10008a86
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
push ecx
push ebx
push ebx
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10008a86
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push ebx
push eax
push edi
push ecx
call esi
test eax, eax
je 0x10008a86
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
push ebx
push edx
push eax
push ecx
call esi
test eax, eax
je 0x10008a86
mov ecx, dword [ebp - 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push ebx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x30]
push eax
push 4
push ecx
mov dword [ebp - 0x34], 4
call edi
test eax, eax
je 0x10008a86
mov dword [ebp - 4], ebx
mov edx, dword [ebp - 0x30]
push edx
call fcn.1000e1d2
mov esi, eax
mov eax, dword [ebp - 0x30]
add esp, 4
push eax
push ebx
push esi
call sub.MSVCR80.dll_memset
mov edx, dword [ebp - 0x24]
add esp, 0xc
push ebx
lea ecx, [ebp - 0x30]
push ecx
push esi
push 2
push edx
call edi
test eax, eax
je 0x100089f7
mov eax, dword [ebp - 0x30]
cmp eax, 7
jb 0x100089cf
mov eax, 7
mov dword [ebp - 0x2c], eax
xor ecx, ecx
cmp ecx, eax
jge 0x100089f3
movzx eax, byte [ecx + esi]
cdq
mov edi, 0xa
idiv edi
mov eax, dword [ebp - 0x2c]
add dl, 0x30
mov byte [ebp + ecx - 0x20], dl
add ecx, 1
jmp 0x100089d4
mov byte [ebp + eax - 0x20], bl
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x10008a86
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x10008a94
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x10008aa3
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esi, dword [ebp - 0x38]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1000e1de
mov esp, ebp
pop ebp
ret
Function at 0x10008ca0
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x1000fa72
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x1001601c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x48], eax
lea edx, [esp + 0x10]
mov dword [esp + 0x14], ecx
push edx
mov ecx, 0x100113cb
mov dword [esp + 0x1c], eax
call fcn.1000c260
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x4c], 1
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x34]
push ecx
push 0x10011dcc
lea edi, [esp + 0x18]
call fcn.1000d760
add esp, 8
mov ebx, edi
call fcn.1000c980
mov ebx, eax
call fcn.1000ca10
mov esi, eax
mov eax, dword [esi]
sub eax, 0x10
cmp dword [eax + 0xc], 1
jle 0x10008d31
mov edx, dword [eax + 4]
push edx
push esi
call fcn.1000cb30
mov esi, dword [esi]
mov edi, dword [esp + 0x14]
push esi
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov edx, dword [esp + 0x10]
test edx, edx
mov dword [esp + 0x18], 1
jne 0x10008d54
xor eax, eax
jmp 0x10008d6d
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10008d60
sub eax, esi
js 0x10008dc0
cmp eax, dword [edx - 8]
jg 0x10008dc0
mov dword [edx - 0xc], eax
mov ecx, dword [esp + 0x10]
lea esi, [esp + 0x10]
mov byte [eax + ecx], 0
call fcn.1000c740
mov byte [esp + 0x48], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10008dab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x3c
ret
push 0x80070057
call fcn.10002bb0
int3
Function at 0x100091e0
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1000f961
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1001601c]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1001601c]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x60]
xor esi, esi
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], esi
push eax
mov ecx, str.unknown
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x10
call fcn.1000c260
lea ecx, [esp + 0x18]
push ecx
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push 0x80000002
mov dword [esp + 0x64], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
cmp eax, esi
jne 0x10009299
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x40]
push eax
push esi
push esi
push str.MHz
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
jne 0x1000928a
mov edx, dword [esp + 0x3c]
push edx
push str._d_MHz
lea edi, [esp + 0x1c]
call fcn.1000d760
add esp, 8
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], esi
lea ebx, [esp + 0x14]
call fcn.1000c980
mov ebx, eax
call fcn.1000ca10
mov esi, eax
mov eax, dword [esi]
sub eax, 0x10
mov ebx, 1
cmp dword [eax + 0xc], ebx
jle 0x100092c4
mov ecx, dword [eax + 4]
push ecx
push esi
call fcn.1000cb30
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x58], bl
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x100092e1
xor eax, eax
jmp 0x100092f3
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100092e6
sub eax, esi
js 0x10009371
cmp eax, dword [edx - 8]
jg 0x10009371
mov dword [edx - 0xc], eax
mov edx, dword [esp + 0x14]
lea esi, [esp + 0x14]
mov byte [eax + edx], 0
call fcn.1000c740
lea eax, [esp + 0x20]
push eax
mov ecx, ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10009350
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1000e1de
add esp, 0x48
ret
push 0x80070057
call fcn.10002bb0
int3
Function at 0x10009380
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000f921
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x1001601c]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov eax, dword [0x1001601c]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov edx, dword [0x1001659c]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x1001659c
call eax
add eax, 0x10
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x80], 0
push ecx
mov dword [esp + 0x18], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
shrd edx, eax, 0x14
shr eax, 0x14
push eax
push edx
push 0x10011e38
lea edi, [esp + 0x18]
call fcn.1000d760
mov esi, dword [esp + 0x18]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x10009436
mov ecx, dword [esi - 0xc]
push ecx
mov edx, edi
push edx
call fcn.1000cb30
mov esi, dword [esp + 0xc]
push esi
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
test esi, esi
mov byte [esp + 0x80], 1
jne 0x10009451
xor eax, eax
jmp 0x10009467
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10009456
sub eax, edx
js 0x100094e9
cmp eax, dword [esi - 8]
jg 0x100094e9
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
lea esi, [esp + 0xc]
call fcn.1000c740
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x54]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x54]
mov byte [esp + 0x80], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100094ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.1000e1de
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10002bb0
int3
Function at 0x10009c70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.Usage
mov bl, 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x24]
push eax
call fcn.10009770
add esp, 0x20
test al, al
jne 0x10009cb4
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret
mov esi, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push str.obfuscate
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10009cde
cmp dword [esp + 0x10], eax
jne 0x10009cde
xor bl, bl
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret

Function at 0x10009cf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.Usage
mov bl, 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x24]
push eax
call fcn.10009770
add esp, 0x20
test al, al
jne 0x10009d34
mov al, bl
pop esi
pop ebx
add esp, 0xc
ret
mov esi, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push str.send
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10009d5e
cmp dword [esp + 0x10], eax
jne 0x10009d5e
xor bl, bl
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret
Function at 0x10009d70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x98
mov eax, dword [0x1001601c]
xor eax, esp
mov dword [esp + 0x94], eax
push ebp
push esi
push edi
sub esp, 0x1c
mov esi, ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.Usage
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], 0x80
or ebp, 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x30]
push eax
call fcn.10009770
add esp, 0x20
test al, al
je 0x10009e26
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.1000c260
mov eax, dword [eax]
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x10]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10009e1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
push esi
je 0x10009e41
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.1000e1de
add esp, 0x98
ret
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push str.OptIn
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10009e78
movzx ebp, byte [esp + 0x20]
push esi
call edi
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.1000e1de
add esp, 0x98
ret
Function at 0x10009ea0
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
sub esp, 0x10
push esi
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.Usage
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x28]
push eax
call fcn.10009770
add esp, 0x20
test al, al
je 0x10009f3a
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.1000c260
mov eax, dword [eax]
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10009f2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
push esi
je 0x10009f42
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
add esp, 0x10
ret
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
mov eax, dword [esp + 0x20]
test eax, eax
mov esi, dword [esp + 8]
mov dword [esp + 8], 0
je 0x10009f93
cmp eax, 1
je 0x10009f93
cmp eax, 0xffffffff
jne 0x10009fb9
push str.OptIn
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x10009fae
push str.Demographic
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x10009fb9
push esi
call edi
xor al, al
pop edi
pop esi
add esp, 0x10
ret
push 4
lea ecx, [esp + 0x24]
push ecx
push 4
push 0
push str.OptIn
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10009fb9
push esi
call edi
xor al, al
pop edi
pop esi
add esp, 0x10
ret
push esi
call edi
pop edi
mov al, 1
pop esi
add esp, 0x10
ret
Function at 0x10009fd0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x124
mov eax, dword [0x1001601c]
xor eax, esp
mov dword [esp + 0x120], eax
mov eax, dword [esp + 0x128]
push ebx
push ebp
push esi
push edi
sub esp, 0x1c
mov dword [esp + 0x3c], ecx
xor ebx, ebx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.Usage
mov esi, edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea edx, [esp + 0x2c]
push edx
call fcn.10009770
add esp, 0x20
cmp al, bl
je 0x1000a056
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.Demographic
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
push edi
je 0x1000a060
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1000a0f6
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebp
cmp dword [esi + 0x18], 0x10
mov edi, dword [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], 0x104
mov dword [esp + 0x18], ebx
jb 0x1000a087
mov ecx, dword [esi + 4]
jmp 0x1000a08a
lea ecx, [esi + 4]
lea edx, [esp + 0x10]
push edx
call fcn.1000c260
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x20]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000a0d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call ebp
cmp esi, ebx
jne 0x1000a056
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x28]
call dword [0x1001114c]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
xor eax, eax
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000e1de
add esp, 0x124
ret
Function at 0x1000a430
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
sub esp, 0x1c
xor esi, esi
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Usage
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x2c]
push eax
call fcn.10009770
add esp, 0x20
test al, al
je 0x1000a509
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push esi
push 0xf003f
push esi
push esi
push esi
push str.Demographic
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
push edi
jne 0x1000a503
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebp, esi
mov edi, dword [esp + 0xc]
mov dword [esp + 0xc], esi
je 0x1000a515
mov eax, ebp
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1000a4b0
sub eax, esi
mov esi, eax
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
call fcn.1000c260
mov eax, dword [eax]
add esi, 1
push esi
push ebp
push 1
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000a4fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
push edi
je 0x1000a568
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0xc
ret
mov eax, 0x10011ebc
lea esi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1000a520
lea ecx, [esp + 0x10]
sub eax, esi
push ecx
mov ecx, ebx
mov esi, eax
call fcn.1000c260
mov eax, dword [eax]
add esi, 1
push esi
push 0x10011ebc
push 1
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x1000a4f2
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret