joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801f99a8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rsi, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x1801f99f2
lea rax, [rdi - 0x40000000]
cmp rsi, rax
cmovb rsi, rax
mov rbx, qword [0x1803c0008]
lea r15, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r15
cmovbe r15, qword [rbp - 0x50]
sub r15, 0xfff
test rbx, rbx
je 0x1801f9a2f
cmp rbx, rsi
jb 0x1801f9a2a
cmp rbx, r15
jae 0x1801f9a2a
cmp qword [rbx + 8], 0
jne 0x1801f9b8b
mov rbx, qword [rbx]
jmp 0x1801f9a10
mov r14, rdi
cmp rdi, rsi
jb 0x1801f9ab3
mov r12d, dword [rbp - 0x38]
xor edx, edx
mov rax, r14
div r12
sub r14, rdx
sub r14, r12
cmp r14, rsi
jb 0x1801f9aaa
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1801f9aaa
cmp dword [rbp - 0x10], 0x10000
je 0x1801f9a7a
mov r14, qword [rbp - 0x28]
cmp r14, r12
jb 0x1801f9aaa
jmp 0x1801f9a46
test r14, r14
je 0x1801f9aaa
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1801f9b4b
cmp r14, rsi
jae 0x1801f9a37
test rbx, rbx
jne 0x1801f9b4b
cmp rdi, r15
ja 0x1801f9b8b
mov r14d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov esi, r14d
div r14
mov eax, r14d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1801f9b8b
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1801f9b8b
cmp dword [rbp - 0x10], 0x10000
je 0x1801f9b21
xor edx, edx
lea edi, [r14 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div rsi
sub rdi, rdx
cmp rdi, r15
jmp 0x1801f9ada
test rdi, rdi
je 0x1801f9b8b
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jmp 0x1801f9aad
and qword [rbx + 8], 0
lea rcx, [rbx + 0x40]
and dword [rbx + 0x10], 0
mov rdx, rcx
sub rdx, rbx
mov rax, qword [rbx + 8]
add rdx, 0x40
mov qword [rcx], rax
mov qword [rbx + 8], rcx
add rcx, 0x40
cmp rdx, 0xfc0
jbe 0x1801f9b5e
mov rax, qword [0x1803c0008]
mov qword [rbx], rax
mov qword [0x1803c0008], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1801fccbc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18037e1c0]
mov ebx, r9d
mov rdi, r8
mov esi, edx
test rax, rax
je 0x1801fcce7
call qword [case.0x18020762e.0]
jmp 0x1801fccfc
call fcn.1801fcc88
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1802009ec
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1802009ff
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.180201000
lea rdx, [0x18032d148]
lea rcx, [rsp + 0x20]
call fcn.18021b7bc
int3

Function at 0x18020b190
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x18037eac0]
xor edx, edx
jmp fcn.1802009ec

Function at 0x18020bb08
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x18037eac0]
jmp fcn.1802009ec

Function at 0x1802172cc
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x180217388]
mov r9, qword [r9 + 8]
jmp fcn.180208ba8

Function at 0x180217360
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x180217398]
mov r9, qword [r9 + 8]
jmp fcn.180208ba8

Function at 0x18022eb4c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x18022ea23
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18022ea23
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18022ea23
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18022ea23
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18022ea23
cmp dword [rcx + 0x84], 0xe
jbe 0x18022ea23
cmp dword [rcx + 0xf8], 0
je 0x18022ea23
mov ecx, ebx
call fcn.18022eac4
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.18022e8b4
cmp dword [rbp + 0x20], 0
je 0x18022ea70
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18022ea78
int3
xor r8d, r8d
xor edx, edx
jmp 0x18022e9bc
Function at 0x1800073dc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rdi, r8
mov rbx, rdx
mov qword [r8], rdx
xor esi, esi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], rsi
or r14, 0xffffffffffffffff
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x30], rsi
mov rax, qword [rcx]
lea r8, [rbp - 0x18]
lea rdx, [0x180074868]
mov rax, qword [rax + 0x28]
call qword [case.0x18004bf34.0]
test eax, eax
js 0x180007530
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x30]
call fcn.18005f0c0
test eax, eax
js 0x180007530
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
cmp rdx, r14
jne 0x18000747c
test rcx, rcx
je 0x180007475
mov rdx, r14
inc rdx
cmp word [rcx + rdx*2], si
jne 0x18000746a
jmp 0x180007478
mov rdx, rsi
mov qword [rbp - 0x28], rdx
inc rdx
lea r8, [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchFindExtension]
nop dword [rax + rax]
test eax, eax
js 0x180007530
mov rcx, qword [rbp + 0x20]
cmp word [rcx], si
je 0x180007530
mov dword [rsp + 0x20], 1
mov r14d, 5
mov r9d, r14d
lea r8, str..exe
mov edx, r14d
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringOrdinal]
nop dword [rax + rax]
cmp eax, 2
je 0x180007530
mov dword [rsp + 0x20], 1
mov r9d, r14d
lea r8, str..msc
mov edx, r14d
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_CompareStringOrdinal]
nop dword [rax + rax]
cmp eax, 2
je 0x180007530
call fcn.180060da4
mov dword [rbp + 0x20], eax
lea rdx, [rbp + 0x20]
lea r8d, [r14 - 1]
imul rcx, rbx, 0x820
mov rax, rbx
shr rax, 2
add rcx, rax
movzx eax, byte [rdx]
add rcx, rax
xor rbx, rcx
inc rdx
sub r8, 1
jne 0x18000750a
mov qword [rdi], rbx
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x180007549
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], rsi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180011538
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x180083330]
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.18000d500
lea r8, [0x18006ef30]
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.18000efc4
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
lea r13, [0x18006eecc]
mov rbx, rax
test rax, rax
jne 0x1800115f0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x1800116f6
mov rcx, qword [rbp + 0x178]
lea edx, [rdi - 0x3b]
mov r8, r13
call fcn.18001016c
mov esi, eax
jmp 0x1800116d7
and dword [rsp + 0x24], r14d
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.1800104e8
mov esi, eax
test eax, eax
jns 0x180011631
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov r8, r13
mov edx, 0xcf
call fcn.18000a0f0
mov rcx, rbx
call fcn.1800101f4
jmp 0x1800116d7
lea r8, [0x18006ef38]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.18000efc4
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x18001167d
mov rcx, qword [rbp + 0x178]
mov r8, r13
mov edx, reloc.SHCORE.dll_Ordinal_213
call fcn.18001016c
mov esi, eax
jmp 0x180011624
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1800104e8
mov esi, eax
test eax, eax
jns 0x1800116b4
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov r8, r13
mov edx, QISearch
call fcn.18000a0f0
mov rcx, rdi
call fcn.1800101f4
jmp 0x180011624
mov rcx, rdi
call fcn.1800101f4
movsxd rax, dword [rsp + 0x20]
mov rcx, rbx
movsxd r14, dword [rsp + 0x24]
shl rax, 0x1f
or r14, rax
call fcn.1800101f4
xor esi, esi
test esi, esi
jns 0x1800116f6
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov r8, r13
mov edx, 0x62
call fcn.18000a0f0
mov eax, esi
jmp 0x1800116fb
mov qword [r15], r14
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.180062960
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x18001be1c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rsi, qword [rsp + 0x70]
xor edi, edi
xor ebx, ebx
mov r12, r8
mov r14, rcx
cmp ebx, 1
jae 0x18001befb
and qword [rsp + 0x58], 0
lea r9, [rsp + 0x58]
mov r15d, ebx
xor r8d, r8d
shl r15, 4
mov edx, 0x5000
add r15, r12
mov rcx, r15
call qword [sym.imp.Windows.Storage.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
test eax, eax
js 0x18001bef1
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.SHLWAPI.dll_PathCommonPrefixW]
nop dword [rax + rax]
movsxd rbp, eax
test eax, eax
je 0x18001bee0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
nop dword [rax + rax]
cmp ebp, eax
jne 0x18001bee0
mov r8d, 0x104
mov rdx, r14
mov rcx, r15
call qword [sym.imp.ole32.dll_StringFromGUID2]
nop dword [rax + rax]
lea r8, [rsi + rbp*2]
mov edx, 0x104
mov rcx, r14
call fcn.18000efc4
mov edi, 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
inc ebx
test edi, edi
je 0x18001be46
test edi, edi
jne 0x18001bf0f
mov r8, rsi
mov edx, 0x104
mov rcx, r14
call fcn.18000d500
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x18001c5d8
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
xor r9d, r9d
and dword [rdx], 0
mov rbx, rdx
mov dword [rax - 0x20], 0x80
mov edx, 0x80000000
mov rsi, rcx
mov dword [rax - 0x28], 3
lea r8d, [r9 + 1]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18001c64e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
jmp 0x18001c6d3
xor eax, eax
lea rdx, [rsp + 0x58]
mov rcx, rdi
mov qword [rsp + 0x58], rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
jne 0x18001c693
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
jmp 0x18001c6c4
mov rax, qword [rsp + 0x58]
mov dword [rbx], eax
cmp rax, 0x300000
jle 0x18001c6b7
mov rcx, rsi
mov ebx, 0x800700df
call fcn.18001c51c
test al, al
je 0x18001c6c4
xor ebx, ebx
jmp 0x18001c6c4
xor ebx, ebx
mov ecx, 0x800710d2
test rax, rax
cmovle ebx, ecx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x18001fddc
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x48
lea rcx, [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
nop dword [rax + rax]
lea rax, [rbp + 0x18]
mov dword [rbp + 0x18], 8
mov qword [rsp + 0x28], rax
lea rbx, [0x180084208]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov r8d, 0xffff
lea rdx, str.StartMenu_Start_Time
lea rcx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartPage
call qword [sym.imp.SHCORE.dll_Ordinal_122]
nop dword [rax + rax]
test eax, eax
je 0x18001fe83
mov rax, qword [rbp - 0x18]
lea r8, str.StartMenu_Start_Time
mov dword [rsp + 0x28], 8
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartPage
mov r9d, 3
mov qword [0x180084208], rax
mov rcx, 0xffffffff80000001
mov dword [rbp + 0x18], 8
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHCORE.dll_SHSetValueW]
nop dword [rax + rax]
lea rax, [rbp + 0x18]
mov dword [rbp + 0x18], 4
mov qword [rsp + 0x28], rax
lea r8, str.InstallDate
lea rax, [rbp + 0x20]
xor r9d, r9d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHCORE.dll_SHGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x18001ff4b
movsxd rax, dword [rbp + 0x20]
movabs rcx, 0x2b6109100
add rax, rcx
mov rdx, rbx
imul rcx, rax, 0x989680
mov dword [rbp + 0x30], ecx
shr rcx, 0x20
mov dword [rbp + 0x34], ecx
lea rcx, [rbp + 0x30]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CompareFileTime]
nop dword [rax + rax]
test eax, eax
jle 0x18001ff4b
mov ecx, dword [rbp + 0x30]
movabs rdx, 0x29e8d60800
mov eax, dword [rbp + 0x34]
shl rax, 0x20
add rdx, rax
add rdx, rcx
lea rcx, [rbp + 0x30]
mov dword [rbp + 0x30], edx
shr rdx, 0x20
mov dword [rbp + 0x34], edx
lea rdx, [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CompareFileTime]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x30]
test eax, eax
cmovg rcx, qword [rbp - 0x18]
mov qword [0x180084208], rcx
lea rcx, [rbp + 0x28]
call qword [sym.imp.USERENV.dll_GetProfileType]
nop dword [rax + rax]
test eax, eax
je 0x18001ffc1
test byte [rbp + 0x28], 3
je 0x18001ffc1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
lea r9, [rbp + 0x30]
lea rax, [rbp + 0x30]
lea r8, [rbp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x10]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetProcessTimes]
nop dword [rax + rax]
test eax, eax
je 0x18001ffc1
lea rdx, [rbp - 0x10]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CompareFileTime]
nop dword [rax + rax]
mov rcx, qword [0x180084208]
test eax, eax
cmovs rcx, qword [rbp - 0x10]
mov qword [0x180084208], rcx
add rsp, 0x48
pop rbx
pop rbp
ret
Function at 0x1800282e0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 + 8], rcx
push r14
sub rsp, 0x50
xor r14d, r14d
mov esi, r9d
mov rbp, r8
mov ebx, r14d
test rdx, rdx
je 0x18002834e
cmp word [rdx], r14w
je 0x18002834e
mov qword [r11 - 0x18], r14
lea rax, [r11 + 8]
mov qword [r11 - 0x20], rax
xor r9d, r9d
mov qword [r11 - 0x28], r14
xor r8d, r8d
mov dword [rsp + 0x28], 2
mov rcx, 0xffffffff80000001
mov dword [r11 - 0x38], r14d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
jmp 0x18002835a
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x60], rcx
test ebx, ebx
jne 0x1800283a7
mov eax, dword [rsp + 0x88]
mov r9d, esi
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rax, qword [rsp + 0x80]
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
cmp rcx, 0xffffffff80000001
je 0x1800283a7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x180031420
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword gs:[0x58]
mov rbp, rcx
mov edx, dword [0x180083c98]
mov r14, r8
mov ecx, 4
mov rdx, qword [rax + rdx*8]
mov eax, dword [rcx + rdx]
cmp dword [0x180084088], eax
jg 0x180031557
xor edi, edi
xor ebx, ebx
cmp ebx, 5
jae 0x180031529
and qword [rsp + 0x48], 0
lea rcx, [0x180084090]
mov r15d, ebx
lea r9, [rsp + 0x48]
shl r15, 4
xor r8d, r8d
add r15, rcx
mov edx, 0x5000
mov rcx, r15
call qword [sym.imp.Windows.Storage.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
test eax, eax
js 0x18003151f
mov rcx, qword [rsp + 0x48]
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.SHLWAPI.dll_PathCommonPrefixW]
nop dword [rax + rax]
movsxd rsi, eax
test eax, eax
je 0x18003150e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
nop dword [rax + rax]
cmp esi, eax
jne 0x18003150e
mov r8d, 0x104
mov rdx, rbp
mov rcx, r15
call qword [sym.imp.ole32.dll_StringFromGUID2]
nop dword [rax + rax]
lea r8, [r14 + rsi*2]
mov edx, 0x104
mov rcx, rbp
call fcn.18000efc4
mov edi, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
inc ebx
test edi, edi
je 0x18003146d
test edi, edi
jne 0x18003153d
mov r8, r14
mov edx, 0x104
mov rcx, rbp
call fcn.18000d500
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
lea rcx, [0x180084088]
call fcn.180064198
cmp dword [0x180084088], 0xffffffff
jne 0x180031469
movups xmm0, xmmword [0x18006da58]
lea rcx, [0x180084088]
movups xmm1, xmmword [0x18006da68]
movdqu xmmword [0x180084090], xmm0
movups xmm0, xmmword [0x18006da28]
movdqu xmmword [0x1800840a0], xmm1
movups xmm1, xmmword [0x18006da18]
movdqu xmmword [0x1800840b0], xmm0
movups xmm0, xmmword [0x18006da38]
movdqu xmmword [0x1800840c0], xmm1
movdqu xmmword [0x1800840d0], xmm0
call fcn.180064130
jmp 0x180031469
Function at 0x180032968
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x180083330]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rbx, rdx
test rdx, rdx
je 0x180032b00
mov rcx, qword [rcx + 0x260]
test rcx, rcx
je 0x1800329d7
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [case.0x18004bf34.0]
test eax, eax
jns 0x1800329d7
mov rcx, qword [rbp + 0x98]
lea r8, str.pcshell_shell_appresolverlib_appresolvercache.cpp
mov r9d, eax
mov edx, 0x130
call fcn.18000a128
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x40]
and qword [rsp + 0x58], 0
lea rcx, [rbp - 0x38]
and dword [rsp + 0x60], 0
xor edx, edx
and dword [rsp + 0x78], 0
mov r8d, Ordinal_145
and dword [rbp - 0x60], 0
and qword [rbp - 0x50], 0
and dword [rbp - 0x3c], 0
and qword [rbp + 0x58], 0
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
lea rax, [0x180071810]
mov qword [rbp - 0x58], rax
mov byte [rsp + 0x7c], 0
mov byte [rbp - 0x48], 0
mov dword [rbp - 0x40], 1
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
and qword [rbp + 0x70], 0
lea rsi, [0x180068e80]
xorps xmm0, xmm0
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0x40]
movaps xmmword [rbp + 0x60], xmm0
call fcn.180036e7c
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemTimeAsFileTime]
nop dword [rax + rax]
mov rax, qword [rsp + 0x30]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionSearchJumplistData
mov qword [rsp + 0x38], rax
mov r9d, 0xb
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 8
mov r8, rbx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegSetKeyValueW]
nop dword [rax + rax]
test eax, eax
je 0x180032ad9
mov rcx, qword [rbp + 0x98]
lea r8, str.pcshell_shell_appresolverlib_appresolvercache.cpp
mov r9d, eax
mov edx, 0x136
call fcn.18001b49c
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1800375f8
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rsi
call fcn.180037ca0
lea rcx, [rsp + 0x40]
call fcn.180037b4c
jmp 0x180032b1e
mov rcx, qword [rbp + 0x98]
lea r8, str.pcshell_shell_appresolverlib_appresolvercache.cpp
mov r9d, 0x80004001
mov edx, 0x13f
call fcn.18000aa04
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.180062960
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1800351dc
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
and qword [rcx + 0x20], 0
mov rbx, rcx
mov rcx, qword [rcx + 8]
lea rdi, [rbx + 0x10]
mov rax, qword [rcx]
mov rdx, rdi
mov rax, qword [rax + 0x20]
call qword [case.0x18004bf34.0]
mov esi, eax
test eax, eax
jns 0x18003522d
mov rcx, qword [rsp + 0x38]
lea r8, str.pcshell_shell_appresolverlib_appresolvercache.cpp
mov r9d, eax
mov edx, 0x4a3
call fcn.18000a128
test esi, esi
js 0x180035334
mov rax, qword [rdi]
mov dl, 1
mov rcx, rbx
mov qword [rbx + 0x20], rax
call fcn.180035350
mov esi, eax
test eax, eax
jns 0x180035275
and qword [rbx + 0x20], 0
mov rcx, qword [rbx + 8]
and qword [rbx + 8], 0
test rcx, rcx
je 0x180035334
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [case.0x18004bf34.0]
jmp 0x180035334
mov r14, qword [rbx + 0x20]
mov rbp, qword [rdi]
mov eax, dword [r14 + 0xc]
mov dword [rbx + 0x18], eax
call qword [sym.imp.api_ms_win_core_localization_obsolete_l1_2_0.dll_GetUserDefaultUILanguage]
nop dword [rax + rax]
movzx eax, ax
cmp dword [r14 + 0x14], eax
setne dil
jne 0x1800352bb
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetUserDefaultLCID]
nop dword [rax + rax]
mov ecx, 0x411
cmp ax, cx
sete al
cmp byte [r14 + 0x1c], al
setne dil
test dil, dil
jne 0x180035330
lea rdx, [rsp + 0x40]
call fcn.18003a8fc
test eax, eax
js 0x180035317
cmp dword [r14 + 0x18], 0xffffffff
jne 0x1800352d9
xor eax, eax
jmp 0x1800352e0
mov eax, dword [r14 + 0x18]
add rax, rbp
mov rcx, qword [rsp + 0x40]
mov rdx, rcx
sub rax, rcx
movzx ebp, word [rdx]
movzx r8d, word [rdx + rax]
sub ebp, r8d
jne 0x180035301
add rdx, 2
test r8d, r8d
jne 0x1800352eb
test ebp, ebp
setne dil
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test ebp, ebp
jne 0x180035330
mov ecx, 0x10
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetUserGeoID]
nop dword [rax + rax]
cmp dword [r14 + 0x20], eax
setne dil
mov byte [rbx + 0x1c], dil
mov rbx, qword [rsp + 0x48]
mov eax, esi
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret