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

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x14004a1a0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [rsp + 0x290], rbx
mov rsi, rdx
xor bl, bl
mov rbp, rcx
call fcn.140009b50
xor edi, edi
test al, al
je 0x1400088ec
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
call fcn.140009a60
test al, al
je 0x1400088ec
mov r8, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x298], r14
lea edx, [rdi + 0x1a]
mov r14d, 1
mov qword [rsp + 0x20], rax
mov r9d, r14d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
movzx ebx, bl
cmove ebx, r14d
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x298]
test bl, bl
jne 0x140008900
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov rbx, qword [rsp + 0x290]
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x140008911
test eax, eax
je 0x1400089cf
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x140008930
mov eax, dword [0x140032be0]
lea rdx, [rsp + 0x40]
sub rdx, 2
mov dword [rcx], eax
nop dword [rax + rax]
cmp word [rdx + 2], di
lea rdx, [rdx + 2]
jne 0x140008950
xor r8d, r8d
nop dword [rax]
movzx ecx, word [rsi + r8*2]
mov word [rdx + r8*2], cx
lea r8, [r8 + 1]
test cx, cx
jne 0x140008960
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], di
lea rcx, [rcx + 2]
jne 0x140008980
mov dword [rcx], eax
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400089a5
lea rcx, [rsp + 0x40]
call fcn.140008770
cmp word [rsp + 0x40], di
je 0x1400089bf
lea rax, [rsp + 0x40]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400089b5
mov r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.140003190
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140013270
add rsp, 0x260
pop rdi
pop rsi
pop rbp
ret
Function at 0x140009b50
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x248
mov rax, qword [0x14004a1a0]
xor rax, rsp
mov qword [rsp + 0x230], rax
movzx eax, byte [0x14004b1d8]
test al, al
jne 0x140009c02
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140017c40
mov r9d, 1
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 0x19]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140009bfb
lea rcx, [rsp + 0x20]
call fcn.14001d408
lea rdx, [0x140035030]
lea rcx, [rsp + 0x20]
call fcn.140017f68
test rax, rax
jne 0x140009bdb
lea rdx, str.documents_and_settingslocalservice
lea rcx, [rsp + 0x20]
call fcn.140017f68
test rax, rax
je 0x140009bfb
mov al, 1
mov byte [0x14004b1d8], al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140013270
add rsp, 0x248
ret
movzx eax, byte [0x14004b1d8]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140013270
add rsp, 0x248
ret
Function at 0x140009c20
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 0x140009ea1
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x70]
call fcn.140017c40
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 0x140009e9a
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.140004100
nop
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x28], 0
cmp byte [rsp + 0x70], 0
jne 0x140009cee
xor r8d, r8d
jmp 0x140009d0a
lea rax, [rsp + 0x70]
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140009d00
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.140004100
mov r15, qword [rsp + 0x58]
lea r14, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae r14, qword [rsp + 0x48]
test r15, r15
je 0x140009dc3
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140009dbc
cmp r15, rbx
ja 0x140009dbc
sub rbx, r15
inc rbx
lea rsi, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rsi, qword [rsp + 0x28]
nop
test rbx, rbx
je 0x140009dbc
movsx edx, byte [r14]
mov r8, rbx
mov rcx, rsi
call fcn.140018168
mov rdi, rax
test rax, rax
je 0x140009dbc
mov r8, r15
mov rdx, r14
mov rcx, rax
call fcn.140017ea0
test eax, eax
je 0x140009d9d
sub rsi, rdi
dec rsi
add rbx, rsi
lea rsi, [rdi + 1]
jmp 0x140009d60
lea rax, [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae rax, rcx
sub rdi, rax
cmp rdi, 0xffffffffffffffff
jne 0x140009dc8
jmp 0x140009dcf
mov rcx, qword [rsp + 0x28]
jmp 0x140009dcf
mov rcx, qword [rsp + 0x28]
mov byte [0x14004b1d9], 1
mov rax, qword [rsp + 0x40]
cmp rax, 0x10
jb 0x140009e24
inc rax
cmp rax, 0x1000
jb 0x140009e1f
test byte [rsp + 0x28], 0x1f
je 0x140009df2
call fcn.140018eb4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140009e01
call fcn.140018eb4
int3
sub rcx, rax
cmp rcx, 8
jae 0x140009e10
call fcn.140018eb4
int3
cmp rcx, 0x27
jbe 0x140009e1c
call fcn.140018eb4
int3
mov rcx, rax
call fcn.140013154
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x28], 0
mov rax, qword [rsp + 0x60]
cmp rax, 0x10
jb 0x140009e9a
inc rax
mov rcx, qword [rsp + 0x48]
cmp rax, 0x1000
jb 0x140009e95
test cl, 0x1f
je 0x140009e61
call fcn.140018eb4
int3
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax - 8]
cmp rcx, rax
jb 0x140009e75
call fcn.140018eb4
int3
mov rax, qword [rsp + 0x48]
sub rax, rcx
cmp rax, 8
jae 0x140009e89
call fcn.140018eb4
int3
cmp rax, 0x27
jbe 0x140009e95
call fcn.140018eb4
int3
call fcn.140013154
movzx eax, byte [0x14004b1d9]
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140013270
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 0x14000a2a0
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.140009b50
mov r15d, 1
test al, al
je 0x14000a326
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0
call fcn.140009a60
test al, al
je 0x14000a326
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 0x14000a326
movzx eax, bl
jmp 0x14000a344
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 0x14000a360
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.140009c20
test al, al
jne 0x14000a3ac
mov r9d, ebp
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14000a3ac
lea eax, [rbx + 1]
jmp 0x14000a3ff
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 0x14000a3fd
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x14000a3fd
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 0x14000a3fd
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 0x14000abd0
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 0x14000ad14
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 0x14000ad09
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 0x14000acb9
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
jmp 0x14000ad0e
or rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rbx + rax*2 + 2], r14w
lea rax, [rax + 1]
jne 0x14000acc0
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 0x14000bc70
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 0x14000bccb
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 0x14000bc90
jmp 0x14000bcd7
cmp eax, 0x4e0
jb 0x14000bcd7
call fcn.14000c170
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 0x14000bd20
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.140017c40
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.14000b7a0
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 0x14000bdf8
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.140013270
add rsp, 0x8c0
pop rbx
ret

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

Disassembly:
push rdi
mov eax, 0x13f0
call fcn.140013880
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.140004100
nop
call fcn.140012ba8
nop
mov rax, qword [rsp + 0x40]
cmp rax, 0x10
jb 0x14000bee8
inc rax
mov rcx, qword [rsp + 0x28]
cmp rax, 0x1000
jb 0x14000bee3
test cl, 0x1f
je 0x14000beb6
call fcn.140018eb4
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000bec5
call fcn.140018eb4
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000bed4
call fcn.140018eb4
int3
cmp rcx, 0x27
jbe 0x14000bee0
call fcn.140018eb4
int3
mov rcx, rax
call fcn.140013154
call fcn.140012ba8
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 0x14000bf10
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 0x14000bf73
call fcn.14000c0a0
jmp 0x14000bf7a
inc edx
call fcn.14000bbc0
lea rax, [rax + rsi]
add eax, ebx
mov rcx, qword [rsp + 0x13e0]
xor rcx, rsp
call fcn.140013270
lea r11, [rsp + 0x13f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000c0a0
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 0x14000c10e
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 0x14000c0d0
jmp 0x14000c11d
cmp eax, 0x4e0
jb 0x14000c11d
mov rcx, rbx
call fcn.14000c170
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 0x14000c0b0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000c170
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 0x14000c180
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 0x14000c1d0
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 0x14000ce10
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 0x14000ce4a
xor eax, eax
jmp 0x14000cec7
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 0x14000ce7a
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov ebx, eax
test eax, eax
jne 0x14000ce80
xor eax, eax
jmp 0x14000cec2
dec ebx
lea rdx, [rsp + 0x20]
mov r8d, 0x28
mov rcx, qword [rdi + rbx*8]
call sub.IMM32.dll_ImmGetIMEFileNameW
test eax, eax
je 0x14000ceac
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000ceb2
test ebx, ebx
jne 0x14000ce80
jmp 0x14000ceb6
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.140013270
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop rsi
ret
Function at 0x14000d6c0
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 0x14000d6f3
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 0x14000d73a
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14000d735
nop
cmp rbx, rcx
jae 0x14000d73a
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14000d720
cmp rbx, rcx
jb 0x14000d73e
xor eax, eax
jmp 0x14000d74a
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 0x14000dcf0
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.140017c40
cmp dword [rbp + 0x9c0], 0
lea rcx, [rbp + 0x130]
mov edx, 0x104
je 0x14000dd5b
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x14000dd61
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 0x14000dd70
mov ecx, dword [0x140032be0]
xor edx, edx
mov dword [rax], ecx
mov r8d, 0x208
lea rcx, [rbp + 0x340]
call fcn.140017c40
mov r9, rbx
lea rdx, str._s_s32.ime
mov r8, r14
lea rcx, [rbp + 0x340]
call fcn.140008050
lea rcx, [rbp + 0x130]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000def2
lea rcx, [rbp + 0x340]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000def2
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140017c40
mov r9, rbx
lea r8, [rbp + 0x130]
lea rdx, str._s_s.ime
lea rcx, [rsp + 0x20]
call fcn.140008050
lea r8, [rsp + 0x20]
mov rcx, rsi
lea rdx, [rbp + 0x340]
call fcn.14000dc00
test eax, eax
jne 0x14000deeb
lea edx, [rax + 0x64]
xor ecx, ecx
call fcn.14000c250
xor edx, edx
lea rcx, [rbp + 0x550]
mov r8d, 0x208
mov ebx, eax
call fcn.140017c40
mov r9d, ebx
lea r8, [rsp + 0x20]
lea rdx, str._s.bak_d
lea rcx, [rbp + 0x550]
call fcn.140008050
lea rdx, [rbp + 0x550]
lea rcx, [rsp + 0x20]
call fcn.14001d4bc
lea rcx, [rbp + 0x550]
call fcn.140008420
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.14000dc00
test eax, eax
je 0x14000def2
test edi, edi
je 0x14000deeb
xor edx, edx
lea rcx, [rbp + 0x760]
mov r8d, 0x208
call fcn.140017c40
lea r9, [rsp + 0x20]
lea r8, [rbp + 0x130]
lea rdx, str._sregsvr32.exe__s__s
lea rcx, [rbp + 0x760]
call fcn.140008050
lea rcx, [rbp + 0x760]
call fcn.14000bd20
mov eax, 1
jmp 0x14000def4
xor eax, eax
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.140013270
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 0x14000df20
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.140017c40
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 0x14000df90
mov ecx, dword [0x140032be0]
xor edx, edx
mov dword [rax], ecx
mov r8d, 0x208
lea rcx, [rbp + 0x130]
call fcn.140017c40
mov r9, rbx
lea rdx, str._s_s64.ime
mov r8, r14
lea rcx, [rbp + 0x130]
call fcn.140008050
lea rcx, [rbp + 0x340]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000e112
lea rcx, [rbp + 0x130]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000e112
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.140017c40
mov r9, rbx
lea r8, [rbp + 0x340]
lea rdx, str._s_s.ime
lea rcx, [rsp + 0x20]
call fcn.140008050
lea r8, [rsp + 0x20]
mov rcx, rsi
lea rdx, [rbp + 0x130]
call fcn.14000dc00
test eax, eax
jne 0x14000e10b
lea edx, [rax + 0x64]
xor ecx, ecx
call fcn.14000c250
xor edx, edx
lea rcx, [rbp + 0x550]
mov r8d, 0x208
mov ebx, eax
call fcn.140017c40
mov r9d, ebx
lea r8, [rsp + 0x20]
lea rdx, str._s.bak_d
lea rcx, [rbp + 0x550]
call fcn.140008050
lea rdx, [rbp + 0x550]
lea rcx, [rsp + 0x20]
call fcn.14001d4bc
lea rcx, [rbp + 0x550]
call fcn.140008420
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.14000dc00
test eax, eax
je 0x14000e112
test edi, edi
je 0x14000e10b
xor edx, edx
lea rcx, [rbp + 0x760]
mov r8d, 0x208
call fcn.140017c40
lea r9, [rsp + 0x20]
lea r8, [rbp + 0x340]
lea rdx, str._sregsvr32.exe__s__s
lea rcx, [rbp + 0x760]
call fcn.140008050
lea rcx, [rbp + 0x760]
call fcn.14000bd20
mov eax, 1
jmp 0x14000e114
xor eax, eax
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.140013270
lea r11, [rsp + 0xa80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret