joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020fa0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x1400d61c0]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x28]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140021074
cmp word [rsp + 0x50], 0
je 0x140021074
lea rax, [rsp + 0x50]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140021000
xor edi, edi
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
mov word [rbx], di
test r8, r8
jne 0x14002103c
cmp qword [rbx + 0x18], 8
mov qword [rbx + 0x10], rdi
jb 0x140021034
mov rax, qword [rbx]
mov word [rax], di
jmp 0x140021049
mov rax, rbx
mov word [rbx], di
jmp 0x140021049
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14000b820
xor edx, edx
xor r8d, r8d
mov rcx, rbx
call fcn.140014cf0
cmp rax, 0xffffffffffffffff
je 0x140021106
or r8, 0xffffffffffffffff
mov rdx, rax
mov rcx, rbx
call fcn.140004de0
jmp 0x140021106
xor edi, edi
mov qword [rsp + 0x48], 7
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
call fcn.140020d70
mov qword [rbx + 0x18], 7
mov rcx, rbx
mov qword [rbx + 0x10], rdi
mov word [rbx], di
test al, al
je 0x1400210b5
lea rdx, [rsp + 0x30]
call fcn.140006000
jmp 0x1400210e9
mov r8d, 3
lea rdx, [0x1400c2dc8]
call fcn.14000b820
xor edx, edx
xor r8d, r8d
mov rcx, rbx
call fcn.140014cf0
cmp rax, 0xffffffffffffffff
je 0x1400210e9
or r8, 0xffffffffffffffff
mov rdx, rax
mov rcx, rbx
call fcn.140004de0
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x140021106
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
inc r8
call fcn.140004d70
mov rax, rbx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400812a0
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rdi
ret
Function at 0x1400218c0
Capabilities:
Check if file exists
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400d61c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx + 0x18], 8
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x20], 0
jb 0x1400218f8
mov rsi, qword [rcx]
jmp 0x1400218fb
mov rsi, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140021926
test al, 0x10
je 0x140021914
mov al, 1
jmp 0x1400219e7
test rdi, rdi
je 0x14002191f
mov dword [rdi], 0xfffffff7
xor al, al
jmp 0x1400219e7
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.14001d3f0
cmp qword [rbx + 0x18], 8
jb 0x14002193f
mov r8, qword [rbx]
jmp 0x140021942
mov r8, rbx
cmp qword [rsp + 0x40], 8
lea rcx, [rsp + 0x28]
mov r9, qword [rbx + 0x10]
cmovae rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x38]
call fcn.14000b1c0
test eax, eax
jne 0x140021974
test rdi, rdi
je 0x1400219c1
mov dword [rdi], 0xfffffffc
xor bl, bl
jmp 0x1400219c7
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.1400218c0
test al, al
jne 0x140021989
xor bl, bl
jmp 0x1400219c7
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400219c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0xb7
jne 0x1400219b3
mov rcx, rbx
call fcn.140020d40
test al, al
jne 0x1400219c5
test rdi, rdi
je 0x1400219c1
mov ecx, esi
call fcn.1400243b0
mov dword [rdi], eax
xor bl, bl
jmp 0x1400219c7
mov bl, 1
mov r8, qword [rsp + 0x40]
cmp r8, 8
jb 0x1400219e4
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x28]
inc r8
call fcn.140004d70
movzx eax, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400812a0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140021b00
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x1400d61c0]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, rcx
lea rdx, [rbp - 0x80]
xor esi, esi
mov ecx, 0x104
mov word [rbp - 0x80], si
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x103
ja 0x140021d44
mov qword [rsp + 0x2b8], rdi
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rsi
mov word [rsp + 0x60], si
cmp word [rbp - 0x80], si
jne 0x140021b76
mov r8d, esi
jmp 0x140021b8a
lea rax, [rbp - 0x80]
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], si
jne 0x140021b80
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x60]
call fcn.14000b820
cmp qword [rsp + 0x78], 8
lea rdx, [rsp + 0x60]
mov r8, qword [rsp + 0x70]
cmovae rdx, qword [rsp + 0x60]
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
test r8, r8
jne 0x140021bd5
mov rdi, rsi
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
jmp 0x140021be4
lea rcx, [rsp + 0x40]
call fcn.14000b820
mov rdi, qword [rsp + 0x50]
xor edx, edx
lea rcx, [rsp + 0x40]
xor r8d, r8d
call fcn.140014cf0
cmp rax, 0xffffffffffffffff
je 0x140021c0f
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x40]
mov rdx, rax
call fcn.140004de0
mov rdi, qword [rsp + 0x50]
cmp qword [rsp + 0x58], 8
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x38], 7
cmovae rdx, qword [rsp + 0x40]
mov qword [rsp + 0x30], rsi
mov word [rsp + 0x20], si
test rdi, rdi
jne 0x140021c44
mov qword [rsp + 0x30], rsi
mov word [rsp + 0x20], si
jmp 0x140021c51
mov r8, rdi
lea rcx, [rsp + 0x20]
call fcn.14000b820
xor edx, edx
lea rcx, [rsp + 0x20]
xor r8d, r8d
call fcn.140014cf0
mov rdi, qword [rsp + 0x2b8]
cmp rax, 0xffffffffffffffff
je 0x140021c7f
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x20]
mov rdx, rax
call fcn.140004de0
lea rcx, [rsp + 0x20]
call fcn.14001e500
lea rax, [rsp + 0x20]
cmp rbx, rax
je 0x140021cd6
mov r8, qword [rbx + 0x18]
cmp r8, 8
jb 0x140021cab
mov rdx, qword [rbx]
inc r8
mov rcx, rbx
call fcn.140004d70
mov qword [rbx + 0x18], 7
cmp qword [rbx + 0x18], 8
mov qword [rbx + 0x10], rsi
jb 0x140021cc3
mov rax, qword [rbx]
jmp 0x140021cc6
mov rax, rbx
lea rdx, [rsp + 0x20]
mov word [rax], si
mov rcx, rbx
call fcn.140006000
mov r8, qword [rsp + 0x38]
cmp r8, 8
jb 0x140021cf3
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
inc r8
call fcn.140004d70
mov r8, qword [rsp + 0x58]
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rsi
mov word [rsp + 0x20], si
cmp r8, 8
jb 0x140021d23
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
inc r8
call fcn.140004d70
mov r8, qword [rsp + 0x78]
cmp r8, 8
jb 0x140021d40
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x60]
inc r8
call fcn.140004d70
mov al, 1
jmp 0x140021d46
xor al, al
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400812a0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140021d70
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.14001e1c0
test al, al
jne 0x140021dfd
mov rcx, rbx
call fcn.14001e1c0
test al, al
jne 0x140021dfd
cmp qword [rdi + 0x10], 0x104
jae 0x140021dfd
cmp qword [rbx + 0x10], 0x104
jae 0x140021dfd
cmp qword [rbx + 0x18], 8
jb 0x140021db3
mov rbx, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x140021dbd
mov rdi, qword [rdi]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140021dfd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140021dfd
test al, 1
je 0x140021df0
and eax, 0xfffffffe
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140021e10
Capabilities:
Check if file exists
Move file

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x10], 0x104
mov rdi, rdx
mov rbx, rcx
jae 0x140021f00
cmp qword [rdx + 0x10], 0x104
jae 0x140021f00
cmp qword [rdx + 0x18], 8
jb 0x140021e46
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 8
jb 0x140021e50
mov rcx, qword [rcx]
mov r8d, 3
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140021e6d
mov al, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
xor sil, sil
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [rbx + 0x18], 8
mov ebp, eax
jb 0x140021e8e
mov rcx, qword [rbx]
jmp 0x140021e91
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140021edf
shr eax, 4
and al, 1
je 0x140021edf
mov rdx, rdi
mov rcx, rbx
call fcn.140020740
test al, al
je 0x140021edc
mov dl, 1
mov rcx, rbx
call fcn.140020420
test al, al
je 0x140021edc
mov rbp, qword [rsp + 0x38]
mov sil, 1
movzx eax, sil
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
xor sil, sil
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x38]
movzx eax, sil
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
xor al, al
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.14001e1c0
test al, al
jne 0x140029dca
mov rcx, rbx
call fcn.14001e1c0
test al, al
jne 0x140029dca
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140021e10
xor al, al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400220f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x58], rbx
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 1]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140022195
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1400c2de0]
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x50], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140022182
mov eax, dword [rsp + 0x40]
add eax, 0xfffffffd
cmp eax, 1
ja 0x140022182
cmp dword [rsp + 0x48], 4
cmove ebx, dword [rsp + 0x50]
cmp qword [rsp + 0x58], 0
je 0x140022195
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1400237f0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
sub rsp, 0x38
movsd xmm0, qword [0x1400da4f0]
movaps xmmword [rsp + 0x20], xmm6
xorps xmm6, xmm6
ucomisd xmm0, xmm6
jp 0x140023938
jne 0x140023938
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword gs:[0x58]
mov esi, 4
mov rbx, qword [rcx]
mov ecx, dword [rsi + rbx]
cmp dword [0x1400dc990], ecx
jg 0x140023942
mov eax, dword [rsi + rbx]
cmp dword [0x1400dc978], eax
mov rsi, qword [rsp + 0x58]
jg 0x14002397c
rdtsc
shl rdx, 0x20
lea rcx, [rsp + 0x40]
or rax, rdx
mov rbx, rax
xor eax, eax
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rcx, qword [rsp + 0x40]
xorps xmm2, xmm2
sub rcx, qword [0x1400dc980]
movsd xmm3, qword [0x1400c7178]
mov rdi, qword [rsp + 0x30]
cvtsi2sd xmm2, rcx
jns 0x1400238e4
addsd xmm2, xmm3
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsp + 0x48]
divsd xmm2, xmm1
movsd xmm1, qword [0x1400c70d0]
comisd xmm1, xmm2
jbe 0x140023912
movaps xmm0, xmm6
mov rbx, qword [rsp + 0x50]
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
ret
sub rbx, qword [0x1400dc970]
xorps xmm0, xmm0
cvtsi2sd xmm0, rbx
jns 0x140023927
addsd xmm0, xmm3
mov rbx, qword [rsp + 0x50]
divsd xmm0, xmm2
movsd qword [0x1400da4f0], xmm0
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
ret
lea rcx, [0x1400dc990]
call fcn.1400810b0
cmp dword [0x1400dc990], 0xffffffff
jne 0x140023868
rdtsc
shl rdx, 0x20
lea rcx, [0x1400dc990]
or rax, rdx
mov qword [0x1400dc970], rax
call fcn.140081050
jmp 0x140023868
lea rcx, [0x1400dc978]
call fcn.1400810b0
cmp dword [0x1400dc978], 0xffffffff
jne 0x14002387c
xor eax, eax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x40]
lea rcx, [0x1400dc978]
mov qword [0x1400dc980], rax
call fcn.140081050
jmp 0x14002387c
Function at 0x140023d80
Capabilities:
Read file on windows

Disassembly:
push rsi
push r14
push r15
sub rsp, 0x40
movsxd rsi, r8d
mov r15, rdx
mov r14, rcx
test r8d, r8d
jns 0x140023da5
or eax, 0xffffffff
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
mov rcx, qword [0x1400da568]
mov qword [rsp + 0x60], rbx
xor ebx, ebx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x78], rdi
mov edi, ebx
test rcx, rcx
je 0x140023df8
mov rax, qword [rcx]
call qword [rax + VariantCopy]
test al, al
je 0x140023df8
mov rcx, qword [0x1400da568]
lea rdi, [r14 + 0x28]
lea rbp, str.File::ReadAtCurrentPos
mov qword [rsp + 0x20], rsi
lea r9, [r14 + 8]
mov r8, rdi
mov rdx, rbp
mov r10, qword [rcx]
call qword [r10 + 0x20]
jmp 0x140023dfd
mov rbp, qword [rsp + 0x38]
mov rcx, qword [r14]
lea r9, [rsp + 0x70]
mov r8d, esi
mov qword [rsp + 0x20], rbx
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140023e20
mov ebx, dword [rsp + 0x70]
jmp 0x140023e2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x140023e2e
or ebx, 0xffffffff
test rdi, rdi
je 0x140023e4c
mov rcx, qword [0x1400da568]
test rcx, rcx
je 0x140023e4c
mov r9, qword [rcx]
mov r8, rdi
mov rdx, rbp
call qword [r9 + 0x28]
mov rdi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rsi
ret

Function at 0x140023e70
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rax + 0x10], rbp
mov rbx, rcx
mov rcx, qword [0x1400da568]
xor edi, edi
mov qword [rax + 0x18], r14
mov rbp, rdx
mov qword [rax + 0x20], r15
mov r15, r8
movsxd r14, r9d
test rcx, rcx
je 0x140023ed4
mov rax, qword [rcx]
call qword [rax + VariantCopy]
test al, al
je 0x140023ed4
mov rcx, qword [0x1400da568]
lea rdi, [rbx + 0x28]
lea rsi, str.File::Write
mov qword [rsp + 0x20], r14
lea r9, [rbx + 8]
mov r8, rdi
mov rdx, rsi
mov r10, qword [rcx]
call qword [r10 + 0x20]
jmp 0x140023ed9
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rbx]
lea r9, [rsp + 0x70]
xor eax, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], rax
mov r8d, r14d
mov dword [rsp + 0x40], ebp
mov rdx, r15
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
shr rbp, 0x20
mov dword [rsp + 0x44], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r15, qword [rsp + 0x88]
or ebx, 0xffffffff
mov r14, qword [rsp + 0x80]
test eax, eax
mov rbp, qword [rsp + 0x78]
cmovne ebx, dword [rsp + 0x70]
test rdi, rdi
je 0x140023f5a
mov rcx, qword [0x1400da568]
test rcx, rcx
je 0x140023f5a
mov r9, qword [rcx]
mov r8, rdi
mov rdx, rsi
call qword [r9 + 0x28]
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140023f70
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
xor edi, edi
mov rcx, qword [0x1400da568]
test rcx, rcx
je 0x140023fc7
mov rax, qword [rcx]
call qword [rax + VariantCopy]
test al, al
je 0x140023fc7
mov rcx, qword [0x1400da568]
lea rdi, [rbx + 0x28]
lea rsi, str.File::GetLength
mov qword [rsp + 0x20], 0
lea r9, [rbx + 8]
mov r8, rdi
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
jmp 0x140023fcc
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rbx]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rbx, qword [rsp + 0x50]
or rcx, 0xffffffffffffffff
test eax, eax
cmove rbx, rcx
test rdi, rdi
je 0x140024007
mov rcx, qword [0x1400da568]
test rcx, rcx
je 0x140024007
mov r9, qword [rcx]
mov r8, rdi
mov rdx, rsi
call qword [r9 + 0x28]
mov rsi, qword [rsp + 0x60]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140024020
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov qword [rsp + 0x58], rbp
mov rcx, qword [0x1400da568]
xor edi, edi
mov rbp, rdx
test rcx, rcx
je 0x14002407b
mov rax, qword [rcx]
call qword [rax + VariantCopy]
test al, al
je 0x14002407b
mov rcx, qword [0x1400da568]
lea rdi, [rbx + 0x28]
lea rsi, str.File::SetLength
mov qword [rsp + 0x20], rbp
lea r9, [rbx + 8]
mov r8, rdi
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
jmp 0x140024080
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rbx]
lea r8, [rsp + 0x50]
mov r9d, 1
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400240d9
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400240d9
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400240d9
mov rdx, qword [rsp + 0x50]
xor r9d, r9d
mov rcx, qword [rbx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400240d9
mov bl, 1
jmp 0x1400240db
xor bl, bl
mov rbp, qword [rsp + 0x58]
test rdi, rdi
je 0x1400240fe
mov rcx, qword [0x1400da568]
test rcx, rcx
je 0x1400240fe
mov r9, qword [rcx]
mov r8, rdi
mov rdx, rsi
call qword [r9 + 0x28]
mov rsi, qword [rsp + 0x68]
movzx eax, bl
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140024ab0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x268
mov rax, qword [0x1400d61c0]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp qword [0x1400da510], 0
je 0x140024aed
mov al, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400812a0
add rsp, 0x268
ret
mov rax, qword [0x1400da520]
test rax, rax
jne 0x140024b10
lea ecx, [rax + 0x20]
call fcn.140080c00
mov rcx, rax
call fcn.1400249c0
mov qword [0x1400da520], rax
test byte [0x1400d6d10], 1
mov qword [rsp + 0x260], rbx
je 0x140024c62
cmp qword [rax + 0x18], 8
jb 0x140024b2f
mov rax, qword [rax]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov rcx, rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
lea edx, [rbx + 4]
lea r8d, [rbx + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400da510], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x140024c62
lea rdx, [rsp + 0x40]
mov word [rsp + 0x40], bx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x103
ja 0x140024c5e
cmp word [rsp + 0x40], bx
jne 0x140024b9d
mov r8d, ebx
jmp 0x140024bb0
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x140024ba6
mov rcx, qword [0x1400da520]
lea rdx, [rsp + 0x40]
call fcn.14000b820
mov rcx, qword [0x1400da520]
cmp qword [rcx + 0x18], 8
jb 0x140024bd4
mov rdx, qword [rcx]
jmp 0x140024bd7
mov rdx, rcx
mov rax, qword [rcx + 0x10]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x140024bfc
mov r8d, 1
lea rdx, [0x1400c229c]
call fcn.140006240
mov rcx, qword [0x1400da520]
mov r8d, 9
lea rdx, str.debug.log
call fcn.140006240
mov rcx, qword [0x1400da520]
cmp qword [rcx + 0x18], 8
jb 0x140024c1f
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
lea edx, [r9 + 4]
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1400da510], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x140024c62
mov qword [0x1400da510], rbx
xor al, al
jmp 0x140024c64
mov al, 1
mov rbx, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400812a0
add rsp, 0x268
ret
Function at 0x140027ad0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1030
call fcn.140081310
sub rsp, rax
mov rax, qword [0x1400d61c0]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov ebx, dword [0x1400d6d18]
cmp ebx, 0xffffffff
jne 0x140027b46
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, ebx
je 0x140027b0e
mov ebx, eax
jmp 0x140027b28
int3
or eax, 0xffffffff
lock cmpxchg dword [0x1400d6d18], ebx
cmp eax, 0xffffffff
je 0x140027b46
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov ebx, dword [0x1400d6d18]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140027b54
int3
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x1000
call fcn.140082560
lea rdx, [rsp + 0x20]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, 0x1000
call fcn.140081370
mov rdi, rax
lea rdx, [rsp + 0x20]
mov rcx, rax
mov r8d, 0x20
nop
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm1, xmmword [rdx - 0x70]
movups xmmword [rcx - 0x70], xmm1
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x60], xmm0
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x50], xmm1
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x40], xmm0
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x30], xmm1
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x20], xmm0
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x10], xmm1
sub r8, 1
jne 0x140027b90
mov rdx, rdi
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, rdi
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1400812a0
mov rbx, qword [rsp + 0x1040]
add rsp, 0x1030
pop rdi
ret

Function at 0x140027e30
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
mov rbp, rdx
mov ecx, dword [0x1400d6d18]
cmp ecx, 0xffffffff
je 0x140027e60
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140027e65
call fcn.140027ad0
xor edi, edi
mov dword [rsi + 4], 0xffffffff
mov dword [rsi + 8], edi
call fcn.140027a60
mov rbx, rax
call fcn.14001e9c0
mov rdx, rax
lea rcx, [rsp + 0x20]
mov r8, rbx
call fcn.14003e220
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
lea rcx, [rsp + 0x20]
call fcn.14003de10
mov r8, qword [0x1400dc6f8]
lea r9, [0x1400da570]
nop
mov eax, edi
lea rcx, [r8 + 1]
add rcx, rax
movzx edx, cl
lea rax, [rdx + rdx*2]
cmp dword [r9 + rax*8], 0
je 0x140027ed3
inc edi
cmp edi, 0x100
jl 0x140027eb0
jmp 0x140027ef6
lea rax, [rdx + rdx*2]
mov qword [0x1400dc6f8], rdx
mov dword [r9 + rax*8], 1
mov qword [r9 + rax*8 + 8], rbp
mov dword [rsi + 4], edx
mov eax, dword [r9 + rax*8 + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp dword [rsi + 4], 0xffffffff
jne 0x140027f06
int3
cmp dword [rsi + 4], 0x100
jl 0x140027f10
int3
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov dword [rsi], 1
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret