joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a460
Capabilities:
Create thread
Get keyboard layout

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0xb8]
sub rsp, 0x1a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov esi, r8d
mov r14, rdx
mov r15, rcx
mov dword [rbp + 0xd8], r9d
xor ebx, ebx
test r9d, r9d
jne 0x14000a4b5
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx r9d, ax
mov dword [rbp + 0xd8], r9d
lea rcx, [rbp - 0x40]
call fcn.14002dac4
nop
lea rcx, [rbp - 0x40]
call fcn.14002db50
mov edi, eax
test eax, eax
jns 0x14000a4fa
mov ecx, dword [rbp + 0xd8]
mov rax, qword [0x140054fc8]
mov byte [rax + 0x50], 1
mov dword [rsp + 0x28], ecx
mov edx, 0x5f
lea r9d, [rdx - 0x3f]
lea r8d, [rdx - 5]
call fcn.140007af4
jmp 0x14000a642
mov edx, dword [rbp + 0xd8]
lea rcx, [rbp - 0x40]
call fcn.14002f370
test eax, eax
jne 0x14000a546
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, ax
mov edx, 0x59
mov eax, dword [rbp + 0xd8]
cmp eax, ecx
cmove ebx, edx
mov dword [rsp + 0x28], eax
lea r9d, [rdx - 0x39]
mov r8d, ebx
lea edx, [r9 + 0x38]
call fcn.140007af4
mov edi, 0x80070057
jmp 0x14000a642
cmp dword [r15 + 0x208], ebx
je 0x14000a614
mov rax, qword [0x140054fc8]
cmp qword [rax + 8], rbx
jne 0x14000a614
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
lea r9, [rbp + 0xd8]
lea r8, [0x1400076b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [0x140054fc8]
mov qword [rcx + 0x60], rax
mov rax, qword [0x140054fc8]
cmp qword [rax + 0x60], rbx
jne 0x14000a5b9
mov edi, 0x80004005
jmp 0x14000a642
mov ecx, SafeArrayUnaccessData
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [0x140054fc8]
cmp qword [rax + 8], rbx
je 0x14000a5a7
lea rcx, [rsp + 0x40]
call fcn.14002198c
nop
xor r8d, r8d
mov rdx, qword [0x140054fc8]
mov rdx, qword [rdx + 8]
lea rcx, [rsp + 0x40]
call fcn.140021c50
mov edi, eax
test eax, eax
jns 0x14000a60a
mov edx, 0x5c
lea r9d, [rdx - 0x3c]
lea r8d, [rdx + 1]
or ecx, 0xffffffff
call fcn.14000792c
nop
lea rcx, [rsp + 0x40]
call fcn.140021af0
jmp 0x14000a642
lea rcx, [rsp + 0x40]
call fcn.140021af0
test r14, r14
je 0x14000a633
mov rcx, qword [0x140054fc8]
add rcx, 0x68
lea r9, str.Content.XML
mov r8, r14
call fcn.140006f70
cmp esi, 0xffffffff
jle 0x14000a642
mov rcx, qword [0x140054fc8]
mov dword [rcx + 0x10], esi
lea rcx, [rbp - 0x40]
call fcn.14002dc80
mov eax, edi
lea r11, [rsp + 0x1a0]
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 0x14000a700
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov qword [rsp + 0x20], rbx
lea r8, str.ms_settings:regionlanguage
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x14000a742
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x14000b700
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rdi, r8
mov rsi, rdx
mov r14, rcx
and qword [rbp - 0x20], 0
and qword [rbp - 0x28], 0
mov rax, qword [0x140053218]
lea rcx, [0x140053218]
mov rax, qword [rax + 0x18]
call qword [0x14003d100]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x18], rbx
mov dword [rsi], 1
and dword [rdi], 0
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftInputPersonalization
mov rcx, 0xffffffff80000001
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b855
mov r8d, dword [r14 + 0xe0]
lea rdx, [0x14003f600]
lea rcx, [rbp - 0x18]
call fcn.14000cc90
and qword [rsp + 0x40], 0
lea rax, [rbp - 0x28]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rbx, qword [rbp - 0x18]
mov rdx, rbx
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000b855
lea r14d, [rax + 4]
mov dword [rbp + 0x38], r14d
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x30]
xor r8d, r8d
lea rdx, str.PhraseSet
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14000b855
mov dword [rbp + 0x38], r14d
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x30]
xor r8d, r8d
lea rdx, str.PhraseIndex
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14000b855
cmp dword [rsi], 1
jae 0x14000b84a
mov dword [rsi], 1
cmp dword [rdi], 0x31
jbe 0x14000b855
mov dword [rdi], 0x31
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14000b864
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x14000b874
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000b895
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14003d100]
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000ba0c
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rbx
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x68
mov qword [rbp - 0x10], 0xfffffffffffffffe
and qword [rbp + 0x40], 0
and qword [rbp + 0x38], 0
mov rax, qword [0x140053218]
lea rcx, [0x140053218]
mov rax, qword [rax + 0x18]
call qword [0x14003d100]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x18], rbx
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftInputPersonalization
mov rcx, 0xffffffff80000001
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
jne 0x14000bb28
mov rax, qword [0x140054f08]
mov r8d, dword [rax + 0xe0]
lea rdx, [0x14003f600]
lea rcx, [rbp - 0x18]
call fcn.14000cc90
and qword [rsp + 0x40], 0
lea rax, [rbp + 0x38]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rbx, qword [rbp - 0x18]
mov rdx, rbx
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov esi, eax
test eax, eax
jne 0x14000bb28
lea edi, [rax + 4]
mov dword [rsp + 0x28], edi
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
lea rdx, str.PhraseSet
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov dword [rsp + 0x28], edi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
lea rdx, str.PhraseIndex
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x14000bb37
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14000bb46
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
movzx edi, si
or edi, 0x80070000
test esi, esi
cmovle edi, esi
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14000bb75
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x14003d100]
mov eax, edi
add rsp, 0x68
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000bdf0
Capabilities:
Get geographical location

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov r15d, edx
mov r14, rcx
mov rax, qword [0x140053218]
lea rcx, [0x140053218]
mov rax, qword [rax + 0x18]
call qword [0x14003d100]
add rax, 0x18
mov qword [rbp + 0x48], rax
mov r8d, 0x69
mov rdx, qword [0x140054fc8]
mov rdx, qword [rdx]
lea rcx, [rbp + 0x48]
call fcn.140003554
mov edi, eax
mov esi, 0x80004005
mov rcx, qword [0x140053218]
mov rax, qword [rcx + 0x18]
lea rcx, [0x140053218]
call qword [0x14003d100]
lea rbx, [rax + 0x18]
mov qword [rbp + 0x40], rbx
test edi, edi
je 0x14000beee
movzx edi, r15w
xor r9d, r9d
xor r8d, r8d
lea esi, [r9 + 2]
mov edx, esi
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x14000be99
mov esi, 0x8000ffff
jmp 0x14000beee
mov r9d, eax
mov r8d, edi
lea rdx, [rbp + 0x40]
mov ecx, esi
call fcn.14001d3c8
mov esi, eax
mov rbx, qword [rbp + 0x40]
test eax, eax
js 0x14000beee
lea rdi, [r14 + 0x218]
mov r8, rbx
mov rdx, qword [rbp + 0x48]
mov rcx, rdi
call fcn.14000cc90
mov rdi, qword [rdi]
mov rcx, r14
call fcn.14000b6b4
test rax, rax
je 0x14000beee
mov r9, rdi
xor r8d, r8d
mov edx, 0x478
mov rcx, rax
call qword [sym.imp.DUI70.dll_protected:_long_long___int64____cdecl_DirectUI::TaskPage::PropSheet_SendMessage_unsigned_int__unsigned_long_long_unsigned___int64___long_long___int64_____ptr64]
mov rax, qword [0x140053218]
lea rcx, [0x140053218]
mov rax, qword [rax + 0x18]
call qword [0x14003d100]
add rax, 0x18
mov qword [rbp - 0x10], rax
mov r8d, 0x7a
mov rdx, qword [0x140054fc8]
mov rdx, qword [rdx]
lea rcx, [rbp - 0x10]
call fcn.140003554
mov rdi, qword [rbp - 0x10]
test eax, eax
je 0x14000bf46
test esi, esi
js 0x14000bf46
lea rcx, [r14 + 0x220]
mov r8, rbx
mov rdx, rdi
call fcn.14000cc90
nop
lea rdx, [rdi - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14000bf6b
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14003d100]
nop
mov rdx, qword [rbp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14000bf91
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14003d100]
nop
mov rdx, qword [rbp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14000bfb6
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14003d100]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001d3c8
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
movsxd rsi, r9d
mov rbp, rdx
mov r15d, ecx
mov eax, 2
mul rsi
mov rbx, 0xffffffffffffffff
mov r14d, r8d
cmovo rax, rbx
mov rcx, rax
call fcn.140031f0c
xor r12d, r12d
mov rdi, rax
test rax, rax
jne 0x14001d41e
mov eax, 0x8007000e
jmp 0x14001d453
mov r9d, esi
mov r8, rdi
mov edx, r15d
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
inc rbx
cmp word [rdi + rbx*2], r12w
jne 0x14001d430
mov r8d, ebx
mov rdx, rdi
mov rcx, rbp
call fcn.140003670
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14001d478
Capabilities:
Create process on windows
Identify system language via api

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0xa0
mov qword [rsp + 0x20], 0xfffffffffffffffe
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ebx, ax
mov rax, qword [0x140053218]
lea rcx, [0x140053218]
mov rax, qword [rax + 0x18]
call qword [0x14003d100]
add rax, 0x18
mov qword [rsp + 0xb0], rax
mov r9d, ebx
lea r8, str.838628
lea rdx, str.https:__go.microsoft.com_fwlink__linkid_sclcid0x_x
lea rcx, [rsp + 0xb0]
call fcn.14000cc90
mov ebx, 0x70
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x30], ebx
mov rbx, qword [rsp + 0xb0]
mov qword [rsp + 0x48], rbx
lea rax, str.open
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x34], 0x400
mov dword [rsp + 0x60], 0xa
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001d547
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14003d100]
add rsp, 0xa0
pop rbx
ret
Function at 0x140020980
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rdi, rcx
mov rsi, rdx
lea rcx, [rsp + 0x78]
call qword [sym.imp.DUI70.dll_public:_static_class_UID___cdecl_DirectUI::Button::Click_void_]
mov r8, qword [rsi + 8]
cmp qword [rax], r8
jne 0x140020aaf
mov rcx, qword [rsi]
mov rax, qword [rdi + 0xa0]
cmp rcx, rax
je 0x1400209c6
cmp rcx, qword [rdi + 0xa8]
jne 0x140020aaf
mov rbp, qword [rdi + 0x80]
mov ecx, dword [rbp + 0x228]
test rax, rax
je 0x1400209e6
mov bl, byte [rax + 0x94]
shr bl, 4
and bl, 1
jmp 0x1400209e8
xor bl, bl
cmp ecx, 2
je 0x1400209fb
cmp ecx, 1
sete al
cmp bl, al
je 0x140020a98
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x80]
and qword [rsp + 0x80], 0
lea rdx, str.SoftwareMicrosoftInputPersonalization
mov qword [rsp + 0x38], rax
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 2
mov rcx, 0xffffffff80000001
and dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x140020a7c
mov rcx, qword [rsp + 0x80]
lea rdx, str.ShareExplicitInk
movzx eax, bl
mov r9d, 4
mov dword [rsp + 0x78], eax
xor r8d, r8d
lea rax, [rsp + 0x78]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140020a8f
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
movzx eax, bl
mov dword [rbp + 0x228], eax
mov r9d, 2
xor r8d, r8d
mov edx, 0x470
mov rcx, rdi
call qword [sym.imp.DUI70.dll_protected:_long_long___int64____cdecl_DirectUI::TaskPage::PropSheet_SendMessage_unsigned_int__unsigned_long_long_unsigned___int64___long_long___int64_____ptr64]
mov rdx, rsi
mov rcx, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
jmp fcn.140018a10
Function at 0x14002198c
Capabilities:
Inspect load icon resource

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x50
and qword [rcx + 8], 0
lea rax, vtable.CInkCollector.0
and qword [rcx + 0x18], 0
mov rsi, rcx
and qword [rcx + 0x20], 0
mov qword [rcx], rax
and qword [rcx + 0x30], 0
and qword [rcx + 0x38], 0
and qword [rcx + 0x40], 0
and qword [rcx + 0x48], 0
and qword [rcx + 0x50], 0
and qword [rcx + 0x68], 0
and dword [rcx + 0x70], 0
and dword [rcx + 0x74], 0
mov rcx, qword [0x140054fc8]
mov al, byte [rcx + 0x40]
mov rcx, qword [rcx]
neg al
sbb rdx, rdx
and rdx, 0xfffffffffffffffe
add rdx, 0x72
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rsi + 0x58], rax
mov rcx, qword [0x140054fc8]
mov al, byte [rcx + 0x40]
mov rcx, qword [rcx]
neg al
sbb rdx, rdx
and rdx, 0xfffffffffffffffe
add rdx, 0x73
call qword [sym.imp.USER32.dll_LoadIconW]
mov ebx, 1
mov dword [rsp + 0x24], 3
mov qword [rsi + 0x60], rax
lea r9, [rsi + 0x40]
mov rax, qword [rsi + 0x58]
lea rdx, [0x140040da0]
mov r8d, ebx
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetElement
call qword [sym.imp.OLEAUT32.dll_OleCreateFontIndirect]
mov rax, qword [rsi + 0x60]
lea r9, [rsi + 0x48]
mov r8d, ebx
mov qword [rsp + 0x28], rax
lea rdx, [0x140040da0]
lea rcx, [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_OleCreateFontIndirect]
mov rcx, qword [0x140054fc8]
mov edx, 0x7530
mov rcx, qword [rcx]
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [rsi + 0x68], rax
test rax, rax
je 0x140021ad0
lea r9, [rsi + 0x50]
mov dword [rsp + 0x3c], 3
mov r8d, ebx
mov qword [rsp + 0x40], rax
lea rdx, [0x140040da0]
mov dword [rsp + 0x38], reloc.OLEAUT32.dll_SafeArrayGetElement
lea rcx, [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_OleCreateFontIndirect]
mov rbx, qword [rsp + 0x60]
mov rax, rsi
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x14002d558
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 0x14002d579
mov eax, 0x80004003
jmp 0x14002d656
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.api_ms_win_core_registry_l1_1_0.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 0x14002d63e
cmp ecx, 0x80070002
jne 0x14002d654
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.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns edi, dword [rsp + 0x60]
js 0x14002d647
test edi, edi
setne al
mov byte [rbx], al
jmp 0x14002d654
cmp ecx, 0x80070002
jne 0x14002d654
mov byte [rbx], 0
xor ecx, ecx
mov eax, ecx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14002de24
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.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002deb1
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.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x68]
mov ebx, eax
test eax, eax
je 0x14002deab
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
jmp 0x14002deb1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x14002dec4
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.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002df60
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.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x14002df53
cmp dword [rsp + 0x50], 4
jne 0x14002df53
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14002df60
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14002df74
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.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14002dfbf
cmp dword [rsp + 0x30], 4
je 0x14002e017
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov r9d, 0x20119
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftInputPersonalization
mov rcx, 0xffffffff80000001
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x14002dff4
and qword [rbx], 0
jmp 0x14002e017
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.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14002f500
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 0x14002f554
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
mov rax, qword [rax]
call qword [0x14003d100]
jmp 0x14002f55e
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, [0x14003e440]
cmovo rax, r12
mov rcx, rax
call fcn.140036804
mov rsi, rax
test rax, rax
je 0x14002f5c4
test edi, edi
je 0x14002f5b8
mov rcx, qword [r15 + 0xd0]
test rcx, rcx
je 0x14002f5a9
mov rdx, qword [rcx]
mov r8, rsi
mov rax, qword [rdx]
mov edx, edi
call qword [0x14003d100]
jmp 0x14002f5b4
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
cmp edi, eax
je 0x14002f5dc
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov rsi, rbx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
inc r14d
cmp r14d, 5
jl 0x14002f535
mov r12, qword [rsp + 0x60]
test edi, edi
jle 0x14002f62a
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rbp
lea rdx, [0x14003e440]
cmovo rax, rcx
mov rcx, rax
call fcn.140036804
test rax, rax
je 0x14002f62a
test edi, edi
jle 0x14002f620
movzx ecx, word [rsi + rbx*8]
mov word [rax + rbx*2], cx
inc rbx
cmp rbx, rbp
jl 0x14002f610
mov qword [r13], rax
mov bl, 1
mov dword [r12], edi
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
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 0x14003137c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400313c8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400313c0
cmp dword [rcx + 0x3c], edx
jl 0x1400313c0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400313c0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400313c8
mov rax, rdx
add rsp, 0x18
ret