joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020a60
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x270
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbp, rdx
mov rsi, rcx
mov dword [rsp + 0x30], 0
xor eax, eax
mov qword [rsp + 0x40], rax
call fcn.140001570
mov rdi, rax
test rax, rax
jne 0x140020abe
mov ecx, 0x80004005
call fcn.140001200
int3
mov rax, qword [rax]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.14000ce40]
mov rcx, rdi
call rbx
add rax, 0x18
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x104
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.CurrentVersion
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea r8, [rsp + 0x50]
lea rdx, [0x14002a564]
lea rcx, [rsp + 0x40]
call fcn.14000b3a0
lea rcx, [rsp + 0x40]
call fcn.140021b00
mov rcx, rax
call fcn.1400219d0
mov rcx, qword [rax]
sub rcx, 0x18
call fcn.14000a730
add rax, 0x18
mov qword [rsi], rax
mov r14, qword [rsp + 0x40]
or ecx, 0xffffffff
lock xadd dword [r14 - 8], ecx
sub ecx, 1
jg 0x140020b79
mov rdi, qword [r14 - 0x18]
mov r8, qword [rdi]
mov rbx, qword [r8 + 8]
mov rcx, rbx
call qword [fcn.14000ce40]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
mov rax, rsi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140024a00
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140020bb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x170
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbp, rdx
mov rsi, rcx
mov dword [rsp + 0x30], 0
xor eax, eax
mov qword [rsp + 0x48], rax
call fcn.140001570
mov rdi, rax
test rax, rax
jne 0x140020c0e
mov ecx, 0x80004005
call fcn.140001200
int3
mov rax, qword [rax]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.14000ce40]
mov rcx, rdi
call rbx
add rax, 0x18
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 0x104
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.CurrentMajorVersionNumber
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r8d, dword [rsp + 0x50]
lea rdx, [0x14002c9ec]
lea rcx, [rsp + 0x48]
call fcn.14000b3a0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.CurrentMinorVersionNumber
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r8d, dword [rsp + 0x50]
lea rdx, [0x14002ca30]
lea rcx, [rsp + 0x48]
call fcn.14000b3d0
lea rcx, [rsp + 0x48]
call fcn.140021b00
mov rcx, rax
call fcn.1400219d0
mov rcx, qword [rax]
sub rcx, 0x18
call fcn.14000a730
add rax, 0x18
mov qword [rsi], rax
mov r14, qword [rsp + 0x48]
or ecx, 0xffffffff
lock xadd dword [r14 - 8], ecx
sub ecx, 1
jg 0x140020d09
mov rdi, qword [r14 - 0x18]
mov r8, qword [rdi]
mov rbx, qword [r8 + 8]
mov rcx, rbx
call qword [fcn.14000ce40]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
mov rax, rsi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140024a00
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140020d40
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x270
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbp, rdx
mov rsi, rcx
mov dword [rsp + 0x30], 0
xor eax, eax
mov qword [rsp + 0x40], rax
call fcn.140001570
mov rdi, rax
test rax, rax
jne 0x140020d9e
mov ecx, 0x80004005
call fcn.140001200
int3
mov rax, qword [rax]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.14000ce40]
mov rcx, rdi
call rbx
add rax, 0x18
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x104
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.CurrentBuild
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea r8, [rsp + 0x50]
lea rdx, [0x14002a564]
lea rcx, [rsp + 0x40]
call fcn.14000b3a0
lea rcx, [rsp + 0x40]
call fcn.140021b00
mov rcx, rax
call fcn.1400219d0
mov rcx, qword [rax]
sub rcx, 0x18
call fcn.14000a730
add rax, 0x18
mov qword [rsi], rax
mov r14, qword [rsp + 0x40]
or ecx, 0xffffffff
lock xadd dword [r14 - 8], ecx
sub ecx, 1
jg 0x140020e59
mov rdi, qword [r14 - 0x18]
mov r8, qword [rdi]
mov rbx, qword [r8 + 8]
mov rcx, rbx
call qword [fcn.14000ce40]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
mov rax, rsi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140024a00
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140020e90
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x270
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbp, rdx
mov rsi, rcx
mov dword [rsp + 0x30], 0
xor eax, eax
mov qword [rsp + 0x40], rax
call fcn.140001570
mov rdi, rax
test rax, rax
jne 0x140020eee
mov ecx, 0x80004005
call fcn.140001200
int3
mov rax, qword [rax]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.14000ce40]
mov rcx, rdi
call rbx
add rax, 0x18
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x104
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ProcessorNameString
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea r8, [rsp + 0x50]
lea rdx, [0x14002a564]
lea rcx, [rsp + 0x40]
call fcn.14000b3a0
lea rcx, [rsp + 0x40]
call fcn.140021b00
mov rcx, rax
call fcn.1400219d0
mov rcx, qword [rax]
sub rcx, 0x18
call fcn.14000a730
add rax, 0x18
mov qword [rsi], rax
mov r14, qword [rsp + 0x40]
or ecx, 0xffffffff
lock xadd dword [r14 - 8], ecx
sub ecx, 1
jg 0x140020fa9
mov rdi, qword [r14 - 0x18]
mov r8, qword [rdi]
mov rbx, qword [r8 + 8]
mov rcx, rbx
call qword [fcn.14000ce40]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
mov rax, rsi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140024a00
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140020fe0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x300
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x330], rbx
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov rsi, rdx
mov rbp, rcx
mov dword [rsp + 0x30], 0
xor eax, eax
mov qword [rsp + 0xd0], rax
call fcn.140001570
mov rdi, rax
test rax, rax
jne 0x14002103e
mov ecx, 0x80004005
call fcn.140001200
int3
mov rax, qword [rax]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.14000ce40]
mov rcx, rdi
call rbx
add rax, 0x18
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0xd8], 0x104
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Identifier
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea r8, [rsp + 0xe0]
lea rdx, [0x14002a564]
lea rcx, [rsp + 0xd0]
call fcn.14000b3a0
lea rcx, [rsp + 0xd0]
call fcn.140021b00
mov rcx, rax
call fcn.1400219d0
mov rdx, qword [rax]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov r8d, 3
lea rcx, [rsp + 0x40]
call fcn.14000cc30
nop
mov rdx, qword [rsp + 0x40]
mov rcx, rbp
call fcn.140009180
nop
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
cmp rcx, rax
je 0x14002110d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rsi, qword [rsp + 0xd0]
or ecx, 0xffffffff
lock xadd dword [rsi - 8], ecx
sub ecx, 1
jg 0x14002113f
mov rdi, qword [rsi - 0x18]
mov r8, qword [rdi]
mov rbx, qword [r8 + 8]
mov rcx, rbx
call qword [fcn.14000ce40]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
mov rax, rbp
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.140024a00
mov rbx, qword [rsp + 0x330]
add rsp, 0x300
pop rdi
pop rsi
pop rbp
ret
Function at 0x140021170
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
mov r11, rsp
push r14
sub rsp, 0x70
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, rcx
mov dword [rsp + 0x30], 0
mov qword [r11 - 0x38], 0
mov dword [rsp + 0x50], 0x10
xor eax, eax
mov qword [r11 - 0x30], rax
call fcn.140001570
mov rdi, rax
test rax, rax
jne 0x1400211d5
mov ecx, 0x80004005
call fcn.140001200
int3
mov rax, qword [rax]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.14000ce40]
mov rcx, rdi
call rbx
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, [0x14002ca98]
test rdx, 0xffffffffffff0000
jne 0x140021224
movzx ebx, dx
mov ecx, ebx
call fcn.1400012e0
test rax, rax
je 0x14002122f
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14000ac80
jmp 0x14002122f
lea rcx, [rsp + 0x48]
call fcn.14000a390
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.HARDWAREDESCRIPTIONSystemCentralProcessor0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400212b4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.MHz
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400212a0
mov r8d, dword [rsp + 0x58]
lea rdx, str._u_MHz
lea rcx, [rsp + 0x48]
call fcn.14000b3a0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x48]
call fcn.140021b00
mov rcx, rax
call fcn.1400219d0
mov rcx, qword [rax]
sub rcx, 0x18
call fcn.14000a730
add rax, 0x18
mov qword [rsi], rax
mov r14, qword [rsp + 0x48]
or ecx, 0xffffffff
lock xadd dword [r14 - 8], ecx
sub ecx, 1
jg 0x140021309
mov rdi, qword [r14 - 0x18]
mov r8, qword [rdi]
mov rbx, qword [r8 + 8]
mov rcx, rbx
call qword [fcn.14000ce40]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
mov rax, rsi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140024a00
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x140021330
Capabilities:
Get memory capacity

Disassembly:
push rbx
sub rsp, 0x90
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], 0
xor eax, eax
mov qword [rcx], rax
lea rdx, str.unknown
call fcn.140009230
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x40], 0x40
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1400213ac
mov r8, qword [rsp + 0x48]
shr r8, 0x14
lea rdx, [0x14002c9ec]
mov rcx, rbx
call fcn.14000b3a0
mov rax, rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140024a00
add rsp, 0x90
pop rbx
ret
Function at 0x140021510
Capabilities:
Get geographical location

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, rdx
mov r15, rcx
mov qword [rsp + 0x30], rdx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
mov ecx, 0x20a
call fcn.140025120
mov rdi, rax
xor eax, eax
mov qword [rsp + 0x38], rax
call fcn.140001570
mov rsi, rax
test rax, rax
jne 0x14002157b
mov ecx, 0x80004005
call fcn.140001200
int3
mov rax, qword [rax]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.14000ce40]
mov rcx, rsi
call rbx
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, [0x140029dec]
or rbx, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x1400215ce
movzx esi, dx
mov ecx, esi
call fcn.1400012e0
test rax, rax
je 0x1400215e9
mov r8d, esi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.14000ac80
jmp 0x1400215e9
mov rax, rbx
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400215d1
mov r8d, eax
lea rcx, [rsp + 0x38]
call fcn.14000a7f0
nop
mov word [rdi], r14w
lea rdx, [0x14002ad94]
mov rcx, rbp
call fcn.14000cbb0
lea rsi, str._x_sys_default_locale
mov rcx, r14
test eax, eax
cmove rcx, rsi
mov r9d, 0x104
mov r8, rdi
mov edx, 0x59
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14002162d
lea rdx, str.unknown_
jmp 0x140021651
mov rax, rbx
inc rax
cmp word [rdi + rax*2], 0
jne 0x140021630
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.14000a530
lea rdx, [0x14002cb0c]
lea rcx, [rsp + 0x38]
call fcn.140021890
mov word [rdi], r14w
lea rdx, [0x14002ad94]
mov rcx, rbp
call fcn.14000cbb0
test eax, eax
cmove r14, rsi
mov r9d, 0x104
mov r8, rdi
mov edx, 0x5a
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400216a2
lea rdx, [0x14002ca98]
lea rcx, [rsp + 0x38]
call fcn.140021890
jmp 0x1400216bf
mov rax, rbx
inc rax
cmp word [rdi + rax*2], 0
jne 0x1400216a5
mov r8d, eax
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.14000a530
mov rcx, rdi
call fcn.140024dd4
lea rcx, [rsp + 0x38]
call fcn.140021b00
mov rcx, rax
call fcn.1400219d0
mov rcx, qword [rax]
sub rcx, 0x18
call fcn.14000a730
add rax, 0x18
mov qword [r15], rax
mov rsi, qword [rsp + 0x38]
lock xadd dword [rsi - 8], ebx
sub ebx, 1
jg 0x140021719
mov rdi, qword [rsi - 0x18]
mov r8, qword [rdi]
mov rbx, qword [r8 + 8]
mov rcx, rbx
call qword [fcn.14000ce40]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
nop
mov rcx, rbp
call fcn.140007f10
mov rax, r15
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140024a00
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140021c60
Capabilities:
Encode data using base64

Disassembly:
push rbx
push rbp
push rdi
push r12
sub rsp, 0x28
mov r12, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
test rcx, rcx
je 0x140021e69
test r8, r8
je 0x140021e69
test r9, r9
je 0x140021e69
mov ecx, edx
call fcn.140021bc0
cmp dword [r12], eax
jl 0x140021e69
mov qword [rsp + 0x50], rsi
mov eax, 0x55555556
imul ebp
xor esi, esi
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r14
lea r13, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_c
mov qword [rsp + 0x20], r15
mov eax, 0x6bca1af3
mov r15d, edx
mov r8d, esi
shr r15d, 0x1f
lea r10d, [rsi + 0x13]
add r15d, edx
mov r9d, esi
lea r14d, [r15*4]
imul r14d
mov r11d, edx
sar r11d, 5
mov eax, r11d
shr eax, 0x1f
add r11d, eax
js 0x140021db8
cmp esi, r11d
jne 0x140021d19
imul ecx, r11d, 0x4c
mov eax, r14d
sub eax, ecx
cdq
and edx, 3
lea r10d, [rdx + rax]
sar r10d, 2
test r10d, r10d
jle 0x140021d8c
mov esi, r10d
movzx eax, byte [rbx + 2]
movzx ecx, byte [rbx + 1]
movzx edx, byte [rbx]
add rbx, 3
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
shl edx, 8
mov eax, edx
shl edx, 6
shr eax, 0x1a
movzx ecx, al
movzx eax, byte [rcx + r13]
mov byte [rdi], al
mov eax, edx
shr eax, 0x1a
movzx ecx, al
shl edx, 6
movzx eax, byte [rcx + r13]
mov byte [rdi + 1], al
mov eax, edx
shr eax, 0x1a
movzx ecx, al
movzx eax, byte [rcx + r13]
mov byte [rdi + 2], al
mov eax, edx
shr eax, 0x14
and eax, 0x3f
movzx eax, byte [rax + r13]
mov byte [rdi + 3], al
add rdi, 4
sub rsi, 1
jne 0x140021d21
lea r8d, [r8 + r10*4]
mov word [rdi], 0xa0d
add r8d, 2
add rdi, 2
inc r9d
cmp r9d, r11d
jle 0x140021d02
test r8d, r8d
je 0x140021db6
sub rdi, 2
sub r8d, 2
xor esi, esi
mov r14, qword [rsp + 0x60]
lea eax, [r15 + r15*2]
mov r15, qword [rsp + 0x20]
sub ebp, eax
lea r10d, [rbp + 1]
cmove r10d, esi
test r10d, r10d
je 0x140021e4c
mov edx, esi
test ebp, ebp
jle 0x140021de1
movzx edx, byte [rbx]
inc rbx
shl edx, 8
cmp ebp, 1
jle 0x140021df1
movzx eax, byte [rbx]
or edx, eax
inc rbx
shl edx, 8
cmp ebp, 2
jle 0x140021dfe
movzx eax, byte [rbx]
or edx, eax
shl edx, 8
test r10d, r10d
jle 0x140021e2b
mov r9d, r10d
nop dword [rax]
mov eax, edx
shl edx, 6
shr eax, 0x1a
movzx ecx, al
movzx eax, byte [rcx + r13]
mov byte [rdi], al
inc rdi
sub r9, 1
jne 0x140021e10
add r8d, r10d
mov edx, 4
sub edx, r10d
test r10d, r10d
cmove edx, esi
test edx, edx
jle 0x140021e49
mov ecx, edx
mov eax, 0x3d
rep stosb byte [rdi], al
add r8d, edx
mov r13, qword [rsp + 0x58]
mov eax, 1
mov rsi, qword [rsp + 0x50]
mov dword [r12], r8d
add rsp, 0x28
pop r12
pop rdi
pop rbp
pop rbx
ret
xor eax, eax
add rsp, 0x28
pop r12
pop rdi
pop rbp
pop rbx
ret
Function at 0x140023620
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
mov qword [rsp + 0x68], 0
lea rdx, str.CRLog
lea rcx, [rsp + 0x70]
call fcn.140009180
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140024470
test al, al
je 0x1400236c0
mov rax, qword [rbx]
mov edi, dword [rax - 0x10]
cmp dword [rax - 8], 1
jle 0x140023679
mov edx, edi
mov rcx, rbx
call fcn.14000b020
mov rcx, qword [rbx]
lea eax, [rdi*2 + 1]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.Machine_Id_Synced
mov rdi, qword [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400236b6
mov rcx, rbx
call fcn.140009300
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rsi, qword [rbx]
or eax, 0xffffffff
lock xadd dword [rsi - 8], eax
sub eax, 1
jg 0x1400236ed
mov rdi, qword [rsi - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000ce40]
lea rdx, [rsi - 0x18]
mov rcx, rdi
call rbx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140023700
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x30], 0
mov edi, 0xff
mov dword [rsp + 0x50], edi
lea rdx, str.CRLogProductPreferences
lea rcx, [rsp + 0x38]
call fcn.140009230
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140024470
test al, al
jne 0x140023779
or esi, 0xffffffff
jmp 0x1400238a3
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [r14]
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400237fb
mov eax, dword [rsp + 0x50]
cdq
xor eax, edx
sub eax, edx
mov dword [rsp + 0x50], eax
cmp eax, edi
cmovl edi, eax
movsxd rax, edi
cmp rax, 0x100
jae 0x1400237f5
mov byte [rsp + rax + 0x60], 0
lea r8, [rsp + 0x60]
lea rdx, [0x14002a564]
mov rcx, rsi
call fcn.14000b3a0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, r14
call fcn.140008df0
jmp 0x1400238ce
call fcn.1400254b4
int3
or esi, 0xffffffff
cmp eax, 2
jne 0x140023899
xor eax, eax
mov qword [rsp + 0x58], rax
lea rdx, [0x14002cc10]
lea rcx, [rsp + 0x58]
call fcn.140009230
nop
mov rax, qword [rsp + 0x58]
mov edi, dword [rax - 0x10]
cmp dword [rax - 8], 1
jle 0x14002383f
mov edx, edi
lea rcx, [rsp + 0x58]
call fcn.14000b020
mov rax, qword [rsp + 0x58]
lea ecx, [rdi*2 + 1]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [r14]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov r15, qword [rsp + 0x58]
mov eax, esi
lock xadd dword [r15 - 8], eax
sub eax, 1
jg 0x140023894
mov rdi, qword [r15 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000ce40]
lea rdx, [r15 - 0x18]
mov rcx, rdi
call rbx
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov r14, qword [r14]
lock xadd dword [r14 - 8], esi
sub esi, 1
jg 0x1400238ce
mov rdi, qword [r14 - 0x18]
mov rax, qword [rdi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.14000ce40]
lea rdx, [r14 - 0x18]
mov rcx, rdi
call rbx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140024a00
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140001ed0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140001ef8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140001f1e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001f20
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001f79
test ecx, ecx
jle 0x140001f59
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140001f79
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001f79
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140001fa0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140001fc2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140001fd8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140001ff4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001ff6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002032
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400020ce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000206d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400020ae
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x1400020ce
cmp rbx, rax
ja 0x140002080
test rbx, rbx
je 0x1400020ce
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret