joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140094708
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
push r15
sub rsp, 0x40
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov r9, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x140094740
mov r8, qword [r8]
movabs rcx, 0xcbf29ce484222325
xor edx, edx
add r9, r9
je 0x14009476f
movzx eax, byte [r8 + rdx]
xor rcx, rax
movabs r10, 0x100000001b3
imul rcx, r10
inc rdx
cmp rdx, r9
jb 0x140094751
mov r15, qword [rsi + 0x30]
and r15, rcx
add r15, r15
mov rbx, qword [rsi + 0x18]
mov rbx, qword [rbx + r15*8]
mov rax, qword [rsi + 8]
mov rcx, qword [rsi + 0x18]
cmp qword [rcx + r15*8], rax
je 0x140094797
mov rax, qword [rcx + r15*8 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x140094800
lea rcx, [rbx + 0x10]
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x1400947b0
mov r9, qword [rdi]
jmp 0x1400947b3
mov r9, rdi
mov qword [rsp + 0x20], rax
mov r8, qword [rcx + 0x10]
xor edx, edx
call fcn.140014650
nop
test eax, eax
je 0x1400947cd
mov rbx, qword [rbx]
jmp 0x140094781
lea r9, [rbx + 0x10]
mov rax, qword [r9 + 0x10]
cmp qword [r9 + 0x18], 8
jb 0x1400947df
mov r9, qword [r9]
mov qword [rsp + 0x20], rax
mov r8, qword [rdi + 0x10]
xor edx, edx
mov rcx, rdi
call fcn.140014650
nop
test eax, eax
je 0x1400947fb
mov rbx, qword [rsi + 8]
mov qword [r14], rbx
jmp 0x140094807
mov rax, qword [rsi + 8]
mov qword [r14], rax
mov rax, r14
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret

Function at 0x14009aa88
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
call fcn.140047e70
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.14001a340
nop
lea rdx, [0x140260038]
mov rcx, qword [rax]
call fcn.1400faee8
nop
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14009aaee
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14009aaee
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14009aaee
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.140047e70
lea rcx, [rax + 0x18]
xor r8d, r8d
lea rdx, [0x140260d38]
add rsp, 0x40
pop rbx
jmp fcn.1400133d0
Function at 0x1400aeedc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x2f0]
sub rsp, 0x3f0
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
xor r14d, r14d
mov rdi, rcx
mov rcx, qword [rcx + 0x30]
mov sil, r9b
mov dword [rsp + 0x40], r14d
mov rbx, r8
cmp rcx, 0xffffffffffffffff
je 0x1400aef82
mov eax, 0xffffffff
cmp rbx, rax
ja 0x1400aefaa
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400aefe1
mov ecx, dword [rsp + 0x40]
cmp rcx, rbx
je 0x1400aef59
test sil, sil
jne 0x1400af033
mov eax, ecx
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.140021f10
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea r8, str.trying_to_read_from_a_file_thats_not_open
mov edx, 0x15
lea rcx, [rsp + 0x50]
call fcn.140008b58
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, [0x1401df028]
mov dword [rsp + 0x50], 0x5d
lea rcx, [rsp + 0x50]
mov dword [rbp + 0x154], r14d
mov word [rbp + 0x258], r14w
mov word [rbp + 0x158], r14w
mov word [rsp + 0x54], r14w
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov dword [rsp + 0x44], ebx
lea rbx, [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Failed_to_read__d_bytes_from__s._Number_of_bytes_read___d
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call fcn.1400ad7b0
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x28], rcx
lea rax, [rdi + 0x10]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
mov edx, 0x21
lea r8, str.Failed_to_read__d_bytes_from__s._Number_of_bytes_read___d
call fcn.1400ad6f4
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x1400af078
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x30]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, 0xffffffff
cmp qword [rsp + 0x20], rax
jg 0x1400af103
mov edx, dword [rsp + 0x20]
mov rcx, rdi
call fcn.140021cb4
mov r8, qword [rdi + 8]
mov r9b, 1
sub r8, qword [rdi]
mov rcx, rbx
mov rax, r8
neg rax
sbb rdx, rdx
and rdx, qword [rdi]
call fcn.1400aeedc
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0x3f0]
add rsp, 0x3d0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.OFile_does_not_support_reading_files_of_this_size
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.140027080
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400af134
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x3e8
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov rcx, qword [rcx + 0x30]
cmp rcx, 0xffffffffffffffff
je 0x1400af189
and dword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400af1b1
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.140021f10
add rsp, 0x3e8
ret
lea r8, str.trying_to_write_to_a_file_thats_not_opened
mov edx, 0x15
lea rcx, [rsp + 0x40]
call fcn.1400ad670
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.write_to_file_failed
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.140031af4
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400af81c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor r14d, r14d
lea rax, [r11 - 0x28]
mov rbp, r8
mov dword [r11 + 0x20], r14d
xor r8d, r8d
mov qword [r11 - 0x38], rax
or r9d, 0x20019
mov esi, r14d
mov edi, r14d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400af910
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400af910
mov ebx, dword [rsp + 0x78]
test ebx, ebx
je 0x1400af910
mov eax, ebx
and eax, 1
test al, al
jne 0x1400af910
shr ebx, 1
lea eax, [r14 + 2]
inc ebx
lea r15, [r14 - 1]
mov ecx, ebx
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.140021ddc
mov rdi, rax
test rax, rax
je 0x1400af910
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400af910
mov rdx, qword [rsp + 0x80]
lea eax, [rbx - 1]
xor r9d, r9d
mov word [rdi + rax*2], r14w
mov r8, r15
mov rcx, rdi
call fcn.140006a68
test eax, eax
sete sil
mov rcx, rdi
call fcn.140021dfc
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400af928
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x1400afaa4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x460
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov r8, rdx
mov dword [rsp + 0x20], 0x20a
mov rbx, rcx
lea r9, str.AutoConvert
mov edx, 0x105
lea rcx, [rsp + 0x30]
call fcn.1400af754
lea r9, [rsp + 0x20]
mov rcx, rbx
lea r8, [rsp + 0x240]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140021f10
add rsp, 0x460
pop rbx
ret
Function at 0x1400afb20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rsi, rdx
mov dword [rsp + 0x20], 0x20a
mov rdi, rcx
lea r9, str.TreatAs
mov r8, rsi
lea rcx, [rsp + 0x30]
mov edx, 0x105
call fcn.1400af754
lea r9, [rsp + 0x20]
mov rcx, rdi
lea r8, [rsp + 0x240]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
xor ebx, ebx
test eax, eax
jne 0x1400afb91
lea eax, [rbx + 1]
jmp 0x1400afbd4
mov edx, 0x105
lea r9, str.AutoTreatAs
mov r8, rsi
lea rcx, [rsp + 0x30]
call fcn.1400af754
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x20a
lea r8, [rsp + 0x240]
mov rcx, rdi
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140021f10
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400afbfc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x780]
sub rsp, 0x880
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x770], rax
mov rsi, r8
mov dword [rsp + 0x20], 0x20a
mov r8, rdx
mov rbx, rcx
or r15, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov r14d, 0x105
mov r9, r15
mov edx, r14d
xor edi, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov r9, r15
lea r8, [0x1401754a4]
mov edx, r14d
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov r9, r15
lea r8, str.protocolStdFileEditing_server
mov edx, r14d
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
lea r9, [rsp + 0x20]
mov rcx, rbx
lea r8, [rbp + 0x560]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
je 0x1400afca9
lea eax, [rdi + 1]
jmp 0x1400afd1a
mov rdx, rsi
lea rcx, [rbp + 0x560]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400afd18
mov ebx, 0x104
mov word [rbp + 0x350], di
mov r8d, ebx
mov word [rbp + 0x140], di
lea rdx, [rbp + 0x350]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov r8d, ebx
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x560]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x350]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
mov ecx, 1
cmovne edi, ecx
mov eax, edi
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0x8c8]
add rsp, 0x880
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400afd40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x780]
sub rsp, 0x880
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x770], rax
mov rax, r9
mov dword [rsp + 0x20], 0x20a
mov rsi, r8
lea r9, str.LocalServer32
mov rbx, rcx
mov r8, rax
mov edx, 0x105
lea rcx, [rbp + 0x560]
xor edi, edi
call fcn.1400af754
lea r9, [rsp + 0x20]
mov rcx, rbx
lea r8, [rbp + 0x350]
lea rdx, [rbp + 0x560]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
je 0x1400afdbb
lea eax, [rdi + 1]
jmp 0x1400afe26
mov rdx, rsi
lea rcx, [rbp + 0x350]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400afe24
mov ebx, 0x104
mov word [rbp + 0x140], di
mov r8d, ebx
mov word [rsp + 0x30], di
lea rdx, [rbp + 0x140]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov r8d, ebx
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x350]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
mov ecx, 1
cmovne edi, ecx
mov eax, edi
mov rcx, qword [rbp + 0x770]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0x8a8]
add rsp, 0x880
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400e10ec
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rbx, rcx
and qword [rbp - 0x38], 0
and qword [rbp - 0x30], 0
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x38]
call fcn.14002ca04
mov qword [rbp - 0x38], rax
lea rdx, [rbp - 0x38]
mov rcx, rbx
call fcn.1400e0b60
mov rdi, qword [rbp - 0x38]
cmp qword [rbp - 0x30], 0
je 0x1400e1217
mov qword [rbp + 0x30], rdi
mov rbx, qword [rdi]
mov qword [rbp + 0x38], rbx
cmp rbx, rdi
je 0x1400e1217
lea r12, vtable.OHandle.0
mov r8d, dword [rbx + 0x10]
mov dword [rbp + 0x28], r8d
lea rax, vtable.RefCounted.0
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], 0
mov qword [rbp - 0x28], r12
and qword [rbp - 0x18], 0
mov byte [rbp - 0x10], 0
mov dword [rbp - 0xc], 0x55
mov byte [rsp + 0x20], 1
lea r9, [rbp - 0x28]
xor edx, edx
lea ecx, [rdx + 1]
call fcn.14002bf2c
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
lea r9, str.TaskRemoveInstallation::KillProcessesRunningFromInstallDirectory___Terminating_still_running_process:__d
mov edx, reloc.Cabinet.dll_FCIDestroy
mov ecx, 0x3d1787
lea r8d, [rdx + 0x24]
call fcn.14000b6f0
xor edx, edx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
mov qword [rbp - 0x28], r12
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400e11e5
cmp byte [rbp - 0x10], 0
je 0x1400e11e5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x1400e115b
lea r9, str.TaskRemoveInstallation::KillProcessesRunningFromInstallDirectory:_Pausing_to_give_processes_time_to_exit.
mov edx, reloc.Cabinet.dll_FCIDestroy
mov ecx, 0x3d1788
lea r8d, [rdx + 0x24]
call sub.Mso20Win32Client.dll_Ordinal_807
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
mov rcx, qword [rdi]
mov qword [rdi], rdi
mov qword [rdi + 8], rdi
cmp rcx, rdi
je 0x1400e1237
mov rbx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
cmp rbx, rdi
jne 0x1400e1226
mov rcx, rdi
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop r12
pop rdi
pop rbp
jmp qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
Function at 0x1400e55cc
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x78]
sub rsp, 0x160
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rsi, rcx
mov dword [rsp + 0x48], edx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
sub eax, dword [rsi + 0xc8]
cqo
xor rax, rdx
sub rax, rdx
cmp rax, 0x36ee80
jle 0x1400e5753
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsi + 0xcc]
mov dword [rsp + 0x40], eax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
lea rdx, str.StreamPercent:_d_StreamTime:_d
lea rcx, [rbp - 0x60]
call fcn.1400e3f84
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x1400e565e
mov rdi, qword [rax]
lea rcx, [rbp - 0x40]
call fcn.1400f7cb0
mov rbx, rax
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x78]
call fcn.14004bf18
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.14005a420
lea rcx, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov qword [rsp + 0x50], rcx
lea rcx, str.ContextData
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rdi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea r9, str.TaskStream::SendHeartbeat
mov edx, 0x3ac
mov ecx, 0x5605c8
mov r8d, 0x32
call fcn.1400592f8
mov rbx, qword [rbp - 0x68]
test rbx, rbx
je 0x1400e5705
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
add eax, edi
jne 0x1400e5705
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
add eax, edi
jne 0x1400e5705
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x30]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x10]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x18]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x38]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x60]
call fcn.140007a08
mov dword [rsi + 0xc8], r14d
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140021f10
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400eb458
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rsp + 0x48], rax
and dword [rsp + 0x20], 0
xor eax, eax
mov dword [rsp + 0x24], eax
movsxd rdi, edx
call fcn.140047e70
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.14004bc48
cmp qword [rax + 0x18], 8
jb 0x1400eb49b
mov rax, qword [rax]
xor r9d, r9d
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
xor r8d, r8d
lea rcx, [rsp + 0x28]
mov dl, 1
mov ebx, eax
call fcn.140007a08
test ebx, ebx
je 0x1400eb4d6
mov rcx, rdi
shl rcx, 0x14
cmp qword [rsp + 0x20], rcx
jae 0x1400eb4d6
mov al, 1
jmp 0x1400eb4d8
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x1400ebabc
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x38]
sub rsp, 0x120
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov rcx, rdi
call fcn.1400ec28c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
mov dword [rsp + 0x30], eax
cmp qword [rsi + 0x18], 8
jb 0x1400ebb14
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rsi
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, str._s.Approximate_duration_:__d_milliseconds.
lea rcx, [rsp + 0x60]
call fcn.14004c598
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x1400ebb41
mov rbx, qword [rax]
lea rcx, [rbp - 0x80]
call fcn.1400f7cb0
lea rcx, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov qword [rsp + 0x40], rcx
lea rcx, str.ContextData
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rbx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, str.MonitoredScope::ExecuteUnderStopWatch
mov edx, 0x3b0
mov ecx, 0x51054a
mov r8d, 0x32
call fcn.140016678
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x58]
call fcn.140007a08
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x78]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.140007a08
mov eax, dword [rsp + 0x30]
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0x150]
add rsp, 0x120
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400f8b84
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x140191810]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov rdi, rcx
mov rsi, r8
mov rcx, qword [rcx + 0x30]
mov rbx, rdx
test rcx, rcx
je 0x1400f8c87
and dword [rsp + 0x30], 0
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x34], 3
jb 0x1400f8bd9
mov rdx, qword [rdx]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x1400f8c63
cmp dword [rsp + 0x34], 3
jne 0x1400f8c63
test eax, eax
jne 0x1400f8cb2
mov edx, dword [rsp + 0x30]
mov rcx, rsi
call fcn.140021cb4
mov rax, qword [rsi + 8]
sub rax, qword [rsi]
neg rax
sbb rcx, rcx
and rcx, qword [rsi]
cmp qword [rbx + 0x18], 8
jb 0x1400f8c33
mov rdx, qword [rbx]
jmp 0x1400f8c36
mov rdx, rbx
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400f8ce6
mov al, 1
jmp 0x1400f8c65
xor al, al
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0x418]
add rsp, 0x3e0
pop rdi
pop rsi
pop rbp
ret
mov r9, rdx
lea r8, str.ORegistryKey.GetValue_failure:_Cannot_get_value._The_tregistry_key_is_closed_or_not_set
mov edx, 0x3a
lea rcx, [rsp + 0x40]
call fcn.140008f88
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rax, [rdi + 0x10]
mov r9, rbx
lea r8, str.ORegistryKey.GetValue_failure:_Cannot_get_the_binary_value___s__in_registry_key__s.
mov qword [rsp + 0x20], rax
mov edx, 0x2b
lea rcx, [rsp + 0x40]
call fcn.1400f631c
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rax, [rdi + 0x10]
mov r9, rbx
lea r8, str.ORegistryKey.GetValue_failure:_Cannot_get_the_binary_value___s__in_registry_key__s.
mov qword [rsp + 0x20], rax
mov edx, 0x2b
lea rcx, [rsp + 0x40]
call fcn.1400f631c
lea rdx, [0x1401df028]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3