joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400024c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r14, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x70], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000253c
call fcn.1400017f4
mov ebx, eax
jmp 0x140002666
xor r9d, r9d
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rdi, rax
test rax, rax
jne 0x140002560
call fcn.1400017f4
jmp 0x14000265a
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140002556
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x1400025b2
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400025a8
lea rcx, [rsp + 0x70]
call fcn.14000ba34
nop
mov eax, 0x8007000e
jmp 0x14000267f
mov ecx, eax
test eax, eax
je 0x1400025e9
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400026a3
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x1400025e9
lea rcx, [rsp + 0x70]
call fcn.14000c22c
mov rax, qword [rsp + 0x70]
jmp 0x1400025f3
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14000260a
test rax, rax
jne 0x140002616
mov ebx, 0x8007000e
jmp 0x14000265c
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140002556
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140003158
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14000267d
lea rcx, [rsp + 0x70]
call fcn.14000ba34
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400363b0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80070057
call fcn.140001768
int3
Function at 0x14000cd6c
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [rdx], 0
mov r15, rdx
mov r8, rcx
mov edi, 0x104
mov edx, edi
lea rcx, [rsp + 0x30]
xor r14d, r14d
call fcn.140006828
lea r8, [0x14003e2d0]
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400068b0
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x14000ce0f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000cf42
mov rcx, qword [rbp + 0x168]
lea edx, [rdi - 0x44]
call fcn.140007e18
mov esi, eax
jmp 0x14000cf26
and dword [rsp + 0x24], r14d
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.140007ee0
mov esi, eax
test eax, eax
jns 0x14000ce56
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xc6
call fcn.140007ddc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14000cf85
jmp 0x14000cf26
lea r8, [0x14003e2d8]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400068b0
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x14000ceaa
mov rcx, qword [rbp + 0x168]
mov edx, 0xcc
call fcn.140007e18
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14000cf97
jmp 0x14000cf26
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140007ee0
mov esi, eax
test eax, eax
jns 0x14000cef5
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xce
call fcn.140007ddc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14000cfbb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14000cfa9
jmp 0x14000cf26
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14000cfcd
movsxd rax, dword [rsp + 0x20]
mov rcx, rbx
movsxd r14, dword [rsp + 0x24]
shl rax, 0x1f
or r14, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x14000cf73
xor esi, esi
test esi, esi
jns 0x14000cf42
mov rcx, qword [rbp + 0x168]
mov r9d, esi
mov edx, 0x59
call fcn.140007ddc
mov eax, esi
jmp 0x14000cf47
mov qword [r15], r14
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1400363b0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, qword [rbp + 0x168]
mov edx, 0x8f0
call fcn.140007e38
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x8f0
call fcn.140007e38
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x8f0
call fcn.140007e38
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x8f0
call fcn.140007e38
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x8f0
call fcn.140007e38
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x8f0
call fcn.140007e38
int3
Function at 0x14000f4b4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x40
mov rbx, r8
test r8, r8
jne 0x14000f4d5
mov eax, 0x80004003
jmp 0x14000f5b2
lea rax, [rsp + 0x68]
mov byte [r8], 0
mov qword [rsp + 0x30], rax
lea r8, str.AcceptedPrivacyPolicy
lea rax, [rsp + 0x60]
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x28], rax
mov r9d, 0x10010
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_RegGetValueW]
mov edi, dword [rsp + 0x68]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns edi, dword [rsp + 0x60]
jns 0x14000f59a
cmp ecx, 0x80070002
jne 0x14000f5b0
mov edx, 0x5c
lea rcx, str.CURRENT_USERSOFTWAREMicrosoftPersonalizationSettings
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov r9d, 0x10010
mov dword [rsp + 0x68], 4
lea r8, str.AcceptedPrivacyPolicy
mov rcx, 0xffffffff80000002
lea rdx, [rax + 2]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_RegGetValueW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns edi, dword [rsp + 0x60]
js 0x14000f5a3
test edi, edi
setne al
mov byte [rbx], al
jmp 0x14000f5b0
cmp ecx, 0x80070002
jne 0x14000f5b0
mov byte [rbx], 0
xor ecx, ecx
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14000fbcc
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x50
and qword [r11 - 0x18], 0
lea rax, [r11 + 0x10]
mov qword [r11 - 0x20], rax
lea rdx, str.SoftwareMicrosoftInputPersonalization
and qword [r11 - 0x28], 0
mov rbx, r9
mov rdi, r8
mov dword [rsp + 0x28], 0x20106
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000fc59
mov rcx, qword [rsp + 0x68]
lea r9d, [rax + 4]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
mov ebx, eax
test eax, eax
je 0x14000fc53
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14000fc59
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x14000fc6c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
mov rbx, r9
mov dword [rax + 0x10], 4
lea rax, [rax - 0x18]
mov rdi, r8
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
lea rdx, str.SoftwareMicrosoftInputPersonalization
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000fd08
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x14000fcfb
cmp dword [rsp + 0x50], 4
jne 0x14000fcfb
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000fd08
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14000fd1c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, r8
mov dword [rsp + 0x68], 4
lea rax, [r11 + 0x20]
mov rdi, rdx
mov qword [r11 - 0x20], rax
lea r9, [r11 - 0x18]
mov qword [r11 - 0x28], rdx
mov rsi, rcx
mov rdx, rcx
xor r8d, r8d
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000fd67
cmp dword [rsp + 0x30], 4
je 0x14000fdbf
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9d, 0x20119
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftInputPersonalization
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000fd9c
and qword [rbx], 0
jmp 0x14000fdbf
mov rcx, qword [rbx]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400112d4
Capabilities:
Get keyboard layout

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov r13, rdx
mov qword [rdx], rbx
mov r15, rcx
mov dword [r8], ebx
mov r14d, ebx
or r12, 0xffffffffffffffff
mov rcx, qword [r15 + 0xd0]
test rcx, rcx
je 0x140011328
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
mov rax, qword [rax]
call qword [case.0x1400247a9.0]
jmp 0x140011332
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov edi, eax
movsxd rbp, eax
mov eax, 8
mul rbp
lea rdx, [0x14003d828]
cmovo rax, r12
mov rcx, rax
call fcn.140036f14
mov rsi, rax
test rax, rax
je 0x140011397
test edi, edi
je 0x14001138c
mov rcx, qword [r15 + 0xd0]
test rcx, rcx
je 0x14001137d
mov rdx, qword [rcx]
mov r8, rsi
mov rax, qword [rdx]
mov edx, edi
call qword [case.0x1400247a9.0]
jmp 0x140011388
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
cmp edi, eax
je 0x1400113af
mov rcx, rsi
call fcn.140035a2c
mov rsi, rbx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
inc r14d
cmp r14d, 5
jl 0x140011309
mov r12, qword [rsp + 0x60]
test edi, edi
jle 0x1400113fd
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rbp
lea rdx, [0x14003d828]
cmovo rax, rcx
mov rcx, rax
call fcn.140036f14
test rax, rax
je 0x1400113fd
test edi, edi
jle 0x1400113f3
movzx ecx, word [rsi + rbx*8]
mov word [rax + rbx*2], cx
inc rbx
cmp rbx, rbp
jl 0x1400113e3
mov qword [r13], rax
mov bl, 1
mov dword [r12], edi
mov rcx, rsi
call fcn.140035a2c
mov rbp, qword [rsp + 0x58]
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140012938
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor edi, edi
mov r14, r8
xor ebp, ebp
mov r15, rdx
inc ebp
lea r8, str.SentItemsHint_d
mov r9d, ebp
lea rcx, [rsp + 0x50]
mov edx, 0x20
call fcn.140006988
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x50]
and qword [rsp + 0x28], 0
lea rdx, str.SoftwareMicrosoftInputPersonalization
and qword [rsp + 0x20], 0
mov r9d, 2
mov rcx, 0xffffffff80000001
call qword [sym.imp.KERNEL32.dll_RegGetValueW]
test eax, eax
jne 0x140012a2e
mov edx, dword [rsp + 0x40]
xor ecx, ecx
shr edx, 1
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rbx, rax
test rax, rax
je 0x140012a2e
lea rax, [rsp + 0x40]
mov r9d, 2
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], rbx
lea rdx, str.SoftwareMicrosoftInputPersonalization
and qword [rsp + 0x20], 0
mov rcx, 0xffffffff80000001
call qword [sym.imp.KERNEL32.dll_RegGetValueW]
test eax, eax
jne 0x140012a25
mov rcx, qword [r14 + rdi*8]
cmp rcx, rbx
je 0x140012a21
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [r14 + rdi*8], rbx
inc edi
jmp 0x140012a2e
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp ebp, 5
jb 0x140012967
mov dword [r15], edi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400363b0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400146c8
Capabilities:
Delete registry value

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xf0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rbx, rdx
xor esi, esi
and qword [rsp + 0x48], rsi
and qword [rsp + 0x50], rsi
and qword [rsp + 0x30], rsi
lea rax, str.SoftwareMicrosoftInputPersonalizationInkStoreToTrainImplicit
lea rdx, [0x14003eec0]
test cl, cl
cmovne rdx, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014791
mov rsi, qword [rsp + 0x30]
mov qword [rsp + 0x40], rsi
lea r8d, [rax + 0x40]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rcx, [rsp + 0x60]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rax, rax
je 0x1400147cb
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor ebx, ebx
test edi, edi
setne bl
jmp 0x140014796
mov ebx, 0x80004005
test rsi, rsi
je 0x1400147a4
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400363b0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov ecx, 0x8007000e
call fcn.140001768
int3
Function at 0x1400147dc
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x28]
sub rsp, 0x110
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 8], rax
mov edi, r8d
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
lea rax, str.SoftwareMicrosoftInputPersonalizationInkStoreToTrainImplicit
lea r8, [0x14003eec0]
test cl, cl
cmovne r8, rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x20006
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x40]
call fcn.140001cc4
test eax, eax
jne 0x140014909
mov eax, dword [0x14003f0a8]
mov dword [rsp + 0x60], eax
movzx eax, word [0x14003f0ac]
mov word [rsp + 0x64], ax
xor eax, eax
mov qword [rsp + 0x66], rax
mov qword [rsp + 0x6e], rax
lea r8d, [r14 + 0x10]
lea rdx, [rsp + 0x64]
mov ecx, edi
call qword [sym.imp.msvcrt.dll__itow]
lea r8d, [r14 + 0x40]
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rcx, [rbp - 0x80]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rax, rax
je 0x140014942
lea rcx, [rsp + 0x60]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x1400148be
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, r14d
test edi, edi
setne bl
jmp 0x14001490e
mov ebx, 0x80004005
cmp qword [rsp + 0x40], r14
je 0x140014920
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.1400363b0
mov rbx, qword [rsp + 0x148]
add rsp, 0x110
pop r14
pop rdi
pop rbp
ret
mov ecx, 0x8007000e
call fcn.140001768
int3
Function at 0x140015044
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x90], rax
test rax, rax
jne 0x14001507c
mov eax, 0x80004005
jmp 0x140015155
lea rax, [rbx + 0x80]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140018120]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x78], rax
test rax, rax
jne 0x1400150b3
mov esi, 0x80004005
mov edi, esi
jmp 0x1400150eb
mov edx, 2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x90]
mov edx, 0x9c4
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x78]
xor edi, edi
test eax, eax
mov esi, 0x80004005
cmovne edi, esi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x90], 0
test edi, edi
js 0x14001514b
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x140015125
and qword [rbx + 0x50], 0
lea r8, [rbx + 0x58]
lea rdx, [0x14003e8c8]
call qword [sym.imp.ole32.dll_CoGetInterfaceAndReleaseStream]
mov edi, eax
mov rcx, qword [rbx + 0x58]
test rcx, rcx
jne 0x140015134
test edi, edi
js 0x14001514b
mov edi, esi
test edi, edi
js 0x14001514b
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400247a9.0]
mov edi, eax
test eax, eax
jns 0x140015153
mov rcx, rbx
call fcn.140014ecc
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140015c1c
Capabilities:
Delete file

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5d8]
sub rsp, 0x6d0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov ebx, ecx
mov rdi, qword [rbp + 0x608]
test rdi, rdi
je 0x140015c65
and dword [rdi], 0
cmp edx, 0xffff
je 0x140015c91
movzx eax, dx
mov ecx, 0x3ff
and ax, cx
mov ecx, 0x7f
cmp cx, ax
je 0x140015c91
mov ecx, edx
call fcn.14002d350
test al, al
je 0x140015d55
test r8, r8
js 0x140015d55
mov eax, r9d
not eax
mov ecx, dword [rbp + 0x600]
test ecx, eax
jne 0x140015d55
lea rsi, [0x14003b648]
mov qword [rsp + 0x30], rsi
or qword [rsp + 0x38], 0xffffffffffffffff
and dword [rsp + 0x40], 0
mov dword [rsp + 0x44], edx
mov qword [rsp + 0x48], r8
mov dword [rsp + 0x50], r9d
mov dword [rsp + 0x54], ecx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3b0]
call sub.msvcrt.dll_memset
xor edx, edx
mov r8d, 0x250
lea rcx, [rbp + 0x160]
call sub.msvcrt.dll_memset
jmp 0x140015d37
lea r8, [rbp + 0x3b0]
lea rdx, [rbp + 0x160]
lea rcx, [rsp + 0x30]
call fcn.14001aed0
test eax, eax
jne 0x140015d3b
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp ebx, 0x7fffffff
jge 0x140015d37
sub ebx, dword [rbp + 0x180]
test ebx, ebx
jg 0x140015d00
test rdi, rdi
je 0x140015d42
mov dword [rdi], ebx
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x30]
call fcn.14001ae88
xor eax, eax
jmp 0x140015d5a
mov eax, 0x80070057
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.1400363b0
lea r11, [rsp + 0x6d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x14001accc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
lea rcx, str._localappdata_MicrosoftInputPersonalizationInkStore
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x14001acfa
mov ebx, 0x80004005
jmp 0x14001ad1c
mov rcx, rdi
call fcn.14002e8c8
mov ebx, eax
test eax, eax
js 0x14001ad1c
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test rax, rax
mov ecx, 0x800700ce
cmove ebx, ecx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001aed0
Capabilities:
Enumerate files on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebp, ebp
mov r14, r8
mov word [r8], bp
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x14001af0e
mov ecx, 0x80070057
jmp 0x14001afe8
xor edx, edx
mov r8d, 0x250
mov rcx, rdi
call sub.msvcrt.dll_memset
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
jne 0x14001af8b
lea rsi, [rbx + 0x28]
mov rcx, rsi
call fcn.14001accc
mov ecx, eax
test eax, eax
js 0x14001afe4
mov eax, dword [rbx + 0x24]
lea rcx, [rsp + 0x40]
mov r9d, dword [rbx + 0x14]
mov r8d, dword [rbx + 0x10]
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0x20]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
call fcn.14001ad30
mov ecx, eax
test eax, eax
js 0x14001afe4
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x14001af98
lea ecx, [rax + 2]
jmp 0x14001afe8
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14001afd0
mov edx, 0x5f
lea rcx, [rdi + 0x2c]
mov rsi, rbp
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
je 0x14001afc2
xor edx, edx
lea rcx, [rax + 2]
lea r8d, [rdx + 0x24]
call qword [sym.imp.msvcrt.dll__wcstoi64]
mov rsi, rax
cmp rsi, qword [rbx + 0x18]
jle 0x14001af1e
mov ecx, ebp
jmp 0x14001afe4
mov rcx, rbx
call fcn.14001ae88
mov ecx, 1
test eax, eax
cmovns eax, ecx
mov ecx, eax
test ecx, ecx
je 0x14001afec
mov eax, ecx
jmp 0x14001b019
lea r8, [rbx + 0x28]
mov edx, 0x104
mov rcx, r14
call fcn.140006828
test eax, eax
js 0x14001b019
lea rdx, [rdi + 0x2c]
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
neg eax
sbb eax, eax
not eax
and eax, 0x80004005
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400363b0
add rsp, 0x260
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret