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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0xa8]
sub rsp, 0x190
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14004a1a0]
xor rax, rsp
mov qword [rbp + 0x80], rax
movzx eax, byte [0x14004b1d9]
test al, al
jne 0x140009de1
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x70]
call fcn.140017bf0
mov r9d, 1
lea r8d, [r9 + 0x19]
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x140009dda
mov qword [rsp + 0x60], 0xf
mov qword [rsp + 0x58], 0
mov byte [rsp + 0x48], 0
mov r8d, 0x14
lea rdx, str.config_systemprofile
lea rcx, [rsp + 0x48]
call fcn.1400040a0
nop
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x28], 0
cmp byte [rsp + 0x70], 0
jne 0x140009c2e
xor r8d, r8d
jmp 0x140009c4a
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140009c40
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.1400040a0
mov r15, qword [rsp + 0x58]
lea r14, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae r14, qword [rsp + 0x48]
test r15, r15
je 0x140009d03
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140009cfc
cmp r15, rbx
ja 0x140009cfc
sub rbx, r15
inc rbx
lea rsi, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rsi, qword [rsp + 0x28]
nop
test rbx, rbx
je 0x140009cfc
movsx edx, byte [r14]
mov r8, rbx
mov rcx, rsi
call fcn.140018118
mov rdi, rax
test rax, rax
je 0x140009cfc
mov r8, r15
mov rdx, r14
mov rcx, rax
call fcn.140017e50
test eax, eax
je 0x140009cdd
sub rsi, rdi
dec rsi
add rbx, rsi
lea rsi, [rdi + 1]
jmp 0x140009ca0
lea rax, [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rax, rcx
sub rdi, rax
cmp rdi, 0xffffffffffffffff
jne 0x140009d08
jmp 0x140009d0f
mov rcx, qword [rsp + 0x28]
jmp 0x140009d0f
mov rcx, qword [rsp + 0x28]
mov byte [0x14004b1d9], 1
mov rax, qword [rsp + 0x40]
cmp rax, 0x10
jb 0x140009d64
inc rax
cmp rax, 0x1000
jb 0x140009d5f
test byte [rsp + 0x28], 0x1f
je 0x140009d32
call fcn.140018e64
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140009d41
call fcn.140018e64
int3
sub rcx, rax
cmp rcx, 8
jae 0x140009d50
call fcn.140018e64
int3
cmp rcx, 0x27
jbe 0x140009d5c
call fcn.140018e64
int3
mov rcx, rax
call fcn.1400130a4
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x28], 0
mov rax, qword [rsp + 0x60]
cmp rax, 0x10
jb 0x140009dda
inc rax
mov rcx, qword [rsp + 0x48]
cmp rax, 0x1000
jb 0x140009dd5
test cl, 0x1f
je 0x140009da1
call fcn.140018e64
int3
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax - 8]
cmp rcx, rax
jb 0x140009db5
call fcn.140018e64
int3
mov rax, qword [rsp + 0x48]
sub rax, rcx
cmp rax, 8
jae 0x140009dc9
call fcn.140018e64
int3
cmp rax, 0x27
jbe 0x140009dd5
call fcn.140018e64
int3
call fcn.1400130a4
movzx eax, byte [0x14004b1d9]
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400131c0
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000a1e0
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.140009a90
mov r15d, 1
test al, al
je 0x14000a266
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0
call fcn.1400099a0
test al, al
je 0x14000a266
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 0x14000a266
movzx eax, bl
jmp 0x14000a284
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 0x14000a2a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov ebp, r9d
mov edi, r8d
mov rsi, rdx
mov r14, rcx
xor ebx, ebx
call fcn.140009b60
test al, al
jne 0x14000a2ec
mov r9d, ebp
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14000a2ec
lea eax, [rbx + 1]
jmp 0x14000a33f
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea rdx, [rsp + 0x30]
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
je 0x14000a33d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x14000a33d
mov r8, qword [rsp + 0x30]
mov r9d, 1
mov edx, edi
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x14000a33d
lea ebx, [rax + 1]
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000ab10
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 0x14000ac54
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 0x14000ac49
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 0x14000abf9
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
jmp 0x14000ac4e
or rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], r14w
lea rax, [rax + 1]
jne 0x14000ac00
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 0x14000bc10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov r9d, 0x270
mov rbx, rcx
cmp eax, r9d
jne 0x14000bc6b
lea r8, [rcx + 8]
nop word [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x14000bc30
jmp 0x14000bc77
cmp eax, 0x4e0
jb 0x14000bc77
call fcn.14000c110
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x20
pop rbx
ret
Function at 0x14000bcc0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x8c0
mov rax, qword [0x14004a1a0]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.140017bf0
xor eax, eax
mov dword [rsp + 0x70], 0x68
mov r8, rbx
mov qword [rsp + 0x50], rax
lea rdx, [0x140032cdc]
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0xe0]
mov qword [rsp + 0x60], rax
call fcn.14000b740
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0xe0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000bd98
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.1400131c0
add rsp, 0x8c0
pop rbx
ret

Function at 0x14000bdc0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rdi
mov eax, 0x13f0
call fcn.1400137e0
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x1400], rbx
mov qword [rsp + 0x1408], rsi
mov rax, qword [0x14004a1a0]
xor rax, rsp
mov qword [rsp + 0x13e0], rax
mov edi, edx
mov ebx, ecx
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x28], 0
xor r8d, r8d
lea rdx, [0x140032a3a]
lea rcx, [rsp + 0x28]
call fcn.1400040a0
nop
call fcn.140012af8
nop
mov rax, qword [rsp + 0x40]
cmp rax, 0x10
jb 0x14000be88
inc rax
mov rcx, qword [rsp + 0x28]
cmp rax, 0x1000
jb 0x14000be83
test cl, 0x1f
je 0x14000be56
call fcn.140018e64
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000be65
call fcn.140018e64
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000be74
call fcn.140018e64
int3
cmp rcx, 0x27
jbe 0x14000be80
call fcn.140018e64
int3
mov rcx, rax
call fcn.1400130a4
call fcn.140012af8
mov dword [rsp + 0x13d4], 0xffffffff
mov dword [rsp + 0x54], eax
mov r8d, 1
mov edx, r8d
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, r8d
mov dword [rsp + rdx*4 + 0x54], eax
inc r8d
inc rdx
cmp rdx, 0x270
jl 0x14000beb0
mov dword [rsp + 0x50], 0x270
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0x20
mov dword [rsp + 0x38], 0xffffffff
mov esi, 0x80000000
add ebx, esi
sub edi, ebx
lea edx, [rdi + rsi]
lea rcx, [rsp + 0x28]
cmp edx, 0xffffffff
jne 0x14000bf13
call fcn.14000c040
jmp 0x14000bf1a
inc edx
call fcn.14000bb60
lea rax, [rax + rsi]
add eax, ebx
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.1400131c0
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000c040
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
nop dword [rax]
mov rbx, qword [rdi]
mov eax, dword [rbx]
cmp eax, 0x270
jne 0x14000c0ae
lea rax, [rbx + 8]
mov r9d, 0x270
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x14000c070
jmp 0x14000c0bd
cmp eax, 0x4e0
jb 0x14000c0bd
mov rcx, rbx
call fcn.14000c110
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
cmp eax, dword [rdi + 0x10]
ja 0x14000c050
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000c110
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r10, rcx
lea r9, [rcx + 0x9c4]
mov r11d, 0xe3
mov edx, dword [r9]
xor edx, dword [r9 + 4]
lea r9, [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x630]
xor ecx, edx
mov dword [r9 - 0x9c4], ecx
sub r11, 1
jne 0x14000c120
lea r9, [r10 + 0xd50]
mov r11d, 0x18c
nop word [rax + rax]
mov edx, dword [r9]
xor edx, dword [r9 + 4]
lea r9, [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 - 0xd50]
xor ecx, edx
mov dword [r9 - 0x9c4], ecx
sub r11, 1
jne 0x14000c170
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov dword [r10], r11d
ret
Function at 0x14000cdb0
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x50
mov rax, qword [0x14004a1a0]
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 0x14000cdea
xor eax, eax
jmp 0x14000ce67
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 0x14000ce1a
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov ebx, eax
test eax, eax
jne 0x14000ce20
xor eax, eax
jmp 0x14000ce62
dec ebx
lea rdx, [rsp + 0x20]
mov r8d, 0x28
mov rcx, qword [rdi + rbx*8]
call sub.IMM32.dll_ImmGetIMEFileNameW
test eax, eax
je 0x14000ce4c
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000ce52
test ebx, ebx
jne 0x14000ce20
jmp 0x14000ce56
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.1400131c0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop rsi
ret
Function at 0x14000d660
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 0x14000d693
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 0x14000d6da
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14000d6d5
nop
cmp rbx, rcx
jae 0x14000d6da
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14000d6c0
cmp rbx, rcx
jb 0x14000d6de
xor eax, eax
jmp 0x14000d6ea
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 0x14000dc90
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 [0x14004a1a0]
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.140017bf0
cmp dword [rbp + 0x9c0], 0
lea rcx, [rbp + 0x130]
mov edx, 0x104
je 0x14000dcfb
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x14000dd01
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 0x14000dd10
mov ecx, dword [0x140032be0]
xor edx, edx
mov dword [rax], ecx
mov r8d, 0x208
lea rcx, [rbp + 0x340]
call fcn.140017bf0
mov r9, rbx
lea rdx, str._s_s32.ime
mov r8, r14
lea rcx, [rbp + 0x340]
call fcn.140007fe0
lea rcx, [rbp + 0x130]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000de92
lea rcx, [rbp + 0x340]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000de92
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140017bf0
mov r9, rbx
lea r8, [rbp + 0x130]
lea rdx, str._s_s.ime
lea rcx, [rsp + 0x20]
call fcn.140007fe0
lea r8, [rsp + 0x20]
mov rcx, rsi
lea rdx, [rbp + 0x340]
call fcn.14000dba0
test eax, eax
jne 0x14000de8b
lea edx, [rax + 0x64]
xor ecx, ecx
call fcn.14000c1f0
xor edx, edx
lea rcx, [rbp + 0x550]
mov r8d, 0x208
mov ebx, eax
call fcn.140017bf0
mov r9d, ebx
lea r8, [rsp + 0x20]
lea rdx, str._s.bak_d
lea rcx, [rbp + 0x550]
call fcn.140007fe0
lea rdx, [rbp + 0x550]
lea rcx, [rsp + 0x20]
call fcn.14001d46c
lea rcx, [rbp + 0x550]
call fcn.1400083b0
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.14000dba0
test eax, eax
je 0x14000de92
test edi, edi
je 0x14000de8b
xor edx, edx
lea rcx, [rbp + 0x760]
mov r8d, 0x208
call fcn.140017bf0
lea r9, [rsp + 0x20]
lea r8, [rbp + 0x130]
lea rdx, str._sregsvr32.exe__s__s
lea rcx, [rbp + 0x760]
call fcn.140007fe0
lea rcx, [rbp + 0x760]
call fcn.14000bcc0
mov eax, 1
jmp 0x14000de94
xor eax, eax
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.1400131c0
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 0x14000dec0
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 [0x14004a1a0]
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.140017bf0
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 0x14000df30
mov ecx, dword [0x140032be0]
xor edx, edx
mov dword [rax], ecx
mov r8d, 0x208
lea rcx, [rbp + 0x130]
call fcn.140017bf0
mov r9, rbx
lea rdx, str._s_s64.ime
mov r8, r14
lea rcx, [rbp + 0x130]
call fcn.140007fe0
lea rcx, [rbp + 0x340]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000e0b2
lea rcx, [rbp + 0x130]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000e0b2
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140017bf0
mov r9, rbx
lea r8, [rbp + 0x340]
lea rdx, str._s_s.ime
lea rcx, [rsp + 0x20]
call fcn.140007fe0
lea r8, [rsp + 0x20]
mov rcx, rsi
lea rdx, [rbp + 0x130]
call fcn.14000dba0
test eax, eax
jne 0x14000e0ab
lea edx, [rax + 0x64]
xor ecx, ecx
call fcn.14000c1f0
xor edx, edx
lea rcx, [rbp + 0x550]
mov r8d, 0x208
mov ebx, eax
call fcn.140017bf0
mov r9d, ebx
lea r8, [rsp + 0x20]
lea rdx, str._s.bak_d
lea rcx, [rbp + 0x550]
call fcn.140007fe0
lea rdx, [rbp + 0x550]
lea rcx, [rsp + 0x20]
call fcn.14001d46c
lea rcx, [rbp + 0x550]
call fcn.1400083b0
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.14000dba0
test eax, eax
je 0x14000e0b2
test edi, edi
je 0x14000e0ab
xor edx, edx
lea rcx, [rbp + 0x760]
mov r8d, 0x208
call fcn.140017bf0
lea r9, [rsp + 0x20]
lea r8, [rbp + 0x340]
lea rdx, str._sregsvr32.exe__s__s
lea rcx, [rbp + 0x760]
call fcn.140007fe0
lea rcx, [rbp + 0x760]
call fcn.14000bcc0
mov eax, 1
jmp 0x14000e0b4
xor eax, eax
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.1400131c0
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 0x14000e160
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 [0x14004a1a0]
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 0x14000e1cc
xor r9d, r9d
lea rdx, [0x140035f68]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x14000e2e7
xor edx, edx
mov qword [rsp + 0x2f0], rbx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x64]
call fcn.140017bf0
xor edx, edx
lea rcx, [rsp + 0xc0]
mov r8d, 0x208
call fcn.140017bf0
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 0x14000e2dd
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 0x14000e2b8
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.14001d3b8
mov rcx, rsi
call fcn.14001d3b8
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 0x14000e2b4
add rax, 2
test ecx, ecx
jne 0x14000e2a0
test edx, edx
je 0x14000e308
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 0x14000e220
xor eax, eax
mov rbx, qword [rsp + 0x2f0]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400131c0
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 0x14000e320
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
jmp 0x14000e2df
Function at 0x14000e3e0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push rdi
sub rsp, 0x240
mov rax, qword [0x14004a1a0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, rdx
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.140017bf0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000e4a6
mov qword [rsp + 0x250], rbx
xor ebx, ebx
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
mov r8, rdi
test ebx, ebx
jne 0x14000e44a
lea rdx, str._s.del
call fcn.140007fe0
jmp 0x14000e459
mov r9d, ebx
lea rdx, str._s.del_d
call fcn.140007fe0
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000e480
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000e480
cmp ebx, 0xa
jg 0x14000e49e
inc ebx
jmp 0x14000e430
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14001d46c
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.1400131c0
add rsp, 0x240
pop rdi
ret