joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d254
Capabilities:
Check if file exists
Delete registry value
Get file attributes
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r14, rdx
and qword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
mov r8d, 0x20119
lea rdx, [rsp + 0x40]
call fcn.1400220d0
test eax, eax
js 0x14001d3f0
mov rax, qword [r14]
mov rbx, qword [rax]
cmp rbx, rax
je 0x14001d3f0
mov edi, dword [rbx + 0x30]
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x70]
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14001d39e
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14001d39e
xor eax, eax
mov dword [rsp + 0x60], eax
mov word [rsp + 0x64], ax
lea r9d, [rax + 0xa]
lea r8d, [rax + 3]
lea rdx, [rsp + 0x60]
mov ecx, edi
call qword [sym.imp.msvcrt.dll__itow_s]
test eax, eax
jne 0x14001d39e
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001d39e
mov rdi, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
lea rcx, [rbx + 0x20]
call qword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x14001d390
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rdi, rdi
je 0x14001d39e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [rbx + 0x19], 0
jne 0x14001d3e7
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x14001d3cb
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x14001d3e7
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x14001d3ba
jmp 0x14001d3e7
mov rax, qword [rbx + 8]
jmp 0x14001d3de
cmp rbx, qword [rax + 0x10]
jne 0x14001d3e4
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x14001d3d1
mov rbx, rax
cmp rbx, qword [r14]
jne 0x14001d2c8
cmp qword [rsp + 0x40], 0
je 0x14001d403
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400363b0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001f19c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0x290], rax
and qword [r8], 0
mov rdi, r8
mov rcx, qword [rdx]
mov rbx, rdx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x14001f26f
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov rcx, qword [rbx]
lea rdx, [rsp + 0x80]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14001f26f
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x80]
xor r9d, r9d
mov dword [rsp + 0x28], 0x2000
mov dword [rsp + 0x20], 3
lea edx, [r9 + 1]
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001f26f
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov rcx, qword [rsp + 0x54]
test ecx, ecx
jne 0x14001f25f
cmp dword [rsp + 0x58], ecx
jne 0x14001f25f
mov rcx, qword [rsp + 0x44]
mov qword [rdi], rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14001f274
mov eax, 0x80004005
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400363b0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x2a0
pop rdi
ret
Function at 0x1400203f8
Capabilities:
Delete file
Query environment variable

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x250
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
lea rax, [0x14003b6d0]
mov qword [rcx], rax
mov dword [rcx + 8], 0xc0000001
cmp byte [rcx + 0x5c], 0
jne 0x140020446
call fcn.140022768
nop
mov rcx, qword [rbx + 0x28]
call fcn.14002d40c
nop
test rax, rax
je 0x140020531
and qword [rsp + 0x20], 0
lea rdi, [rbx + 0x14]
lea r9, [rsp + 0x20]
mov r8d, dword [rbx + 0x24]
mov rdx, rdi
mov ecx, dword [rbx + 0x10]
call fcn.1400222f4
nop
mov esi, eax
test eax, eax
js 0x140020515
mov rcx, qword [rdi]
cmp rcx, qword [0x1400409a0]
jne 0x14002049b
mov rcx, qword [rdi + 8]
cmp rcx, qword [0x1400409a8]
je 0x140020515
xor r9d, r9d
mov r8d, 0x400
mov rdx, qword [rbx + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_VarR8Pow]
nop
cmp eax, 1
je 0x140020515
mov rax, qword [rdi]
cmp rax, qword [0x1400409b0]
jne 0x1400204d2
mov rax, qword [rdi + 8]
cmp rax, qword [0x1400409b8]
je 0x140020515
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
nop
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop
mov ecx, 0x80004005
test eax, eax
cmove esi, ecx
test esi, esi
js 0x140020515
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
and qword [rbx + 0x28], 0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [0x140050d28]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400247a9.0]
nop
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400363b0
nop
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400222f4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3c8]
sub rsp, 0x4c8
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r14, r9
mov r12d, r8d
mov rbx, rdx
mov r15d, ecx
xor r13d, r13d
test r9, r9
je 0x140022340
mov qword [r9], r13
mov rdi, r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
mov rsi, r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1a0]
call sub.msvcrt.dll_memset
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll_memset
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rbp + 0x1a0]
mov ecx, r12d
call qword [sym.imp.msvcrt.dll__itow]
mov qword [rsp + 0x48], r13
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.14002d46c
mov ebx, eax
test eax, eax
js 0x140022498
mov r8d, 0x20106
lea rdx, [rsp + 0x68]
mov ecx, r15d
call fcn.1400220d0
mov ebx, eax
mov rdi, qword [rsp + 0x68]
test eax, eax
js 0x140022498
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x20119
lea r8, [rbp + 0x1a0]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140001cc4
mov r15d, 0x80004005
test eax, eax
cmovne ebx, r15d
mov rsi, qword [rsp + 0x50]
test ebx, ebx
js 0x140022498
mov dword [rsp + 0x40], 0x208
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x140022478
mov eax, dword [rsp + 0x44]
dec eax
cmp eax, 1
ja 0x14002247f
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140022470
test al, 1
jne 0x14002247f
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r13w
je 0x140022475
jmp 0x14002247f
mov word [rbp - 0x70], r13w
mov eax, r13d
test eax, 0xfffffffd
je 0x140022482
mov ebx, r15d
test ebx, ebx
js 0x140022498
test r14, r14
je 0x140022498
lea rcx, [rbp - 0x70]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [r14], rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
test rsi, rsi
je 0x1400224b3
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rdi, rdi
je 0x1400224c1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1400363b0
add rsp, 0x4c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400227d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x400]
sub rsp, 0x500
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
xor r14d, r14d
mov rsi, rdx
mov ebx, ecx
test rdx, rdx
je 0x1400229d9
mov qword [rdx], r14
lea rcx, [rbp + 0x130]
xor edx, edx
mov r8d, 0xaa
call sub.msvcrt.dll_memset
movaps xmm0, xmmword [str._localappdata_microsoftInputPersonalizationTrainedDataStore]
lea rcx, [rbp - 0x62]
movaps xmm1, xmmword [0x1400403f0]
xor edx, edx
mov eax, dword [0x140040458]
mov r8d, 0x18a
movaps xmmword [rsp + 0x20], xmm0
movaps xmm0, xmmword [0x140040400]
movaps xmmword [rsp + 0x30], xmm1
movaps xmm1, xmmword [0x140040410]
movaps xmmword [rsp + 0x40], xmm0
movaps xmm0, xmmword [0x140040420]
movaps xmmword [rsp + 0x50], xmm1
movaps xmm1, xmmword [0x140040430]
movaps xmmword [rsp + 0x60], xmm0
movaps xmm0, xmmword [0x140040440]
movaps xmmword [rsp + 0x70], xmm1
movsd xmm1, qword [0x140040450]
mov dword [rbp - 0x68], eax
movzx eax, word [0x14004045c]
movaps xmmword [rbp - 0x80], xmm0
movsd qword [rbp - 0x70], xmm1
mov word [rbp - 0x64], ax
call sub.msvcrt.dll_memset
xor edx, edx
lea rcx, [rbp + 0x1e0]
mov r8d, 0x208
call sub.msvcrt.dll_memset
xor r9d, r9d
lea r8d, [r14 + 0x55]
lea rdx, [rbp + 0x130]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
test eax, eax
jg 0x1400228e1
mov ebx, 0x80004005
jmp 0x1400229d5
or rdi, 0xffffffffffffffff
mov r15d, 0x104
cmp word [rsp + 0x20], r14w
je 0x14002292b
lea rcx, [rsp + 0x20]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r14w
jne 0x1400228fb
cmp word [rsp + rax*2 + 0x1e], 0x5c
je 0x14002292b
lea r8, [0x1400403c4]
mov rdx, r15
lea rcx, [rsp + 0x20]
call fcn.1400068b0
mov ebx, eax
test eax, eax
js 0x1400229d5
lea r8, [rbp + 0x130]
mov rdx, r15
lea rcx, [rsp + 0x20]
call fcn.1400068b0
mov ebx, eax
test eax, eax
js 0x1400229d5
mov r8d, r15d
lea rdx, [rbp + 0x1e0]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400228d7
lea rcx, [rbp + 0x1e0]
call fcn.14002e8c8
mov ebx, eax
test eax, eax
js 0x1400229d5
cmp word [rbp + 0x1e0], r14w
je 0x1400229b6
lea rax, [rbp + 0x1e0]
inc rdi
cmp word [rax + rdi*2], r14w
jne 0x140022989
cmp word [rbp + rdi*2 + 0x1de], 0x5c
je 0x1400229b6
lea r8, [0x1400403c4]
mov rdx, r15
lea rcx, [rbp + 0x1e0]
call fcn.1400068b0
mov ebx, eax
test ebx, ebx
js 0x1400229d5
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
test rax, rax
mov qword [rsi], rax
mov ecx, 0x8007000e
cmove ebx, ecx
mov eax, ebx
jmp 0x1400229de
mov eax, 0x80070057
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.1400363b0
mov rbx, qword [rsp + 0x540]
add rsp, 0x500
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022a0c
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov rcx, qword [rbx + 0x28]
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x140022a64
mov rcx, rbx
call fcn.140022768
mov eax, 0x80004005
jmp 0x140022a8c
lea rax, [rbx + 0x30]
lea rcx, [rbx + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rbx + 0x48]
lea rcx, [rsp + 0x30]
lea r8, [rbx + 0x40]
lea rdx, [rbx + 0x38]
call fcn.14003252c
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400363b0
add rsp, 0x250
pop rbx
ret
Function at 0x140022f50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor edi, edi
mov esi, edx
cmp qword [rcx + 0x40], 0xffffffffffffffff
mov rbx, rcx
jne 0x14002305e
cmp qword [rcx + 0x50], rdi
jne 0x14002305e
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x140022fa6
lea eax, [rdi + 1]
jmp 0x14002307a
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov rcx, qword [rbx + 0x28]
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x140022fe3
mov rcx, rbx
call fcn.140022768
mov eax, 0x80004005
jmp 0x14002307a
mov rax, qword [rbx + 0x14]
cmp rax, qword [0x1400409a0]
jne 0x140023009
mov rax, qword [rbx + 0x1c]
cmp rax, qword [0x1400409a8]
jne 0x140023009
mov edx, esi
mov rcx, rbx
call fcn.140022bd0
jmp 0x140023050
mov rax, qword [rbx + 0x14]
cmp rax, qword [0x1400409b0]
jne 0x140023048
mov rax, qword [rbx + 0x1c]
cmp rax, qword [0x1400409b8]
jne 0x140023048
and dword [rsp + 0x20], edi
lea r8, [rsp + 0x20]
lea rdx, str.E208CCA6_44BC_45CA_9FBF_DAE2263B9583
mov rcx, rbx
call fcn.140022aac
cmp dword [rsp + 0x20], 0
mov edi, eax
jne 0x140023052
test eax, eax
js 0x140023052
mov rcx, rbx
call fcn.140022a0c
mov edi, eax
test edi, edi
jns 0x14002305e
mov rcx, rbx
call fcn.140022768
cmp qword [rbx + 0x40], 0xffffffffffffffff
jne 0x140023078
cmp qword [rbx + 0x50], 0
jne 0x140023078
test edi, edi
mov eax, 0x80004005
cmovs eax, edi
jmp 0x14002307a
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400363b0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140023454
Capabilities:
Read file via mapping

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0x88], rax
and qword [r11 - 0x68], 0
xor r9d, r9d
mov rcx, qword [rcx + 0x28]
mov ebx, 0x80004005
mov dword [rsp + 0x28], 0x2000
mov dword [rsp + 0x20], 3
lea edx, [r9 + 1]
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400235a1
and qword [rsp + 0x28], 0
xor r9d, r9d
and dword [rsp + 0x20], 0
xor edx, edx
mov rcx, rax
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140023582
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
je 0x140023577
xor edx, edx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x34]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov edx, dword [rsp + 0x74]
cmp edx, 0x10
ja 0x140023531
mov ebx, 0x80070018
jmp 0x14002356e
xor eax, eax
lea rcx, [rdi + 0x10]
add edx, 0xfffffff0
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x40]
mov qword [rsp + 0x48], rax
call fcn.140032454
mov ebx, eax
test eax, eax
js 0x140023569
mov rcx, qword [rsp + 0x40]
cmp rcx, qword [rdi]
jne 0x140023569
mov rcx, qword [rsp + 0x48]
cmp rcx, qword [rdi + 8]
je 0x14002356e
mov ebx, 0x80070017
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140023596
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400235b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400363b0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400235e8
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x60
mov rdi, rcx
test rcx, rcx
je 0x1400236e4
and dword [rcx], 0
lea r8, str.SoftwareMicrosoftInputPersonalizationTrainedDataStore_
and qword [rbp - 0x20], 0
lea rcx, [rbp - 0x20]
and qword [rbp - 0x18], 0
xor ebx, ebx
and qword [rsp + 0x30], rbx
mov rdx, 0xffffffff80000001
and qword [rbp - 0x10], 0
and dword [rbp + 0x20], ebx
mov dword [rsp + 0x28], 0x2011f
call fcn.140001cc4
test eax, eax
jne 0x1400236c3
mov rcx, qword [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x30]
lea rax, [rbp + 0x20]
mov dword [rbp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140040988]
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002367d
cmp dword [rbp + 0x30], 4
jne 0x14002368c
cmp eax, 0xd
ja 0x1400236c3
mov ecx, 0x2005
bt ecx, eax
jae 0x1400236c3
mov eax, dword [rbp + 0x20]
lea rdx, [0x140040988]
mov rcx, qword [rbp - 0x20]
inc eax
mov dword [rbp + 0x28], eax
mov r9d, 4
lea rax, [rbp + 0x28]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400236ca
mov ebx, 0x80004005
jmp 0x1400236cf
mov edx, dword [rbp + 0x20]
mov dword [rdi], edx
cmp qword [rbp - 0x20], 0
je 0x1400236e0
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400236e9
mov eax, 0x80070057
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret
Function at 0x14002e0fc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x14002e12f
mov rcx, rdx
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x14002e22d
test rdi, rdi
je 0x14002e22d
lea rdx, [0x140041824]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wfopen]
mov rbp, rax
test rax, rax
je 0x14002e226
xor edx, edx
lea rcx, [rsp + 0x28]
lea r8d, [rdx + 0x38]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wstat64]
mov r14, qword [rsp + 0x40]
mov eax, 0xffffffff
cmp r14, rax
ja 0x14002e226
mov ecx, 0x11
mov r8d, r14d
xor edx, edx
call qword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
xor ebx, ebx
mov r15d, 0x8007000e
test rax, rax
mov rsi, rax
cmove ebx, r15d
and qword [rsp + 0x20], 0
test ebx, ebx
js 0x14002e20a
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov ebx, eax
test eax, eax
js 0x14002e20a
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14002e20a
mov r8d, r14d
mov r9, rbp
mov edx, 1
call qword [sym.imp.msvcrt.dll_fread]
mov eax, 0x2011
mov qword [rdi + 8], rsi
mov rcx, rsi
mov word [rdi], ax
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov ebx, eax
jmp 0x14002e219
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
test ebx, ebx
cmovns ebx, r15d
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_fclose]
mov eax, ebx
jmp 0x14002e232
mov eax, 0x80004005
jmp 0x14002e232
mov eax, 0x80070057
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400363b0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x14002e40c
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, r8d
mov dword [rcx + 8], 0x80004005
mov rbx, rcx
lea r8, str.BFFF9080_1DAE_43B1_96B6_738575D01524
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx], rax
test rax, rax
je 0x14002e466
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14002e450
and dword [rbx + 8], eax
jmp 0x14002e488
mov rcx, qword [rbx]
mov dword [rbx + 8], 0x102
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx], 0
jmp 0x14002e488
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov dword [rbx + 8], ecx
test ecx, ecx
jne 0x14002e488
mov dword [rbx + 8], 0x80004005
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14002e8c8
Capabilities:
Create directory
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor edx, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edi, edi
test eax, eax
jne 0x14002e966
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14002e966
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x14002e95f
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.140006828
lea edx, [rdi + 0x5c]
lea rcx, [rsp + 0x20]
call qword [sym.imp.msvcrt.dll_wcsrchr]
test rax, rax
je 0x14002e95f
lea rcx, [rsp + 0x20]
cmp rax, rcx
je 0x14002e95f
lea rcx, [rsp + 0x20]
mov word [rax], di
call fcn.14002e8c8
test eax, eax
jne 0x14002e95f
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14002e966
mov eax, 0x80004005
jmp 0x14002e976
mov edx, 0x2000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400363b0
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret
Function at 0x14002ed74
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x168]
sub rsp, 0x260
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 0x150], rax
and qword [rsp + 0x38], 0
lea r8, str.SoftwareMicrosoftTPGSystem_Recognizers
and dword [rsp + 0x40], 0
mov rbx, rdx
and dword [rsp + 0x30], 0
mov rdi, rcx
mov esi, 0x100
lea rcx, [rsp + 0x50]
mov edx, esi
call fcn.140006828
lea r8, [0x1400403c4]
mov edx, esi
lea rcx, [rsp + 0x50]
call fcn.1400068b0
mov r8, rbx
lea rcx, [rsp + 0x50]
mov edx, esi
call fcn.1400068b0
lea rax, [rsp + 0x38]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002eeb5
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rsi, str.Recognized_Languages
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rdx, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002eeaa
cmp dword [rsp + 0x40], 3
jne 0x14002eeaa
cmp dword [rsp + 0x30], 2
jbe 0x14002eeec
mov ecx, dword [rsp + 0x30]
lea rdx, [0x14003d828]
call fcn.140036f14
mov rbx, rax
test rax, rax
je 0x14002eeaa
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
mov rcx, rbx
test eax, eax
je 0x14002eedf
call fcn.140035a2c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1400363b0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
movzx eax, word [rbx]
mov word [rdi], ax
call fcn.140035a2c
jmp 0x14002ef13
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002eeaa
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x14002eeb5
mov al, 1
jmp 0x14002eeb7

Function at 0x140032454
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140032462
xor eax, eax
mov qword [r8], rax
mov qword [r8 + 8], rax
test rcx, rcx
je 0x140032494
test edx, edx
je 0x140032494
test r8, r8
je 0x140032494
shr edx, 3
test edx, edx
je 0x140032491
mov r9d, edx
mov rax, qword [rcx]
xor qword [r8], rax
mov rax, qword [rcx]
lea rcx, [rcx + 8]
add qword [r8 + 8], rax
sub r9, 1
jne 0x14003247a
xor eax, eax
ret
mov eax, 0x80070057
ret