joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009a1d0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14029fbf8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rax, rdx
mov dword [rsp + 0x30], r8d
lea rdx, [rcx + 0x30]
mov qword [rsp + 0x20], r8
mov rcx, rax
mov r8d, 8
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x14009a22d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140199a10
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140199a10
add rsp, 0x40
pop rbx
ret

Function at 0x14009a250
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, rdx
mov qword [rsp + 0x20], 0
lea rdx, [rcx + 0x30]
mov r9, r8
mov rcx, rax
mov r8d, 8
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x14009a285
add rsp, 0x38
jmp qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
xor eax, eax
add rsp, 0x38
ret

Function at 0x14009aa60
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14029fbf8]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp dword [r8], 6
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
jae 0x14009aa8d
mov eax, 0x452
jmp 0x14009aaff
xor eax, eax
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea r8d, [rax + 6]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x14009aabf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
je 0x14009aac5
jmp 0x14009aaff
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
mov edx, dword [rsp + 0x34]
cmp dx, 0xc
je 0x14009aad6
mov eax, 0xd
jmp 0x14009aaff
mov ecx, dword [rbx]
mov eax, dword [rsp + 0x36]
add rcx, 6
cmp rax, rcx
ja 0x14009aacf
movzx eax, word [rsp + 0x38]
mov r8, rbx
mov dword [rdi + 0x12], edx
mov rcx, rdi
mov rdx, rsi
mov word [rdi + 0x16], ax
call fcn.140099360
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140199a10
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x14009ac10
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, rdx
mov qword [rsp + 0x20], 0
lea rdx, [rcx + 0x30]
mov r9, r8
mov rcx, rax
mov r8d, 8
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x14009ac45
add rsp, 0x38
jmp qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
xor eax, eax
add rsp, 0x38
ret
Function at 0x14009ac50
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14029fbf8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rax, rdx
mov dword [rsp + 0x30], r8d
lea rdx, [rcx + 0x30]
mov qword [rsp + 0x20], r8
mov rcx, rax
mov r8d, 8
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x14009acad
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140199a10
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140199a10
add rsp, 0x40
pop rbx
ret

Function at 0x14009b260
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, rdx
mov qword [rsp + 0x20], 0
lea rdx, [rcx + 0x30]
mov r9, r8
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x14009b295
add rsp, 0x38
jmp qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
xor eax, eax
add rsp, 0x38
ret

Function at 0x14009b2a0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14029fbf8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rax, rdx
mov dword [rsp + 0x30], r8d
lea rdx, [rcx + 0x30]
mov qword [rsp + 0x20], r8
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x14009b2fd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140199a10
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140199a10
add rsp, 0x40
pop rbx
ret

Function at 0x14009b940
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14029fbf8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rax, rdx
mov dword [rsp + 0x30], r8d
lea rdx, [rcx + 0x30]
mov qword [rsp + 0x20], r8
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x14009b99d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140199a10
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140199a10
add rsp, 0x40
pop rbx
ret

Function at 0x14009b9c0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, rdx
mov qword [rsp + 0x20], 0
lea rdx, [rcx + 0x30]
mov r9, r8
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x14009b9f5
add rsp, 0x38
jmp qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
xor eax, eax
add rsp, 0x38
ret
Function at 0x14009cd70
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
mov rcx, qword [str.P_a_]
lea rsi, str.P_a_
cmp rcx, rsi
je 0x14009cdb9
test byte [rcx + 0x44], 2
je 0x14009cdb9
cmp byte [rcx + 0x41], 4
jb 0x14009cdb9
mov rcx, qword [rcx + 0x38]
lea r8, [0x140217178]
mov edx, 0x26
call fcn.140022ad0
mov r8, qword [rdi + 0x10]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140032ca0
cmp qword [rax + 0x18], 8
jb 0x14009cdd4
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
mov r8, qword [rsp + 0x38]
test eax, eax
sete bl
cmp r8, 8
jb 0x14009cdff
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
inc r8
call fcn.140007b00
test bl, bl
je 0x14009ce6e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
cmp eax, 2
jne 0x14009ce2c
mov rcx, qword [str.P_a_]
cmp rcx, rsi
je 0x14009ce9b
test byte [rcx + 0x44], al
je 0x14009ce9b
cmp byte [rcx + 0x41], 5
jb 0x14009ce9b
lea edx, [rax + 0x25]
jmp 0x14009ce8b
mov rcx, qword [str.P_a_]
cmp rcx, rsi
je 0x14009ce5c
test byte [rcx + 0x44], 2
je 0x14009ce5c
cmp byte [rcx + 0x41], 5
jb 0x14009ce5c
mov rcx, qword [rcx + 0x38]
lea r8, [0x140217178]
mov edx, 0x28
mov r9d, ebx
call fcn.140025240
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [str.P_a_]
cmp rcx, rsi
je 0x14009ce9b
test byte [rcx + 0x44], 2
je 0x14009ce9b
cmp byte [rcx + 0x41], 5
jb 0x14009ce9b
mov edx, 0x29
mov rcx, qword [rcx + 0x38]
lea r8, [0x140217178]
call fcn.140022ad0
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14009ceb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14029fbf8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov rcx, qword [str.P_a_]
lea rsi, str.P_a_
cmp rcx, rsi
je 0x14009cf05
test byte [rcx + 0x44], 2
je 0x14009cf05
cmp byte [rcx + 0x41], 4
jb 0x14009cf05
mov rcx, qword [rcx + 0x38]
lea r8, [0x140217178]
mov edx, 0x3d
call fcn.140022ad0
lea rax, [rsp + 0x30]
mov r9d, 0x1000b
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesiaStorAfsService
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x14009cf69
mov rcx, qword [str.P_a_]
cmp rcx, rsi
je 0x14009cf62
test byte [rcx + 0x44], 2
je 0x14009cf62
cmp byte [rcx + 0x41], 2
jb 0x14009cf62
mov rcx, qword [rcx + 0x38]
lea r8, [0x140217178]
mov edx, 0x3e
mov r9d, eax
call fcn.140025240
mov eax, ebx
jmp 0x14009d0c1
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov qword [rsp + 0x20], 0
lea rdx, str.BootMigrationPhase
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x14009cfde
mov rcx, qword [str.P_a_]
cmp rcx, rsi
je 0x14009cfcc
test byte [rcx + 0x44], 2
je 0x14009cfcc
cmp byte [rcx + 0x41], 2
jb 0x14009cfcc
mov edx, 0x3f
mov rcx, qword [rcx + 0x38]
lea r8, [0x140217178]
mov r9d, ebx
call fcn.140025240
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
jmp 0x14009d0c1
cmp dword [rsp + 0x3c], 4
jne 0x14009d084
cmp dword [rsp + 0x38], 4
jne 0x14009d084
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.BootMigrationPhase
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x14009d045
mov rcx, qword [str.P_a_]
cmp rcx, rsi
je 0x14009cfcc
test byte [rcx + 0x44], 2
je 0x14009cfcc
cmp byte [rcx + 0x41], 2
jb 0x14009cfcc
mov edx, 0x41
jmp 0x14009cfb9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [str.P_a_]
cmp rcx, rsi
je 0x14009d080
test byte [rcx + 0x44], 2
je 0x14009d080
cmp byte [rcx + 0x41], 5
jb 0x14009d080
mov r9d, dword [rdi]
lea r8, [0x140217178]
mov rcx, qword [rcx + 0x38]
mov edx, 0x42
call fcn.140025240
xor eax, eax
jmp 0x14009d0c1
mov rcx, qword [str.P_a_]
cmp rcx, rsi
je 0x14009d0b1
test byte [rcx + 0x44], 2
je 0x14009d0b1
cmp byte [rcx + 0x41], 2
jb 0x14009d0b1
mov rcx, qword [rcx + 0x38]
lea r8, [0x140217178]
mov edx, 0x40
call fcn.140022ad0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, 0x70c
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140199a10
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14009e780
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14029fbf8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], edx
mov rcx, qword [str.P_a_]
lea rdi, str.P_a_
cmp rcx, rdi
je 0x14009e7d1
test byte [rcx + 0x44], 2
je 0x14009e7d1
cmp byte [rcx + 0x41], 4
jb 0x14009e7d1
mov rcx, qword [rcx + 0x38]
lea r8, [0x140217178]
mov edx, 0x47
call fcn.140022ad0
lea rax, [rsp + 0x30]
mov r9d, 0x1000b
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesiaStorAfsService
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x14009e832
mov rcx, qword [str.P_a_]
cmp rcx, rdi
je 0x14009e82e
test byte [rcx + 0x44], 2
je 0x14009e82e
cmp byte [rcx + 0x41], 2
jb 0x14009e82e
mov rcx, qword [rcx + 0x38]
lea r8, [0x140217178]
mov edx, 0x48
mov r9d, eax
call fcn.140025240
mov eax, ebx
jmp 0x14009e8b1
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.DumpMemoryLevel
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x14009e8a4
mov rcx, qword [str.P_a_]
cmp rcx, rdi
je 0x14009e895
test byte [rcx + 0x44], 2
je 0x14009e895
cmp byte [rcx + 0x41], 2
jb 0x14009e895
mov rcx, qword [rcx + 0x38]
lea r8, [0x140217178]
mov edx, 0x49
mov r9d, eax
call fcn.140025240
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
jmp 0x14009e8b1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140199a10
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x14009f020
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14029fbf8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rcx, qword [str.P_a_]
lea rsi, str.P_a_
cmp rcx, rsi
je 0x14009f0a5
test byte [rcx + 0x44], 2
je 0x14009f07c
cmp byte [rcx + 0x41], 4
jb 0x14009f07c
mov rcx, qword [rcx + 0x38]
lea r8, [0x140217178]
mov edx, 0x43
call fcn.140022ad0
mov rcx, qword [str.P_a_]
cmp rcx, rsi
je 0x14009f0a5
test byte [rcx + 0x44], 2
je 0x14009f0a5
cmp byte [rcx + 0x41], 5
jb 0x14009f0a5
mov r9d, dword [rdi]
lea r8, [0x140217178]
mov rcx, qword [rcx + 0x38]
mov edx, 0x44
call fcn.140025240
lea rax, [rsp + 0x30]
mov r9d, 0x1000b
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesiaStorAfsService
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x14009f106
mov rcx, qword [str.P_a_]
cmp rcx, rsi
je 0x14009f102
test byte [rcx + 0x44], 2
je 0x14009f102
cmp byte [rcx + 0x41], 2
jb 0x14009f102
mov rcx, qword [rcx + 0x38]
lea r8, [0x140217178]
mov edx, 0x45
mov r9d, eax
call fcn.140025240
mov eax, ebx
jmp 0x14009f180
mov rcx, qword [rsp + 0x30]
lea rdx, str.BootMigrationPhase
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x14009f173
mov rcx, qword [str.P_a_]
cmp rcx, rsi
je 0x14009f164
test byte [rcx + 0x44], 2
je 0x14009f164
cmp byte [rcx + 0x41], 2
jb 0x14009f164
mov rcx, qword [rcx + 0x38]
lea r8, [0x140217178]
mov edx, 0x46
mov r9d, eax
call fcn.140025240
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
jmp 0x14009f180
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140199a10
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14009fb60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14029fbf8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [rcx]
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
call qword [rax]
xor ebp, ebp
lea rdx, [rbx + 0x12]
mov r9, rsi
mov dword [rbx + 0x14], eax
mov rcx, rdi
mov qword [rsp + 0x20], rbp
lea r8d, [rbp + 6]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x14009fbb5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jne 0x14009fc25
mov rax, qword [rbx]
lea r8, [rsp + 0x30]
mov rdx, rdi
mov dword [rsp + 0x30], ebp
mov rcx, rbx
call qword [rax + 0x20]
mov ecx, dword [rsp + 0x30]
add dword [rsi], ecx
test eax, eax
jne 0x14009fc25
mov rbx, qword [rbx + 0x20]
mov eax, ebp
mov dword [rsp + 0x30], eax
test rbx, rbx
je 0x14009fc1f
nop dword [rax]
nop word [rax + rax]
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], ebp
mov rdx, rdi
mov rcx, rbx
call fcn.14009fb60
mov ecx, eax
mov eax, dword [rsp + 0x30]
add eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
test ecx, ecx
jne 0x14009fc21
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x14009fbf0
mov ecx, ebp
add dword [rsi], eax
mov eax, ecx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140199a10
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400a2df0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0xc]
xor edi, edi
mov rbx, rcx
cmp eax, 1
jne 0x1400a2e3f
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
mov eax, edi
lea rcx, [0x1400c3470]
xchg dword [rbx + 0x10], eax
mov r8, rbx
xor edx, edx
call fcn.1401c1aa0
mov qword [rbx + 0x18], rax
cmp rax, 0xffffffffffffffff
jne 0x1400a2e3f
lea eax, [rdi + 0x6e]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rbx + 0xc]
cmp eax, 1
je 0x1400a2e59
mov edi, 0x139f
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov dword [rbx + 0xc], 2
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400adc10
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x14029fbf8]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
xor edx, edx
mov qword [rbp - 0x48], rdx
xor eax, eax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x10], rax
lea rdi, vtable.SqliteStatement.0
mov qword [rbp - 0x40], rdi
mov dword [rbp - 0x38], edx
lea rax, [rcx + 0x10]
test rcx, rcx
cmove rax, rdx
mov qword [rbp - 0x30], rax
lea rdx, str.SELECT_FILE_STATE_FROM_FILES_WHERE_FILE_ID___id
mov qword [rbp - 0x28], rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0x10], 0
mov r8d, 6
lea rcx, [0x1402441c0]
call fcn.1401a7c50
movzx ecx, byte [rbp - 0x10]
mov edx, 1
test eax, eax
cmove ecx, edx
mov byte [rbp - 0x10], cl
lea rax, vtable.TransactionSafeStatement.0
mov qword [rbp - 0x40], rax
mov r8, rbx
lea rcx, [rbp - 0x40]
call fcn.1400297f0
test eax, eax
jne 0x1400adcc7
lea rcx, [rbp - 0x40]
call fcn.140029c40
cmp eax, 0x64
jne 0x1400add19
lea r8, [rbp - 0x48]
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.140029b30
test eax, eax
je 0x1400add19
lea rdx, str.P_a_
mov rcx, qword [str.P_a_]
cmp rcx, rdx
je 0x1400add19
test dword [rcx + 0x44], 0x20000
je 0x1400add19
cmp byte [rcx + 0x41], 2
jb 0x1400add19
mov edx, 0x13
mov r9d, eax
lea r8, [0x140218320]
mov rcx, qword [rcx + 0x38]
call fcn.140036f80
movzx ebx, byte [rbp - 0x48]
and bl, 1
mov qword [rbp - 0x40], rdi
lea rcx, [rbp - 0x40]
call fcn.140029cf0
nop
movzx eax, bl
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140199a10
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400b9b30
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14029fbf8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x1400b9cda
cmp byte [rcx + 0x72], 0
je 0x1400b9cda
mov rax, qword [rcx]
mov ebx, 0xffff
mov edx, ebx
call qword [rax + 0x18]
cmp bx, ax
jne 0x1400b9b8e
xor al, al
jmp 0x1400b9cdc
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0xf
mov byte [rbp - 0x30], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.14000ed40
nop
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
nop dword [rax + rax]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, rcx
lea r8, [rbp - 0x30]
cmovae r8, rcx
mov rcx, qword [rdi + 0x68]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rdi + 0x74]
call qword [r10 + 0x40]
test eax, eax
je 0x1400b9bfe
sub eax, 1
jne 0x1400b9c72
jmp 0x1400b9c02
mov byte [rdi + 0x72], 0
lea rax, [rbp - 0x30]
mov rcx, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, rcx
mov rbx, qword [rbp - 0x38]
sub rbx, rax
je 0x1400b9c4f
lea rax, [rbp - 0x30]
cmp r9, 0x10
cmovae rax, rcx
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rax
call fcn.1401cc094
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x1400b9c7f
cmp byte [rdi + 0x72], 0
je 0x1400b9c83
test rbx, rbx
jne 0x1400b9bc0
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.140011780
jmp 0x1400b9bb3
sub eax, 2
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x1400b9c83
xor bl, bl
jmp 0x1400b9c85
mov bl, 1
cmp r9, 0x10
jb 0x1400b9cd5
lea rax, [r9 + 1]
cmp rax, 0x1000
jb 0x1400b9cd0
test byte [rbp - 0x30], 0x1f
je 0x1400b9ca3
call fcn.1401a7998
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400b9cb2
call fcn.1401a7998
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400b9cc1
call fcn.1401a7998
int3
cmp rcx, 0x27
jbe 0x1400b9ccd
call fcn.1401a7998
int3
mov rcx, rax
call fcn.1401998b8
movzx eax, bl
jmp 0x1400b9cdc
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140199a10
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400ba250
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x30
cmp qword [rdx + 0x18], 8
mov rbx, rdx
jb 0x1400ba269
mov rcx, qword [rdx]
jmp 0x1400ba26c
mov rcx, rbx
mov qword [rsp + 0x40], rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
lea rdi, str.P_a_
mov esi, eax
cmp eax, 0xffffffff
je 0x1400ba3d1
test sil, 0x10
je 0x1400ba37e
test sil, 2
je 0x1400ba32b
mov rcx, qword [str.P_a_]
cmp rcx, rdi
je 0x1400ba2e0
test byte [rcx + 0x44], 0x40
je 0x1400ba2e0
cmp byte [rcx + 0x41], 4
jb 0x1400ba2e0
cmp qword [rbx + 0x18], 8
jb 0x1400ba2c1
mov r9, qword [rbx]
jmp 0x1400ba2c4
mov r9, rbx
mov rcx, qword [rcx + 0x38]
lea r8, [0x140219f38]
mov edx, 0x12
call fcn.1400328b0
mov rcx, qword [str.P_a_]
test sil, 4
je 0x1400ba332
cmp rcx, rdi
je 0x1400ba319
test byte [rcx + 0x44], 0x40
je 0x1400ba319
cmp byte [rcx + 0x41], 4
jb 0x1400ba319
cmp qword [rbx + 0x18], 8
jb 0x1400ba301
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x140219f38]
mov edx, 0x13
mov r9, rbx
call fcn.1400328b0
xor eax, eax
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [str.P_a_]
cmp rcx, rdi
je 0x1400ba369
test byte [rcx + 0x44], 0x40
je 0x1400ba369
cmp byte [rcx + 0x41], 2
jb 0x1400ba369
cmp qword [rbx + 0x18], 8
jb 0x1400ba34d
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x140219f38]
mov edx, 0x14
mov dword [rsp + 0x20], esi
mov r9, rbx
call fcn.140036fe0
mov eax, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [str.P_a_]
cmp rcx, rdi
je 0x1400ba3bc
test byte [rcx + 0x44], 0x40
je 0x1400ba3bc
cmp byte [rcx + 0x41], 2
jb 0x1400ba3bc
cmp qword [rbx + 0x18], 8
jb 0x1400ba3a0
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x140219f38]
mov edx, 0x15
mov dword [rsp + 0x20], esi
mov r9, rbx
call fcn.140036fe0
mov eax, 0x50
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [str.P_a_]
cmp rcx, rdi
je 0x1400ba40b
test byte [rcx + 0x44], 0x40
je 0x1400ba40b
cmp byte [rcx + 0x41], 4
jb 0x1400ba40b
cmp qword [rbx + 0x18], 8
jb 0x1400ba3f3
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x140219f38]
mov edx, 0x16
mov r9, rbx
call fcn.1400328b0
mov rdi, qword [rsp + 0x40]
mov eax, 2
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret