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

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1402e7d18]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp dword [r8], 6
mov rsi, r8
mov rbp, rdx
mov r14, rcx
jae 0x1400a7c06
mov ebx, 0x452
mov eax, ebx
jmp 0x1400a7dcb
xor r15d, r15d
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x3c]
mov dword [rsp + 0x38], r15d
mov rcx, rbp
mov qword [rsp + 0x20], r15
lea r8d, [r15 + 6]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400a7c3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
je 0x1400a7c45
jmp 0x1400a7dcb
mov eax, dword [rsp + 0x38]
sub dword [rsi], eax
mov edx, dword [rsp + 0x3c]
cmp dx, 0xc
jne 0x1400a7dc6
mov ecx, dword [rsi]
mov eax, dword [rsp + 0x3e]
add rcx, 6
cmp rax, rcx
ja 0x1400a7dc6
movzx eax, word [rsp + 0x40]
mov r8, rsi
mov dword [r14 + 0x12], edx
mov rcx, r14
mov word [r14 + 0x16], ax
mov rdx, rbp
mov rax, qword [r14]
mov rax, qword [rax + 0x28]
call qword [case.0x140047d56.0]
mov ebx, eax
test eax, eax
jne 0x1400a7d7f
mov ecx, dword [rsi]
mov qword [rsp + 0x98], rdi
test ecx, ecx
je 0x1400a7d65
cmp ecx, 6
jb 0x1400a7db5
lea r9, [rsp + 0x38]
mov dword [rsp + 0x38], r15d
mov r8d, 6
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400a7ce8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jne 0x1400a7d77
jmp 0x1400a7cee
mov eax, dword [rsp + 0x38]
sub dword [rsi], eax
mov edx, dword [rsi]
mov r8d, dword [rsp + 0x32]
lea rcx, [rdx + 6]
cmp r8, rcx
ja 0x1400a7da4
movzx ecx, word [rsp + 0x30]
lea eax, [r8 - 6]
sub edx, eax
mov dword [rsp + 0x44], eax
mov dword [rsi], edx
call fcn.1400a88f0
mov rdi, rax
test rax, rax
je 0x1400a7da4
mov rcx, qword [rax]
lea r8, [rsp + 0x44]
mov rdx, rbp
mov rax, qword [rcx + 0x30]
mov rcx, rdi
call qword [case.0x140047d56.0]
mov ebx, eax
test eax, eax
jne 0x1400a7d83
mov rax, qword [r14 + 0x28]
test rax, rax
je 0x1400a7d51
mov qword [rax + 0x18], rdi
jmp 0x1400a7d55
mov qword [r14 + 0x20], rdi
mov qword [r14 + 0x28], rdi
mov eax, dword [rsi]
mov ecx, eax
test eax, eax
jne 0x1400a7ca6
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 8]
call qword [case.0x140047d56.0]
mov ebx, eax
mov rdi, qword [rsp + 0x98]
mov eax, ebx
jmp 0x1400a7dcb
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
mov rax, qword [rax + 0x18]
call qword [case.0x140047d56.0]
mov rdi, qword [rsp + 0x98]
mov eax, ebx
jmp 0x1400a7dcb
mov rdi, qword [rsp + 0x98]
mov ebx, 0xd
mov eax, ebx
jmp 0x1400a7dcb
mov rdi, qword [rsp + 0x98]
mov ebx, 0x452
mov eax, ebx
jmp 0x1400a7dcb
mov eax, 0xd
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140154650
add rsp, 0x50
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400a8120
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.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400a8155
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400a8160
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1402e7d18]
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.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400a81bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140154650
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.140154650
add rsp, 0x40
pop rbx
ret

Function at 0x1400a83b0
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.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400a83e5
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add rsp, 0x38
ret

Function at 0x1400a83f0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1402e7d18]
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.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400a844d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140154650
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.140154650
add rsp, 0x40
pop rbx
ret

Function at 0x1400a8b60
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1402e7d18]
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.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400a8bbd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140154650
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.140154650
add rsp, 0x40
pop rbx
ret

Function at 0x1400a8be0
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.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400a8c15
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400a8cf0
Capabilities:
Get volume information via ioctl

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, qword [rcx + 0x20]
test rbx, rbx
je 0x1400a8dca
cmp word [rbx + 0x12], 0xa
jne 0x1400a8dca
mov ecx, 0x98
call fcn.1401544fc
mov qword [rsp + 0x30], rax
xor ecx, ecx
test rax, rax
je 0x1400a8d66
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
movups xmmword [rax + 0x70], xmm0
movups xmmword [rax + 0x80], xmm0
mov qword [rax + 0x90], rcx
mov rcx, rax
call fcn.140038810
mov rcx, rax
mov qword [rdi + 0x30], rcx
test rcx, rcx
jne 0x1400a8db3
lea rax, [0x1402eb3e0]
mov rcx, qword [0x1402eb3e0]
cmp rcx, rax
je 0x1400a8da3
test byte [rcx + 0x44], 1
je 0x1400a8da3
cmp byte [rcx + 0x41], 2
jb 0x1400a8da3
mov edx, 0xa
lea r8, [0x140271a28]
mov rcx, qword [rcx + 0x38]
call fcn.140024250
mov eax, 0xe
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x30]
movzx edx, word [rax + 8]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400389b0
mov eax, 0xd
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400aa480
Capabilities:
Check if file exists
Delete file

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov r14, rdx
mov rsi, rcx
mov rcx, qword [0x1402eb3e0]
lea r13, [0x1402eb3e0]
cmp rcx, r13
je 0x1400aa4c7
test byte [rcx + 0x44], 2
je 0x1400aa4c7
cmp byte [rcx + 0x41], 4
jb 0x1400aa4c7
mov rcx, qword [rcx + 0x38]
lea r8, [0x140271a38]
mov edx, 0x26
call fcn.140024250
mov rsi, qword [rsi + 0x10]
mov rdx, 0xffffffffffffffff
mov r12, qword [r14 + 0x10]
mov rdi, rdx
nop dword [rax]
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x1400aa4e0
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r12
cmp rax, rdi
jb 0x1400aa6d5
cmp qword [r14 + 0x18], 8
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], r15
jb 0x1400aa51f
mov r14, qword [r14]
xor eax, eax
lea rbp, [rdi + r12]
mov ebx, 7
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
lea r15, [rsp + 0x20]
cmp rbp, rbx
jbe 0x1400aa58c
mov rbx, rbp
or rbx, 7
cmp rbx, rcx
jbe 0x1400aa54f
mov rbx, rcx
jmp 0x1400aa55b
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
mov rcx, rbx
movabs rax, 0x7fffffffffffffff
add rcx, 1
cmovb rcx, rdx
cmp rcx, rax
ja 0x1400aa6db
lfence
add rcx, rcx
call fcn.140008ed0
mov r15, rax
mov qword [rsp + 0x20], rax
lfence
mov qword [rsp + 0x38], rbx
mov rdx, r14
lea rbx, [r12 + r12]
mov qword [rsp + 0x30], rbp
mov r8, rbx
mov rcx, r15
call fcn.140145e60
lea r8, [rdi + rdi]
mov rdx, rsi
lea rcx, [rbx + r15]
call fcn.140145e60
xor eax, eax
lea rcx, [rsp + 0x20]
mov word [r15 + rbp*2], ax
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [rsp + 0x38]
test eax, eax
sete bl
cmp rdx, 8
jb 0x1400aa620
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400aa61b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400aa6cf
call fcn.1401544b8
test bl, bl
je 0x1400aa681
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 2
jne 0x1400aa64d
mov rcx, qword [0x1402eb3e0]
cmp rcx, r13
je 0x1400aa6ae
test byte [rcx + 0x44], al
je 0x1400aa6ae
cmp byte [rcx + 0x41], 5
jb 0x1400aa6ae
lea edx, [rax + 0x25]
jmp 0x1400aa69e
mov rcx, qword [0x1402eb3e0]
cmp rcx, r13
je 0x1400aa67d
test byte [rcx + 0x44], 2
je 0x1400aa67d
cmp byte [rcx + 0x41], 5
jb 0x1400aa67d
mov rcx, qword [rcx + 0x38]
lea r8, [0x140271a38]
mov edx, 0x28
mov r9d, ebx
call fcn.1400268c0
mov eax, ebx
jmp 0x1400aa6b0
mov rcx, qword [0x1402eb3e0]
cmp rcx, r13
je 0x1400aa6ae
test byte [rcx + 0x44], 2
je 0x1400aa6ae
cmp byte [rcx + 0x41], 5
jb 0x1400aa6ae
mov edx, 0x29
mov rcx, qword [rcx + 0x38]
lea r8, [0x140271a38]
call fcn.140024250
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x90]
mov r15, qword [rsp + 0x40]
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
call fcn.1400e3a60
int3
call fcn.140002830
int3
call fcn.140002700
int3
Function at 0x1400aa6f0
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 [0x1402e7d18]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov rcx, qword [0x1402eb3e0]
lea rsi, [0x1402eb3e0]
cmp rcx, rsi
je 0x1400aa745
test byte [rcx + 0x44], 2
je 0x1400aa745
cmp byte [rcx + 0x41], 4
jb 0x1400aa745
mov rcx, qword [rcx + 0x38]
lea r8, [0x140271a38]
mov edx, 0x3d
call fcn.140024250
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.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x1400aa7a9
mov rcx, qword [0x1402eb3e0]
cmp rcx, rsi
je 0x1400aa7a2
test byte [rcx + 0x44], 2
je 0x1400aa7a2
cmp byte [rcx + 0x41], 2
jb 0x1400aa7a2
mov rcx, qword [rcx + 0x38]
lea r8, [0x140271a38]
mov edx, 0x3e
mov r9d, eax
call fcn.1400268c0
mov eax, ebx
jmp 0x1400aa901
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.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x1400aa81e
mov rcx, qword [0x1402eb3e0]
cmp rcx, rsi
je 0x1400aa80c
test byte [rcx + 0x44], 2
je 0x1400aa80c
cmp byte [rcx + 0x41], 2
jb 0x1400aa80c
mov edx, 0x3f
mov rcx, qword [rcx + 0x38]
lea r8, [0x140271a38]
mov r9d, ebx
call fcn.1400268c0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400aa901
cmp dword [rsp + 0x3c], 4
jne 0x1400aa8c4
cmp dword [rsp + 0x38], 4
jne 0x1400aa8c4
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.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x1400aa885
mov rcx, qword [0x1402eb3e0]
cmp rcx, rsi
je 0x1400aa80c
test byte [rcx + 0x44], 2
je 0x1400aa80c
cmp byte [rcx + 0x41], 2
jb 0x1400aa80c
mov edx, 0x41
jmp 0x1400aa7f9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x1402eb3e0]
cmp rcx, rsi
je 0x1400aa8c0
test byte [rcx + 0x44], 2
je 0x1400aa8c0
cmp byte [rcx + 0x41], 5
jb 0x1400aa8c0
mov r9d, dword [rdi]
lea r8, [0x140271a38]
mov rcx, qword [rcx + 0x38]
mov edx, 0x42
call fcn.1400268c0
xor eax, eax
jmp 0x1400aa901
mov rcx, qword [0x1402eb3e0]
cmp rcx, rsi
je 0x1400aa8f1
test byte [rcx + 0x44], 2
je 0x1400aa8f1
cmp byte [rcx + 0x41], 2
jb 0x1400aa8f1
mov rcx, qword [rcx + 0x38]
lea r8, [0x140271a38]
mov edx, 0x40
call fcn.140024250
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x70c
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140154650
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400acaa0
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 [0x1402e7d18]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov rcx, qword [0x1402eb3e0]
lea rsi, [0x1402eb3e0]
cmp rcx, rsi
je 0x1400acb25
test byte [rcx + 0x44], 2
je 0x1400acafc
cmp byte [rcx + 0x41], 4
jb 0x1400acafc
mov rcx, qword [rcx + 0x38]
lea r8, [0x140271a38]
mov edx, 0x43
call fcn.140024250
mov rcx, qword [0x1402eb3e0]
cmp rcx, rsi
je 0x1400acb25
test byte [rcx + 0x44], 2
je 0x1400acb25
cmp byte [rcx + 0x41], 5
jb 0x1400acb25
mov r9d, dword [rdi]
lea r8, [0x140271a38]
mov rcx, qword [rcx + 0x38]
mov edx, 0x44
call fcn.1400268c0
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.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x1400acb86
mov rcx, qword [0x1402eb3e0]
cmp rcx, rsi
je 0x1400acb82
test byte [rcx + 0x44], 2
je 0x1400acb82
cmp byte [rcx + 0x41], 2
jb 0x1400acb82
mov rcx, qword [rcx + 0x38]
lea r8, [0x140271a38]
mov edx, 0x45
mov r9d, eax
call fcn.1400268c0
mov eax, ebx
jmp 0x1400acc00
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.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x1400acbf3
mov rcx, qword [0x1402eb3e0]
cmp rcx, rsi
je 0x1400acbe4
test byte [rcx + 0x44], 2
je 0x1400acbe4
cmp byte [rcx + 0x41], 2
jb 0x1400acbe4
mov rcx, qword [rcx + 0x38]
lea r8, [0x140271a38]
mov edx, 0x46
mov r9d, eax
call fcn.1400268c0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400acc00
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140154650
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400ad7b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1402e7d18]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [rcx]
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [rax]
call qword [case.0x140047d56.0]
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.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400ad80c
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400ad876
mov rax, qword [rbx]
lea r8, [rsp + 0x30]
mov rdx, rdi
mov dword [rsp + 0x30], ebp
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [case.0x140047d56.0]
mov ecx, dword [rsp + 0x30]
add dword [rsi], ecx
test eax, eax
jne 0x1400ad876
mov rbx, qword [rbx + 0x20]
mov eax, ebp
mov dword [rsp + 0x30], ebp
test rbx, rbx
je 0x1400ad870
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], ebp
mov rdx, rdi
mov rcx, rbx
call fcn.1400ad7b0
mov edx, eax
mov eax, dword [rsp + 0x34]
add eax, dword [rsp + 0x30]
mov dword [rsp + 0x30], eax
test edx, edx
jne 0x1400ad872
mov rbx, qword [rbx + 0x18]
test rbx, rbx
jne 0x1400ad841
mov edx, ebp
add dword [rsi], eax
mov eax, edx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140154650
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400b2080
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x139], 0
mov rbx, rcx
je 0x1400b209b
call fcn.1400b1c30
mov eax, dword [rbx + 0xc]
xor edi, edi
cmp eax, 1
jne 0x1400b20dd
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, edi
lea rcx, [0x1400d8260]
xchg dword [rbx + 0x10], eax
mov r8, rbx
xor edx, edx
call fcn.140109648
mov qword [rbx + 0x18], rax
cmp rax, 0xffffffffffffffff
jne 0x1400b20dd
lea eax, [rdi + 0x6e]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rbx + 0xc]
cmp eax, 1
je 0x1400b20f7
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 0x1400b2110
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 0x1400b215f
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, edi
lea rcx, [0x1400d8260]
xchg dword [rbx + 0x10], eax
mov r8, rbx
xor edx, edx
call fcn.140109648
mov qword [rbx + 0x18], rax
cmp rax, 0xffffffffffffffff
jne 0x1400b215f
lea eax, [rdi + 0x6e]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rbx + 0xc]
cmp eax, 1
je 0x1400b2179
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 0x1400bfa60
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1402e7d18]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rdx
xor edx, edx
mov qword [rsp + 0x20], rdx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x58], rax
lea rdi, vtable.SqliteStatement.0
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x30], edx
lea rax, [rcx + 0x10]
mov qword [rsp + 0x38], rax
lea rdx, str.SELECT_FILE_STATE_FROM_FILES_WHERE_FILE_ID___id
mov qword [rsp + 0x40], rdx
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x58], 0
mov r8d, 6
lea rcx, [0x14029b200]
call fcn.1400e3d50
movzx ecx, byte [rsp + 0x58]
mov edx, 1
test eax, eax
cmove ecx, edx
mov byte [rsp + 0x58], cl
lea rax, vtable.TransactionSafeStatement.0
mov qword [rsp + 0x28], rax
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.14002ab40
test eax, eax
jne 0x1400bfb13
lea rcx, [rsp + 0x28]
call fcn.14002afd0
cmp eax, 0x64
jne 0x1400bfb67
lea r8, [rsp + 0x20]
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.14002aec0
test eax, eax
je 0x1400bfb67
lea rdx, [0x1402eb3e0]
mov rcx, qword [0x1402eb3e0]
cmp rcx, rdx
je 0x1400bfb67
test dword [rcx + 0x44], 0x20000
je 0x1400bfb67
cmp byte [rcx + 0x41], 2
jb 0x1400bfb67
mov edx, 0x13
mov r9d, eax
lea r8, [0x1402723f8]
mov rcx, qword [rcx + 0x38]
call fcn.140038540
movzx ebx, byte [rsp + 0x20]
and bl, 1
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x28]
call fcn.14002b150
nop
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140154650
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x1400c8fb0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rcx + 0xc]
mov rbx, rcx
cmp eax, 1
jne 0x1400c8ff0
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor eax, eax
lea rcx, [0x1400d8260]
xchg dword [rbx + 0x10], eax
mov r8, rbx
xor edx, edx
call fcn.140109648
mov qword [rbx + 0x18], rax
cmp rax, 0xffffffffffffffff
jne 0x1400c8ff0
lea ebx, [rax + 0x6f]
jmp 0x1400c8ffd
mov eax, dword [rbx + 0xc]
cmp eax, 1
je 0x1400c903f
mov ebx, 0x139f
mov rcx, qword [0x1402eb3e0]
lea rax, [0x1402eb3e0]
cmp rcx, rax
je 0x1400c9037
test dword [rcx + 0x44], 0x400
je 0x1400c9037
cmp byte [rcx + 0x41], 2
jb 0x1400c9037
mov rcx, qword [rcx + 0x38]
lea r8, [0x140273818]
mov edx, 0x11
mov r9d, ebx
call fcn.1400268c0
mov eax, ebx
add rsp, 0x30
pop rbx
ret
mov dword [rbx + 0xc], 2
xor edx, edx
mov rcx, qword [rbx + 0x58]
mov qword [rsp + 0x40], rdi
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x140047d56.0]
mov edi, eax
test eax, eax
je 0x1400c90af
mov rcx, qword [0x1402eb3e0]
lea rax, [0x1402eb3e0]
cmp rcx, rax
je 0x1400c90a2
test dword [rcx + 0x44], 0x400
je 0x1400c90a2
cmp byte [rcx + 0x41], 2
jb 0x1400c90a2
mov rcx, qword [rcx + 0x38]
lea r8, [0x140273818]
mov edx, 0x12
mov dword [rsp + 0x20], edi
xor r9d, r9d
call fcn.1400256c0
mov eax, edi
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rdi, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x1400c9330
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.1400ce900
test al, al
je 0x1400c9362
mov rcx, qword [0x1402f1100]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x140047d56.0]
xor r8d, r8d
xor edx, edx
mov rcx, rax
add rsp, 0x28
jmp 0x1400b8e00
mov eax, 0x8007139f
add rsp, 0x28
ret
Function at 0x1400cdb90
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
mov rcx, rdx
jb 0x1400cdbaa
mov rcx, qword [rdx]
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea rdi, [0x1402eb3e0]
mov esi, eax
cmp eax, 0xffffffff
je 0x1400cdd0d
test sil, 0x10
je 0x1400cdcba
test sil, 2
je 0x1400cdc67
mov rcx, qword [0x1402eb3e0]
cmp rcx, rdi
je 0x1400cdc1c
test byte [rcx + 0x44], 0x40
je 0x1400cdc1c
cmp byte [rcx + 0x41], 4
jb 0x1400cdc1c
cmp qword [rbx + 0x18], 8
mov r9, rbx
jb 0x1400cdc00
mov r9, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x140273968]
mov edx, 0x12
call fcn.140033550
mov rcx, qword [0x1402eb3e0]
test sil, 4
je 0x1400cdc6e
cmp rcx, rdi
je 0x1400cdc55
test byte [rcx + 0x44], 0x40
je 0x1400cdc55
cmp byte [rcx + 0x41], 4
jb 0x1400cdc55
cmp qword [rbx + 0x18], 8
jb 0x1400cdc3d
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x140273968]
mov edx, 0x13
mov r9, rbx
call fcn.140033550
xor eax, eax
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [0x1402eb3e0]
cmp rcx, rdi
je 0x1400cdca5
test byte [rcx + 0x44], 0x40
je 0x1400cdca5
cmp byte [rcx + 0x41], 2
jb 0x1400cdca5
cmp qword [rbx + 0x18], 8
jb 0x1400cdc89
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x140273968]
mov edx, 0x14
mov dword [rsp + 0x20], esi
mov r9, rbx
call fcn.1400385a0
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 [0x1402eb3e0]
cmp rcx, rdi
je 0x1400cdcf8
test byte [rcx + 0x44], 0x40
je 0x1400cdcf8
cmp byte [rcx + 0x41], 2
jb 0x1400cdcf8
cmp qword [rbx + 0x18], 8
jb 0x1400cdcdc
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x140273968]
mov edx, 0x15
mov dword [rsp + 0x20], esi
mov r9, rbx
call fcn.1400385a0
mov eax, 0x50
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret
mov rcx, qword [0x1402eb3e0]
cmp rcx, rdi
je 0x1400cdd47
test byte [rcx + 0x44], 0x40
je 0x1400cdd47
cmp byte [rcx + 0x41], 4
jb 0x1400cdd47
cmp qword [rbx + 0x18], 8
jb 0x1400cdd2f
mov rbx, qword [rbx]
mov rcx, qword [rcx + 0x38]
lea r8, [0x140273968]
mov edx, 0x16
mov r9, rbx
call fcn.140033550
mov rdi, qword [rsp + 0x40]
mov eax, 2
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret