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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140103a28]
xor rax, rsp
mov qword [rbp - 0x10], rax
cmp dword [rcx + 0x210], 0
mov rbx, rcx
jne 0x14001f058
lea rax, str.Directory_listener_has_not_been_configured.
mov r8d, 0xb0
mov rcx, qword [rcx + 0x218]
movdqa xmm0, xmmword [str.DirectoryListen]
lea rdx, [rbp - 0x30]
movdqu xmmword [rbp - 0x30], xmm0
mov dword [rbp - 0x20], 0x69577265
mov dword [rbp - 0x1c], 0x2e32336e
mov dword [rbp - 0x18], 0x707063
mov r9d, 1
mov qword [rsp + 0x20], rax
call fcn.140016af0
xor al, al
jmp 0x14001f192
cmp qword [rcx + 0x230], 0
je 0x14001f071
lea rax, str.Directory_listener_is_already_running.
mov r8d, 0xb6
jmp 0x14001f014
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x230], rax
test rax, rax
jne 0x14001f0a6
mov rcx, qword [rbx + 0x218]
lea rax, str.Failed_to_start_directory_listener__no_start_event_.
mov r8d, 0xbd
jmp 0x14001f01b
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 8], rax
test rax, rax
jne 0x14001f0da
mov rcx, qword [rbx + 0x218]
lea rax, str.Failed_to_start_directory_listener__no_quit_event_.
mov r8d, 0xc4
jmp 0x14001f01b
xor eax, eax
lea r8, [0x14001f450]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x228], rax
test rax, rax
jne 0x14001f11e
mov rcx, qword [rbx + 0x218]
lea rax, str.Failed_to_create_directory_listener_thread.
mov r8d, 0xcb
jmp 0x14001f01b
mov rcx, qword [rbx + 0x230]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movdqa xmm0, xmmword [str.DirectoryListen]
lea rdx, [rbp - 0x30]
mov rcx, qword [rbx + 0x218]
mov dword [rbp - 0x20], 0x69577265
mov dword [rbp - 0x1c], 0x2e32336e
mov dword [rbp - 0x18], 0x707063
movdqu xmmword [rbp - 0x30], xmm0
test eax, eax
je 0x14001f173
lea rax, str.Failed_to_start_directory_listener_thread.
mov r8d, 0xd1
jmp 0x14001f041
lea rax, str.Directory_listener_thread_started.
mov r9d, 4
mov r8d, 0xd5
mov qword [rsp + 0x20], rax
call fcn.140016af0
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140069d50
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rbp
ret
Function at 0x140021900
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x140103a28]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdx
xor r15d, r15d
mov qword [rsp + 0x40], r15
mov rdi, qword [rcx + 0x20]
mov rax, qword [rdi]
mov r14, qword [rax + 0x10]
mov qword [r11 - 0x60], r15
mov qword [r11 - 0x50], r15
mov qword [r11 - 0x48], 7
mov word [r11 - 0x60], r15w
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140021970
lea rcx, [rsp + 0x88]
call fcn.140009920
nop
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0xa8]
mov rcx, rdi
mov rax, r14
call qword [0x1400d5670]
nop
mov rdx, qword [rsp + 0xa0]
cmp rdx, 8
jb 0x1400219ee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400219e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021b99
call fcn.140069cb8
mov qword [rsp + 0x98], r15
mov qword [rsp + 0xa0], 7
mov word [rsp + 0x88], r15w
lea rdx, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 8
cmovae rdx, qword [rsp + 0xa8]
xor r8d, r8d
mov rcx, rsi
call fcn.140021bb0
mov rdi, rax
mov qword [rsp + 0x40], rax
movdqa xmm0, xmmword [str.NvcPluginLoadHeS]
mov dword [rsp + 0x78], 0x7265706c
mov dword [rsp + 0x7c], 0x336e6957
mov dword [rsp + 0x80], 0x70632e32
mov word [rsp + 0x84], 0x70
movdqu xmmword [rsp + 0x68], xmm0
test rax, rax
je 0x140021a9f
mov qword [rsp + 0x28], rbx
lea rax, str.Loaded_dependency_module__ls
mov qword [rsp + 0x20], rax
mov r9d, 3
mov r8d, 0x8d
lea rdx, [rsp + 0x68]
mov rcx, qword [rsi]
call fcn.140016d80
jmp 0x140021b21
mov rbx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 8
cmovae rdx, qword [rsp + 0xa8]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rsi, str.Failed_to_load_dependency__ls._Error__u
mov qword [rsp + 0x20], rsi
mov r9d, 1
mov r8d, 0x91
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.140016d80
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rsp + 0xa8]
cmp qword [rsp + 0xc0], 8
cmovae r8, qword [rsp + 0xa8]
mov r9d, eax
mov rdx, rsi
mov ecx, 0x1d
call fcn.1400080a0
nop
mov rdx, qword [rsp + 0xc0]
cmp rdx, 8
jb 0x140021b66
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021b60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021b9f
call fcn.140069cb8
nop
jmp 0x140021b6d
mov rax, rdi
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140069d50
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.14007b2e8
nop
call fcn.14007b2e8
int3
Function at 0x140021bb0
Capabilities:
Contain obfuscated stackstrings
Get file version info

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140103a28]
xor rax, rsp
mov qword [rbp], rax
movups xmm0, xmmword [str.Unknown]
mov r14, rdx
mov r15, rcx
xorps xmm1, xmm1
xor edx, edx
mov rcx, r14
movaps xmmword [rbp - 0x80], xmm0
movzx r12d, r8b
movups xmmword [rbp - 0x70], xmm1
movups xmmword [rbp - 0x60], xmm1
movups xmmword [rbp - 0x50], xmm1
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x30], xmm1
movups xmmword [rbp - 0x20], xmm1
movups xmmword [rbp - 0x10], xmm1
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
je 0x140021cfa
mov ecx, esi
lea rdx, [0x1400e00b4]
call fcn.14006ab48
mov rdi, rax
test rax, rax
je 0x140021cfa
lea rdx, [0x1400e00b4]
mov ecx, 4
call fcn.14006a284
mov rbx, rax
test rax, rax
je 0x140021cf2
mov r9, rdi
mov dword [rax], 1
mov r8d, esi
xor edx, edx
mov rcx, r14
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140021cd6
xor eax, eax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x58], rax
lea rdx, [0x1400da2b0]
mov dword [rsp + 0x50], eax
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140021cd6
mov rdx, qword [rsp + 0x58]
movzx ecx, word [rdx + 0xc]
movzx r8d, word [rdx + 0xe]
movzx eax, word [rdx + 8]
movzx r9d, word [rdx + 0xa]
mov edx, 0x40
mov dword [rsp + 0x30], ecx
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x28], r8d
lea r8, str._u._u._u._u
mov dword [rsp + 0x20], eax
call fcn.14000b0d0
sub dword [rbx], 1
jne 0x140021cfa
mov rcx, rdi
call fcn.14006ab40
mov edx, 4
mov rcx, rbx
call fcn.140069cb8
jmp 0x140021cfa
mov rcx, rdi
call fcn.14006ab40
call fcn.140012760
mov edx, 0x800
mov r8d, 1
mov rcx, r14
mov rbx, rax
call fcn.14002e070
mov rdi, rax
call fcn.140012760
movdqa xmm0, xmmword [str.NvcPluginLoadHeS]
lea rdx, [rsp + 0x60]
mov rcx, qword [r15]
mov rsi, rax
mov r9d, 3
mov dword [rsp + 0x70], 0x7265706c
lea rax, [rbp - 0x80]
mov dword [rsp + 0x74], 0x336e6957
sub esi, ebx
mov dword [rsp + 0x78], 0x70632e32
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x38], rdi
lea r8d, [r9 + 0x71]
mov qword [rsp + 0x30], rax
lea rax, str.Secure_loading__ls____ls_at__p_took__lu_microseconds
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
movdqu xmmword [rsp + 0x60], xmm0
mov word [rsp + 0x7c], 0x70
call fcn.140016d80
test rdi, rdi
je 0x140021d9f
test r12b, r12b
je 0x140021d9f
mov rax, qword [r15 + 0x30]
test rax, rax
je 0x140021d9f
mov dword [rax + 0x40], esi
mov rax, rdi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140069d50
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140025180
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x140103a28]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rax, rdx
mov rbx, rcx
cmp qword [rcx + 0x28], 0
je 0x1400252fb
xor edi, edi
mov qword [rbp - 0x19], rdi
mov qword [rbp - 9], rdi
mov qword [rbp - 1], 7
mov word [rbp - 0x19], di
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x21], 7
mov word [rbp - 0x39], di
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x19]
mov rcx, rax
call fcn.140025d00
mov dword [rbp - 0x59], edi
mov dword [rbp - 0x55], 4
lea r8, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae r8, qword [rbp - 0x39]
lea rdx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rdx, qword [rbp - 0x19]
lea rax, [rbp - 0x55]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x59]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 0x10]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14002531c
mov ebx, dword [rbp - 0x59]
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x140025286
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025281
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140025360
call fcn.140069cb8
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x21], 7
mov word [rbp - 0x39], di
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x1400252d2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400252cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400252f5
call fcn.140069cb8
mov eax, ebx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140069d50
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14007b2e8
int3
lea rdx, str.Registry_root_key_handle_is_null
lea rcx, [rbp - 0x51]
call fcn.140014e60
lea rdx, [0x1401010c0]
lea rcx, [rbp - 0x51]
call fcn.14006bf90
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea rcx, [rbp + 7]
call fcn.140013190
nop
mov r8, rax
lea rdx, str.Failed_to_read_registry_value__error
lea rcx, [rbp + 0x27]
call fcn.140011730
nop
mov rdx, rax
lea rcx, [rbp - 0x51]
call fcn.140011e00
lea rdx, [0x1401010c0]
lea rcx, [rbp - 0x51]
call fcn.14006bf90
nop
call fcn.14007b2e8
int3
Function at 0x140026140
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [0x140103a28]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rax, rdx
mov rbx, rcx
mov dword [rbp - 0x69], r8d
cmp dword [rcx + 0x18], 0
jne 0x1400262a3
cmp qword [rcx + 0x28], 0
je 0x1400262c4
xor edi, edi
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], di
mov qword [rbp - 0x49], rdi
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x31], 7
mov word [rbp - 0x49], di
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x29]
mov rcx, rax
call fcn.140025d00
lea r8, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae r8, qword [rbp - 0x49]
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rdx, qword [rbp - 0x29]
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x69]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 4]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
jne 0x1400262e5
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x14002623a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140026235
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140026329
call fcn.140069cb8
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x31], 7
mov word [rbp - 0x49], di
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x140026286
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140026281
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002629d
call fcn.140069cb8
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140069d50
add rsp, 0xe0
pop rdi
pop rbx
pop rbp
ret
call fcn.14007b2e8
int3
lea rdx, str.Storage_is_not_in_write_mode
lea rcx, [rbp - 0x61]
call fcn.140014e60
lea rdx, [0x1401010c0]
lea rcx, [rbp - 0x61]
call fcn.14006bf90
int3
lea rdx, str.Registry_root_key_handle_is_null
lea rcx, [rbp - 0x61]
call fcn.140014e60
lea rdx, [0x1401010c0]
lea rcx, [rbp - 0x61]
call fcn.14006bf90
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea rcx, [rbp - 9]
call fcn.140013190
nop
mov r8, rax
lea rdx, str.Failed_to_set_registry_key_value__error:
lea rcx, [rbp + 0x17]
call fcn.140011730
nop
mov rdx, rax
lea rcx, [rbp - 0x61]
call fcn.140011e00
lea rdx, [0x1401010c0]
lea rcx, [rbp - 0x61]
call fcn.14006bf90
nop
call fcn.14007b2e8
int3
Function at 0x140026330
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x140103a28]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, r8
mov rax, rdx
mov rdi, rcx
cmp dword [rcx + 0x18], 0
jne 0x1400264a7
cmp qword [rcx + 0x28], 0
je 0x1400264c8
xor esi, esi
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], 7
mov word [rbp - 0x21], si
mov qword [rbp - 0x41], rsi
mov qword [rbp - 0x31], rsi
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], si
lea r8, [rbp - 0x41]
lea rdx, [rbp - 0x21]
mov rcx, rax
call fcn.140025d00
mov eax, dword [rbx + 0x10]
add eax, eax
cmp qword [rbx + 0x18], 8
jb 0x1400263b9
mov rbx, qword [rbx]
lea r8, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae r8, qword [rbp - 0x41]
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rdx, qword [rbp - 0x21]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
jne 0x1400264e9
mov rdx, qword [rbp - 0x29]
cmp rdx, 8
jb 0x140026436
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140026431
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002652d
call fcn.140069cb8
mov qword [rbp - 0x31], rsi
mov qword [rbp - 0x29], 7
mov word [rbp - 0x41], si
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x140026482
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002647d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400264a1
call fcn.140069cb8
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140069d50
mov rbx, qword [rsp + 0x108]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
call fcn.14007b2e8
int3
lea rdx, str.Storage_is_not_in_write_mode
lea rcx, [rbp - 0x59]
call fcn.140014e60
lea rdx, [0x1401010c0]
lea rcx, [rbp - 0x59]
call fcn.14006bf90
int3
lea rdx, str.Registry_root_key_handle_is_null
lea rcx, [rbp - 0x59]
call fcn.140014e60
lea rdx, [0x1401010c0]
lea rcx, [rbp - 0x59]
call fcn.14006bf90
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea rcx, [rbp - 1]
call fcn.140013190
nop
mov r8, rax
lea rdx, str.Failed_to_set_registry_key_value__error:
lea rcx, [rbp + 0x1f]
call fcn.140011730
nop
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.140011e00
lea rdx, [0x1401010c0]
lea rcx, [rbp - 0x59]
call fcn.14006bf90
nop
call fcn.14007b2e8
int3
Function at 0x1400278c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x14002799f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x1400278f7
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x1400279a2
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x140027946
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], di
jne 0x140027950
test rax, rax
je 0x14002799f
lfence
mov rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140027990
cmp rdx, rax
jb 0x140027970
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002da50
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14002dab2
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14002daa7
cmp edi, eax
jb 0x14002daa7
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14002e070
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x40
mov rbx, rcx
mov r14d, r8d
xor ecx, ecx
mov ebp, edx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x14002e1d5
movzx eax, word [rbx]
cmp eax, 0x5c
je 0x14002e0d3
cmp eax, 0x2f
je 0x14002e0d3
mov ecx, eax
call fcn.1400a8cd0
test eax, eax
je 0x14002e1d5
cmp word [rbx + 2], 0x3a
jne 0x14002e1d5
movzx eax, word [rbx + 4]
cmp ax, 0x5c
je 0x14002e0d3
cmp ax, 0x2f
jne 0x14002e1d5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002e1b9
test al, 0x50
jne 0x14002e1b9
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov edx, 0x80000000
mov rcx, rbx
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14002e140
lea ecx, [rax + 0x21]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
test r14d, r14d
mov dword [rsp + 0x60], edi
lea rdx, [rsp + 0x60]
mov rcx, rbx
cmove rdx, rdi
call fcn.14002eda0
test eax, eax
je 0x14002e18b
test r14d, r14d
je 0x14002e174
cmp dword [rsp + 0x60], edi
jne 0x14002e174
mov ecx, 0x80092009
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14002e18b
and ebp, 0xffffe8f7
xor edx, edx
mov r8d, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rsi, rsi
je 0x14002e1a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x14002e12a
xor ecx, ecx
jmp 0x14002e124
mov ecx, 0x7e
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x140032160
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x140103a28]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor edi, edi
mov dword [rsp + 0x40], edi
cmp dword [rcx + 0x18], edi
jne 0x140032264
lea rdx, [rcx + 0x80]
xor r9d, r9d
xor r8d, r8d
lea rcx, [rsp + 0x50]
call fcn.1400380e0
nop
lea rdx, [rbx + 0x20]
lea rcx, [rsp + 0xa0]
call fcn.1400615c0
lea rcx, [rsp + 0xa0]
cmp qword [rsp + 0xb8], 0x10
cmovae rcx, qword [rsp + 0xa0]
mov r9, qword [rsp + 0x58]
lea r8d, [rdi + 1]
mov rdx, qword [rsp + 0xb0]
call fcn.1400a9b50
mov rdx, qword [rsp + 0xb8]
cmp rdx, 0x10
jb 0x14003222e
inc rdx
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140032229
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140032287
call fcn.140069cb8
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0xb8], 0xf
mov byte [rsp + 0xa0], 0
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140032260
mov rax, qword [rsp + 0x50]
call qword [0x1400d5670]
nop
mov al, 1
jmp 0x140032266
xor al, al
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140069d50
mov rbx, qword [rsp + 0xe8]
add rsp, 0xd0
pop rdi
ret
call fcn.14007b2e8
int3

Function at 0x1400322e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp dword [rcx + 0x18], 0
mov rbx, rdx
mov esi, r8d
mov rdi, rcx
jne 0x14003237a
call fcn.140031610
cmp word [rdi + 0x2e], 3
jne 0x140032357
lea rcx, [rdi + 0x20]
mov rdx, rbx
call fcn.140030d10
mov rcx, rax
mov rbx, rax
call fcn.140030890
xorps xmm0, xmm0
mov eax, 0x1d6
movups xmmword [rbx], xmm0
mov qword [rbx], rsi
mov rcx, rdi
shr esi, 0x1a
not si
and si, 0x20
or si, ax
mov word [rbx + 0xe], si
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp fcn.140032160
lea rdx, str.Json_root_is_not_an_object
lea rcx, [rsp + 0x20]
call fcn.140014e60
lea rdx, [0x1401010c0]
lea rcx, [rsp + 0x20]
call fcn.14006bf90
int3
lea rdx, str.Storage_is_not_in_write_mode
lea rcx, [rsp + 0x20]
call fcn.140014e60
lea rdx, [0x1401010c0]
lea rcx, [rsp + 0x20]
call fcn.14006bf90
int3

Function at 0x140036d60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140103a28]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp qword [rcx + 0x18], 8
jb 0x140036d80
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140036dad
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140036dc7
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140069d50
add rsp, 0x88
ret
shr eax, 0xa
and al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140069d50
add rsp, 0x88
ret
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.140013190
nop
mov r8, rax
lea rdx, str.GetFileAttributes___failed:
lea rcx, [rsp + 0x58]
call fcn.140011730
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140011e00
lea rdx, [0x1401010c0]
lea rcx, [rsp + 0x20]
call fcn.14006bf90
int3