joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b230
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x70
xor r14d, r14d
lea rax, [r11 - 0x18]
mov rbx, r9
mov qword [r11 - 0x18], r14
mov rbp, r8
mov qword [r11 - 0x20], r14
mov rsi, rdx
mov qword [r11 - 0x28], r14
mov rdi, rcx
mov qword [r11 - 0x58], rax
mov r9d, 0xf013f
lea rdx, str.SoftWare
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b374
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], r14
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov rdx, rdi
mov dword [rsp + 0x28], 0xf013f
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000b369
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], r14
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], r14
mov rdx, rsi
mov dword [rsp + 0x28], 0xf013f
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000b319
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
jmp 0x14000b36e
or rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], r14w
lea rax, [rax + 1]
jne 0x14000b320
lea ecx, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], ecx
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
mov rdx, rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14000c320
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x50
mov rax, qword [0x1400431a0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rdx
xor ecx, ecx
xor edx, edx
xor ebp, ebp
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov ebx, eax
test eax, eax
jne 0x14000c35a
xor eax, eax
jmp 0x14000c3d7
mov rdx, rbx
mov qword [rsp + 0x60], rdi
shl rdx, 3
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14000c38a
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov ebx, eax
test eax, eax
jne 0x14000c390
xor eax, eax
jmp 0x14000c3d2
dec ebx
lea rdx, [rsp + 0x20]
mov r8d, 0x28
mov rcx, qword [rdi + rbx*8]
call sub.IMM32.dll_ImmGetIMEFileNameW
test eax, eax
je 0x14000c3bc
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000c3c2
test ebx, ebx
jne 0x14000c390
jmp 0x14000c3c6
mov rbp, qword [rdi + rbx*8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, rbp
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400126d0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop rsi
ret
Function at 0x14000cbd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x14000cc03
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000cc4a
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14000cc45
nop
cmp rbx, rcx
jae 0x14000cc4a
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14000cc30
cmp rbx, rcx
jb 0x14000cc4e
xor eax, eax
jmp 0x14000cc5a
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000d110
Capabilities:
Check if file exists
Copy file
Get common file path
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x980]
sub rsp, 0xa80
mov rax, qword [0x1400431a0]
xor rax, rsp
mov qword [rbp + 0x970], rax
mov rbx, r8
mov r14, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x130]
mov edi, r9d
call fcn.1400139c0
cmp dword [rbp + 0x9c0], 0
lea rcx, [rbp + 0x130]
mov edx, 0x104
je 0x14000d17b
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x14000d181
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
lea rax, [rbp + 0x130]
sub rax, 2
nop dword [rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x14000d190
mov ecx, dword [0x14002d894]
xor edx, edx
mov dword [rax], ecx
mov r8d, 0x208
lea rcx, [rbp + 0x340]
call fcn.1400139c0
mov r9, rbx
lea rdx, str._s_s32.ime
mov r8, r14
lea rcx, [rbp + 0x340]
call fcn.140001d50
lea rcx, [rbp + 0x130]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000d312
lea rcx, [rbp + 0x340]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000d312
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.1400139c0
mov r9, rbx
lea r8, [rbp + 0x130]
lea rdx, str._s_s.ime
lea rcx, [rsp + 0x20]
call fcn.140001d50
lea r8, [rsp + 0x20]
mov rcx, rsi
lea rdx, [rbp + 0x340]
call fcn.14000d020
test eax, eax
jne 0x14000d30b
lea edx, [rax + 0x64]
xor ecx, ecx
call fcn.140003870
xor edx, edx
lea rcx, [rbp + 0x550]
mov r8d, 0x208
mov ebx, eax
call fcn.1400139c0
mov r9d, ebx
lea r8, [rsp + 0x20]
lea rdx, str._s.bak_d
lea rcx, [rbp + 0x550]
call fcn.140001d50
lea rdx, [rbp + 0x550]
lea rcx, [rsp + 0x20]
call fcn.140019b40
lea rcx, [rbp + 0x550]
call fcn.140003340
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x340]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea r8, [rsp + 0x20]
mov rcx, rsi
lea rdx, [rbp + 0x340]
call fcn.14000d020
test eax, eax
je 0x14000d312
test edi, edi
je 0x14000d30b
xor edx, edx
lea rcx, [rbp + 0x760]
mov r8d, 0x208
call fcn.1400139c0
lea r9, [rsp + 0x20]
lea r8, [rbp + 0x130]
lea rdx, str._sregsvr32.exe__s__s
lea rcx, [rbp + 0x760]
call fcn.140001d50
lea rcx, [rbp + 0x760]
call fcn.1400030b0
mov eax, 1
jmp 0x14000d314
xor eax, eax
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.1400126d0
lea r11, [rsp + 0xa80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000d340
Capabilities:
Check if file exists
Copy file
Get common file path
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x980]
sub rsp, 0xa80
mov rax, qword [0x1400431a0]
xor rax, rsp
mov qword [rbp + 0x970], rax
mov rbx, r8
mov r14, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x340]
mov edi, r9d
call fcn.1400139c0
mov edx, 0x104
lea rcx, [rbp + 0x340]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, [rbp + 0x340]
sub rax, 2
nop dword [rax + rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x14000d3b0
mov ecx, dword [0x14002d894]
xor edx, edx
mov dword [rax], ecx
mov r8d, 0x208
lea rcx, [rbp + 0x130]
call fcn.1400139c0
mov r9, rbx
lea rdx, str._s_s64.ime
mov r8, r14
lea rcx, [rbp + 0x130]
call fcn.140001d50
lea rcx, [rbp + 0x340]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000d532
lea rcx, [rbp + 0x130]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000d532
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.1400139c0
mov r9, rbx
lea r8, [rbp + 0x340]
lea rdx, str._s_s.ime
lea rcx, [rsp + 0x20]
call fcn.140001d50
lea r8, [rsp + 0x20]
mov rcx, rsi
lea rdx, [rbp + 0x130]
call fcn.14000d020
test eax, eax
jne 0x14000d52b
lea edx, [rax + 0x64]
xor ecx, ecx
call fcn.140003870
xor edx, edx
lea rcx, [rbp + 0x550]
mov r8d, 0x208
mov ebx, eax
call fcn.1400139c0
mov r9d, ebx
lea r8, [rsp + 0x20]
lea rdx, str._s.bak_d
lea rcx, [rbp + 0x550]
call fcn.140001d50
lea rdx, [rbp + 0x550]
lea rcx, [rsp + 0x20]
call fcn.140019b40
lea rcx, [rbp + 0x550]
call fcn.140003340
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x130]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea r8, [rsp + 0x20]
mov rcx, rsi
lea rdx, [rbp + 0x130]
call fcn.14000d020
test eax, eax
je 0x14000d532
test edi, edi
je 0x14000d52b
xor edx, edx
lea rcx, [rbp + 0x760]
mov r8d, 0x208
call fcn.1400139c0
lea r9, [rsp + 0x20]
lea r8, [rbp + 0x340]
lea rdx, str._sregsvr32.exe__s__s
lea rcx, [rbp + 0x760]
call fcn.140001d50
lea rcx, [rbp + 0x760]
call fcn.1400030b0
mov eax, 1
jmp 0x14000d534
xor eax, eax
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.1400126d0
lea r11, [rsp + 0xa80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000d5e0
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2e0
mov rax, qword [0x1400431a0]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rsi, rdx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlKeyboard_Layouts
mov r9d, 0xf003f
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000d64c
xor r9d, r9d
lea rdx, [0x140030498]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x14000d767
xor edx, edx
mov qword [rsp + 0x2f0], rbx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x64]
call fcn.1400139c0
xor edx, edx
lea rcx, [rsp + 0xc0]
mov r8d, 0x208
call fcn.1400139c0
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0xc0]
mov r9d, 0x104
xor edx, edx
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x14000d75d
nop
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000d738
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.Ime_File
lea rax, [rsp + 0x50]
mov dword [rsp + 0x38], 0x32
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x50]
call fcn.140018fa4
mov rcx, rsi
call fcn.140018fa4
lea rax, [rsp + 0x50]
mov r8, rsi
sub r8, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000d734
add rax, 2
test ecx, ecx
jne 0x14000d720
test edx, edx
je 0x14000d788
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0xc0]
inc ebx
mov r9d, 0x104
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x14000d6a0
xor eax, eax
mov rbx, qword [rsp + 0x2f0]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400126d0
mov rsi, qword [rsp + 0x308]
add rsp, 0x2e0
pop rdi
ret
lea rax, [rsp + 0xc0]
sub rdi, rax
lea rcx, [rsp + 0xc0]
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rdi + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14000d7a0
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
jmp 0x14000d75f
Function at 0x14000d860
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push rdi
sub rsp, 0x240
mov rax, qword [0x1400431a0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rdx
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.1400139c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000d926
mov qword [rsp + 0x250], rbx
xor ebx, ebx
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
mov r8, rdi
test ebx, ebx
jne 0x14000d8ca
lea rdx, str._s.del
call fcn.140001d50
jmp 0x14000d8d9
mov r9d, ebx
lea rdx, str._s.del_d
call fcn.140001d50
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000d900
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000d900
cmp ebx, 0xa
jg 0x14000d91e
inc ebx
jmp 0x14000d8b0
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140019b40
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 5]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rbx, qword [rsp + 0x250]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400126d0
add rsp, 0x240
pop rdi
ret
Function at 0x14000dc20
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x170], rbx
mov rax, qword [0x1400431a0]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rdi, r8
mov rbx, rdx
xor r13d, r13d
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
xor r8d, r8d
lea rdx, [0x14002da8c]
lea rcx, [rsp + 0x50]
call fcn.140002bb0
nop
lea rcx, [rbp - 0x50]
call fcn.140005a30
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000ddd6
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r13 + 1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000dd11
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
cmp qword [rbx + 0x18], 8
jb 0x14000dcf3
mov rax, qword [rbx]
jmp 0x14000dcf6
mov rax, rbx
mov word [rax], r13w
xor r8d, r8d
lea rdx, [0x14002da8c]
mov rcx, rbx
call fcn.140002bb0
jmp 0x14000de03
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
lea rcx, [r14 + 1]
call fcn.140012740
mov rsi, rax
test rax, rax
je 0x14000dcdb
lea r8, [r14 + 1]
xor edx, edx
mov rcx, rax
call fcn.1400139c0
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x44]
mov r8d, r14d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, r14d
mov rdx, rsi
lea rcx, [rbp - 0x50]
call fcn.140006900
mov rcx, rsi
call fcn.140012738
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.140005f10
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140003370
nop
lea rcx, [rbp - 0x70]
call fcn.140001e50
cmp qword [rbp - 0x80], 0
jbe 0x14000ddba
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140002a70
nop
mov r8, qword [rbp - 0x78]
cmp r8, 8
jb 0x14000ddd6
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.140002d00
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
cmp qword [rbx + 0x18], 8
jb 0x14000ddee
mov rax, qword [rbx]
jmp 0x14000ddf1
mov rax, rbx
mov word [rax], r13w
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140002130
nop
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x14000de20
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140002d00
mov rax, rbx
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400126d0
mov rbx, qword [rsp + 0x170]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000de50
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2e0
mov rax, qword [0x1400431a0]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rdi, r8
lea rax, [rsp + 0x38]
mov rsi, rdx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlKeyboard_Layouts
mov r9d, 0x20019
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000debc
xor r9d, r9d
lea rdx, [0x140030498]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x14000dfd7
xor edx, edx
mov qword [rsp + 0x2f0], rbx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x64]
call fcn.1400139c0
xor edx, edx
lea rcx, [rsp + 0xc0]
mov r8d, 0x208
call fcn.1400139c0
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0xc0]
mov r9d, 0x104
xor edx, edx
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x14000dfcd
nop
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000dfa8
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.Ime_File
lea rax, [rsp + 0x50]
mov dword [rsp + 0x30], 0x32
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x50]
call fcn.140018fa4
mov rcx, rsi
call fcn.140018fa4
lea rax, [rsp + 0x50]
mov r8, rsi
sub r8, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000dfa4
add rax, 2
test ecx, ecx
jne 0x14000df90
test edx, edx
je 0x14000dff8
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0xc0]
inc ebx
mov r9d, 0x104
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x14000df10
xor eax, eax
mov rbx, qword [rsp + 0x2f0]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400126d0
mov rsi, qword [rsp + 0x308]
add rsp, 0x2e0
pop rdi
ret
lea rax, [rsp + 0xc0]
sub rdi, rax
lea rcx, [rsp + 0xc0]
nop dword [rax + rax]
movzx eax, word [rcx]
mov word [rdi + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14000e010
mov eax, 1
jmp 0x14000dfcf
Function at 0x14000e030
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x1400431a0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, rdx
mov rbx, r9
mov rcx, rsi
xor edx, edx
mov r14, r8
call sub.VERSION.dll_GetFileVersionInfoSizeW
movsxd rdi, eax
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rdi
cmovo rax, rcx
mov rcx, rax
call fcn.140012740
mov r9, rax
mov r8d, edi
xor edx, edx
mov rcx, rsi
mov rbp, rax
call sub.VERSION.dll_GetFileVersionInfoW
lea r9, [rsp + 0x30]
mov rcx, rbp
lea r8, [rsp + 0x38]
lea rdx, str.VarFileInfoTranslation
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x14000e0b5
xor eax, eax
jmp 0x14000e11d
mov rax, qword [rsp + 0x38]
lea rdx, str.StringFileInfo_04x_04x_s
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], r14
movzx r9d, word [rax + 2]
movzx r8d, word [rax]
call fcn.140001d50
lea r9, [rsp + 0x34]
mov rcx, rbp
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14000e0b1
mov rcx, qword [rsp + 0x40]
sub rbx, rcx
nop dword [rax]
movzx eax, word [rcx]
mov word [rbx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14000e100
mov rcx, rbp
call fcn.140012738
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400126d0
add rsp, 0x260
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x1400431a0]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
xor ebx, ebx
call fcn.1400139c0
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rbx + 0x25]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14000e257
lea rdx, str.kernel32.DLL
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x14000e257
xor edx, edx
mov qword [rsp + 0x278], rdi
lea rcx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test eax, eax
je 0x14000e253
mov ecx, edi
mov qword [rsp + 0x270], rsi
call fcn.140012740
mov r9, rax
lea rcx, [rsp + 0x40]
mov r8d, edi
xor edx, edx
mov rsi, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14000e220
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], ebx
lea r8, [rsp + 0x38]
mov qword [rsp + 0x38], rbx
lea rdx, [0x14002d894]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14000e220
mov rax, qword [rsp + 0x38]
mov ebx, dword [rax + 8]
mov rcx, rsi
call fcn.140012738
mov rsi, qword [rsp + 0x270]
mov eax, ebx
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400126d0
add rsp, 0x260
pop rbx
ret
mov eax, ebx
jmp 0x14000e232
mov eax, ebx
jmp 0x14000e23a
Function at 0x140010570
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x4f0
mov rax, qword [0x1400431a0]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rbp, rdx
lea rax, [rsp + 0x30]
xor esi, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetControlKeyboard_Layouts
mov rcx, 0xffffffff80000002
lea r9d, [rsi + 9]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400105c4
xor eax, eax
jmp 0x140010751
xor edx, edx
mov qword [rsp + 0x500], rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x508], rdi
lea r8d, [rdx + 0x64]
call fcn.1400139c0
xor edx, edx
lea rcx, [rsp + 0xc0]
mov r8d, 0x208
call fcn.1400139c0
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0xc0]
mov r9d, 0x104
xor edx, edx
mov ebx, esi
mov edi, esi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x140010734
cmp ebx, 0x2710
jge 0x140010734
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xc0]
inc ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140010708
xor edx, edx
mov dword [rsp + 0x38], 0x32
mov r8d, 0x208
lea rcx, [rsp + 0x2d0]
call fcn.1400139c0
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.Ime_File
lea rax, [rsp + 0x50]
mov dword [rsp + 0x3c], 0x104
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rdx, str.Layout_Text
lea rax, [rsp + 0x2d0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x50]
call fcn.140018fa4
mov r8, rbp
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140010704
add rax, 2
test ecx, ecx
jne 0x1400106f0
test edx, edx
je 0x14001072f
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0xc0]
inc edi
mov r9d, 0x104
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x140010620
jmp 0x140010734
mov esi, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x508]
mov eax, esi
mov rbx, qword [rsp + 0x500]
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.1400126d0
mov rbp, qword [rsp + 0x510]
add rsp, 0x4f0
pop rsi
ret