joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a250
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov ebp, r9d
mov edi, r8d
mov rsi, rdx
mov r14, rcx
xor bl, bl
call fcn.140009db0
mov r15d, 1
test al, al
je 0x14000a2d6
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0
call fcn.140009cc0
test al, al
je 0x14000a2d6
mov r8, qword [rsp + 0x30]
mov r9d, r15d
mov edx, edi
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
movzx ebx, bl
cmove ebx, r15d
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x14000a2d6
movzx eax, bl
jmp 0x14000a2f4
mov r9d, ebp
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
movzx ecx, bl
cmovne ecx, r15d
movzx eax, cl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14000a5d0
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1f8]
sub rsp, 0x2e0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400441a0]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
xor ebx, ebx
mov edi, ebx
mov dword [rsp + 0x20], ebx
test rcx, rcx
jne 0x14000a61b
xor eax, eax
jmp 0x14000a822
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], rbx
mov word [rsp + 0x50], bx
cmp word [rcx], bx
jne 0x14000a638
mov r8, rbx
jmp 0x14000a64a
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rcx + r8*2], bx
jne 0x14000a640
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.140002bb0
nop
lea rcx, [rsp + 0x50]
call fcn.14000be60
xor edx, edx
mov r8d, 0x238
lea rcx, [rbp - 0x70]
call fcn.140014200
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14000a803
mov dword [rbp - 0x70], 0x238
lea rdx, [rbp - 0x70]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14000a7f9
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
cmp word [rbp - 0x44], 0
jne 0x14000a6c4
mov r8, rbx
jmp 0x14000a6db
lea rax, [rbp - 0x44]
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14000a6d0
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x30]
call fcn.140002bb0
nop
lea rcx, [rsp + 0x30]
call fcn.14000be60
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r8, qword [rsp + 0x50]
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov r9, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x40]
call fcn.140003610
test eax, eax
je 0x14000a773
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.14000b9d0
or edi, 1
lea r9, [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x14000a749
mov rax, qword [rax]
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov r9, qword [r9]
mov r8, rax
mov rdx, qword [rsp + 0x60]
call fcn.140003610
test eax, eax
je 0x14000a773
xor sil, sil
jmp 0x14000a776
mov sil, 1
test dil, 1
je 0x14000a79b
and edi, 0xfffffffe
mov r8, qword [rbp - 0x78]
cmp r8, 8
jb 0x14000a79b
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.140002d00
test sil, sil
jne 0x14000a7ce
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x14000a7bd
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140002d00
lea rdx, [rbp - 0x70]
mov rcx, r14
call sub.KERNEL32.dll_Process32NextW
jmp 0x14000a69d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rbp - 0x68]
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x14000a803
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140002d00
jmp 0x14000a803
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x14000a820
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140002d00
mov eax, ebx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140012ec0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000b370
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 0x14000b4b4
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 0x14000b4a9
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 0x14000b459
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
jmp 0x14000b4ae
or rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], r14w
lea rax, [rax + 1]
jne 0x14000b460
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 0x14000cb70
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x50
mov rax, qword [0x1400441a0]
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 0x14000cbaa
xor eax, eax
jmp 0x14000cc27
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 0x14000cbda
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov ebx, eax
test eax, eax
jne 0x14000cbe0
xor eax, eax
jmp 0x14000cc22
dec ebx
lea rdx, [rsp + 0x20]
mov r8d, 0x28
mov rcx, qword [rdi + rbx*8]
call sub.IMM32.dll_ImmGetIMEFileNameW
test eax, eax
je 0x14000cc0c
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000cc12
test ebx, ebx
jne 0x14000cbe0
jmp 0x14000cc16
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.140012ec0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop rsi
ret
Function at 0x14000d420
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 0x14000d453
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 0x14000d49a
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14000d495
nop
cmp rbx, rcx
jae 0x14000d49a
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14000d480
cmp rbx, rcx
jb 0x14000d49e
xor eax, eax
jmp 0x14000d4aa
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 0x14000d960
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 [0x1400441a0]
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.140014200
cmp dword [rbp + 0x9c0], 0
lea rcx, [rbp + 0x130]
mov edx, 0x104
je 0x14000d9cb
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x14000d9d1
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 0x14000d9e0
mov ecx, dword [0x14002e8a4]
xor edx, edx
mov dword [rax], ecx
mov r8d, 0x208
lea rcx, [rbp + 0x340]
call fcn.140014200
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 0x14000db62
lea rcx, [rbp + 0x340]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000db62
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140014200
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.14000d870
test eax, eax
jne 0x14000db5b
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.140014200
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.14001a320
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.14000d870
test eax, eax
je 0x14000db62
test edi, edi
je 0x14000db5b
xor edx, edx
lea rcx, [rbp + 0x760]
mov r8d, 0x208
call fcn.140014200
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 0x14000db64
xor eax, eax
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.140012ec0
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 0x14000db90
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 [0x1400441a0]
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.140014200
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 0x14000dc00
mov ecx, dword [0x14002e8a4]
xor edx, edx
mov dword [rax], ecx
mov r8d, 0x208
lea rcx, [rbp + 0x130]
call fcn.140014200
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 0x14000dd82
lea rcx, [rbp + 0x130]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000dd82
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140014200
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.14000d870
test eax, eax
jne 0x14000dd7b
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.140014200
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.14001a320
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.14000d870
test eax, eax
je 0x14000dd82
test edi, edi
je 0x14000dd7b
xor edx, edx
lea rcx, [rbp + 0x760]
mov r8d, 0x208
call fcn.140014200
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 0x14000dd84
xor eax, eax
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.140012ec0
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 0x14000de30
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 [0x1400441a0]
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 0x14000de9c
xor r9d, r9d
lea rdx, [0x140031518]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x14000dfb7
xor edx, edx
mov qword [rsp + 0x2f0], rbx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x64]
call fcn.140014200
xor edx, edx
lea rcx, [rsp + 0xc0]
mov r8d, 0x208
call fcn.140014200
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 0x14000dfad
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 0x14000df88
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.140019784
mov rcx, rsi
call fcn.140019784
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 0x14000df84
add rax, 2
test ecx, ecx
jne 0x14000df70
test edx, edx
je 0x14000dfd8
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 0x14000def0
xor eax, eax
mov rbx, qword [rsp + 0x2f0]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140012ec0
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 0x14000dff0
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
jmp 0x14000dfaf
Function at 0x14000e0b0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push rdi
sub rsp, 0x240
mov rax, qword [0x1400441a0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rdx
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.140014200
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000e176
mov qword [rsp + 0x250], rbx
xor ebx, ebx
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
mov r8, rdi
test ebx, ebx
jne 0x14000e11a
lea rdx, str._s.del
call fcn.140001d50
jmp 0x14000e129
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 0x14000e150
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000e150
cmp ebx, 0xa
jg 0x14000e16e
inc ebx
jmp 0x14000e100
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14001a320
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.140012ec0
add rsp, 0x240
pop rdi
ret
Function at 0x14000e470
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 [0x1400441a0]
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, [0x14002ea9c]
lea rcx, [rsp + 0x50]
call fcn.140002bb0
nop
lea rcx, [rbp - 0x50]
call fcn.140005ae0
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000e626
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 0x14000e561
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r13
cmp qword [rbx + 0x18], 8
jb 0x14000e543
mov rax, qword [rbx]
jmp 0x14000e546
mov rax, rbx
mov word [rax], r13w
xor r8d, r8d
lea rdx, [0x14002ea9c]
mov rcx, rbx
call fcn.140002bb0
jmp 0x14000e653
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
lea rcx, [r14 + 1]
call fcn.140012f28
mov rsi, rax
test rax, rax
je 0x14000e52b
lea r8, [r14 + 1]
xor edx, edx
mov rcx, rax
call fcn.140014200
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.1400069b0
mov rcx, rsi
call fcn.140012fdc
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.140005fc0
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 0x14000e60a
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 0x14000e626
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 0x14000e63e
mov rax, qword [rbx]
jmp 0x14000e641
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 0x14000e670
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.140012ec0
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 0x14000e6a0
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 [0x1400441a0]
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 0x14000e70c
xor r9d, r9d
lea rdx, [0x140031518]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x14000e827
xor edx, edx
mov qword [rsp + 0x2f0], rbx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x64]
call fcn.140014200
xor edx, edx
lea rcx, [rsp + 0xc0]
mov r8d, 0x208
call fcn.140014200
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 0x14000e81d
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 0x14000e7f8
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.140019784
mov rcx, rsi
call fcn.140019784
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 0x14000e7f4
add rax, 2
test ecx, ecx
jne 0x14000e7e0
test edx, edx
je 0x14000e848
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 0x14000e760
xor eax, eax
mov rbx, qword [rsp + 0x2f0]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140012ec0
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 0x14000e860
mov eax, 1
jmp 0x14000e81f