joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466aa0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004669b8
mov esi, dword [ebx + 0x38]
test esi, esi
je 0x466b6e
cmp esi, 0xffffffff
je 0x466b6e
push 0
push esi
call sub.KERNEL32.DLL_GetFileSize
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebx + 0x2c], 0
jne 0x466adf
cmp dword [ebx + 0x28], 0
je 0x466b22
mov eax, dword [ebx + 0x3c]
mov edx, dword [eax]
call dword [edx]
add eax, dword [ebp - 0x10]
adc edx, dword [ebp - 0xc]
cmp edx, dword [ebx + 0x2c]
jne 0x466afa
cmp eax, dword [ebx + 0x28]
jbe 0x466b22
jmp 0x466afc
jle 0x466b22
push 0
push 0
push 0
mov eax, dword [ebx + 0x38]
push eax
call sub.KERNEL32.DLL_SetFilePointer
mov eax, dword [ebx + 0x38]
push eax
call sub.KERNEL32.DLL_SetEndOfFile
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
jne 0x466b30
cmp dword [ebp - 0x10], 0
ja 0x466b49
jmp 0x466b32
jg 0x466b49
push 0
lea eax, [ebp - 4]
push eax
push 2
mov eax, dword [0x51bf4c]
push eax
mov eax, dword [ebx + 0x38]
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 4]
push eax
mov esi, dword [ebx + 0x3c]
mov eax, esi
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [ebx + 0x38]
push eax
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebx + 0x3c]
call fcn.00446910
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x466e00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x466edf
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
je 0x466e36
lea edx, [ebp - 8]
mov eax, esi
call fcn.00404ed8
jmp 0x466e46
lea eax, [ebp - 8]
mov edx, dword [0x51bd60]
mov edx, dword [edx]
call fcn.0040713c
push edi
push dword [ebp - 8]
mov eax, dword [ebp - 8]
call fcn.0040720c
mov edx, 0x19
sub edx, eax
inc edx
lea ecx, [ebp - 0x10]
mov eax, dword [0x51bbcc]
movzx eax, word [eax]
call fcn.00407f8c
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00407d1c
mov eax, dword [ebx + 0x50]
call fcn.0040720c
test eax, eax
jle 0x466e91
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x50]
call fcn.00407c3c
push dword [ebp - 4]
push dword [ebp - 0xc]
push 0x466efc
push 0x466efc
lea eax, [ebp - 4]
mov edx, 4
call fcn.00407d1c
mov eax, dword [ebp - 4]
call fcn.00407a40
push eax
call sub.KERNEL32.DLL_OutputDebugStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466ee6
lea eax, [ebp - 0x10]
call fcn.00406d14
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406d74
ret
Function at 0x474a3c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
mov dword [ebp - 8], eax
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, esi
call fcn.00407a40
push eax
call sub.KERNEL32.DLL_ExpandEnvironmentStringsW
mov ebx, eax
test ebx, ebx
ja 0x474a6d
call fcn.004237f0
mov edi, ebx
add edi, edi
push edi
call fcn.0040a5ec
pop ecx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x474ad3
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, edi
mov eax, dword [ebp - 8]
call fcn.0040d5bc
push ebx
mov eax, dword [ebp - 8]
push eax
mov eax, esi
call fcn.00407a40
push eax
call sub.KERNEL32.DLL_ExpandEnvironmentStringsW
mov ebx, eax
test ebx, ebx
ja 0x474ab0
call fcn.004237f0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407aa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474ada
mov eax, dword [ebp - 8]
push eax
call fcn.0040a5fc
pop ecx
ret

Function at 0x474ae4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov eax, edi
mov edx, dword [0x51bec4]
mov edx, dword [edx]
call fcn.004070f4
push 0
push 0
mov eax, esi
call fcn.00407a40
push eax
call sub.KERNEL32.DLL_GetEnvironmentVariableW
mov ebx, eax
test ebx, ebx
jbe 0x474b6c
mov eax, ebx
add eax, eax
push eax
call fcn.0040a5ec
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x474b65
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov eax, dword [ebp - 4]
push eax
mov eax, esi
call fcn.00407a40
push eax
call sub.KERNEL32.DLL_GetEnvironmentVariableW
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00407aa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474b6c
mov eax, dword [ebp - 4]
push eax
call fcn.0040a5fc
pop ecx
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x474f88
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x210], ebx
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x475027
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20a]
mov edx, 0x20a
call fcn.0040d5bc
cmp bl, 1
cmc
sbb eax, eax
push eax
push esi
lea eax, [ebp - 0x20a]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathW
test eax, eax
je 0x474fff
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407ae4
mov eax, dword [ebp - 0x210]
mov edx, edi
call fcn.00422dec
jmp 0x47500e
mov eax, edi
mov edx, dword [0x51bec4]
mov edx, dword [edx]
call fcn.004070f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47502e
lea eax, [ebp - 0x210]
call fcn.00406d14
ret
Function at 0x475594
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov eax, edi
mov edx, dword [0x51bec4]
mov edx, dword [edx]
call fcn.004070f4
push esi
call sub.user32.dll_GetWindowTextLengthW
mov ebx, eax
test ebx, ebx
jle 0x47561f
lea eax, [ebx + 1]
add eax, eax
push eax
call fcn.0040a5ec
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x475618
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 1]
mov edx, eax
add edx, edx
mov eax, dword [ebp - 4]
call fcn.0040d5bc
inc ebx
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
call sub.user32.dll_GetWindowTextW
test eax, eax
jle 0x475600
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00407aa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47561f
mov eax, dword [ebp - 4]
push eax
call fcn.0040a5fc
pop ecx
ret
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x47a4cc
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47a687
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040713c
mov eax, dword [ebp - 4]
call fcn.00479e1c
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x47a51e
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00407e4c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0047b108
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x47a5fd
xor eax, eax
push ebp
push 0x47a5f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0047a0bc
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0047a6bc
test al, al
je 0x47a5d4
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00406e9c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x47a5d4
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00407a40
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0047a01c
test al, al
je 0x47a5ce
mov eax, dword [ebp - 8]
call fcn.00407a40
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00407aa8
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0047a4cc
dec ebx
cmp ebx, 0xffffffff
jne 0x47a57d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a5fd
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0047a0bc
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [0x5220e8], 0
je 0x47a63d
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.00407a40
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0047a0a8
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0047a01c
mov ebx, eax
jmp 0x47a664
mov eax, dword [ebp - 4]
call fcn.00407a40
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0047a0a8
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0047a01c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a68e
lea eax, [ebp - 0x3c]
call fcn.00406d14
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406d74
ret
Function at 0x47afe4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.00479e34
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00407a40
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.0047a01c
test al, al
jne 0x47b04c
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x51bd48]
mov dl, 1
mov eax, dword [0x478c08]
call fcn.00421c28
call fcn.00406448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x47b058
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00407a40
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.0047a01c
test al, al
jne 0x47b0b9
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x51c028]
mov dl, 1
mov eax, dword [0x478c08]
call fcn.00421c28
call fcn.00406448
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00479e64
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47b6b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x47b7e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.0047a0bc
xor eax, eax
push ebp
push 0x47b7bb
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0047a6bc
test al, al
je 0x47b79f
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0047b598
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406e9c
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x47b79f
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407a40
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0047a01c
test al, al
je 0x47b79b
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00407a40
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.00407aa8
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.0047b598
pop ecx
inc edi
dec ebx
jne 0x47b743
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b7c2
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.0047a0bc
ret
Function at 0x47b7f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x47ba3e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 8]
call fcn.0047a0bc
xor eax, eax
push ebp
push 0x47ba14
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0047a6bc
test al, al
je 0x47b9f8
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406e9c
mov eax, dword [ebp - 0x44]
dec eax
test eax, eax
jl 0x47b9f8
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00407a40
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0047a01c
test al, al
je 0x47b9ec
mov eax, dword [ebp - 4]
call fcn.00407a40
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.00407aa8
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0047b108
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x47b9ec
xor eax, eax
push ebp
push 0x47b9e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0xc]
call fcn.0047a0bc
xor eax, eax
push ebp
push 0x47b9c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00407a40
mov edx, eax
lea eax, [ebp - 0x4c]
call fcn.00407aa8
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0047a0c0
mov eax, dword [ebp - 4]
call fcn.00407a40
mov edx, eax
lea eax, [ebp - 0x50]
call fcn.00407aa8
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0047b108
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x47b9a4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.0047b6b8
pop ecx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
call fcn.0047b7f0
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b9ab
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x47b87b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ba1b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x18]
call fcn.0047a0bc
ret
Function at 0x47dd50
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47ded6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040713c
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0047d944
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x47dda5
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00407e4c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0047e2cc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x47de85
xor eax, eax
push ebp
push 0x47de7e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0047a0bc
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.0047dee4
test al, al
je 0x47de5c
mov edx, dword [ebp - 0x34]
inc edx
lea eax, [ebp - 8]
call fcn.00407bbc
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x47de5c
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00407a40
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
jne 0x47de56
mov eax, dword [ebp - 8]
call fcn.00407a40
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00407aa8
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.0047dd50
test al, al
jne 0x47de56
xor ebx, ebx
call fcn.0040653c
jmp 0x47deb3
dec ebx
cmp ebx, 0xffffffff
jne 0x47de02
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47de85
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.0047a0bc
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
push 0
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.0047a0a8
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 0x18]
and ecx, 0x300
mov edx, dword [ebp - 4]
call fcn.00475180
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0047d678
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47dedd
lea eax, [ebp - 0x3c]
call fcn.00406d14
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406d74
ret
Function at 0x47e134
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47e286
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.0047dee4
test al, al
jne 0x47e1da
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.0047d69c
push dword [ebp - 0x30]
push 0x47e2a0
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [0x51c028]
call fcn.0040aa54
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0x11
lea edx, [ebp - 0x40]
xor ecx, ecx
pop eax
call fcn.0041d304
push dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00407d1c
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [0x478c08]
call fcn.00421a24
call fcn.00406448
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406e9c
mov esi, dword [ebp - 0x20]
dec esi
test esi, esi
jl 0x47e25b
inc esi
xor edi, edi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407a40
push eax
push edi
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegEnumValueW
mov edx, eax
mov eax, ebx
call fcn.0047d678
test al, al
jne 0x47e23a
cmp dword [ebx + 0x1c], 0x103
jne 0x47e23a
xor edx, edx
mov eax, ebx
call fcn.0047d678
jmp 0x47e25b
mov eax, dword [ebp - 4]
call fcn.00407a40
mov edx, eax
lea eax, [ebp - 0x44]
call fcn.00407aa8
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc edi
dec esi
jne 0x47e1f3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e28d
lea eax, [ebp - 0x44]
call fcn.00406d14
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.00406d74
lea eax, [ebp - 4]
call fcn.00406d14
ret
Function at 0x47eaec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x47ed01
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0047a0bc
xor eax, eax
push ebp
push 0x47ecca
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 8]
call fcn.0047dee4
test al, al
jne 0x47ebbf
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 8]
call fcn.0047d69c
push dword [ebp - 0x38]
push 0x47ed1c
lea eax, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x40]
mov eax, dword [0x51bd48]
call fcn.0040aa54
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0x11
lea edx, [ebp - 0x48]
xor ecx, ecx
pop eax
call fcn.0041d304
push dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00407d1c
mov ecx, dword [ebp - 0x34]
mov dl, 1
mov eax, dword [0x478c08]
call fcn.00421a24
call fcn.00406448
mov eax, dword [0x51bec4]
mov eax, dword [eax]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0047ea1c
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406e9c
mov esi, dword [ebp - 0x28]
dec esi
test esi, esi
jl 0x47ecb1
inc esi
xor edi, edi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00407a40
push eax
push edi
push ebx
call sub.advapi32.dll_RegEnumValueW
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.0047d678
test al, al
jne 0x47ec86
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 8]
call fcn.0047d69c
push dword [ebp - 0x50]
push 0x47ed1c
lea eax, [ebp - 0x54]
push eax
lea edx, [ebp - 0x58]
mov eax, dword [0x51bd48]
call fcn.0040aa54
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0x11
lea edx, [ebp - 0x48]
xor ecx, ecx
pop eax
call fcn.0041d304
push dword [ebp - 0x54]
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.00407d1c
mov ecx, dword [ebp - 0x4c]
mov dl, 1
mov eax, dword [0x478c08]
call fcn.00421a24
call fcn.00406448
mov eax, dword [ebp - 4]
call fcn.00407a40
mov edx, eax
lea eax, [ebp - 0x5c]
call fcn.00407aa8
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0047ea1c
inc edi
dec esi
jne 0x47ebf1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ecd1
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0047a0bc
ret