joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7aff90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x7afffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x7b0035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.007afe00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x7affc5
mov edi, 0x7ca8b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x7b0035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.007afe00
add edi, 4
add esp, 0xc
cmp edi, 0x7ca8c0
jb 0x7b0000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x7b0070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.007b6082
mov esi, eax
add esp, 8
test esi, esi
je 0x7b0107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x7b0102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.007b5946
add esp, 8
test eax, eax
je 0x7b00e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x7b00e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.007b5946
add esp, 8
test eax, eax
jne 0x7b00c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x7b0102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x7b0f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x7c59fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x7b1002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.007b4dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x7b1002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.007ac6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.007b520b
push 0x10
call fcn.007b51d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x7b0fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.007a11c0
jmp 0x7b0fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.007b0b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x7b0ff0
mov ecx, edi
call fcn.007a12c0
push edi
call fcn.007b51c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x7b1021
inc ebx
cmp ebx, 0x20
jb 0x7b0f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x7b2250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7c6808
push 0x7b6288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x7b2329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x7b2329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.007b51d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x7b2329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x7b2329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x7b232c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.007b2351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x7b3000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x7b3131
push esi
call fcn.007b6145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.007a5080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x7b3131
push 0
push ebp
call fcn.007a53a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.007a5260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x7b308b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.007a52f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x7b3121
push 0x7cb918
push edi
call fcn.007b43f0
push eax
push ebx
push esi
call fcn.007b2f60
push 0x7cb8f8
push edi
call fcn.007b43f0
push eax
push ebx
push esi
call fcn.007b2f60
push 0x7cb8d8
push edi
call fcn.007b43f0
push eax
push ebx
push esi
call fcn.007b2f60
push 0x7cb8c0
push edi
call fcn.007b43f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.007b2f60
push 0x7cb8a0
push edi
call fcn.007b43f0
push eax
push ebx
push esi
call fcn.007b2f60
push 0x7cb888
push edi
call fcn.007b43f0
push eax
push ebx
push esi
call fcn.007b2f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x7b41b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.007b4140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.007b4140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.007b4140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.007b4140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x7b4bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x7b4c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x7c687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7b4c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x7b4c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401ae0
Capabilities:
Hide graphical window

Disassembly:
push ebp
xor ecx, ecx
xor edx, edx
mov ebp, esp
push esi
push ebx
sub esp, 0x24c
mov dword [ebp + edx - 0x220], ecx
add edx, 4
cmp edx, 0x18
jb 0x401aef
mov edx, dword [0x41d03c]
lea esi, [ebp - 0x208]
mov ebx, dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [ebp - 0x224], 1
mov dword [ebp - 0x218], esi
mov dword [esp + 0x28], edx
mov dword [ebp - 0x214], 0x100
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x7d2
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], 0
mov dword [esp + 4], str.SysTabControl32
mov dword [esp], 0
call ebx
sub esp, 0x30
mov dword [0x41d004], eax
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, dword [0x41d03c]
sub esp, 8
mov dword [esp + 8], esi
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], 0xfa
mov dword [esp], eax
call dword [sym.imp.user32.dll_LoadStringW]
lea eax, [ebp - 0x224]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [0x41d004]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x133e
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
mov eax, dword [0x41d03c]
sub esp, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [0x41d004]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50000002
mov dword [esp + 8], 0
mov dword [esp + 4], 0x410020
mov dword [esp], 0x200
call ebx
mov dword [0x41d008], eax
sub esp, 0x30
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401c70
Capabilities:
Hide graphical window

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x44
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov edx, dword [edi + 8]
mov ebx, dword [edi + 0xc]
cmp eax, 5
je 0x401cc0
cmp eax, 0x4e
je 0x401e18
cmp eax, 1
je 0x401d78
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
jmp dword [sym.imp.user32.dll_DefWindowProcW]
mov eax, dword [section..bss]
movzx edi, bx
mov esi, dword [sym.imp.user32.dll_MoveWindow]
shr ebx, 0x10
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x28
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call esi
lea eax, [ebx - 0x2b]
sub ebx, 0x57
sub esp, 0x18
mov dword [esp + 0x10], eax
lea eax, [edi - 6]
sub edi, 0x1a
mov dword [esp + 0xc], eax
mov eax, dword [0x41d004]
mov dword [esp + 0x14], 1
mov dword [esp + 8], 0x28
mov dword [esp + 4], 3
mov dword [esp], eax
call esi
mov eax, dword [0x41d008]
sub esp, 0x18
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x22
mov dword [esp + 4], 0xa
mov dword [esp], eax
call esi
sub esp, 0x18
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret 0x10
mov eax, 0x740053
mov edx, 0x740061
mov dword [esp + 0x20], esi
mov dword [ebp - 0x20], eax
xor eax, eax
mov word [ebp - 0x14], ax
mov eax, dword [0x41d03c]
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x28], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 0x630069
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [section..bss], eax
sub esp, 0x30
mov eax, esi
call sym._CreateTabCtrl
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret 0x10
cmp edx, 0x7d2
jne 0x401d63
cmp dword [ebx + 8], 0xfffffdd9
jne 0x401d63
mov eax, dword [0x41d008]
mov dword [esp + 4], 0
mov ebx, dword [sym.imp.user32.dll_ShowWindow]
mov dword [esp], eax
call ebx
mov eax, dword [0x41d004]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x130b
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
test eax, eax
jne 0x401d63
mov eax, dword [0x41d008]
mov dword [esp + 4], 5
mov dword [esp], eax
call ebx
sub esp, 8
jmp 0x401d63
Function at 0x403480
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ecx, 0x32
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x4d4]
mov esi, 0x40e0c0
push ebx
mov ebx, eax
sub esp, 0x504
mov dword [ebp - 0x4dc], edx
mov edx, dword [sym.imp.user32.dll_LoadStringW]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x40c]
mov dword [esp], eax
lea edi, [ebp - 0x20c]
mov dword [ebp - 0x4d8], edx
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], esi
mov dword [esp + 4], 1
call edx
mov edx, dword [ebp - 0x4d8]
sub esp, 0x10
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edi
mov dword [esp + 4], 2
mov dword [esp], ebx
call edx
sub esp, 0x10
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x80000000
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], 0
call dword [sym.imp.user32.dll_CreateWindowExW]
sub esp, 0x30
test eax, eax
je 0x4036b8
mov esi, eax
mov dword [esp + 4], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp], 0x50000000
call dword [sym.imp.comctl32.dll_CreateStatusWindowW]
lea ecx, [ebp - 0x4d4]
sub esp, 0x10
mov dword [0x41d028], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ebx
mov dword [esp], esi
mov dword [esp + 0x30], 0x14
mov dword [esp + 0x2c], 0x10
mov dword [esp + 0x28], 0x10
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x20], 0x10
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0x50000000
call sym._CreateToolbarEx_52
mov edi, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x34
mov dword [0x41d02c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x6f
mov dword [esp + 4], 0x401
mov dword [esp], eax
call edi
mov eax, dword [0x41d02c]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x71
mov dword [esp + 4], 0x401
mov dword [esp], eax
call edi
mov eax, dword [0x41d02c]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x74
mov dword [esp + 4], 0x401
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x4dc]
mov dword [0x41d020], esi
sub esp, 0x10
mov dword [0x41d03c], ebx
mov dword [esp], esi
mov dword [0x41d040], 1
mov dword [0x41d044], 5
mov dword [esp + 4], eax
call dword [sym.imp.user32.dll_ShowWindow]
sub esp, 8
mov dword [esp], esi
call dword [sym.imp.user32.dll_UpdateWindow]
mov eax, 1
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4036d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push ebx
sub esp, 0xc
cmp dword [ebp + 0xc], 0x111
je 0x4036f0
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret 0x10
cmp word [ebp + 0x10], 1
movzx edx, word [ebp + 0x10]
je 0x403728
cmp edx, 2
jne 0x4036e3
mov dword [esp + 4], 2
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.user32.dll_EndDialog]
mov eax, 1
sub esp, 8
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret 0x10
mov edx, 0x41d048
mov ecx, pe_nt_image_headers32
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x3e9
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
mov ebx, eax
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
sub esp, 4
test eax, eax
jle 0x40377b
mov dword [esp + 8], 0x100
mov dword [esp + 4], 0x41d048
mov dword [esp], ebx
call dword [sym.imp.user32.dll_GetWindowTextW]
sub esp, 0xc
mov dword [esp + 4], 1
jmp 0x403708
Function at 0x405460
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x460
mov eax, dword [0x41d674]
mov dword [ebp - 0x448], 5
mov dword [esp + 4], str.AppID_
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x434], 0x100
mov dword [ebp - 0x44c], 0xffff0001
mov dword [esp + 8], eax
mov dword [esp], 0x80000000
call esi
sub esp, 0xc
test eax, eax
jne 0x40564c
mov ebx, 0xffffffff
lea edi, [ebp - 0x40c]
lea esi, [esi]
mov eax, dword [ebp - 0x45c]
add ebx, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x405610
lea eax, [ebp - 0x458]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call esi
sub esp, 0xc
test eax, eax
jne 0x4054d0
lea eax, [ebp - 0x454]
lea edx, [ebp - 0x20c]
mov dword [ebp - 0x454], 0x200
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x458]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov ecx, eax
sub esp, 0x10
mov eax, edi
test ecx, ecx
jne 0x405570
lea edx, [ebp - 0x20c]
cmp word [ebp - 0x20c], 0
mov eax, edx
cmove eax, edi
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x458]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 4], 0x60c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov byte [eax], 2
mov edx, eax
xor eax, eax
lea esi, [esi]
movzx ecx, word [edi + eax]
mov word [edx + eax + 2], cx
add eax, 2
test cx, cx
jne 0x4055a8
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [edx + eax + 0x202], cx
add eax, 2
test cx, cx
jne 0x4055c0
lea eax, [ebp - 0x450]
mov dword [ebp - 0x424], edx
mov dword [esp + 0xc], eax
mov eax, dword [0x41d030]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x4054d0
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x41d674]
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [0x41d030]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405660
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x460
mov eax, dword [0x41d67c]
mov dword [ebp - 0x448], 5
mov dword [esp + 4], str.Interface_
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyW]
mov dword [ebp - 0x450], eax
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x434], 0x100
mov dword [ebp - 0x44c], 0xffff0001
mov dword [esp + 8], eax
mov dword [esp], 0x80000000
call esi
sub esp, 0xc
test eax, eax
jne 0x40584c
mov ebx, 0xffffffff
lea edi, [ebp - 0x40c]
lea esi, [esi]
mov eax, dword [ebp - 0x45c]
add ebx, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyW]
sub esp, 0x10
test eax, eax
jne 0x405810
lea eax, [ebp - 0x458]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call esi
sub esp, 0xc
test eax, eax
jne 0x4056d0
lea eax, [ebp - 0x454]
lea edx, [ebp - 0x20c]
mov dword [ebp - 0x454], 0x200
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x458]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueW]
mov ecx, eax
sub esp, 0x10
mov eax, edi
test ecx, ecx
jne 0x405770
lea edx, [ebp - 0x20c]
cmp word [ebp - 0x20c], 0
mov eax, edx
cmove eax, edi
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x458]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
mov dword [esp + 4], 0x60c
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov byte [eax], 0xa
mov edx, eax
xor eax, eax
lea esi, [esi]
movzx ecx, word [edi + eax]
mov word [edx + eax + 2], cx
add eax, 2
test cx, cx
jne 0x4057a8
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [edi + eax]
mov word [edx + eax + 0x202], cx
add eax, 2
test cx, cx
jne 0x4057c0
lea eax, [ebp - 0x450]
mov dword [ebp - 0x424], edx
mov dword [esp + 0xc], eax
mov eax, dword [0x41d030]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
jmp 0x4056d0
mov eax, dword [ebp - 0x45c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [0x41d67c]
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [0x41d030]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret