joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009330
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dbff8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push eax
call fcn.10003660
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
mov edi, dword [eax - 0xc]
cmp edi, 1
jne 0x1000940d
mov ebx, 0x10200620
mov dword [ebp - 0x28], 0x10200620
sub ebx, eax
push edi
push 0x10200620
sar ebx, 1
call fcn.101a8a9d
mov ecx, SysReAllocString
mov dword [ebp - 0x2c], eax
sub ecx, eax
add esp, 8
cmp ecx, edi
jl 0x1000952c
lea esi, [edi + eax]
test esi, esi
js 0x10009536
mov eax, dword [ebp - 0x20]
mov edx, edi
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x100093d5
push esi
lea ecx, [ebp - 0x20]
call fcn.10006970
mov eax, dword [ebp - 0x20]
cmp ebx, edi
ja 0x100093df
lea ecx, [eax + ebx*2]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x2c]
lea eax, [eax + edi*2]
add ecx, ecx
push ecx
push dword [ebp - 0x28]
push ecx
push eax
call fcn.100073f0
mov eax, dword [ebp - 0x20]
add esp, 0x10
cmp esi, dword [eax - 8]
jg 0x1000952c
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x20]
mov word [eax + esi*2], cx
push 0x101fe8a0
push 0x101fe63c
lea ecx, [ebp - 0x20]
call fcn.1000a7c0
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x10009540
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x24]
push dword [ebp - 0x20]
push 0x10200624
push eax
call fcn.10004840
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100094cc
test ebx, ebx
je 0x100094cc
push 0x227
call fcn.100d0345
add esp, 4
mov edi, eax
xor esi, esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
push esi
push eax
push 0x227
push edi
push 0xc
lea eax, [ebp - 0x1c]
mov dword [edi + 4], 0x227
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100094bf
cmp dword [edi + 0x1c], 7
mov eax, 1
cmove esi, eax
push 0x28
push edi
call fcn.100cff81
add esp, 8
jmp 0x100094ce
xor esi, esi
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x24]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100094ef
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1000950e
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
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 - 0x10]
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10004040
push 0x80070057
call fcn.10004040
push 0x80004005
call fcn.10004040
int3
Function at 0x10009d10
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dc1f0
mov eax, dword fs:[0]
push eax
sub esp, 0x128
push esi
push edi
mov eax, dword [0x1025e344]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor edi, edi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], edi
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
js 0x10009e36
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x10009e36
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0xa
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
js 0x10009e36
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x18]
push edx
push 0x1020b9fc
push edi
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x10009e36
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x20]
push edx
push 0xe0
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x10009e36
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x2c]
push edx
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
cmp eax, 1
je 0x10009e36
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x134]
push edx
push 0
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test eax, eax
js 0x10009dc5
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x10009ec8
push eax
push dword [ebp + 8]
call fcn.101a8c54
add esp, 8
test eax, eax
jne 0x10009dc5
mov eax, dword [ebp - 0x1c]
push 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_SHOpenFolderAndSelectItems]
test eax, eax
js 0x10009e36
mov edi, 1
jmp 0x10009e51
push 0xa
push 0
push str.::645FF040_5081_101B_9F08_00AA002F954E
push str.Explorer.exe
push 0x10200674
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10009e79
push dword [ebp - 0x10]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x14]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x130]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x10009e86
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10009e93
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10009eb5
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10004040
int3
Function at 0x10009ee0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dc261
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1025e344]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
xor edi, edi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
je 0x1000a060
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.100041a0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
xor esi, esi
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10009f71
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x10009f71
cmp eax, ebx
mov eax, 1
cmovne esi, eax
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10009f8f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x10009fae
push 1
push 0
push 0
push dword [ebp + 8]
push 0x10200674
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x1000a056
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x10009fc7
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x10009fdd
call fcn.100049d0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x1000a093
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], 1
push dword [eax - 0xc]
push eax
push 9
lea eax, [ebp - 0x10]
push str.__select_
push eax
call fcn.10004210
mov esi, dword [ebp - 0x10]
add esp, 0x14
push 0xa
push 0
push esi
push str.Explorer.exe
push 0x10200674
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x18], eax
mov eax, 1
mov dword [ebp - 0x14], eax
and eax, 0xfffffffe
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000a053
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
test eax, eax
mov eax, 1
cmovne edi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1000a07f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10004040
int3
Function at 0x1000ce90
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dc820
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1025e344]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor edi, edi
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x1000d054
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push 0x101fe8a0
call fcn.10004060
test al, al
jne 0x1000cefe
push edi
push 0x101fe8a0
lea ecx, [ebp - 0x10]
call fcn.10006ab0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.100041a0
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1000efa0
add esp, 8
mov dword [ebp - 0x14], 0
mov esi, esp
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x18], esi
mov ebx, dword [ebp - 0x10]
add ebx, 0xfffffff0
push ebx
call fcn.100041a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 6
mov byte [ebp - 4], 4
call fcn.1000e000
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp + 0x10], 0
je 0x1000cfa0
push 0x10200b04
push 0x1020054c
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1000cf95
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x18], 0
mov eax, 0xf013f
jne 0x1000cfa5
mov eax, 0xf003f
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0
push esi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000cfdd
push dword [ebp + 0xc]
push dword [ebp - 0x14]
cmp dword [ebp + 0x14], eax
je 0x1000cfd0
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x1000cfd6
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
neg edi
sbb edi, edi
inc edi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1000cfeb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 2
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000d009
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x1000d021
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x1000d040
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10004040
int3
Function at 0x1000d0f0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dc861
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x32c], eax
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x1000d2e6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x320], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x320]
push edi
push str.CLSID_sLocalServer32
push eax
call fcn.10004840
mov esi, dword [ebp - 0x320]
lea eax, [ebp - 0x324]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
push eax
push 0x20019
push 0
push esi
push SysReAllocString
call ebx
test eax, eax
je 0x1000d1f7
push edi
lea eax, [ebp - 0x320]
push str.CLSID_sLocalServer
push eax
call fcn.10004840
mov esi, dword [ebp - 0x320]
lea eax, [ebp - 0x324]
add esp, 0xc
push eax
push 0x20019
push 0
push esi
push SysReAllocString
call ebx
test eax, eax
je 0x1000d1f7
push edi
lea eax, [ebp - 0x320]
push str.CLSID_sInprocServer32
push eax
call fcn.10004840
mov esi, dword [ebp - 0x320]
lea eax, [ebp - 0x324]
add esp, 0xc
push eax
push 0x20019
push 0
push esi
push SysReAllocString
call ebx
test eax, eax
jne 0x1000d2ab
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.101a08b0
add esp, 0xc
mov dword [ebp - 0x328], 0x104
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 0
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000d29f
push 0x208
push eax
lea eax, [ebp - 0x31c]
push eax
call fcn.101a08b0
add esp, 0xc
lea eax, [ebp - 0x31c]
push 0x208
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0x31c]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1000d272
sub edx, ecx
lea eax, [ebp - 0x31c]
mov ecx, dword [ebp - 0x32c]
sar edx, 1
push edx
push eax
call fcn.10006ab0
mov ecx, dword [ebp - 0x32c]
call fcn.10009620
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000d2ca
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10004040
int3
Function at 0x1000d670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dc940
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x1025e344]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x10]
lea eax, [ecx + 4]
movq qword [ecx], xmm0
push eax
push 0
push ecx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb esi, esi
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1000d6df
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [esi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000d9a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dca10
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
push ebx
push dword [ebx + 4]
push dword [ebx]
call fcn.10007490
mov eax, dword [ebx]
add esp, 0xc
cmp dword [ebp + 0x14], 0
mov dword [ebx + 4], eax
je 0x1000da30
push 0x10200b04
push 0x1020054c
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1000da25
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x30], 0
mov edi, 0xf013f
jne 0x1000da35
mov edi, 0xf003f
push dword [ebp + 0x14]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x38], 0
push dword [ebp - 0x34]
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x30], esp
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.100041a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 2
mov byte [ebp - 4], 0
call fcn.1000d700
add esp, 0x10
or esi, 0xffffffff
test eax, eax
je 0x1000db4b
lea eax, [ebp - 0x38]
push eax
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000db4b
cmp dword [ebp - 0x2c], eax
jbe 0x1000db4b
mov eax, dword [ebp - 0x28]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100d0345
mov ecx, dword [ebp - 0x28]
mov edi, eax
lea ecx, [ecx*2 + 2]
push ecx
push 0
push edi
call fcn.101a08b0
xor esi, esi
add esp, 0x10
cmp dword [ebp - 0x2c], esi
je 0x1000db3f
nop dword [eax + eax]
mov eax, dword [ebp - 0x28]
push 0
push 0
push 0
inc eax
push 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push edi
push esi
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1000db39
push edi
lea ecx, [ebp - 0x34]
call fcn.10003660
mov byte [ebp - 4], 3
lea eax, [ebp - 0x34]
push eax
mov ecx, ebx
call fcn.1000aef0
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000db39
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, dword [ebp - 0x2c]
jne 0x1000dae0
push edi
call fcn.100d06c7
add esp, 4
or esi, 0xffffffff
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1000db59
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1000db78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
Function at 0x1000eb10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dca10
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
push ebx
push dword [ebx + 4]
push dword [ebx]
call fcn.10007490
mov eax, dword [ebx]
add esp, 0xc
cmp dword [ebp + 0x14], 0
mov dword [ebx + 4], eax
mov dword [ebp - 0x38], 0
je 0x1000eba7
push 0x10200b04
push 0x1020054c
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1000eb9c
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x30], 0
mov edi, 0xf013f
jne 0x1000ebac
mov edi, 0xf003f
push dword [ebp + 0x14]
lea eax, [ebp - 0x2c]
push dword [ebp - 0x34]
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x30], esp
mov dword [ebp - 0x3c], esi
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
push eax
call fcn.100041a0
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 2
mov byte [ebp - 4], 0
call fcn.1000d700
add esp, 0x10
or esi, 0xffffffff
test eax, eax
je 0x1000ecbb
lea eax, [ebp - 0x38]
push eax
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000ecbb
cmp dword [ebp - 0x24], eax
jbe 0x1000ecbb
mov eax, dword [ebp - 0x20]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100d0345
mov ecx, dword [ebp - 0x20]
mov edi, eax
lea ecx, [ecx*2 + 2]
push ecx
push 0
push edi
call fcn.101a08b0
xor esi, esi
add esp, 0x10
cmp dword [ebp - 0x24], esi
je 0x1000ecaf
nop dword [eax + eax]
mov eax, dword [ebp - 0x20]
push 0
push 0
push 0
inc eax
push 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push edi
push esi
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1000eca9
push edi
lea ecx, [ebp - 0x34]
call fcn.10003660
mov byte [ebp - 4], 3
lea eax, [ebp - 0x34]
push eax
mov ecx, ebx
call fcn.1000aef0
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000eca9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, dword [ebp - 0x24]
jne 0x1000ec50
push edi
call fcn.100d06c7
add esp, 4
or esi, 0xffffffff
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1000ecc9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1000ece8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
Function at 0x1000f400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101dcf10
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x1025e344]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0
je 0x1000f48b
push 0x10200b04
push 0x1020054c
mov dword [ebp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1000f480
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp + 0x14], 0
mov eax, 0xf013f
jne 0x1000f490
mov eax, 0xf003f
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000f4dc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x10]
xor edx, edx
test eax, eax
mov eax, dword [ebp - 0x14]
cmovne ecx, edx
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x1000f4dc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1000f501
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret