joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140049b78
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x3f0
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
cmp qword [rcx + 0x18], 8
mov dil, dl
mov rbx, rcx
jb 0x140049a0f
mov rcx, qword [rcx]
lea r8, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x140049a4c
cmp dword [rsp + 0x20], 0xffffffff
je 0x140049a4c
test byte [rsp + 0x20], 0x10
je 0x140049a4c
cmp qword [rbx + 0x18], 8
jb 0x140049a38
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140049a4c
test dil, dil
jne 0x140049a6f
jmp 0x140049a4e
mov al, 1
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.14003a6d0
mov rbx, qword [rsp + 0x408]
add rsp, 0x3f0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.failed_to_delete_directory
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x50]
call fcn.140005bfc
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov bl, dl
mov rdi, rcx
call fcn.140049800
test bl, bl
mov rcx, rdi
sete dl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1400499e0
Function at 0x14004a7e4
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x3e0
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
cmp qword [rcx + 0x18], 8
mov dil, r8b
mov rbx, rcx
mov dword [rsp + 0x30], edx
jb 0x14004a817
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14004a826
test dil, dil
jne 0x14004a847
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.14003a6d0
mov rbx, qword [rsp + 0x400]
add rsp, 0x3e0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Cannot_set_file__s_attbutes_to__u
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.14004923c
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x14004aba8
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x510]
sub rsp, 0x610
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rbp + 0x500], rax
mov r14, r9
mov al, r8b
mov rsi, rdx
mov rdi, rcx
cmp qword [rdx + 0x18], 8
jb 0x14004abed
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x14004abf7
mov rcx, qword [rcx]
xor ebx, ebx
mov r8d, ebx
test al, al
sete r8b
lea r9, [rbp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x14004ac4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
lea r9, str.Cannot_get_temp_file_name_in_path__s_with_prefix__s
mov r8d, eax
lea edx, [rbx + 0xf]
lea rcx, [rsp + 0x60]
call fcn.14004a90c
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rbx
mov word [rsp + 0x38], bx
cmp word [rbp + 0x2f0], bx
je 0x14004ac7f
lea rcx, [rbp + 0x2f0]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x14004ac73
mov rbx, rax
mov r8, rbx
lea rdx, [rbp + 0x2f0]
lea rcx, [rsp + 0x38]
call fcn.14000528c
nop
lea rax, [rsp + 0x38]
cmp r14, rax
je 0x14004acb9
xor r8d, r8d
mov dl, 1
mov rcx, r14
call fcn.140004d54
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.140004aac
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x38]
call fcn.140004d54
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.14003a6d0
add rsp, 0x610
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14004ad94
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
and dword [rsp + 0x40], 0
mov rsi, rdx
mov rbx, rcx
call fcn.14001cc20
test al, al
jne 0x14004adbb
xor al, al
jmp 0x14004ae10
cmp qword [rbx + 0x18], 8
jb 0x14004adc7
mov rcx, qword [rbx]
jmp 0x14004adca
mov rcx, rbx
lea rdx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test eax, eax
je 0x14004adb7
mov edx, edi
mov rcx, rsi
call fcn.14000a5e0
mov rax, qword [rsi + 8]
sub rax, qword [rsi]
neg rax
sbb r9, r9
and r9, qword [rsi]
cmp qword [rbx + 0x18], 8
jb 0x14004adfe
mov rbx, qword [rbx]
mov r8d, edi
xor edx, edx
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14004af04
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x328]
sub rsp, 0x410
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x38], esi
mov rcx, qword [rcx + 0x30]
cmp rcx, 0xffffffffffffffff
jne 0x14004af77
lea r8, str.trying_to_read_from_a_file_thats_not_open
lea edx, [rsi + 0x15]
lea rcx, [rsp + 0x70]
call fcn.1400145c4
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov r14d, 7
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
jmp 0x14004afcf
cmp dword [rsp + 0x34], 2
jne 0x14004b071
movzx r8d, word [rsp + 0x30]
cmp r8w, 0xa
je 0x14004b071
cmp r8w, 0xd
je 0x14004aff7
mov eax, 0xfeff
cmp r8w, ax
je 0x14004afcb
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.140005044
mov rcx, qword [rdi + 0x30]
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x34], esi
lea r9, [rsp + 0x34]
mov r8d, 2
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14004af8e
jmp 0x14004b080
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x34]
mov r8d, 2
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14004b056
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x14004b071
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, str.read_from_file_failed
mov edx, 0xf
lea rcx, [rsp + 0x70]
call fcn.14003f0dc
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
cmp word [rsp + 0x30], 0xa
je 0x14004b071
mov rdx, 0xfffffffffffffffe
lea r8d, [rdx + 3]
mov rcx, rdi
call fcn.14004b260
mov qword [rbx + 0x18], r14
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jmp 0x14004b097
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x14004b0c6
mov qword [rbx + 0x18], r14
mov qword [rbx + 0x10], rsi
cmp r14, 8
jb 0x14004b09e
mov rax, qword [rbx]
jmp 0x14004b0a1
mov rax, rbx
mov word [rax], si
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140004aac
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x48]
call fcn.140004d54
mov rax, rbx
jmp 0x14004b0f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, str.read_from_file_failed
mov edx, 0xf
lea rcx, [rsp + 0x70]
call fcn.14003f0dc
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.14003a6d0
lea r11, [rsp + 0x410]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14004b120
Capabilities:
Move file

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
mov rdi, rcx
mov eax, 7
mov qword [rbp - 0x30], rax
xor esi, esi
mov qword [rbp - 0x38], rsi
mov word [rbp - 0x48], si
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x18], rsi
mov word [rbp - 0x28], si
lea r8d, [rax - 4]
lea rdx, [0x140082310]
lea rcx, [rbp - 0x28]
call fcn.14000528c
nop
lea r9, [rbp - 0x48]
mov r8b, 1
lea rdx, [rbp - 0x28]
mov rcx, rbx
call fcn.14004aba8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x28]
call fcn.140004d54
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
cmp qword [rdi + 0x18], 8
jb 0x14004b1bd
mov rcx, qword [rdi]
jmp 0x14004b1c0
mov rcx, rdi
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
lea rcx, [rbp - 0x48]
jne 0x14004b1d7
mov rcx, rdi
call fcn.14004b20c
mov bl, al
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x48]
call fcn.140004d54
mov al, bl
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14003a6d0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret

Function at 0x14004b20c
Capabilities:
Move file

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x14004b21e
mov rcx, qword [rcx]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14004b255
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, [rsp + 0x30]
mov r8, rbx
lea rdx, str.Failed_to_schedule_delete_file__s.__Error_Code:_0x_x.
mov dword [rsp + 0x30], eax
mov ecx, 2
call fcn.14004aaa0
xor al, al
jmp 0x14004b257
mov al, 1
add rsp, 0x20
pop rbx
ret

Function at 0x14004b754
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x103d0
call fcn.14003bb00
sub rsp, rax
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rsp + 0x103c0], rax
xor ebx, ebx
mov rax, rdx
cmp qword [rdx + 0x18], 8
mov rdi, rcx
mov dword [rsp + 0x20], ebx
jb 0x14004b78f
mov rax, qword [rdx]
mov r8d, 0x7fff
lea rdx, [rsp + 0x3c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7ffe
ja 0x14004b817
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
cmp word [rsp + 0x3c0], bx
je 0x14004b7e0
lea rcx, [rsp + 0x3c0]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x14004b7d4
mov rbx, rax
mov r8, rbx
lea rdx, [rsp + 0x3c0]
mov rcx, rdi
call fcn.14000528c
mov rax, rdi
mov rcx, qword [rsp + 0x103c0]
xor rcx, rsp
call fcn.14003a6d0
mov rbx, qword [rsp + 0x103f0]
add rsp, 0x103d0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Failed_to_expand_environment_variables
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.14003c938
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14004c484
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x30]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x20]
add rsp, 0x58
ret

Function at 0x14004d350
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x3f0
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rsp + 0x3e0], rax
mov rdi, rcx
mov dword [rsp + 0x40], r8d
mov rcx, qword [rcx + 0x30]
mov rbx, rdx
test rcx, rcx
je 0x14004d3da
cmp qword [rdx + 0x10], 0x3fff
ja 0x14004d402
cmp qword [rdx + 0x18], 8
jb 0x14004d397
mov rdx, qword [rdx]
mov r9d, 4
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14004d42a
mov rcx, qword [rsp + 0x3e0]
xor rcx, rsp
call fcn.14003a6d0
mov rbx, qword [rsp + 0x418]
add rsp, 0x3f0
pop rdi
ret
lea r8, str.ORegistryKey.SetValue_failure:_Cannot_set_DWORD_value._The_registry_key_is_closed_or_not_set
mov edx, 0x3a
lea rcx, [rsp + 0x50]
call fcn.1400205e4
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea r8, str.ORegistryKey.SetValue_failure:_Cannot_set_DWORD_value._value_name_is_too_long
mov edx, 0x1d
lea rcx, [rsp + 0x50]
call fcn.14004cc6c
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rdi + 0x10]
mov r8d, eax
mov qword [rsp + 0x30], rcx
lea r9, str.ORegistryKey.SetValue_failure:_Cannot_set_DWORD_name___s__value___i__in_registry_key__s
lea rcx, [rsp + 0x40]
mov edx, 0xf
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
call fcn.14004cd90
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140051e20
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 [0x14007edf8]
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 0x140051f23
and dword [rsp + 0x30], 0
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x34], 3
jb 0x140051e75
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 0x140051eff
cmp dword [rsp + 0x34], 3
jne 0x140051eff
test eax, eax
jne 0x140051f4e
mov edx, dword [rsp + 0x30]
mov rcx, rsi
call fcn.14000a5e0
mov rax, qword [rsi + 8]
sub rax, qword [rsi]
neg rax
sbb rcx, rcx
and rcx, qword [rsi]
cmp qword [rbx + 0x18], 8
jb 0x140051ecf
mov rdx, qword [rbx]
jmp 0x140051ed2
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 0x140051f82
mov al, 1
jmp 0x140051f01
xor al, al
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.14003a6d0
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.14001481c
lea rdx, [0x14008f3c8]
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.14004f5a8
lea rdx, [0x14008f3c8]
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.14004f5a8
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140055b44
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 [0x14007edf8]
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.1400566f8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
mov dword [rsp + 0x30], eax
cmp qword [rsi + 0x18], 8
jb 0x140055b9c
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.140055fec
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x140055bc9
mov rbx, qword [rax]
lea rcx, [rbp - 0x80]
call fcn.140050f3c
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.140017408
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.140004d54
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.140004d54
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x58]
call fcn.140004d54
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x78]
call fcn.140004d54
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.140004d54
mov eax, dword [rsp + 0x30]
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.14003a6d0
mov rbx, qword [rsp + 0x150]
add rsp, 0x120
pop rdi
pop rsi
pop rbp
ret

Function at 0x140056f44
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
cmp qword [rcx + 8], 0xffffffffffffffff
mov rdi, rdx
mov rbx, rcx
je 0x140056f7b
xor edx, edx
call fcn.14004d630
test al, al
je 0x140056fdb
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
je 0x140056f8b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rbx + 0x20]
lea rax, [rbx + 0x2c]
mov qword [rsp + 0x28], rax
mov r9, rdi
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
je 0x140057003
mov dword [rbx + 0x28], 0x103
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.14003a6d0
mov rbx, qword [rsp + 0x3f0]
add rsp, 0x3d0
pop rdi
ret
lea r8, str.Attempting_to_start_a_new_thread_when_the_thread_has_already_been_started
mov edx, 0x53
lea rcx, [rsp + 0x30]
call fcn.14003f818
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Failed_to_start_thread.
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.140036938
lea rdx, [0x14008f3c8]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14005aa70
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov rcx, qword [rdi]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
lea r14, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
lea r15, str.ContextData
test al, al
je 0x14005aba6
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi]
call fcn.14005a9cc
nop
cmp qword [rax + 0x18], 8
jb 0x14005aae5
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x30]
lea rdx, str.Watcher_is_running_successfully._WatcherName:_s
lea rcx, [rbp + 0x10]
call fcn.140015284
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x14005ab0c
mov rdi, qword [rax]
lea rcx, [rbp - 0x80]
call fcn.140050f3c
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rdi
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, str.Watcher::Watch
mov edx, 0x3b0
mov ecx, 0x71d70b
mov r8d, 0x32
call fcn.140017408
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.140004d54
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.140004d54
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x58]
call fcn.140004d54
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x78]
call fcn.140004d54
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x10]
call fcn.140004d54
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.140004d54
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
mov dword [rsp + 0x30], eax
cmp qword [rbx + 0x18], 8
jb 0x14005abbc
mov rbx, qword [rbx]
mov qword [rsp + 0x50], rbx
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x50]
lea rdx, str._s.Approximate_duration_:__d_milliseconds.
lea rcx, [rsp + 0x60]
call fcn.140055fec
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x14005abe9
mov rbx, qword [rax]
lea rcx, [rbp - 0x80]
call fcn.140050f3c
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x38]
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.140017408
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.140004d54
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.140004d54
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x58]
call fcn.140004d54
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x78]
call fcn.140004d54
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.140004d54
mov eax, dword [rsp + 0x30]
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14003a6d0
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140066d30
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x68]
sub rsp, 0x160
mov rax, qword [0x14007edf8]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rdi, rcx
lea rax, [rsp + 0x38]
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
xor r8d, r8d
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140066e38
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 1
mov esi, 0x104
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x34], esi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140066e29
cmp dword [rsp + 0x30], 2
lea rcx, [rsp + 0x40]
mov byte [rbp + 0x43], bl
jne 0x140066df2
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
cmp eax, 0x103
setbe bl
jmp 0x140066e29
mov edx, ebx
sub rcx, rdi
lea rax, [rsi + 0x7ffffefa]
test rax, rax
je 0x140066e15
mov al, byte [rcx + rdi]
test al, al
je 0x140066e15
mov byte [rdi], al
inc rdi
sub rsi, 1
jne 0x140066df7
test rsi, rsi
jne 0x140066e22
dec rdi
mov edx, 0x8007007a
test edx, edx
mov byte [rdi], bl
setns bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140066e3a
xor eax, eax
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14003a6d0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140001750
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r12, rdx
mov rbx, rcx
lea rdx, [0x140010129]
call fcn.140003fb0
test rax, rax
mov rbp, rax
je 0x140001880
mov edx, dword [r12 + 4]
xor r8d, r8d
mov rcx, rax
add edx, dword [rbx + 0x1000]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
js 0x140001860
mov esi, dword [r12 + 0xc]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
test rax, rax
mov r13, rax
je 0x140001896
cmp byte [r12 + 0x10], 1
je 0x140001840
test rsi, rsi
mov rdi, rax
jne 0x1400017d8
jmp 0x140001820
add rdi, rbx
sub rsi, rbx
je 0x140001820
mov ebx, 0x2000
mov r9, rbp
mov r8d, 1
cmp rsi, rbx
mov rcx, rdi
cmovbe rbx, rsi
mov rdx, rbx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
test rax, rax
jne 0x1400017d0
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_read_data_chunk__n
lea rcx, str.fread
call fcn.140002910
mov rcx, r13
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
xor r13d, r13d
mov rcx, rbp
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor r8d, r8d
mov r9, rax
mov rdx, r12
mov rcx, rbp
call fcn.140001490
test eax, eax
je 0x140001820
jmp 0x140001815
lea r8, [r12 + 0x12]
lea rdx, str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
lea rcx, str.fseek
call fcn.140002910
jmp 0x14000181d
lea rdx, [r12 + 0x12]
xor r13d, r13d
lea rcx, str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.1400027b0
jmp 0x140001828
lea r8, [r12 + 0x12]
mov r9d, esi
lea rdx, str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
lea rcx, str.malloc
call fcn.140002910
jmp 0x14000181d