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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e8
mov eax, dword [0x5b9460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5babcc]
push ebx
mov dword [0x5babd0], eax
lea eax, [ebp - 0x2e0]
push eax
push 9
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftCTFAssemblies
push SysReAllocStringLen
mov dword [ebp - 0x2e8], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a283
push edi
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.00531ed0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
mov edi, ebx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x40a266
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 0x40a258
lea ecx, [ebp - 0x2dc]
call fcn.004080c8
push 0x10
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005360d8
mov ecx, dword [ebp - 0x2e8]
add esp, 0xc
mov word [ebp - 0x2dc], ax
push dword [ebp - 0x2e4]
lea eax, [ebp - 0x2dc]
push eax
call fcn.0040a0a5
test eax, eax
je 0x40a24c
lea eax, [ebp - 0x2dc]
push eax
mov ecx, 0x5babcc
call fcn.0040c4c7
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 0x40a1dc
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.00532a3d
leave
ret
Function at 0x40a290
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6f4
mov eax, dword [0x5b9460]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x6e8]
push eax
push 9
push 0
push str.SYSTEMCurrentControlSetControlKeyboard_Layouts
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6f4], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a43c
push ebx
push edi
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00531ed0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
xor ebx, ebx
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 0x40a432
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 0x40a40f
lea ecx, [ebp - 0x6e0]
call fcn.00404194
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x6de]
push eax
call fcn.005325d3
push 0x10
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005360d8
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x6f0]
push eax
lea eax, [ebp - 0x6be]
push eax
lea eax, [ebp - 0x6ec]
push eax
push 0
push str.IME_File
push dword [ebp - 0x6e4]
mov word [ebp - 0x6e0], si
mov dword [ebp - 0x6ec], 1
mov dword [ebp - 0x6f0], 0x190
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
shr esi, 0x10
mov eax, 0xe000
cmp si, ax
jbe 0x40a3d3
mov ecx, dword [ebp - 0x6f4]
lea eax, [ebp - 0x6e0]
push eax
push dword [ebp - 0x6e4]
call fcn.00408669
jmp 0x40a407
lea eax, [ebp - 0x52e]
push eax
push str.Layout_Text
push str.Layout_Display_Name
push dword [ebp - 0x6e4]
call fcn.00409521
add esp, 0x10
test eax, eax
je 0x40a407
lea eax, [ebp - 0x6e0]
push eax
mov ecx, 0x5babb4
call fcn.0040c5b4
push dword [ebp - 0x6e4]
call edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
inc ebx
push ebx
push dword [ebp - 0x6e8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x40a314
pop esi
push dword [ebp - 0x6e8]
call edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00532a3d
leave
ret
Function at 0x40a448
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x840
mov eax, 0x54de52
call fcn.00532b0c
lea ebx, [ecx + 0x110]
mov esi, 0x206
mov eax, dword [ebx]
mov dword [ebx + 4], eax
xor eax, eax
push esi
mov word [ebp - 0x628], ax
xor edi, edi
lea eax, [ebp - 0x626]
push edi
push eax
call fcn.00531ed0
xor eax, eax
push esi
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push edi
push eax
call fcn.00531ed0
add esp, 0x18
call fcn.0041ab0f
push eax
lea ecx, [ebp - 0x84c]
call fcn.00404ccb
mov dword [ebp - 4], edi
call fcn.0041ab0f
push eax
lea ecx, [ebp - 0x844]
call fcn.00404ccb
push str.Keyboard_LayoutPreload
mov esi, 0x560274
lea eax, [ebp - 0x628]
push esi
push eax
mov byte [ebp - 4], 1
call fcn.00532980
push str.SystemCurrentControlSetControlKeyboard_Layouts_
lea eax, [ebp - 0x830]
push esi
push eax
call fcn.00532980
add esp, 0x18
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x628]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40a64e
push 0x206
mov word [ebp - 0x420], ax
xor esi, esi
lea eax, [ebp - 0x41e]
push esi
push eax
call fcn.00531ed0
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
mov dword [ebp - 0x838], 1
mov dword [ebp - 0x83c], 0x104
call fcn.00531ed0
add esp, 0x18
lea eax, [ebp - 0x840]
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 0x40a628
push 0x10
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005360d8
add esp, 0xc
mov dword [ebp - 0x848], eax
lea eax, [ebp - 0x848]
push eax
mov ecx, ebx
call fcn.0040f37f
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
inc edi
call fcn.00531ed0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov dword [ebp - 0x838], 1
mov dword [ebp - 0x83c], 0x104
call fcn.00531ed0
add esp, 0x18
lea eax, [ebp - 0x840]
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 - 0x834]
mov dword [ebp - 0x840], 0x104
call esi
test eax, eax
je 0x40a58d
push dword [ebp - 0x834]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x844]
lea ecx, [ecx - 0x10]
call fcn.004058df
mov ecx, dword [ebp - 0x84c]
lea ecx, [ecx - 0x10]
call fcn.004058df
call fcn.00532abb
ret
Function at 0x40a670
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x240
mov eax, 0x54de85
call fcn.00532b0c
mov edi, ecx
mov ecx, 0x5bacc4
call fcn.0040c480
lea eax, [ebp - 0x248]
push eax
push 9
xor ebx, ebx
push ebx
push str.SoftwareMicrosoftCTFSortOrderAssemblyItem
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a7c2
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.00531ed0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push ebx
push dword [ebp - 0x248]
mov esi, ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a793
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 0x40a779
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.005325d3
pop ecx
pop ecx
push dword [ebp - 0x24c]
lea eax, [ebp - 0x244]
push eax
mov ecx, edi
call fcn.00409f69
test eax, eax
je 0x40a762
lea eax, [ebp - 0x244]
push eax
mov ecx, 0x5bacc4
call fcn.0040c52b
push dword [ebp - 0x24c]
call ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.0040c3fc
push 0x104
lea eax, [ebp - 0x218]
push eax
inc esi
push esi
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x40a6f1
push dword [ebp - 0x248]
call ebx
mov eax, dword [0x5bacc8]
sub eax, dword [0x5bacc4]
push 0x2c
cdq
pop ecx
idiv ecx
test eax, eax
je 0x40a7c2
mov dword [edi + 0x5fc], 1
call fcn.00532abb
ret
Function at 0x40a7c8
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x554
mov eax, dword [0x5b9460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5baca0]
push ebx
push edi
mov dword [0x5baca4], eax
lea eax, [ebp - 0x544]
push eax
push 9
xor edi, edi
push edi
push str.Control_PanelInternationalUser_Profile
push SysReAllocStringLen
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a9f5
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x54c]
push eax
push edi
push edi
push edi
push dword [ebp - 0x544]
mov dword [ebp - 0x54c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40a845
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a9f5
push esi
mov esi, edi
mov dword [ebp - 0x540], 0x208
cmp dword [ebp - 0x54c], esi
jbe 0x40a9c7
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x544]
mov dword [ebp - 0x540], 0x208
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 0x40a9ba
lea eax, [ebp - 0x20c]
push eax
push 0x5babd8
call fcn.005325d3
pop ecx
pop ecx
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
jmp 0x40a977
lea ecx, [ebp - 0x53c]
call fcn.0040835d
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x53c]
push eax
mov dword [ebp - 0x554], 4
call fcn.005325d3
pop ecx
pop ecx
lea eax, [ebp - 0x550]
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]
mov dword [ebp - 0x550], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a961
lea eax, [ebp - 0x53c]
push eax
mov ecx, ebx
call fcn.0040b00b
test eax, eax
je 0x40a961
lea eax, [ebp - 0x53c]
push eax
mov ecx, 0x5baca0
call fcn.0040c808
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 0x40a8dc
push dword [ebp - 0x548]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x5baca4]
sub eax, dword [0x5baca0]
mov ecx, 0x330
cdq
idiv ecx
test eax, eax
jne 0x40a9c7
xor edi, edi
inc esi
cmp esi, dword [ebp - 0x54c]
jb 0x40a85e
push dword [ebp - 0x544]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x5baca4]
sub eax, dword [0x5baca0]
mov ecx, 0x330
cdq
idiv ecx
pop esi
test eax, eax
je 0x40a9f5
mov dword [ebx + 0x5f8], 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00532a3d
leave
ret
Function at 0x40aa03
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5b9460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor esi, esi
lea eax, [ebp - 0x20a]
push esi
push eax
mov dword [ebp - 0x214], ecx
call fcn.00531ed0
add esp, 0xc
jmp 0x40aaa0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40aa9f
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebx + 0x64]
push eax
call fcn.005325d3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x214]
push ebx
push dword [ebp - 0x210]
call fcn.0040aacb
test eax, eax
je 0x40aa93
push ebx
mov ecx, 0x5bacac
call fcn.0040c6ab
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x40aa47
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00532a3d
leave
ret 8

Function at 0x40aacb
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5b9460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, 0xc8
push eax
lea esi, [edi + 0xc8]
push 0
push esi
mov dword [ebp - 0x214], 1
mov dword [ebp - 0x210], eax
call fcn.00531ed0
push esi
push str.Description
push str.Display_Description
push ebx
call fcn.00409521
push 0x28
pop eax
push eax
lea esi, [edi + 0x190]
push 0
push esi
mov dword [ebp - 0x210], eax
call fcn.00531ed0
add esp, 0x28
lea eax, [ebp - 0x210]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x214]
push eax
push 0
push str.SubstituteLayout
push ebx
call esi
push 4
pop eax
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x210]
push eax
lea eax, [edi + 0x3e4]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push str.IconIndex
push ebx
call esi
mov eax, 0x208
push eax
add edi, 0x1b8
push 0
push edi
mov dword [ebp - 0x210], eax
call fcn.00531ed0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push edi
lea eax, [ebp - 0x214]
push eax
push 0
push str.IconFile
push ebx
call esi
test eax, eax
je 0x40abc2
xor eax, eax
jmp 0x40abea
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x40abe7
lea ecx, [ebp - 0x20c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00532a3d
leave
ret 8
Function at 0x40abfb
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5b9460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
movzx eax, word [ebx]
mov esi, dword [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 0x20c]
push str.0x_08x
xor edi, edi
push eax
mov dword [ebp - 0x210], edi
call fcn.00532980
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call esi
test eax, eax
jne 0x40ad0f
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.34745C63_B2F0_4784_8B67_5E12C8701A31
push dword [ebp - 0x210]
call esi
test eax, eax
je 0x40ac9c
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ad0f
lea esi, [ebx + 2]
push esi
call fcn.005325f3
pop ecx
add eax, eax
push eax
push esi
push 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.Default
push dword [ebp - 0x214]
call edi
lea esi, [ebx + 0x66]
push esi
call fcn.005325f3
pop ecx
add eax, eax
push eax
push esi
push 1
push 0
push str.Profile
push dword [ebp - 0x214]
call edi
push 4
lea eax, [ebx + 0xcc]
push eax
push 4
push 0
push str.KeyboardLayout
push dword [ebp - 0x214]
call edi
push dword [ebp - 0x214]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x210]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00532a3d
leave
ret 8
Function at 0x40ad20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5b9460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
push edi
lea eax, [ebp - 0x30]
push eax
xor esi, esi
lea eax, [ebp - 0x1c]
push eax
push esi
mov edi, 0xf003f
push edi
push esi
push esi
push esi
lea eax, [ebx + 0xc]
push eax
push ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ae67
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push edi
push esi
push esi
push esi
push str.34745C63_B2F0_4784_8B67_5E12C8701A31
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40ad93
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ae67
mov eax, esi
mov esi, dword [ebx]
cmp esi, dword [ebx + 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], eax
je 0x40ae5d
lea edi, [esi + 2]
mov dword [ebp - 0x28], edi
push eax
lea eax, [ebp - 0x18]
push str._08x
push eax
call fcn.00532980
add esp, 0xc
inc dword [ebp - 0x24]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
xor eax, eax
push eax
push 0xf003f
push eax
push eax
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ae5d
push edi
call fcn.005325f3
pop ecx
lea edi, [eax + eax]
push edi
push dword [ebp - 0x28]
push 1
push 0
push 0x560c1c
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov edi, dword [ebp - 0x28]
lea eax, [edi + 0x64]
push eax
push 1
push 0
push str.Profile
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [edi + 0xca]
push eax
push 4
push 0
push str.KeyboardLayout
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x20]
call ebx
mov eax, 0xd0
add edi, eax
add esi, eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], edi
cmp esi, dword [eax + 4]
mov eax, dword [ebp - 0x24]
jne 0x40adaf
push dword [ebp - 0x2c]
call ebx
push dword [ebp - 0x1c]
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00532a3d
leave
ret 8
Function at 0x40ae78
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5b9460]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x218], ecx
lea ecx, [ebp - 0x210]
push ecx
push 9
xor edi, edi
push edi
push str.LanguageProfile
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40af9f
push ebx
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00531ed0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push edi
push dword [ebp - 0x210]
mov ebx, edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40af96
lea eax, [esi + 0x3c0]
lea ecx, [ebp - 0x20c]
push ecx
push eax
call fcn.005325d3
push 0x10
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005360d8
mov ecx, 0xffff
add esp, 0x14
mov word [esi + 0x3de], ax
cmp ax, cx
je 0x40af6e
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40af6e
mov ecx, dword [ebp - 0x218]
push esi
push dword [ebp - 0x214]
call fcn.0040aa03
push dword [ebp - 0x214]
call edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
inc ebx
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
lea eax, [esi + 0x3c0]
je 0x40af05
push dword [ebp - 0x210]
call edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00532a3d
leave
ret 8
Function at 0x40b0f6
Capabilities:
Set registry value

Disassembly:
push 0x78
mov eax, 0x54debd
call fcn.00532b0c
mov ebx, ecx
movzx esi, word [ebp + 8]
lea eax, [ebx + 0x464]
cmp eax, 0x55fd6c
je 0x40b2f8
push 7
xor eax, eax
pop ecx
mov word [ebp - 0x30], ax
lea edi, [ebp - 0x2e]
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push str._08x
push eax
call fcn.00532980
add esp, 0xc
lea eax, [ebp - 0x78]
push esi
push eax
mov ecx, ebx
call fcn.0040926b
lea eax, [ebp - 0x80]
push eax
mov esi, 0xf003f
push esi
xor edi, edi
push edi
push str.SoftwareMicrosoftCTFDirectSwitchHotkeys
push SysReAllocStringLen
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b2ed
cmp dword [ebp - 0x64], 8
lea ecx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push edi
push esi
push edi
push edi
lea eax, [ebp - 0x78]
cmovae eax, dword [ebp - 0x78]
push edi
push eax
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40b1a6
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40b2ed
xor eax, eax
mov esi, str.0000c002
push esi
mov dword [ebp - 0x4c], 7
mov dword [ebp - 0x50], edi
mov word [ebp - 0x60], ax
call fcn.005325f3
pop ecx
push eax
push esi
lea ecx, [ebp - 0x60]
call fcn.00403288
push edi
xor eax, eax
push 0x55fd6c
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
call fcn.00403288
lea esi, [ebx + 0x464]
push esi
call fcn.005325f3
pop ecx
add eax, eax
push eax
push esi
push 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x560c1c
push dword [ebp - 0x7c]
call edi
lea esi, [ebx + 0x122]
push esi
call fcn.005325f3
pop ecx
add eax, eax
push eax
push esi
push 1
push 0
push str.LangId
push dword [ebp - 0x7c]
call edi
cmp dword [ebp - 0x4c], 8
lea eax, [ebp - 0x60]
cmovae eax, dword [ebp - 0x60]
lea esi, [ebp - 0x60]
cmovae esi, dword [ebp - 0x60]
push eax
call fcn.005325f3
pop ecx
add eax, eax
push eax
push esi
push 1
push 0
push str.Modifiers
push dword [ebp - 0x7c]
call edi
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
lea esi, [ebp - 0x48]
cmovae esi, dword [ebp - 0x48]
push eax
call fcn.005325f3
pop ecx
add eax, eax
push eax
push esi
push 1
push 0
push str.PreservedKeyId
push dword [ebp - 0x7c]
call edi
lea esi, [ebx + 0x52c]
push esi
call fcn.005325f3
pop ecx
add eax, eax
push eax
push esi
push 1
push 0
push str.Profile
push dword [ebp - 0x7c]
call edi
lea eax, [ebp - 0x30]
push eax
call fcn.005325f3
pop ecx
add eax, eax
push eax
lea eax, [ebp - 0x30]
push eax
push 1
push 0
push str.VirtualKey
push dword [ebp - 0x7c]
call edi
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x80]
call esi
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.0040303f
push edi
push 1
lea ecx, [ebp - 0x60]
call fcn.0040303f
push edi
push 1
lea ecx, [ebp - 0x78]
call fcn.0040303f
call fcn.00532abb
ret 4
Function at 0x40b370
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5b9460]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
lea eax, [edi + 0xc]
push eax
lea eax, [ebp - 0x20c]
push str.Control_PanelInternationalUser_Profile_s
push eax
call fcn.00532980
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x20c]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b40d
push esi
push dword [ebp - 0x210]
mov ecx, edi
call fcn.00408b26
mov esi, dword [edi + 0xd4]
jmp 0x40b3f8
push 4
lea eax, [esi + 0x190]
push eax
push 4
push 0
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esi, 0x330
cmp esi, dword [edi + 0xd8]
jne 0x40b3d8
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00532a3d
leave
ret

Function at 0x40cca2
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push str.kernel32.dll
mov esi, ecx
call ebx
mov dword [esi], eax
test eax, eax
je 0x40cd22
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
push 0x560300
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.Wow64DisableWow64FsRedirection
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.Wow64RevertWow64FsRedirection
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.GetSystemWow64DirectoryW
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
mov dword [esi + 4], eax
test eax, eax
je 0x40cd21
mov ebx, str.Wow64RevertWow64FsRedirection
push ebx
push eax
call edi
push ebx
push dword [esi + 4]
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret