joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140092360
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 [0x14027ef78]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp dword [r8], 0
mov rdi, r8
mov r14, rdx
mov rsi, rcx
jbe 0x140092441
xor r15d, r15d
cmp dword [rdi], 6
jb 0x14009247d
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 0x1400923d1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jne 0x140092443
jmp 0x1400923d7
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 0x140092476
movzx ecx, word [rsp + 0x30]
lea eax, [r8 - 6]
sub edx, eax
mov dword [rsp + 0x3c], eax
mov dword [rdi], edx
call fcn.1400946a0
mov rbx, rax
test rax, rax
je 0x140092476
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 0x140092464
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x140092430
mov qword [rax + 0x18], rbx
jmp 0x140092434
mov qword [rsi + 0x20], rbx
mov qword [rsi + 0x28], rbx
cmp dword [rdi], r15d
ja 0x140092395
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14017e000
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 0x140092443
mov eax, 0xd
jmp 0x140092443
mov eax, 0x452
jmp 0x140092443

Function at 0x140092aa0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14027ef78]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [rcx + 0x30], 0
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
je 0x140092ace
mov eax, 0x4df
jmp 0x140092b37
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.14018cb64
mov qword [rdi + 0x30], rax
test rax, rax
jne 0x140092b04
mov eax, 0xe
jmp 0x140092b37
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 0x140092b2f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x140092b37
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14017e000
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x140092b50
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 0x140092b8b
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 0x140093180
Capabilities:
Read file on windows

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

Function at 0x140093200
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 0x140093235
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 0x140093a10
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14027ef78]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp dword [r8], 6
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
jae 0x140093a3d
mov eax, 0x452
jmp 0x140093aaf
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 0x140093a6f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
je 0x140093a75
jmp 0x140093aaf
mov eax, dword [rsp + 0x30]
sub dword [rbx], eax
mov edx, dword [rsp + 0x34]
cmp dx, 0xc
je 0x140093a86
mov eax, 0xd
jmp 0x140093aaf
mov ecx, dword [rbx]
mov eax, dword [rsp + 0x36]
add rcx, 6
cmp rax, rcx
ja 0x140093a7f
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.140092310
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14017e000
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140093bc0
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 0x140093bf5
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 0x140093c00
Capabilities:
Read file on windows

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

Function at 0x140094210
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 0x140094245
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 0x140094250
Capabilities:
Read file on windows

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

Function at 0x1400948f0
Capabilities:
Read file on windows

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

Function at 0x140094970
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 0x1400949a5
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 0x140095d20
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 [0x14027fe70]
lea rsi, [0x14027fe70]
cmp rcx, rsi
je 0x140095d69
test byte [rcx + 0x44], 2
je 0x140095d69
cmp byte [rcx + 0x41], 4
jb 0x140095d69
mov rcx, qword [rcx + 0x38]
lea r8, [0x1401fb098]
mov edx, 0x26
call fcn.14001d350
mov r8, qword [rdi + 0x10]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.14002cd80
cmp qword [rax + 0x18], 8
jb 0x140095d84
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 0x140095daf
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
inc r8
call fcn.14000c430
test bl, bl
je 0x140095e1e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
cmp eax, 2
jne 0x140095ddc
mov rcx, qword [0x14027fe70]
cmp rcx, rsi
je 0x140095e4b
test byte [rcx + 0x44], al
je 0x140095e4b
cmp byte [rcx + 0x41], 5
jb 0x140095e4b
lea edx, [rax + 0x25]
jmp 0x140095e3b
mov rcx, qword [0x14027fe70]
cmp rcx, rsi
je 0x140095e0c
test byte [rcx + 0x44], 2
je 0x140095e0c
cmp byte [rcx + 0x41], 5
jb 0x140095e0c
mov rcx, qword [rcx + 0x38]
lea r8, [0x1401fb098]
mov edx, 0x28
mov r9d, ebx
call fcn.14001f1d0
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [0x14027fe70]
cmp rcx, rsi
je 0x140095e4b
test byte [rcx + 0x44], 2
je 0x140095e4b
cmp byte [rcx + 0x41], 5
jb 0x140095e4b
mov edx, 0x29
mov rcx, qword [rcx + 0x38]
lea r8, [0x1401fb098]
call fcn.14001d350
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140095e60
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 [0x14027ef78]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov rcx, qword [0x14027fe70]
lea rsi, [0x14027fe70]
cmp rcx, rsi
je 0x140095eb5
test byte [rcx + 0x44], 2
je 0x140095eb5
cmp byte [rcx + 0x41], 4
jb 0x140095eb5
mov rcx, qword [rcx + 0x38]
lea r8, [0x1401fb098]
mov edx, 0x3d
call fcn.14001d350
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 0x140095f19
mov rcx, qword [0x14027fe70]
cmp rcx, rsi
je 0x140095f12
test byte [rcx + 0x44], 2
je 0x140095f12
cmp byte [rcx + 0x41], 2
jb 0x140095f12
mov rcx, qword [rcx + 0x38]
lea r8, [0x1401fb098]
mov edx, 0x3e
mov r9d, eax
call fcn.14001f1d0
mov eax, ebx
jmp 0x140096071
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 0x140095f8e
mov rcx, qword [0x14027fe70]
cmp rcx, rsi
je 0x140095f7c
test byte [rcx + 0x44], 2
je 0x140095f7c
cmp byte [rcx + 0x41], 2
jb 0x140095f7c
mov edx, 0x3f
mov rcx, qword [rcx + 0x38]
lea r8, [0x1401fb098]
mov r9d, ebx
call fcn.14001f1d0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
jmp 0x140096071
cmp dword [rsp + 0x3c], 4
jne 0x140096034
cmp dword [rsp + 0x38], 4
jne 0x140096034
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 0x140095ff5
mov rcx, qword [0x14027fe70]
cmp rcx, rsi
je 0x140095f7c
test byte [rcx + 0x44], 2
je 0x140095f7c
cmp byte [rcx + 0x41], 2
jb 0x140095f7c
mov edx, 0x41
jmp 0x140095f69
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [0x14027fe70]
cmp rcx, rsi
je 0x140096030
test byte [rcx + 0x44], 2
je 0x140096030
cmp byte [rcx + 0x41], 5
jb 0x140096030
mov r9d, dword [rdi]
lea r8, [0x1401fb098]
mov rcx, qword [rcx + 0x38]
mov edx, 0x42
call fcn.14001f1d0
xor eax, eax
jmp 0x140096071
mov rcx, qword [0x14027fe70]
cmp rcx, rsi
je 0x140096061
test byte [rcx + 0x44], 2
je 0x140096061
cmp byte [rcx + 0x41], 2
jb 0x140096061
mov rcx, qword [rcx + 0x38]
lea r8, [0x1401fb098]
mov edx, 0x40
call fcn.14001d350
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.14017e000
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140097730
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14027ef78]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], edx
mov rcx, qword [0x14027fe70]
lea rdi, [0x14027fe70]
cmp rcx, rdi
je 0x140097781
test byte [rcx + 0x44], 2
je 0x140097781
cmp byte [rcx + 0x41], 4
jb 0x140097781
mov rcx, qword [rcx + 0x38]
lea r8, [0x1401fb098]
mov edx, 0x47
call fcn.14001d350
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 0x1400977e2
mov rcx, qword [0x14027fe70]
cmp rcx, rdi
je 0x1400977de
test byte [rcx + 0x44], 2
je 0x1400977de
cmp byte [rcx + 0x41], 2
jb 0x1400977de
mov rcx, qword [rcx + 0x38]
lea r8, [0x1401fb098]
mov edx, 0x48
mov r9d, eax
call fcn.14001f1d0
mov eax, ebx
jmp 0x140097861
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 0x140097854
mov rcx, qword [0x14027fe70]
cmp rcx, rdi
je 0x140097845
test byte [rcx + 0x44], 2
je 0x140097845
cmp byte [rcx + 0x41], 2
jb 0x140097845
mov rcx, qword [rcx + 0x38]
lea r8, [0x1401fb098]
mov edx, 0x49
mov r9d, eax
call fcn.14001f1d0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
jmp 0x140097861
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.14017e000
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140097fd0
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 [0x14027ef78]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rcx, qword [0x14027fe70]
lea rsi, [0x14027fe70]
cmp rcx, rsi
je 0x140098055
test byte [rcx + 0x44], 2
je 0x14009802c
cmp byte [rcx + 0x41], 4
jb 0x14009802c
mov rcx, qword [rcx + 0x38]
lea r8, [0x1401fb098]
mov edx, 0x43
call fcn.14001d350
mov rcx, qword [0x14027fe70]
cmp rcx, rsi
je 0x140098055
test byte [rcx + 0x44], 2
je 0x140098055
cmp byte [rcx + 0x41], 5
jb 0x140098055
mov r9d, dword [rdi]
lea r8, [0x1401fb098]
mov rcx, qword [rcx + 0x38]
mov edx, 0x44
call fcn.14001f1d0
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 0x1400980b6
mov rcx, qword [0x14027fe70]
cmp rcx, rsi
je 0x1400980b2
test byte [rcx + 0x44], 2
je 0x1400980b2
cmp byte [rcx + 0x41], 2
jb 0x1400980b2
mov rcx, qword [rcx + 0x38]
lea r8, [0x1401fb098]
mov edx, 0x45
mov r9d, eax
call fcn.14001f1d0
mov eax, ebx
jmp 0x140098130
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 0x140098123
mov rcx, qword [0x14027fe70]
cmp rcx, rsi
je 0x140098114
test byte [rcx + 0x44], 2
je 0x140098114
cmp byte [rcx + 0x41], 2
jb 0x140098114
mov rcx, qword [rcx + 0x38]
lea r8, [0x1401fb098]
mov edx, 0x46
mov r9d, eax
call fcn.14001f1d0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
jmp 0x140098130
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.14017e000
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140098b10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14027ef78]
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 0x140098b65
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jne 0x140098bd5
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 0x140098bd5
mov rbx, qword [rbx + 0x20]
mov eax, ebp
mov dword [rsp + 0x30], eax
test rbx, rbx
je 0x140098bcf
nop dword [rax]
nop word [rax + rax]
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], ebp
mov rdx, rdi
mov rcx, rbx
call fcn.140098b10
mov ecx, eax
mov eax, dword [rsp + 0x30]
add eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
test ecx, ecx
jne 0x140098bd1
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x140098ba0
mov ecx, ebp
add dword [rsi], eax
mov eax, ecx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14017e000
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x14009be00
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 0x14009be4f
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
mov eax, edi
lea rcx, [0x1400ba840]
xchg dword [rbx + 0x10], eax
mov r8, rbx
xor edx, edx
call fcn.1401a6080
mov qword [rbx + 0x18], rax
cmp rax, 0xffffffffffffffff
jne 0x14009be4f
lea eax, [rdi + 0x6e]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rbx + 0xc]
cmp eax, 1
je 0x14009be69
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 0x1400a6a60
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 [0x14027ef78]
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, str.SELECT
call fcn.14018c230
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.140023760
test eax, eax
jne 0x1400a6b17
lea rcx, [rbp - 0x40]
call fcn.140023bb0
cmp eax, 0x64
jne 0x1400a6b69
lea r8, [rbp - 0x48]
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.140023aa0
test eax, eax
je 0x1400a6b69
lea rdx, [0x14027fe70]
mov rcx, qword [0x14027fe70]
cmp rcx, rdx
je 0x1400a6b69
test dword [rcx + 0x44], 0x20000
je 0x1400a6b69
cmp byte [rcx + 0x41], 2
jb 0x1400a6b69
mov edx, 0x13
mov r9d, eax
lea r8, [0x1401fc240]
mov rcx, qword [rcx + 0x38]
call fcn.140030fe0
movzx ebx, byte [rbp - 0x48]
and bl, 1
mov qword [rbp - 0x40], rdi
lea rcx, [rbp - 0x40]
call fcn.140023c60
nop
movzx eax, bl
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14017e000
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400b1e50
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 [0x14027ef78]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
je 0x1400b1ffa
cmp byte [rcx + 0x72], 0
je 0x1400b1ffa
mov rax, qword [rcx]
mov ebx, 0xffff
mov edx, ebx
call qword [rax + 0x18]
cmp bx, ax
jne 0x1400b1eae
xor al, al
jmp 0x1400b1ffc
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.140009560
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 0x1400b1f1e
sub eax, 1
jne 0x1400b1f92
jmp 0x1400b1f22
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 0x1400b1f6f
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.1401b0674
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
cmp rbx, rax
jne 0x1400b1f9f
cmp byte [rdi + 0x72], 0
je 0x1400b1fa3
test rbx, rbx
jne 0x1400b1ee0
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.14000ca50
jmp 0x1400b1ed3
sub eax, 2
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x30]
je 0x1400b1fa3
xor bl, bl
jmp 0x1400b1fa5
mov bl, 1
cmp r9, 0x10
jb 0x1400b1ff5
lea rax, [r9 + 1]
cmp rax, 0x1000
jb 0x1400b1ff0
test byte [rbp - 0x30], 0x1f
je 0x1400b1fc3
call fcn.14018bf78
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1400b1fd2
call fcn.14018bf78
int3
sub rcx, rax
cmp rcx, 8
jae 0x1400b1fe1
call fcn.14018bf78
int3
cmp rcx, 0x27
jbe 0x1400b1fed
call fcn.14018bf78
int3
mov rcx, rax
call fcn.14017dea8
movzx eax, bl
jmp 0x1400b1ffc
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14017e000
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