joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409ec1
Capabilities:
Check if file exists
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
mov eax, dword [0x43c0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x414]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
push 0x208
push 0
push eax
call fcn.00412a00
add esp, 0xc
lea eax, [ebp - 0x414]
cmp dword [ebp + 0x14], 0
push 0x104
push eax
je 0x409f0f
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x409f15
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
lea eax, [ebp - 0x414]
push 0x42b54c
push eax
call fcn.0041822f
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.00412a00
push edi
push esi
lea eax, [ebp - 0x61c]
push str._s_s32.ime
push eax
call fcn.0040568b
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x414]
add esp, 0x24
push eax
call esi
test eax, eax
je 0x40a09c
lea eax, [ebp - 0x61c]
push eax
call esi
test eax, eax
je 0x40a09c
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00412a00
push edi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push str._s_s.ime
push eax
call fcn.0040568b
add esp, 0x1c
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.00409e4d
test eax, eax
je 0x409fc7
xor eax, eax
inc eax
jmp 0x40a09e
push 0x64
xor edi, edi
push edi
call fcn.00408cfd
push 0x208
mov esi, eax
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.00412a00
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push str._s.bak_d
push eax
call fcn.0040568b
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00419318
lea eax, [ebp - 0x824]
push eax
call fcn.00408afc
add esp, 0x30
lea eax, [ebp - 0x20c]
push edi
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.00409e4d
test eax, eax
je 0x40a09c
cmp dword [ebp + 0x10], edi
je 0x409fbf
push 0x208
lea eax, [ebp - 0xa2c]
push edi
push eax
call fcn.00412a00
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xa2c]
push str._sregsvr32.exe__s__s
push eax
call fcn.0040568b
lea eax, [ebp - 0xa2c]
push eax
call fcn.00408997
add esp, 0x20
jmp 0x409fbf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e0e7
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40a0b1
Capabilities:
Check if file exists
Copy file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
mov eax, dword [0x43c0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x61c]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
push 0x208
push 0
push eax
call fcn.00412a00
add esp, 0xc
lea eax, [ebp - 0x61c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x61c]
push 0x42b54c
push eax
call fcn.0041822f
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00412a00
push edi
push esi
lea eax, [ebp - 0x414]
push str._s_s64.ime
push eax
call fcn.0040568b
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x61c]
add esp, 0x24
push eax
call esi
test eax, eax
je 0x40a27e
lea eax, [ebp - 0x414]
push eax
call esi
test eax, eax
je 0x40a27e
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00412a00
push edi
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push str._s_s.ime
push eax
call fcn.0040568b
add esp, 0x1c
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00409e4d
test eax, eax
je 0x40a1a9
xor eax, eax
inc eax
jmp 0x40a280
push 0x64
xor edi, edi
push edi
call fcn.00408cfd
push 0x208
mov esi, eax
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.00412a00
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push str._s.bak_d
push eax
call fcn.0040568b
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00419318
lea eax, [ebp - 0x824]
push eax
call fcn.00405a91
add esp, 0x30
lea eax, [ebp - 0x20c]
push edi
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00409e4d
test eax, eax
je 0x40a27e
cmp dword [ebp + 0x10], edi
je 0x40a1a1
push 0x208
lea eax, [ebp - 0xa2c]
push edi
push eax
call fcn.00412a00
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0xa2c]
push str._sregsvr32.exe__s__s
push eax
call fcn.0040568b
lea eax, [ebp - 0xa2c]
push eax
call fcn.00408997
add esp, 0x20
jmp 0x40a1a1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e0e7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a314
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x43c0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x274]
push eax
push 0xf003f
push ebx
push str.SystemCurrentControlSetControlKeyboard_Layouts
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40a36d
push ebx
push ebx
push 0x42e074
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x40a448
push esi
push 0x64
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00412a00
push 0x208
lea eax, [ebp - 0x270]
push ebx
push eax
call fcn.00412a00
add esp, 0x18
lea eax, [ebp - 0x270]
mov esi, ebx
push 0x104
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x40a435
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40a427
lea eax, [ebp - 0x280]
mov dword [ebp - 0x280], 0x32
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push str.Ime_File
push dword [ebp - 0x278]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x278]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x68]
push eax
call fcn.0041926a
push dword [ebp - 0x27c]
call fcn.0041926a
push dword [ebp - 0x27c]
lea eax, [ebp - 0x68]
push eax
call fcn.00418260
add esp, 0x10
test eax, eax
je 0x40a45a
push 0x104
lea eax, [ebp - 0x270]
inc esi
push eax
push esi
push dword [ebp - 0x274]
call ebx
test eax, eax
je 0x40a3a9
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040e0e7
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x270]
push eax
push edi
call fcn.004182a0
pop ecx
pop ecx
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor eax, eax
inc eax
jmp 0x40a447

Function at 0x40a4ec
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43c0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.00412a00
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40a59d
push esi
xor esi, esi
lea eax, [ebp - 0x20c]
test esi, esi
jne 0x40a542
push edi
push 0x42da38
push eax
call fcn.0040568b
add esp, 0xc
jmp 0x40a552
push esi
push edi
push str._s.del_d
push eax
call fcn.0040568b
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a57c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40a57c
cmp esi, 0xa
jg 0x40a59c
inc esi
jmp 0x40a527
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.00419318
pop ecx
pop ecx
push 5
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040e0e7
mov esp, ebp
pop ebp
ret 4
Function at 0x40a7b0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xe8
mov eax, 0x42a42c
call fcn.0040e152
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
xor eax, eax
mov dword [ebp - 0xf0], ebx
push 0x42b3f0
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.0040223c
lea ecx, [ebp - 0xe4]
mov dword [ebp - 4], ebx
call fcn.004028e9
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a902
push ebx
push 0x80
push 4
push ebx
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40a837
push 0x42b3f0
mov ecx, esi
call fcn.004014a4
jmp 0x40a90d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xe8], eax
inc eax
push eax
mov dword [ebp - 0xec], eax
call fcn.0040e6bd
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x40a86b
push 0x42b3f0
mov ecx, esi
call fcn.004014a4
push ebx
jmp 0x40a90e
push dword [ebp - 0xec]
push 0
push ebx
call fcn.00412a00
add esp, 0xc
lea eax, [ebp - 0xf4]
push 0
push eax
push dword [ebp - 0xe8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xe8]
lea ecx, [ebp - 0xe4]
push ebx
call fcn.00403868
push ebx
call fcn.0040e1c0
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xe4]
call fcn.004030b3
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00408b1b
pop ecx
pop ecx
xor ebx, ebx
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.00402bef
cmp dword [ebp - 0x30], ebx
jbe 0x40a8f7
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402180
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004020f2
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0040142c
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.004020f2
mov eax, esi
call fcn.0040e10d
ret 8
Function at 0x40a922
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x43c0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x274]
push eax
push 0x20019
push ebx
push str.SystemCurrentControlSetControlKeyboard_Layouts
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40a97b
push ebx
push ebx
push 0x42e074
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x40aa56
push esi
push 0x64
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00412a00
push 0x208
lea eax, [ebp - 0x270]
push ebx
push eax
call fcn.00412a00
add esp, 0x18
lea eax, [ebp - 0x270]
mov esi, ebx
push 0x104
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x40aa43
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40aa35
lea eax, [ebp - 0x280]
mov dword [ebp - 0x280], 0x32
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push str.Ime_File
push dword [ebp - 0x278]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x278]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x68]
push eax
call fcn.0041926a
push dword [ebp - 0x27c]
call fcn.0041926a
push dword [ebp - 0x27c]
lea eax, [ebp - 0x68]
push eax
call fcn.00418260
add esp, 0x10
test eax, eax
je 0x40aa68
push 0x104
lea eax, [ebp - 0x270]
inc esi
push eax
push esi
push dword [ebp - 0x274]
call ebx
test eax, eax
je 0x40a9b7
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040e0e7
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x270]
push eax
push edi
call fcn.004182a0
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x40aa55
Function at 0x40aa7c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x43c0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x208], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x214], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
xor ecx, ecx
mov esi, eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040e6bd
pop ecx
mov ebx, eax
push ebx
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40aaf3
xor eax, eax
jmp 0x40ab58
mov ecx, dword [ebp - 0x20c]
push dword [ebp - 0x208]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x204]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.0040568b
add esp, 0x14
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40aaef
push dword [ebp - 0x210]
push dword [ebp - 0x214]
call fcn.004182a0
push ebx
call fcn.0040e1c0
xor eax, eax
add esp, 0xc
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e0e7
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40ab6b
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x43c0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00412a00
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push 0x25
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x40ac32
push str.kernel32.DLL
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x40ac32
push ebx
push esi
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x40ac31
push edi
push ebx
call fcn.0040e6bd
pop ecx
mov edi, eax
lea eax, [ebp - 0x20c]
push edi
push ebx
push esi
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40ac29
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], esi
push eax
push 0x42b54c
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40ac29
mov eax, dword [ebp - 0x210]
mov esi, dword [eax + 8]
push edi
call fcn.0040e1c0
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040e0e7
mov esp, ebp
pop ebp
ret
Function at 0x40bb8e
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x93c
mov eax, dword [0x43c0c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x310]
mov ebx, ecx
push edi
push eax
mov dword [ebp - 0x934], ebx
call fcn.00412a00
push str.Keyboard_LayoutPreload
lea eax, [ebp - 0x310]
push 0x42b634
push eax
call fcn.0040568b
add esp, 0x18
lea eax, [ebp - 0x92c]
push eax
lea eax, [ebp - 0x310]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40bd63
push esi
mov dword [ebp - 0x938], 1
mov esi, edi
push 0x208
lea eax, [ebp - 0x518]
inc esi
push edi
push eax
call fcn.00412a00
push 0x208
lea eax, [ebp - 0x928]
mov dword [ebp - 0x93c], 0x104
push edi
push eax
call fcn.00412a00
add esp, 0x18
mov dword [ebp - 0x930], 0x104
lea eax, [ebp - 0x930]
push eax
lea eax, [ebp - 0x928]
push eax
lea eax, [ebp - 0x938]
push eax
push edi
lea eax, [ebp - 0x93c]
push eax
lea eax, [ebp - 0x518]
push eax
push edi
push dword [ebp - 0x92c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40bc96
lea eax, [ebp - 0x518]
push eax
push dword [ebp - 0x92c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp esi, 0x2710
jl 0x40bc06
push 0x208
lea eax, [ebp - 0x720]
push edi
push eax
call fcn.00412a00
push 0x104
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00412a00
mov eax, dword [ebx + 0x24]
xor ecx, ecx
add esp, 0x18
inc ecx
mov esi, dword [eax]
jmp 0x40bd28
mov ebx, dword [esi]
lea eax, [ebp - 0x720]
push ecx
push 0x42b6d4
push eax
call fcn.0040568b
push ebx
call fcn.004156a2
mov ecx, dword [ebp - 0x934]
add esp, 0x10
mov edi, eax
lea eax, [ebp - 0x108]
push eax
push ebx
call fcn.0040bd80
lea eax, [edi + edi]
push eax
push ebx
push 1
push 0
lea eax, [ebp - 0x720]
push eax
push dword [ebp - 0x92c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [ebp - 0x934]
mov ecx, dword [ebp - 0x930]
inc ecx
add esi, 4
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x930], ecx
cmp esi, dword [eax + 4]
jne 0x40bcc7
push dword [ebp - 0x92c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebx
call fcn.0040af14
mov eax, dword [ebx + 0x24]
mov esi, dword [eax + 4]
jmp 0x40bd5e
add esi, 0xfffffffc
push 8
push dword [esi]
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
mov eax, dword [ebx + 0x24]
cmp esi, dword [eax]
jne 0x40bd4e
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040e0e7
mov esp, ebp
pop ebp
ret

Function at 0x40bdb1
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40bdc9
or eax, 0xffffffff
jmp 0x40bdd6
push dword [ebp + 8]
mov ecx, esi
call fcn.0040a4ec
push 2
pop eax
pop esi
pop ebp
ret 4
Function at 0x40c7a9
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48c
mov eax, dword [0x43c0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x48c], eax
xor esi, esi
lea eax, [ebp - 0x47c]
push eax
push 9
push esi
push str.SystemCurrentControlSetControlKeyboard_Layouts
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40c7ed
xor eax, eax
jmp 0x40c91c
push ebx
push edi
push 0x64
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.00412a00
push 0x208
lea eax, [ebp - 0x270]
push esi
push eax
call fcn.00412a00
add esp, 0x18
lea eax, [ebp - 0x270]
mov edi, esi
mov ebx, esi
push 0x104
push eax
push esi
jmp 0x40c8f3
cmp edi, 0x2710
jge 0x40c90c
lea eax, [ebp - 0x480]
inc edi
push eax
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40c8e5
push 0x208
lea eax, [ebp - 0x478]
mov dword [ebp - 0x484], 0x32
push esi
push eax
call fcn.00412a00
add esp, 0xc
mov dword [ebp - 0x488], 0x104
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push esi
push str.Ime_File
push dword [ebp - 0x480]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x478]
push eax
push esi
push esi
push str.Layout_Text
push dword [ebp - 0x480]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x480]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x68]
push eax
call fcn.0041926a
push dword [ebp - 0x48c]
push eax
call fcn.00418260
add esp, 0xc
test eax, eax
je 0x40c909
push 0x104
lea eax, [ebp - 0x270]
inc ebx
push eax
push ebx
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x40c826
jmp 0x40c90c
xor esi, esi
inc esi
push dword [ebp - 0x47c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040e0e7
mov esp, ebp
pop ebp
ret 4
Function at 0x40c92d
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x698
mov eax, dword [0x43c0c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x694], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x698], eax
lea eax, [ebp - 0x688]
push eax
push 0xf003f
push esi
push str.SystemCurrentControlSetControlKeyboard_Layouts
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cb0d
push ebx
push edi
push 0x64
lea eax, [ebp - 0x68]
push esi
push eax
call fcn.00412a00
push 0x208
lea eax, [ebp - 0x270]
push esi
push eax
call fcn.00412a00
add esp, 0x18
lea eax, [ebp - 0x270]
mov edi, esi
mov ebx, esi
push 0x104
push eax
push esi
push dword [ebp - 0x688]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40ca9e
cmp edi, 0x2710
jge 0x40cb03
lea eax, [ebp - 0x684]
inc edi
push eax
lea eax, [ebp - 0x270]
push eax
push dword [ebp - 0x688]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x40ca84
push 0x208
push eax
lea eax, [ebp - 0x680]
mov dword [ebp - 0x68c], 0x32
push eax
call fcn.00412a00
add esp, 0xc
mov dword [ebp - 0x690], 0x104
lea eax, [ebp - 0x68c]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push str.Ime_File
push dword [ebp - 0x684]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x690]
push eax
lea eax, [ebp - 0x680]
push eax
push 0
push 0
push str.Layout_Text
push dword [ebp - 0x684]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x68]
push eax
call fcn.0041926a
push dword [ebp - 0x694]
push eax
call fcn.00418260
add esp, 0xc
test eax, eax
je 0x40caa8
push dword [ebp - 0x684]
call esi
push 0x104
lea eax, [ebp - 0x270]
inc ebx
push eax
push ebx
push dword [ebp - 0x688]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x40c9c5
jmp 0x40cb03
push 0x208
lea eax, [ebp - 0x478]
push 0
push eax
call fcn.00412a00
push dword [ebp - 0x698]
lea eax, [ebp - 0x478]
push eax
call fcn.004182a0
lea eax, [ebp - 0x478]
push eax
call fcn.004156a2
add esp, 0x18
add eax, eax
push eax
lea eax, [ebp - 0x478]
push eax
push 1
push 0
push str.Layout_Text
push dword [ebp - 0x684]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x684]
call esi
push dword [ebp - 0x688]
call esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040e0e7
mov esp, ebp
pop ebp
ret 8