joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bd1e
Capabilities:
Enumerate files on windows

Disassembly:
push 0xeac
mov eax, 0x589028
call fcn.0042d04f
mov dword [ebp - 0xeb8], ecx
xor ebx, ebx
mov esi, ebx
mov dword [ebp - 0xeb4], ebx
mov dword [ebp - 0xeb0], esi
mov dword [ebp - 0xeac], ebx
mov edi, 0x208
mov dword [ebp - 4], ebx
push edi
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.0055d8e0
push edi
lea eax, [ebp - 0xc40]
push ebx
push eax
call fcn.0055d8e0
add esp, 0x18
push 0x5945b4
call fcn.00403feb
mov ecx, eax
call fcn.0042e207
push eax
lea eax, [ebp - 0x628]
push 0x58f21c
push eax
call fcn.00404cc4
push edi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0055d8e0
push edi
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.0055d8e0
push edi
lea eax, [ebp - 0x830]
push ebx
push eax
call fcn.0055d8e0
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x830]
push str._s.
push eax
call fcn.00404cc4
add esp, 0x40
lea eax, [ebp - 0xea8]
push eax
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40bf59
push 0x2e
pop esi
lea eax, [ebp - 0xea8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40bf4d
cmp word [ebp - 0xe7c], si
je 0x40bdfa
cmp word [ebp - 0xe7a], 0
je 0x40bdfa
cmp word [ebp - 0xe7a], si
jne 0x40be36
cmp word [ebp - 0xe78], 0
je 0x40bdfa
test byte [ebp - 0xea8], 0x10
jne 0x40bdfa
lea eax, [ebp - 0xe7c]
push eax
lea eax, [ebp - 0x218]
push 0x58f24c
push eax
call fcn.00404cc4
lea eax, [ebp - 0x218]
push eax
call fcn.0056f19a
lea eax, [ebp - 0x218]
push str..wncl
push eax
call fcn.0055d651
add esp, 0x18
test eax, eax
je 0x40bdfa
push 0x208
lea eax, [ebp - 0xa38]
push ebx
push eax
call fcn.0055d8e0
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004360ab
lea eax, [ebp - 0xa38]
push str..wncl
push eax
call fcn.00568b1b
add esp, 0x1c
test eax, eax
jne 0x40bdfa
lea eax, [ebp - 0xe7c]
push eax
lea eax, [ebp - 0x420]
push 0x58f24c
push eax
call fcn.00404cc4
xor eax, eax
mov dword [ebp - 0xc44], 7
add esp, 0xc
mov dword [ebp - 0xc48], ebx
mov word [ebp - 0xc58], ax
cmp word [ebp - 0x420], ax
jne 0x40bf01
mov eax, ebx
jmp 0x40bf0e
lea eax, [ebp - 0x420]
push eax
call fcn.00564eaf
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xc58]
call fcn.0040475c
lea eax, [ebp - 0xc58]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xeb4]
call fcn.0040c57d
push ebx
push 1
lea ecx, [ebp - 0xc58]
mov byte [ebp - 4], bl
call fcn.004044a8
jmp 0x40bdfa
mov esi, dword [ebp - 0xeb0]
mov ebx, dword [ebp - 0xeb4]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp ebx, esi
je 0x40bfa7
mov edi, dword [ebp - 0xeb8]
cmp dword [ebx + 0x14], 8
jb 0x40bf74
mov eax, dword [ebx]
jmp 0x40bf76
mov eax, ebx
push eax
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0xc40]
push 0x58f14c
push eax
call fcn.00404cc4
add esp, 0x10
lea eax, [ebp - 0xc40]
mov ecx, edi
push eax
call fcn.0040b44b
add ebx, 0x18
cmp ebx, esi
jne 0x40bf6a
lea ecx, [ebp - 0xeb4]
call fcn.0040509f
call fcn.0042cff9
ret
Function at 0x40cc02
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x60c254]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], eax
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov esi, eax
test esi, esi
je 0x40cc86
push edi
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x40cc4b
push edi
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov esi, eax
test esi, esi
jne 0x40cc4f
xor eax, eax
jmp 0x40cc85
push 0x28
dec esi
lea eax, [ebp - 0x2c]
push eax
push dword [edi + esi*4]
call sub.IMM32.dll_ImmGetIMEFileNameW
test eax, eax
je 0x40cc73
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40cc79
test esi, esi
jne 0x40cc4f
jmp 0x40cc7c
mov ebx, dword [edi + esi*4]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret 4
Function at 0x40cfd9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x60c254]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
push str.Control_PanelInput_MethodHot_Keys_
lea eax, [ebp - 0x194]
push 0x58f14c
push eax
call fcn.00404cc4
add esp, 0x10
lea eax, [ebp - 0x198]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x194]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40d038
xor eax, eax
jmp 0x40d0cd
lea eax, [ebp - 0x1a0]
mov dword [ebp - 0x1a4], 3
push eax
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x1a0], 4
push eax
lea eax, [ebp - 0x1a4]
push eax
push 0
push str.Key_Modifiers
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40d086
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d031
mov eax, dword [ebp - 0x19c]
mov ecx, 0xc004
and eax, ecx
cmp eax, ecx
sete al
mov byte [edi], al
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x1a4]
push eax
push 0
push str.Virtual_Key
push dword [ebp - 0x198]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d078
mov ax, word [ebp - 0x19c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret 8

Function at 0x40f34d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
movzx ecx, word [ebp + 8]
push esi
push 0x100
mov esi, 0x61abd8
push esi
push 2
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov eax, esi
pop esi
pop ebp
ret
Function at 0x40f9bc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x600
mov eax, dword [0x60c254]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x600], ecx
lea ecx, [ebp - 0x5f4]
push esi
call fcn.0040ea44
mov eax, dword [0x61a584]
xor esi, esi
mov dword [0x61a588], eax
lea eax, [ebp - 0x5f8]
push eax
push 9
push esi
push str.SOFTWAREMicrosoftCTFTIP
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40faa7
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0055d8e0
add esp, 0xc
jmp 0x40fa7e
lea eax, [ebp - 0x5fc]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x5f8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40fa7d
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x5f4]
push eax
call fcn.00564e8d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x600]
lea eax, [ebp - 0x5f4]
push eax
push dword [ebp - 0x5fc]
call fcn.00410796
push dword [ebp - 0x5fc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x5f8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x40fa26
push dword [ebp - 0x5f8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret

Function at 0x40fab6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
lea eax, [esi + 2]
mov dword [ebp - 8], 1
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x64
push eax
push 0
push str.CLSID
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x40faf4
xor eax, eax
jmp 0x40fb47
lea eax, [ebp - 4]
mov dword [ebp - 8], 1
push eax
lea eax, [esi + 0x66]
mov dword [ebp - 4], 0x64
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.Profile
push dword [ebp + 0xc]
call edi
test eax, eax
jne 0x40faf0
push 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0xcc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.KeyboardLayout
push dword [ebp + 0xc]
call edi
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40fb4f
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
mov eax, dword [0x60c254]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2ec], ecx
lea ecx, [ebp - 0x2e0]
push ecx
push str.34745C63_B2F0_4784_8B67_5E12C8701A31
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40fc5e
mov eax, dword [esi]
push edi
push 0x10
mov dword [esi + 4], eax
xor edi, edi
lea eax, [esi + 0xc]
push edi
push eax
call fcn.0056f3b8
movzx eax, ax
push 0x208
mov dword [ebp - 0x2e8], eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0055d8e0
add esp, 0x18
jmp 0x40fc2b
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x2e0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40fc2a
lea ecx, [ebp - 0x2dc]
call fcn.0040e7c1
mov eax, dword [ebp - 0x2e8]
push dword [ebp - 0x2e4]
mov ecx, dword [ebp - 0x2ec]
mov word [ebp - 0x2dc], ax
lea eax, [ebp - 0x2dc]
push eax
call fcn.0040fab6
test eax, eax
je 0x40fc1e
lea eax, [ebp - 0x2dc]
mov ecx, esi
push eax
call fcn.00411d08
push dword [ebp - 0x2e4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x2e0]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x40fbbe
push dword [ebp - 0x2e0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
jmp 0x40fc73
mov eax, dword [esi + 4]
mov ecx, 0xd0
sub eax, dword [esi]
cdq
idiv ecx
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret 8

Function at 0x40fc84
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push str.34745C63_B2F0_4784_8B67_5E12C8701A31
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40fd33
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
push eax
inc ebx
mov dword [ebp + 0xc], 0x64
lea eax, [esi + 2]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 4]
push eax
push 0
push str.Default
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40fd33
lea eax, [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
lea eax, [esi + 0x66]
mov dword [ebp + 0xc], 0x64
push eax
lea eax, [ebp - 4]
push eax
push 0
push str.Profile
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40fd33
push 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
lea eax, [esi + 0xcc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push str.KeyboardLayout
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40fd33
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40fd35
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40fd3e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e8
mov eax, dword [0x60c254]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x61a4a4]
push ebx
mov dword [0x61a4a8], eax
xor ebx, ebx
lea eax, [ebp - 0x2e0]
mov dword [ebp - 0x2e8], ecx
push eax
push 9
push ebx
push str.SoftwareMicrosoftCTFAssemblies
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40fe5d
push edi
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0055d8e0
add esp, 0xc
lea eax, [ebp - 0x20c]
mov edi, ebx
push 0x104
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x40fe40
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x2e0]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40fe32
lea ecx, [ebp - 0x2dc]
call fcn.0040e7c1
push 0x10
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0056f3b8
mov ecx, dword [ebp - 0x2e8]
add esp, 0xc
mov word [ebp - 0x2dc], ax
lea eax, [ebp - 0x2dc]
push dword [ebp - 0x2e4]
push eax
call fcn.0040fc84
test eax, eax
je 0x40fe26
lea eax, [ebp - 0x2dc]
mov ecx, 0x61a4a4
push eax
call fcn.00411d08
push dword [ebp - 0x2e4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x20c]
inc edi
push eax
push edi
push dword [ebp - 0x2e0]
call ebx
test eax, eax
je 0x40fdb6
push dword [ebp - 0x2e0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret
Function at 0x40fe6c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6f4
mov eax, dword [0x60c254]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x6e8]
mov dword [ebp - 0x6f4], ecx
push eax
push 9
push 0
push str.SYSTEMCurrentControlSetControlKeyboard_Layouts
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410011
push ebx
push edi
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0055d8e0
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
push 0x104
push eax
push ebx
push dword [ebp - 0x6e8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x410007
push esi
lea eax, [ebp - 0x6e4]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x6e8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40ffe4
lea ecx, [ebp - 0x6e0]
call fcn.0040e8fd
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x6de]
push eax
call fcn.00564e8d
push 0x10
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0056f3b8
add esp, 0x14
mov dword [ebp - 0x6f0], 1
mov esi, eax
mov dword [ebp - 0x6ec], 0x190
lea eax, [ebp - 0x6ec]
mov word [ebp - 0x6e0], si
push eax
lea eax, [ebp - 0x6be]
push eax
lea eax, [ebp - 0x6f0]
push eax
push 0
push str.IME_File
push dword [ebp - 0x6e4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
shr esi, 0x10
mov eax, 0xe000
cmp si, ax
jbe 0x40ffa8
mov ecx, dword [ebp - 0x6f4]
lea eax, [ebp - 0x6e0]
push eax
push dword [ebp - 0x6e4]
call fcn.0040ed74
jmp 0x40ffdc
lea eax, [ebp - 0x52e]
push eax
push str.Layout_Text
push str.Layout_Display_Name
push dword [ebp - 0x6e4]
call fcn.0040f5ff
add esp, 0x10
test eax, eax
je 0x40ffdc
lea eax, [ebp - 0x6e0]
mov ecx, 0x61a48c
push eax
call fcn.00411dfc
push dword [ebp - 0x6e4]
call edi
push 0x104
lea eax, [ebp - 0x20c]
inc ebx
push eax
push ebx
push dword [ebp - 0x6e8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x40fee9
pop esi
push dword [ebp - 0x6e8]
call edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret
Function at 0x41001f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x840
mov eax, 0x589282
call fcn.0042d04f
lea ebx, [ecx + 0x110]
mov esi, 0x208
mov eax, dword [ebx]
xor edi, edi
push esi
mov dword [ebx + 4], eax
lea eax, [ebp - 0x628]
push edi
push eax
call fcn.0055d8e0
push esi
lea eax, [ebp - 0x830]
push edi
push eax
call fcn.0055d8e0
add esp, 0x18
call fcn.0040bc4a
push eax
lea ecx, [ebp - 0x84c]
call fcn.0040b0af
mov dword [ebp - 4], edi
call fcn.0040bc4a
push eax
lea ecx, [ebp - 0x848]
call fcn.0040b0af
push str.Keyboard_LayoutPreload
mov esi, 0x58f24c
mov byte [ebp - 4], 1
lea eax, [ebp - 0x628]
push esi
push eax
call fcn.00404cc4
push str.SystemCurrentControlSetControlKeyboard_Layouts_
lea eax, [ebp - 0x830]
push esi
push eax
call fcn.00404cc4
add esp, 0x18
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x628]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4101f3
push 0x208
xor esi, esi
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.0055d8e0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x838], 1
push esi
push eax
mov dword [ebp - 0x83c], 0x104
call fcn.0055d8e0
add esp, 0x18
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x838]
push eax
push esi
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x420]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x4101cd
push 0x10
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0056f3b8
add esp, 0xc
mov dword [ebp - 0x844], eax
lea eax, [ebp - 0x844]
mov ecx, ebx
push eax
call fcn.0041ebf0
push 0x208
lea eax, [ebp - 0x420]
inc edi
push 0
push eax
call fcn.0055d8e0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x838], 1
push 0
push eax
mov dword [ebp - 0x83c], 0x104
call fcn.0055d8e0
add esp, 0x18
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x838]
push eax
push 0
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x420]
push eax
push edi
push dword [ebp - 0x840]
mov dword [ebp - 0x834], 0x104
call esi
test eax, eax
je 0x410142
push dword [ebp - 0x840]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x848]
lea ecx, [ecx - 0x10]
call fcn.0040c1a5
mov ecx, dword [ebp - 0x84c]
lea ecx, [ecx - 0x10]
call fcn.0040c1a5
call fcn.0042cff9
ret
Function at 0x410215
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x240
mov eax, 0x5892b5
call fcn.0042d04f
mov edi, ecx
mov ecx, 0x61a59c
call fcn.00411ce5
lea eax, [ebp - 0x248]
xor ebx, ebx
push eax
push 9
push ebx
push str.SoftwareMicrosoftCTFSortOrderAssemblyItem
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410360
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0055d8e0
add esp, 0xc
lea eax, [ebp - 0x218]
mov esi, ebx
push 0x104
push eax
push ebx
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410331
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x410317
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x238]
push eax
call fcn.00564e8d
pop ecx
pop ecx
push dword [ebp - 0x24c]
lea eax, [ebp - 0x244]
mov ecx, edi
push eax
call fcn.0040fb4f
test eax, eax
je 0x410300
lea eax, [ebp - 0x244]
mov ecx, 0x61a59c
push eax
call fcn.00411d73
push dword [ebp - 0x24c]
call ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.00411afd
push 0x104
lea eax, [ebp - 0x218]
inc esi
push eax
push esi
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x41028f
push dword [ebp - 0x248]
call ebx
mov eax, dword [0x61a5a0]
sub eax, dword [0x61a59c]
push 0x2c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x410360
mov dword [edi + 0x5fc], 1
call fcn.0042cff9
ret
Function at 0x410366
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x554
mov eax, dword [0x60c254]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x61a578]
push ebx
push edi
mov dword [0x61a57c], eax
xor edi, edi
lea eax, [ebp - 0x544]
mov ebx, ecx
push eax
push 9
push edi
push str.Control_PanelInternationalUser_Profile
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410593
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x54c]
mov dword [ebp - 0x54c], edi
push eax
push edi
push edi
push edi
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x4103e3
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410593
push esi
mov esi, edi
mov dword [ebp - 0x540], 0x208
cmp dword [ebp - 0x54c], esi
jbe 0x410565
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x540]
mov dword [ebp - 0x540], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x548]
push eax
push 0xf003f
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410558
lea eax, [ebp - 0x20c]
push eax
push 0x61a4b0
call fcn.00564e8d
pop ecx
pop ecx
xor ecx, ecx
lea eax, [ebp - 0x540]
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
jmp 0x410515
lea ecx, [ebp - 0x53c]
call fcn.0040eaf9
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x554], 4
push eax
lea eax, [ebp - 0x53c]
push eax
call fcn.00564e8d
pop ecx
pop ecx
lea eax, [ebp - 0x550]
mov dword [ebp - 0x550], 4
push eax
lea eax, [ebp - 0x3ac]
push eax
lea eax, [ebp - 0x554]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x548]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4104ff
lea eax, [ebp - 0x53c]
mov ecx, ebx
push eax
call fcn.00410924
test eax, eax
je 0x4104ff
lea eax, [ebp - 0x53c]
mov ecx, 0x61a578
push eax
call fcn.00412025
inc edi
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x548]
mov dword [ebp - 0x540], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x41047a
push dword [ebp - 0x548]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x61a57c]
mov ecx, 0x330
sub eax, dword [0x61a578]
cdq
idiv ecx
test eax, eax
jne 0x410565
xor edi, edi
inc esi
cmp esi, dword [ebp - 0x54c]
jb 0x4103fc
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x61a57c]
mov ecx, 0x330
sub eax, dword [0x61a578]
cdq
idiv ecx
pop esi
test eax, eax
je 0x410593
mov dword [ebx + 0x5f8], 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret