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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140299ac8]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp dword [r8], 0
mov rdi, r8
mov r14, rdx
mov rsi, rcx
jbe 0x140099481
xor r15d, r15d
cmp dword [rdi], 6
jb 0x1400994bd
lea r9, [rsp + 0x38]
mov dword [rsp + 0x38], r15d
mov r8d, 6
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x140099411
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jne 0x140099483
jmp 0x140099417
mov eax, dword [rsp + 0x38]
sub dword [rdi], eax
mov edx, dword [rdi]
mov r8d, dword [rsp + 0x32]
lea rcx, [rdx + 6]
cmp r8, rcx
ja 0x1400994b6
movzx ecx, word [rsp + 0x30]
lea eax, [r8 - 6]
sub edx, eax
mov dword [rsp + 0x3c], eax
mov dword [rdi], edx
call fcn.14009b6e0
mov rbx, rax
test rax, rax
je 0x1400994b6
mov r9, qword [rax]
lea r8, [rsp + 0x3c]
mov rdx, r14
mov rcx, rax
call qword [r9 + 0x30]
mov ebp, eax
test eax, eax
jne 0x1400994a4
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x140099470
mov qword [rax + 0x18], rbx
jmp 0x140099474
mov qword [rsi + 0x20], rbx
mov qword [rsi + 0x28], rbx
cmp dword [rdi], r15d
ja 0x1400993d5
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401938e0
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + 0x18]
mov eax, ebp
jmp 0x140099483
mov eax, 0xd
jmp 0x140099483
mov eax, 0x452
jmp 0x140099483

Function at 0x140099ae0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140299ac8]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [rcx + 0x30], 0
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
je 0x140099b0e
mov eax, 0x4df
jmp 0x140099b77
mov ecx, dword [r8]
mov eax, 2
shr ecx, 1
inc ecx
mul rcx
mov qword [rdi + 0x38], rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1401a2454
mov qword [rdi + 0x30], rax
test rax, rax
jne 0x140099b44
mov eax, 0xe
jmp 0x140099b77
mov r8d, dword [rbx]
lea r9, [rsp + 0x30]
xor ecx, ecx
mov rdx, rax
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x140099b6f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x140099b77
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401938e0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x140099b90
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov r9, r8
mov qword [rsp + 0x20], 0
mov r8d, dword [rcx + 0x38]
mov rax, rdx
mov rdx, qword [rcx + 0x30]
mov rcx, rax
lea r8d, [r8*2 + 2]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x140099bcb
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 0x14009a1c0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140299ac8]
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 0x14009a21d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401938e0
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.1401938e0
add rsp, 0x40
pop rbx
ret

Function at 0x14009a240
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 0x14009a275
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 0x14009aa50
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140299ac8]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp dword [r8], 6
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
jae 0x14009aa7d
mov eax, 0x452
jmp 0x14009aaef
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 0x14009aaaf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
je 0x14009aab5
jmp 0x14009aaef
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
mov edx, dword [rsp + 0x34]
cmp dx, 0xc
je 0x14009aac6
mov eax, 0xd
jmp 0x14009aaef
mov ecx, dword [rbx]
mov eax, dword [rsp + 0x36]
add rcx, 6
cmp rax, rcx
ja 0x14009aabf
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.140099350
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1401938e0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x14009ac00
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 0x14009ac35
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 0x14009ac40
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140299ac8]
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 0x14009ac9d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401938e0
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.1401938e0
add rsp, 0x40
pop rbx
ret

Function at 0x14009b250
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 0x14009b285
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 0x14009b290
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140299ac8]
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 0x14009b2ed
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401938e0
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.1401938e0
add rsp, 0x40
pop rbx
ret

Function at 0x14009b930
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x140299ac8]
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 0x14009b98d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401938e0
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.1401938e0
add rsp, 0x40
pop rbx
ret

Function at 0x14009b9b0
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 0x14009b9e5
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 0x14009cd60
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 [0x14029a620]
lea rsi, [0x14029a620]
cmp rcx, rsi
je 0x14009cda9
test byte [rcx + 0x44], 2
je 0x14009cda9
cmp byte [rcx + 0x41], 4
jb 0x14009cda9
mov rcx, qword [rcx + 0x38]
lea r8, [0x140211178]
mov edx, 0x26
call fcn.140022ad0
mov r8, qword [rdi + 0x10]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140032c90
cmp qword [rax + 0x18], 8
jb 0x14009cdc4
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 0x14009cdef
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
inc r8
call fcn.140007b00
test bl, bl
je 0x14009ce5e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
cmp eax, 2
jne 0x14009ce1c
mov rcx, qword [0x14029a620]
cmp rcx, rsi
je 0x14009ce8b
test byte [rcx + 0x44], al
je 0x14009ce8b
cmp byte [rcx + 0x41], 5
jb 0x14009ce8b
lea edx, [rax + 0x25]
jmp 0x14009ce7b
mov rcx, qword [0x14029a620]
cmp rcx, rsi
je 0x14009ce4c
test byte [rcx + 0x44], 2
je 0x14009ce4c
cmp byte [rcx + 0x41], 5
jb 0x14009ce4c
mov rcx, qword [rcx + 0x38]
lea r8, [0x140211178]
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 [0x14029a620]
cmp rcx, rsi
je 0x14009ce8b
test byte [rcx + 0x44], 2
je 0x14009ce8b
cmp byte [rcx + 0x41], 5
jb 0x14009ce8b
mov edx, 0x29
mov rcx, qword [rcx + 0x38]
lea r8, [0x140211178]
call fcn.140022ad0
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14009cea0
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 [0x140299ac8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov rcx, qword [0x14029a620]
lea rsi, [0x14029a620]
cmp rcx, rsi
je 0x14009cef5
test byte [rcx + 0x44], 2
je 0x14009cef5
cmp byte [rcx + 0x41], 4
jb 0x14009cef5
mov rcx, qword [rcx + 0x38]
lea r8, [0x140211178]
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 0x14009cf59
mov rcx, qword [0x14029a620]
cmp rcx, rsi
je 0x14009cf52
test byte [rcx + 0x44], 2
je 0x14009cf52
cmp byte [rcx + 0x41], 2
jb 0x14009cf52
mov rcx, qword [rcx + 0x38]
lea r8, [0x140211178]
mov edx, 0x3e
mov r9d, eax
call fcn.140025240
mov eax, ebx
jmp 0x14009d0b1
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 0x14009cfce
mov rcx, qword [0x14029a620]
cmp rcx, rsi
je 0x14009cfbc
test byte [rcx + 0x44], 2
je 0x14009cfbc
cmp byte [rcx + 0x41], 2
jb 0x14009cfbc
mov edx, 0x3f
mov rcx, qword [rcx + 0x38]
lea r8, [0x140211178]
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 0x14009d0b1
cmp dword [rsp + 0x3c], 4
jne 0x14009d074
cmp dword [rsp + 0x38], 4
jne 0x14009d074
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 0x14009d035
mov rcx, qword [0x14029a620]
cmp rcx, rsi
je 0x14009cfbc
test byte [rcx + 0x44], 2
je 0x14009cfbc
cmp byte [rcx + 0x41], 2
jb 0x14009cfbc
mov edx, 0x41
jmp 0x14009cfa9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [0x14029a620]
cmp rcx, rsi
je 0x14009d070
test byte [rcx + 0x44], 2
je 0x14009d070
cmp byte [rcx + 0x41], 5
jb 0x14009d070
mov r9d, dword [rdi]
lea r8, [0x140211178]
mov rcx, qword [rcx + 0x38]
mov edx, 0x42
call fcn.140025240
xor eax, eax
jmp 0x14009d0b1
mov rcx, qword [0x14029a620]
cmp rcx, rsi
je 0x14009d0a1
test byte [rcx + 0x44], 2
je 0x14009d0a1
cmp byte [rcx + 0x41], 2
jb 0x14009d0a1
mov rcx, qword [rcx + 0x38]
lea r8, [0x140211178]
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.1401938e0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14009e770
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140299ac8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], edx
mov rcx, qword [0x14029a620]
lea rdi, [0x14029a620]
cmp rcx, rdi
je 0x14009e7c1
test byte [rcx + 0x44], 2
je 0x14009e7c1
cmp byte [rcx + 0x41], 4
jb 0x14009e7c1
mov rcx, qword [rcx + 0x38]
lea r8, [0x140211178]
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 0x14009e822
mov rcx, qword [0x14029a620]
cmp rcx, rdi
je 0x14009e81e
test byte [rcx + 0x44], 2
je 0x14009e81e
cmp byte [rcx + 0x41], 2
jb 0x14009e81e
mov rcx, qword [rcx + 0x38]
lea r8, [0x140211178]
mov edx, 0x48
mov r9d, eax
call fcn.140025240
mov eax, ebx
jmp 0x14009e8a1
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 0x14009e894
mov rcx, qword [0x14029a620]
cmp rcx, rdi
je 0x14009e885
test byte [rcx + 0x44], 2
je 0x14009e885
cmp byte [rcx + 0x41], 2
jb 0x14009e885
mov rcx, qword [rcx + 0x38]
lea r8, [0x140211178]
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 0x14009e8a1
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.1401938e0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x14009f010
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 [0x140299ac8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rcx, qword [0x14029a620]
lea rsi, [0x14029a620]
cmp rcx, rsi
je 0x14009f095
test byte [rcx + 0x44], 2
je 0x14009f06c
cmp byte [rcx + 0x41], 4
jb 0x14009f06c
mov rcx, qword [rcx + 0x38]
lea r8, [0x140211178]
mov edx, 0x43
call fcn.140022ad0
mov rcx, qword [0x14029a620]
cmp rcx, rsi
je 0x14009f095
test byte [rcx + 0x44], 2
je 0x14009f095
cmp byte [rcx + 0x41], 5
jb 0x14009f095
mov r9d, dword [rdi]
lea r8, [0x140211178]
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 0x14009f0f6
mov rcx, qword [0x14029a620]
cmp rcx, rsi
je 0x14009f0f2
test byte [rcx + 0x44], 2
je 0x14009f0f2
cmp byte [rcx + 0x41], 2
jb 0x14009f0f2
mov rcx, qword [rcx + 0x38]
lea r8, [0x140211178]
mov edx, 0x45
mov r9d, eax
call fcn.140025240
mov eax, ebx
jmp 0x14009f170
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 0x14009f163
mov rcx, qword [0x14029a620]
cmp rcx, rsi
je 0x14009f154
test byte [rcx + 0x44], 2
je 0x14009f154
cmp byte [rcx + 0x41], 2
jb 0x14009f154
mov rcx, qword [rcx + 0x38]
lea r8, [0x140211178]
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 0x14009f170
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.1401938e0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14009fb50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140299ac8]
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 0x14009fba5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jne 0x14009fc15
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 0x14009fc15
mov rbx, qword [rbx + 0x20]
mov eax, ebp
mov dword [rsp + 0x30], eax
test rbx, rbx
je 0x14009fc0f
nop dword [rax]
nop word [rax + rax]
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], ebp
mov rdx, rdi
mov rcx, rbx
call fcn.14009fb50
mov ecx, eax
mov eax, dword [rsp + 0x30]
add eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
test ecx, ecx
jne 0x14009fc11
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x14009fbe0
mov ecx, ebp
add dword [rsi], eax
mov eax, ecx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401938e0
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400a2de0
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 0x1400a2e2f
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
mov eax, edi
lea rcx, [0x1400c3460]
xchg dword [rbx + 0x10], eax
mov r8, rbx
xor edx, edx
call fcn.1401bb970
mov qword [rbx + 0x18], rax
cmp rax, 0xffffffffffffffff
jne 0x1400a2e2f
lea eax, [rdi + 0x6e]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rbx + 0xc]
cmp eax, 1
je 0x1400a2e49
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 0x1400adc00
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 [0x140299ac8]
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, [0x14023dc20]
call fcn.1401a1b20
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 0x1400adcb7
lea rcx, [rbp - 0x40]
call fcn.140029c40
cmp eax, 0x64
jne 0x1400add09
lea r8, [rbp - 0x48]
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.140029b30
test eax, eax
je 0x1400add09
lea rdx, [0x14029a620]
mov rcx, qword [0x14029a620]
cmp rcx, rdx
je 0x1400add09
test dword [rcx + 0x44], 0x20000
je 0x1400add09
cmp byte [rcx + 0x41], 2
jb 0x1400add09
mov edx, 0x13
mov r9d, eax
lea r8, [0x140212320]
mov rcx, qword [rcx + 0x38]
call fcn.140036f70
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.1401938e0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400b9b20
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 [0x140299ac8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x1400b9cca
cmp byte [rcx + 0x72], 0
je 0x1400b9cca
mov rax, qword [rcx]
mov ebx, 0xffff
mov edx, ebx
call qword [rax + 0x18]
cmp bx, ax
jne 0x1400b9b7e
xor al, al
jmp 0x1400b9ccc
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 0x1400b9bee
sub eax, 1
jne 0x1400b9c62
jmp 0x1400b9bf2
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 0x1400b9c3f
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.1401c5f64
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x1400b9c6f
cmp byte [rdi + 0x72], 0
je 0x1400b9c73
test rbx, rbx
jne 0x1400b9bb0
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.140011780
jmp 0x1400b9ba3
sub eax, 2
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x1400b9c73
xor bl, bl
jmp 0x1400b9c75
mov bl, 1
cmp r9, 0x10
jb 0x1400b9cc5
lea rax, [r9 + 1]
cmp rax, 0x1000
jb 0x1400b9cc0
test byte [rbp - 0x30], 0x1f
je 0x1400b9c93
call fcn.1401a1868
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400b9ca2
call fcn.1401a1868
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400b9cb1
call fcn.1401a1868
int3
cmp rcx, 0x27
jbe 0x1400b9cbd
call fcn.1401a1868
int3
mov rcx, rax
call fcn.140193788
movzx eax, bl
jmp 0x1400b9ccc
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401938e0
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