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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r14
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rsi, rdx
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
mov r8d, 0x20119
lea rdx, [rsp + 0x48]
call fcn.1400221a0
test eax, eax
js 0x14001d5a8
mov rcx, qword [rsi + 8]
mov rax, qword [rcx]
mov qword [rsp + 0x40], rax
cmp rax, rcx
je 0x14001d5a8
lea r14, [rax + 0x18]
mov ebx, dword [rax + 0x28]
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 [r14 + 0x18]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14001d58f
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14001d58f
xor eax, eax
mov dword [rsp + 0x68], eax
mov word [rsp + 0x6c], ax
lea r9d, [rax + 0xa]
lea r8d, [rax + 3]
lea rdx, [rsp + 0x68]
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__itow_s]
test eax, eax
jne 0x14001d58f
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001d58f
mov rbx, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, r14
call qword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x14001d581
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test rbx, rbx
je 0x14001d58f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x40]
call fcn.14001f34c
mov rax, qword [rsp + 0x40]
cmp rax, qword [rsi + 8]
jne 0x14001d4b6
cmp qword [rsp + 0x48], 0
je 0x14001d5bb
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400362c0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14001f178
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 0x14001f24b
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 0x14001f24b
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 0x14001f24b
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov rcx, qword [rsp + 0x54]
test ecx, ecx
jne 0x14001f23b
cmp dword [rsp + 0x58], ecx
jne 0x14001f23b
mov rcx, qword [rsp + 0x44]
mov qword [rdi], rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14001f250
mov eax, 0x80004005
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400362c0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x2a0
pop rdi
ret
Function at 0x1400207c4
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, [0x14003ace0]
mov qword [rcx], rax
mov dword [rcx + 8], 0xc0000001
call fcn.140022820
nop
mov rcx, qword [rbx + 0x28]
call fcn.14002d6fc
nop
test rax, rax
je 0x1400208f7
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.1400223c0
nop
mov esi, eax
test eax, eax
js 0x1400208db
mov rcx, qword [rdi]
cmp rcx, qword [0x14003f700]
jne 0x140020861
mov rcx, qword [rdi + 8]
cmp rcx, qword [0x14003f708]
je 0x1400208db
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 0x1400208db
mov rax, qword [rdi]
cmp rax, qword [0x14003f710]
jne 0x140020898
mov rax, qword [rdi + 8]
cmp rax, qword [0x14003f718]
je 0x1400208db
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 0x1400208db
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 [0x140050ae8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140024a15.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.1400362c0
nop
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400223c0
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 0x14002240c
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.14002d758
mov ebx, eax
test eax, eax
js 0x140022564
mov r8d, 0x20106
lea rdx, [rsp + 0x68]
mov ecx, r15d
call fcn.1400221a0
mov ebx, eax
mov rdi, qword [rsp + 0x68]
test eax, eax
js 0x140022564
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x20119
lea r8, [rbp + 0x1a0]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140001b5c
mov r15d, 0x80004005
test eax, eax
cmovne ebx, r15d
mov rsi, qword [rsp + 0x50]
test ebx, ebx
js 0x140022564
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 0x140022544
mov eax, dword [rsp + 0x44]
dec eax
cmp eax, 1
ja 0x14002254b
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14002253c
test al, 1
jne 0x14002254b
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r13w
je 0x140022541
jmp 0x14002254b
mov word [rbp - 0x70], r13w
mov eax, r13d
test eax, 0xfffffffd
je 0x14002254e
mov ebx, r15d
test ebx, ebx
js 0x140022564
test r14, r14
je 0x140022564
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 0x14002257f
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rdi, rdi
je 0x14002258d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1400362c0
add rsp, 0x4c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14002290c
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 0x140022b15
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 [0x14003f170]
xor edx, edx
mov eax, dword [0x14003f1d8]
mov r8d, 0x18a
movaps xmmword [rsp + 0x20], xmm0
movaps xmm0, xmmword [0x14003f180]
movaps xmmword [rsp + 0x30], xmm1
movaps xmm1, xmmword [0x14003f190]
movaps xmmword [rsp + 0x40], xmm0
movaps xmm0, xmmword [0x14003f1a0]
movaps xmmword [rsp + 0x50], xmm1
movaps xmm1, xmmword [0x14003f1b0]
movaps xmmword [rsp + 0x60], xmm0
movaps xmm0, xmmword [0x14003f1c0]
movaps xmmword [rsp + 0x70], xmm1
movsd xmm1, qword [0x14003f1d0]
mov dword [rbp - 0x68], eax
movzx eax, word [0x14003f1dc]
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 0x140022a1d
mov ebx, 0x80004005
jmp 0x140022b11
or rdi, 0xffffffffffffffff
mov r15d, 0x104
cmp word [rsp + 0x20], r14w
je 0x140022a67
lea rcx, [rsp + 0x20]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140022a37
cmp word [rsp + rax*2 + 0x1e], 0x5c
je 0x140022a67
lea r8, [0x14003f144]
mov rdx, r15
lea rcx, [rsp + 0x20]
call fcn.1400064f4
mov ebx, eax
test eax, eax
js 0x140022b11
lea r8, [rbp + 0x130]
mov rdx, r15
lea rcx, [rsp + 0x20]
call fcn.1400064f4
mov ebx, eax
test eax, eax
js 0x140022b11
mov r8d, r15d
lea rdx, [rbp + 0x1e0]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140022a13
lea rcx, [rbp + 0x1e0]
call fcn.14002eab4
mov ebx, eax
test eax, eax
js 0x140022b11
cmp word [rbp + 0x1e0], r14w
je 0x140022af2
lea rax, [rbp + 0x1e0]
inc rdi
cmp word [rax + rdi*2], r14w
jne 0x140022ac5
cmp word [rbp + rdi*2 + 0x1de], 0x5c
je 0x140022af2
lea r8, [0x14003f144]
mov rdx, r15
lea rcx, [rbp + 0x1e0]
call fcn.1400064f4
mov ebx, eax
test ebx, ebx
js 0x140022b11
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 0x140022b1a
mov eax, 0x80070057
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.1400362c0
mov rbx, qword [rsp + 0x540]
add rsp, 0x500
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400231ac
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 0x1400232ba
cmp qword [rcx + 0x50], rdi
jne 0x1400232ba
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x140023202
lea eax, [rdi + 1]
jmp 0x1400232d6
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 0x14002323f
mov rcx, rbx
call fcn.140022820
mov eax, 0x80004005
jmp 0x1400232d6
mov rax, qword [rbx + 0x14]
cmp rax, qword [0x14003f700]
jne 0x140023265
mov rax, qword [rbx + 0x1c]
cmp rax, qword [0x14003f708]
jne 0x140023265
mov edx, esi
mov rcx, rbx
call fcn.140022e28
jmp 0x1400232ac
mov rax, qword [rbx + 0x14]
cmp rax, qword [0x14003f710]
jne 0x1400232a4
mov rax, qword [rbx + 0x1c]
cmp rax, qword [0x14003f718]
jne 0x1400232a4
and dword [rsp + 0x20], edi
lea r8, [rsp + 0x20]
lea rdx, str.E208CCA6_44BC_45CA_9FBF_DAE2263B9583
mov rcx, rbx
call fcn.140022d08
cmp dword [rsp + 0x20], 0
mov edi, eax
jne 0x1400232ae
test eax, eax
js 0x1400232ae
mov rcx, rbx
call fcn.140022b40
mov edi, eax
test edi, edi
jns 0x1400232ba
mov rcx, rbx
call fcn.140022820
cmp qword [rbx + 0x40], 0xffffffffffffffff
jne 0x1400232d4
cmp qword [rbx + 0x50], 0
jne 0x1400232d4
test edi, edi
mov eax, 0x80004005
cmovs eax, edi
jmp 0x1400232d6
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400362c0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14002367c
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rcx, qword [rcx + 0x28]
xor r14d, r14d
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x2000
mov ebx, 0x80004005
mov dword [rsp + 0x20], 3
lea edx, [r14 + 1]
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400237ca
mov qword [rsp + 0x28], r14
lea r8d, [r14 + 2]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400237ab
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor r8d, r8d
lea edx, [r14 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
je 0x1400237a0
xor edx, edx
lea r8d, [r14 + 0x34]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x50]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov edx, dword [rsp + 0x74]
mov ebx, 0x80070018
cmp edx, 0x10
cmova ebx, r14d
jbe 0x140023797
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.14002de2c
mov ebx, eax
test eax, eax
js 0x140023792
mov rcx, qword [rsp + 0x40]
cmp rcx, qword [rdi]
jne 0x140023792
mov rcx, qword [rsp + 0x48]
cmp rcx, qword [rdi + 8]
je 0x140023797
mov ebx, 0x80070017
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400237bf
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 0x1400237de
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.1400362c0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140023808
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 0x140023904
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.140001b5c
test eax, eax
jne 0x1400238e3
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, [0x14003f6e8]
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002389d
cmp dword [rbp + 0x30], 4
jne 0x1400238ac
cmp eax, 0xd
ja 0x1400238e3
mov ecx, 0x2005
bt ecx, eax
jae 0x1400238e3
mov eax, dword [rbp + 0x20]
lea rdx, [0x14003f6e8]
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 0x1400238ea
mov ebx, 0x80004005
jmp 0x1400238ef
mov edx, dword [rbp + 0x20]
mov dword [rdi], edx
cmp qword [rbp - 0x20], 0
je 0x140023900
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140023909
mov eax, 0x80070057
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret
Function at 0x140024788
Capabilities:
Create thread

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rdi, rcx
xor ebp, ebp
cmp byte [rcx + 0x30], bpl
jne 0x140024886
lea rsi, [rcx + 0x50]
lea rbx, [rsi + 0x10]
mov qword [rsp + 0x60], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov word [rsi + 0xca], 1
cmp qword [rsi + 0xd0], rbp
jne 0x1400247fc
lea ecx, [rbp + 0x10]
call fcn.140035c78
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1400247f2
mov rcx, rax
call fcn.140025070
jmp 0x1400247f5
mov rax, rbp
mov qword [rsi + 0xd0], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x40]
add rcx, 0x130
lea rbx, [rdi + 0x138]
mov byte [rbx + 0x30], bpl
cmp qword [rbx + 0x48], rbp
jne 0x140024886
mov qword [rbx + 0x28], rsi
mov qword [rbx + 0x60], rcx
mov rax, qword [rcx]
mov edx, 4
mov rax, qword [rax]
call qword [case.0x140024a15.0]
test al, al
jne 0x140024842
mov byte [rbx + 0x58], 1
cmp qword [rbx + 0x50], rbp
je 0x140024886
mov ecx, 0xa000
call fcn.140035cbc
mov qword [rbx + 0x48], rax
test rax, rax
je 0x140024886
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x140028860]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x40], rax
test rax, rax
jne 0x140024886
or qword [rbx + 0x40], 0xffffffffffffffff
lea rsi, [rdi + 0x50]
lea rbx, [rdi + 0x1c8]
cmp byte [rbx + 8], bpl
je 0x1400248cf
test rsi, rsi
je 0x1400248cf
cmp qword [rbx + 0x18], rbp
je 0x1400248cf
mov qword [rbx], rsi
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x140029970]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1400248cf
mov byte [rbx + 8], bpl
lea rbx, [rdi + 0x208]
cmp byte [rbx + 8], bpl
je 0x140024914
test rsi, rsi
je 0x140024914
cmp qword [rbx + 0x18], rbp
je 0x140024914
mov qword [rbx], rsi
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x140029ea0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x140024914
mov byte [rbx + 8], bpl
mov rbx, qword [rdi + 0x248]
mov qword [rbx + 0x10], rsi
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x14002a720]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x18], rax
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002635c
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rsi, r9
mov rbx, rcx
cmp qword [rcx + 0xb0], 0
je 0x14002638c
mov al, 1
jmp 0x14002647a
mov rax, qword [rsp + 0x70]
mov qword [rcx + 0x60], rax
mov byte [rcx + 0xca], dl
mov edi, reloc.OLEAUT32.dll_SafeArrayGetDim
xor dl, 1
mov byte [rcx + 0xcb], dl
mov dword [rcx + 0xc4], r8d
mov qword [rcx + 8], rsi
jne 0x1400263d2
mov ecx, edi
call fcn.140035c78
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400263d0
mov rcx, rax
call fcn.140025070
nop
jmp 0x1400263d4
xor eax, eax
mov qword [rbx + 0xd0], rax
mov rcx, rdi
call fcn.140035c78
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400263f6
mov rcx, rax
call fcn.140025070
nop
mov qword [rbx + 0xd8], rax
mov rdx, rsi
lea rcx, [rbx + 0x68]
call fcn.14002b048
mov esi, eax
test eax, eax
js 0x140026452
cmp qword [rbx + 0x70], 0
je 0x140026452
cmp dword [rbx + 0x68], 0
jbe 0x140026452
mov rcx, rbx
call fcn.1400272c4
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x1400260c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0xb0], rax
test rax, rax
setne al
jmp 0x14002647a
call fcn.140008898
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140026478
cmp dword [rcx], 0
jbe 0x140026478
call fcn.140008898
lea r8, str.Failed_initializing_TextTrainerList_or_no_trainers_in_the_list
mov edx, esi
call fcn.140021e20
xor al, al
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14002670c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov bl, dl
lea rax, [rsp + 0x50]
lea rdx, str.SoftwareMicrosoftInputMethoden_USDuState
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002677f
mov rcx, qword [rsp + 0x50]
lea rdx, str.Enabled
movzx eax, bl
mov r9d, 4
mov dword [rsp + 0x40], eax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x30
pop rbx
ret
Function at 0x140029a20
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rbx, rcx
xor sil, sil
lea rcx, [rbp + 0x38]
call fcn.14002d690
test eax, eax
jns 0x140029a52
xor al, al
jmp 0x140029c4c
test byte [0x140050ac0], 1
je 0x140029a6e
lea r8, [0x14003c798]
lea rdx, [0x14003d368]
call fcn.140006400
cmp byte [rbx + 0x3c], 0
jne 0x140029aa3
lea rax, [rbx + 0x20]
mov qword [rsp + 0x20], rax
lea r9, str.AS
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140040e70]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140029c2d
mov byte [rbx + 0x3c], 1
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call fcn.140035c78
mov qword [rbp + 0x28], rax
test rax, rax
je 0x140029ac3
mov rcx, rax
call fcn.140025070
mov rdi, rax
jmp 0x140029ac5
xor edi, edi
test rdi, rdi
je 0x140029c2d
xor eax, eax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov rcx, qword [rbx + 0x20]
lea r8, [rbx + 0x38]
mov rax, qword [rcx]
lea r9, [rbp - 0x18]
xor edx, edx
mov rax, qword [rax + 0x38]
call qword [case.0x140024a15.0]
test eax, eax
jne 0x140029b1b
mov dword [rsp + 0x20], 9
mov r9, qword [rbp + 0x38]
lea r8, [rbp - 0x18]
mov rdx, rdi
call fcn.140025d78
mov sil, al
jmp 0x140029bab
cmp eax, 0x8004501b
jne 0x140029bf2
and dword [rbp + 0x28], 0
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x28]
lea r8, [rbx + 0x38]
mov edx, 1
mov rax, qword [rax + 0x40]
call qword [case.0x140024a15.0]
mov dword [rbp + 0x30], eax
test eax, eax
js 0x140029bf2
mov dword [rsp + 0x20], 9
mov r9, qword [rbp + 0x38]
lea r8, [rbp - 0x18]
mov rdx, rdi
call fcn.140025d78
or sil, al
cmp dword [rbp + 0x30], 0
je 0x140029bab
mov rcx, qword [rbx + 0x20]
mov rax, qword [rcx]
lea rdx, [rbp - 0x18]
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x28]
lea r8, [rbx + 0x38]
mov edx, 1
mov rax, qword [rax + 0x40]
call qword [case.0x140024a15.0]
mov dword [rbp + 0x30], eax
test eax, eax
jns 0x140029b5c
test sil, sil
je 0x140029bf2
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rdi
mov rax, qword [rax + 8]
call qword [case.0x140024a15.0]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140029c02
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rbx + 0x38]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.Lexicon_Generation
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x140029c02
mov rcx, rdi
call fcn.1400250a4
mov rcx, rdi
call fcn.140035cb4
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140029c11
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test sil, sil
jne 0x140029c2d
cmp byte [rbx + 0x3d], sil
jne 0x140029c2d
mov word [rbx + 0x3c], 0x100
mov rcx, rbx
call fcn.140029a20
mov sil, al
test byte [0x140050ac0], 1
je 0x140029c49
lea r8, [0x14003c798]
lea rdx, [0x14003d438]
call fcn.140006400
mov al, sil
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret