joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800018d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [0x180004010]
xor ebx, ebx
xor r9d, r9d
lea esi, [rbx + 1]
xor r8d, r8d
xor ecx, ecx
mov edx, esi
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 8], rax
test rax, rax
je 0x18000192b
lea r8, [0x180001850]
mov r9, rdi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov qword [rdi + 0x10], rax
cmovne ebx, esi
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180002290
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x180004008]
mov r15, r8
mov edi, edx
mov r8d, edx
xor edx, edx
mov r14, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r10d, edi
shr r10d, 2
mov rsi, rax
test r10d, r10d
je 0x1800022f0
mov r8, rbx
mov rdx, rax
mov ecx, r10d
sub r8, rax
mov eax, dword [r8 + rdx]
lea rdx, [rdx + 4]
mov dword [rdx - 4], eax
dec rcx
jne 0x1800022e0
lea edx, [r10*4]
cmp edx, edi
jae 0x180002320
mov eax, edi
sub rbx, rsi
lea rcx, [rdx + rsi]
sub eax, edx
mov edx, eax
nop dword [rax]
movzx eax, byte [rcx + rbx]
lea rcx, [rcx + 1]
mov byte [rcx - 1], al
dec rdx
jne 0x180002310
mov r11d, dword [rsi + rdi - 4]
mov r10d, dword [rsi + rdi - 8]
lea eax, [rdi - 8]
mov r9d, eax
mov r8d, eax
mov rax, rsi
shr r9, 2
and r8d, 3
test r9d, r9d
je 0x18000236d
nop word [rax + rax]
mov edx, dword [rax]
lea ecx, [r9 + r11]
add rax, 4
movzx ecx, cl
ror edx, cl
xor edx, r10d
sub edx, r9d
mov dword [rax - 4], edx
dec r9d
jne 0x180002350
test r8d, r8d
je 0x18000237e
xor byte [rax], r10b
lea rax, [rax + 1]
dec r8d
jne 0x180002372
mov edi, dword [rsi + rdi - 0xc]
mov rcx, qword [0x180004008]
xor edx, edx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rsi
mov rdx, rax
mov rbx, rax
call fcn.180001060
mov rcx, qword [0x180004008]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov qword [r15], rbx
mov rbx, qword [rsp + 0x40]
mov dword [r14], edi
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14000cfc0
Capabilities:
Extract resource via kernel32 functions

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 r13
push r14
sub rsp, 0x20
mov r13, rcx
mov r12d, edx
lea rcx, [0x140049a50]
xor edx, edx
xor ebx, ebx
call fcn.140038868
lea r14d, [rbx + 1]
mov ebp, r14d
jmp 0x14000d0a6
test rbx, rbx
jne 0x14000d0b2
mov eax, r12d
lea edx, [rbx + 6]
xor r9d, r9d
shr eax, 4
mov rcx, rsi
add ax, r14w
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rbx, rax
test rax, rax
je 0x14000d095
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x14000d042
xor ebx, ebx
jmp 0x14000d090
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14000d03e
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rdi
and ecx, 0xf
jbe 0x14000d07f
cmp rdi, r11
jae 0x14000d03e
add ecx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x14000d06d
cmp rdi, r11
jae 0x14000d03e
movzx eax, word [rdi]
neg ax
sbb rbx, rbx
and rbx, rdi
test rbx, rbx
jne 0x14000d0b4
lea rcx, [0x140049a50]
mov edx, ebp
call fcn.140038868
add ebp, r14d
mov rsi, rax
test rax, rax
jne 0x14000cfff
xor esi, esi
test rsi, rsi
jne 0x14000d0bd
xor eax, eax
jmp 0x14000d0cb
mov r8d, r12d
mov rdx, rsi
mov rcx, r13
call fcn.14000d1c4
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x14000d1c4
Capabilities:
Extract resource via kernel32 functions

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 r13
push r14
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov r14d, 1
shr eax, 4
mov ebx, r8d
mov rsi, rcx
add ax, r14w
lea r8d, [r14 + 5]
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r13d, r13d
mov r12, rax
cmp rax, r13
je 0x14000d33a
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, r13
je 0x14000d33a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
cmp rax, r13
je 0x14000d33a
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x14000d270
cmp rdi, r11
jae 0x14000d33a
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x14000d25a
cmp rdi, r11
jae 0x14000d33a
cmp word [rdi], r13w
je 0x14000d33a
mov rax, qword [rsi]
movzx ebx, word [rdi]
mov ecx, r14d
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x14000d2a2
mov edx, ebx
mov rcx, rsi
call fcn.14000d4d0
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x14000d2c3
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
sub rcx, r14
add ecx, r14d
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call sub.msvcrt.dll_memcpy_s
cmp eax, r13d
je 0x14000d312
cmp eax, 0xc
je 0x14000d307
cmp eax, 0x16
je 0x14000d2fc
cmp eax, 0x22
je 0x14000d2fc
cmp eax, 0x50
je 0x14000d312
mov ecx, 0x80004005
call fcn.14000f038
int3
mov ecx, 0x80070057
call fcn.14000f038
int3
mov ecx, 0x8007000e
call fcn.14000f038
int3
cmp ebx, r13d
jl 0x14000d32f
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x14000d32f
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, r14d
mov word [rdi + rcx], r13w
jmp 0x14000d33c
mov ecx, 0x80070057
call fcn.14000f038
int3
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 r14
pop r13
pop r12
ret
Function at 0x140011568
Capabilities:
Get geographical location

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x5d0
mov rax, qword [0x140048148]
xor rax, rsp
mov qword [rsp + 0x5c0], rax
mov esi, ecx
mov rcx, qword [0x140049be8]
mov ebp, r9d
mov edi, r8d
mov ebx, edx
call fcn.1400114cc
mov rax, qword [0x140049be8]
lea rcx, [rsp + 0x24]
xor edx, edx
mov byte [rax + 0x70], 1
and dword [rsp + 0x20], 0
mov r8d, 0x9c
call sub.msvcrt.dll_memset
mov rcx, qword [0x140049be8]
mov r12d, 0x100
mov rcx, qword [rcx]
lea r8, [rsp + 0x1c0]
mov r9d, r12d
mov edx, ebx
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x140011716
mov rcx, qword [0x140049be8]
lea r8, [rsp + 0x3c0]
mov r9d, r12d
mov rcx, qword [rcx]
mov edx, edi
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x140011716
mov r9d, 0x7d
lea r8, [rsp + 0xc0]
mov ecx, esi
lea ebx, [r9 - 0x7b]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14001165f
lea r8, [0x1400038c8]
lea rcx, [rsp + 0x1c0]
mov rdx, r12
call fcn.140012600
lea r8, [rsp + 0xc0]
lea rcx, [rsp + 0x1c0]
mov rdx, r12
call fcn.140012600
mov rcx, qword [0x140049be8]
mov dword [rsp + 0x20], 0xa0
mov edi, 8
mov dword [rsp + 0x34], edi
mov rax, qword [rcx]
mov qword [rsp + 0x2c], rax
mov rax, qword [rcx + 0x288]
xor ecx, ecx
mov qword [rsp + 0x24], rax
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x44], 0xffff
mov qword [rsp + 0x3c], rax
lea rax, [rsp + 0x3c0]
mov dword [rsp + 0xbc], 0xe6
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x38], ebp
call qword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x140011716
mov r9b, 1
lea rdx, [0x140000000]
mov ecx, edi
mov r8b, r9b
call sub.DUI70.dll_InitProcessPriv
test eax, eax
js 0x140011710
mov ecx, ebx
call sub.DUI70.dll_InitThread
test eax, eax
js 0x140011704
lea rcx, [rsp + 0x20]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.COMCTL32.dll_Ordinal_345]
call sub.DUI70.dll_UnInitThread
lea rcx, [0x140000000]
call sub.DUI70.dll_UnInitProcessPriv
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [rsp + 0x5c0]
xor rcx, rsp
call fcn.140037b50
add rsp, 0x5d0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001173c
Capabilities:
Get geographical location

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x7d0
mov rax, qword [0x140048148]
xor rax, rsp
mov qword [rsp + 0x7c0], rax
mov rcx, qword [0x140049be8]
mov esi, r9d
mov ebx, r8d
mov edi, edx
call fcn.1400114cc
lea rcx, [rsp + 0x24]
xor ebp, ebp
xor edx, edx
mov r8d, 0x9c
mov dword [rsp + 0x20], ebp
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x3c2]
xor edx, edx
mov r8d, 0x1fe
mov word [rsp + 0x3c0], bp
call sub.msvcrt.dll_memset
mov rcx, qword [0x140049be8]
mov r12d, 0x100
mov rcx, qword [rcx]
lea r8, [rsp + 0x1c0]
lea edx, [rbp + 0x54]
mov r9d, r12d
call qword [sym.imp.USER32.dll_LoadStringW]
cmp eax, ebp
je 0x140011948
mov rcx, qword [0x140049be8]
lea r8, [rsp + 0x5c0]
mov r9d, r12d
mov rcx, qword [rcx]
mov edx, edi
call qword [sym.imp.USER32.dll_LoadStringW]
cmp eax, ebp
je 0x140011948
cmp ebx, ebp
je 0x140011819
mov rcx, qword [0x140049be8]
lea r8, [rsp + 0x3c0]
mov r9d, r12d
mov rcx, qword [rcx]
mov edx, ebx
call qword [sym.imp.USER32.dll_LoadStringW]
jmp 0x14001181e
mov eax, 1
cmp eax, ebp
je 0x140011948
mov ecx, dword [rsp + 0x828]
mov r9d, 0x7d
lea r8, [rsp + 0xc0]
lea ebx, [r9 - 0x7b]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, ebp
je 0x14001187a
lea r8, [0x1400038c8]
lea rcx, [rsp + 0x1c0]
mov rdx, r12
call fcn.140012600
lea r8, [rsp + 0xc0]
lea rcx, [rsp + 0x1c0]
mov rdx, r12
call fcn.140012600
mov rcx, qword [0x140049be8]
mov dword [rsp + 0x20], 0xa0
mov dword [rsp + 0x34], 9
mov rax, qword [rcx]
mov qword [rsp + 0x2c], rax
mov rax, qword [rcx + 0x288]
xor ecx, ecx
mov qword [rsp + 0x24], rax
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x44], 0xffff
mov qword [rsp + 0x3c], rax
lea rax, [rsp + 0x5c0]
mov qword [rsp + 0xac], rbp
mov qword [rsp + 0x4c], rax
lea rax, [rsp + 0x3c0]
mov dword [rsp + 0xbc], 0xe6
mov qword [rsp + 0x54], rax
mov dword [rsp + 0x38], esi
call qword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebp
jl 0x140011948
mov r9b, 1
lea rdx, [0x140000000]
mov ecx, 8
mov r8b, r9b
call sub.DUI70.dll_InitProcessPriv
cmp eax, ebp
jl 0x140011942
mov ecx, ebx
call sub.DUI70.dll_InitThread
cmp eax, ebp
jl 0x140011936
lea rcx, [rsp + 0x20]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.COMCTL32.dll_Ordinal_345]
call sub.DUI70.dll_UnInitThread
lea rcx, [0x140000000]
call sub.DUI70.dll_UnInitProcessPriv
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [rsp + 0x7c0]
xor rcx, rsp
call fcn.140037b50
add rsp, 0x7d0
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140013a60
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x50
and qword [r11 - 0x18], 0
and dword [rsp + 0x60], 0
and qword [r11 + 0x18], 0
lea rax, [r11 + 0x18]
lea rdx, [0x140003240]
xor r9d, r9d
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x140013b24
mov rcx, qword [rsp + 0x70]
lea edi, [rax + 4]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
lea rdx, [0x1400038d0]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x68], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x68]
test eax, eax
mov eax, dword [rsp + 0x60]
cmovne ecx, edi
mov dword [rsp + 0x68], ecx
cmp eax, 0xffffffff
jae 0x140013afe
inc eax
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x60]
lea rdx, [0x1400038d0]
mov r9d, edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140013b34
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, dword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1400143b0
Capabilities:
Create thread
Get keyboard layout
Identify system language via api

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x1c0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov ebp, r8d
mov r12, rdx
mov rbx, rcx
mov dword [rax + 0x20], r9d
test r9d, r9d
jne 0x1400143f5
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx r9d, ax
mov dword [rsp + 0x1f8], r9d
lea rcx, [rsp + 0xd0]
call fcn.140035934
nop
lea rcx, [rsp + 0xd0]
call fcn.1400359e0
mov esi, eax
test eax, eax
jns 0x140014428
mov ecx, dword [rsp + 0x1f8]
call fcn.14001152c
nop
jmp 0x14001460f
mov edx, dword [rsp + 0x1f8]
lea rcx, [rsp + 0xd0]
call fcn.140037000
test eax, eax
jne 0x140014485
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, ax
xor r8d, r8d
lea edx, [r8 + 0x59]
mov eax, dword [rsp + 0x1f8]
cmp eax, ecx
cmove r8d, edx
mov dword [rsp + 0x28], eax
and qword [rsp + 0x20], 0
mov edx, 0x58
lea ecx, [rdx - 4]
lea r9d, [rdx - 0x38]
call fcn.14001173c
nop
mov esi, 0x80070057
jmp 0x14001460f
cmp dword [rbx + 0x2a8], 0
je 0x14001456a
mov rax, qword [0x140049be8]
cmp qword [rax + 8], 0
jne 0x14001456a
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r9, [rsp + 0x1f8]
lea r8, [0x140011294]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [0x140049be8]
mov qword [rcx + 0x80], rax
mov rax, qword [0x140049be8]
cmp qword [rax + 0x80], 0
jne 0x1400144f1
mov esi, 0x80004005
jmp 0x14001460f
cmp qword [rax + 8], 0
jne 0x140014511
mov ecx, 0x14
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r11, qword [0x140049be8]
cmp qword [r11 + 8], 0
je 0x1400144f8
lea rcx, [rsp + 0x50]
call fcn.14002d764
nop
xor r8d, r8d
mov rdx, qword [0x140049be8]
mov rdx, qword [rdx + 8]
lea rcx, [rsp + 0x50]
call fcn.14002d9d4
mov esi, eax
test eax, eax
jns 0x140014560
mov edx, 0x5c
lea r9d, [rdx - 0x3c]
lea r8d, [rdx + 1]
or ecx, 0xffffffff
call fcn.140011568
nop
lea rcx, [rsp + 0x50]
call fcn.14002d8c8
nop
jmp 0x14001460f
lea rcx, [rsp + 0x50]
call fcn.14002d8c8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x1b0]
test eax, eax
je 0x1400145d9
xor edi, edi
test r12, r12
sete dil
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x150]
xor ebx, ebx
test al, al
setne bl
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx r11d, ax
mov eax, edi
shl eax, 2
or eax, ebx
mov r8d, 2
or eax, r8d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], r8d
mov r9d, dword [rsp + 0x1f8]
lea edx, [r8 + 1]
mov ecx, 0x507
call fcn.140037378
test r12, r12
je 0x140014600
mov rcx, qword [0x140049be8]
add rcx, 0x88
lea r9, [0x140003820]
mov r8, r12
mov edx, 0x100
call fcn.1400108d0
cmp ebp, 0xffffffff
jle 0x14001460f
mov rax, qword [0x140049be8]
mov dword [rax + 0x10], ebp
lea rcx, [rsp + 0xd0]
call fcn.140035b08
mov eax, esi
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x140015dc4
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
mov dword [rax + 8], ecx
push rbx
push rsi
push rdi
sub rsp, 0x60
mov qword [rsp + 0x58], 0xfffffffffffffffe
and qword [rax + 0x20], 0
and qword [rax + 0x18], 0
lea rcx, [0x140048170]
mov rax, qword [0x140048170]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x140003240]
mov rcx, 0xffffffff80000001
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
jne 0x140015ef6
mov rax, qword [0x140049b20]
mov r8d, dword [rax + 0xf8]
lea rdx, [0x140003a20]
lea rcx, [rsp + 0x50]
call fcn.140018948
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x90]
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 [rsp + 0x50]
mov rdx, rbx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
mov esi, eax
test eax, eax
jne 0x140015ef6
lea edi, [rax + 4]
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
lea rdx, [0x140003a28]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
lea rdx, [0x140003a40]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x140015f09
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x140015f1c
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_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
dec ecx
test ecx, ecx
jg 0x140015f46
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, edi
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400161d4
Capabilities:
Get geographical location

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov r12d, edx
mov rbp, rcx
lea rcx, [0x140048170]
mov rax, qword [0x140048170]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov r8d, 0x69
mov rdx, qword [0x140049be8]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x68]
call fcn.14000d1c4
mov edi, eax
mov esi, 0x80004005
lea rcx, [0x140048170]
mov rdx, qword [0x140048170]
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x60], rbx
test edi, edi
je 0x1400162d6
movzx edi, r12w
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 0x140016276
mov esi, 0x8000ffff
jmp 0x1400162d6
mov r9d, eax
mov r8d, edi
lea rdx, [rsp + 0x60]
mov ecx, esi
call fcn.140028bec
mov esi, eax
test eax, eax
js 0x1400162d1
mov rbx, qword [rsp + 0x60]
mov r8, rbx
mov rdx, qword [rsp + 0x68]
lea rcx, [rbp + 0x2b8]
call fcn.140018948
mov rdi, qword [rbp + 0x2b8]
mov rcx, rbp
call fcn.1400159f4
test rax, rax
je 0x1400162d6
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]
jmp 0x1400162d6
mov rbx, qword [rsp + 0x60]
lea rcx, [0x140048170]
mov rax, qword [0x140048170]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
mov r8d, 0x7a
mov rdx, qword [0x140049be8]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x20]
call fcn.14000d1c4
mov rdi, qword [rsp + 0x20]
test eax, eax
je 0x14001632a
test esi, esi
js 0x14001632a
lea rcx, [rbp + 0x2c0]
mov r8, rbx
mov rdx, rdi
call fcn.140018948
nop
lea rdx, [rdi - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140016348
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140016368
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140016387
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140028bec
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
movsxd rdi, r9d
mov rbp, rdx
mov r12d, ecx
mov eax, 2
mov r13, 0xffffffffffffffff
mov esi, r8d
mul rdi
cmovo rax, r13
mov rcx, rax
call fcn.140037718
mov rbx, rax
test rax, rax
jne 0x140028c3a
mov eax, 0x8007000e
jmp 0x140028c72
mov r9d, edi
mov r8, rax
mov edx, r12d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor eax, eax
mov rcx, r13
mov rdi, rbx
mov rdx, rbx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rbp
call fcn.14000d0f0
mov rcx, rbx
call sub.msvcrt.dll_free
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x14002a1bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x140048148]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rbx, rcx
lea rcx, [0x140049cd8]
call fcn.14000d520
lea rcx, [0x140049ce0]
call fcn.14000d520
lea rcx, [0x140049ce8]
mov byte [0x140049cf0], 1
call fcn.14000d520
lea rcx, [0x140049cc0]
call fcn.14000d520
lea rcx, [0x140049cd0]
call fcn.14000d520
lea rcx, [0x140049cc8]
call fcn.14000d520
mov rdx, qword [0x140049be8]
lea rcx, [0x140049cc0]
mov rdx, qword [rdx]
mov r8d, 0x320
call fcn.14000d1c4
mov rdx, qword [0x140049be8]
lea rcx, [0x140049cd0]
mov rdx, qword [rdx]
mov r8d, 0x321
call fcn.14000d1c4
mov rdx, qword [0x140049be8]
lea rcx, [0x140049cc8]
mov rdx, qword [rdx]
mov r8d, 0x322
call fcn.14000d1c4
mov edi, 0x11c
lea rcx, [rsp + 0x60]
mov r8, rdi
xor edx, edx
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor edi, edi
cmp eax, edi
je 0x14002a2f4
mov eax, dword [rsp + 0x6c]
mov r9d, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x64]
lea rdx, [0x1400057f0]
lea rcx, [0x140049cd8]
mov dword [rsp + 0x20], eax
call fcn.140018948
movzx r9d, word [rsp + 0x176]
movzx r8d, word [rsp + 0x174]
lea rdx, [0x140005808]
lea rcx, [0x140049ce0]
call fcn.140018948
xor eax, eax
lea rcx, [rsp + 0x182]
xor edx, edx
lea r8d, [rax + 0x4c]
mov dword [rsp + 0x50], edi
mov word [rsp + 0x180], di
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x58], eax
mov dword [rsp + 0x5c], eax
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x40]
lea r8, [0x140005818]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x180]
lea rdx, [0x140003240]
mov qword [rsp + 0x28], rax
mov r9d, 2
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x40], 0x4e
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegGetValueW]
cmp eax, edi
jne 0x14002a381
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x180]
call qword [sym.imp.RPCRT4.dll_UuidFromStringW]
cmp eax, edi
je 0x14002a396
lea rcx, [rsp + 0x50]
call qword [sym.imp.RPCRT4.dll_UuidCreate]
lea rcx, [rsp + 0x50]
call fcn.14002a654
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x48], rdi
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
cmp eax, edi
jne 0x14002a3e5
mov rdx, qword [rsp + 0x48]
cmp rdx, rdi
je 0x14002a3cb
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea edi, [rcx - 1]
lea rcx, [0x140049ce8]
mov r8d, edi
call fcn.14000d0f0
lea rcx, [rsp + 0x48]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
xor edx, edx
lea r8, [0x140049cf0]
xor r9d, r9d
lea ecx, [rdx + 0x1b]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140037b50
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret