joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1802622c0
Capabilities:
Log keystrokes via input method manager
Log keystrokes via polling

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x240
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rdx
mov r14, rcx
test rdx, rdx
je 0x18026240d
mov edx, dword [rdx + 8]
xor esi, esi
sub edx, 0x100
je 0x180262320
sub edx, 4
je 0x180262320
cmp edx, 0x12f
jne 0x180262409
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x38]
mov esi, 1
mov eax, esi
jmp 0x18026240f
cmp qword [rbx + 0x10], 0x1b
jne 0x180262366
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbx]
lea rdx, [rsp + 0x20]
mov r8d, 0x103
call qword [sym.imp.USER32.dll_GetClassNameW]
lea rdx, str.RCInplaceEdit
lea rcx, [rsp + 0x20]
call fcn.180154520
test al, al
jne 0x18026240d
mov eax, dword [rbx + 8]
sub eax, 0x100
test eax, 0xfffffffb
jne 0x180262409
cmp qword [rbx + 0x10], 0xe5
mov qword [rsp + 0x270], rbp
mov qword [rsp + 0x278], rdi
mov edi, dword [rbx + 0x10]
jne 0x1802623a1
mov rcx, qword [rbx]
call qword [sym.imp.IMM32.dll_ImmGetVirtualKey]
mov edi, eax
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, edi
mov ebp, 0x8000
bts ebx, 0x1f
mov ecx, 0x12
and ax, bp
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, 0x10
bts edi, 0x1e
and ax, bp
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov edx, edi
mov rcx, r14
bts edx, 0x1d
and ax, bp
cmove edx, edi
call fcn.180262800
mov rdi, qword [rsp + 0x278]
test al, al
mov rbp, qword [rsp + 0x270]
setne sil
mov eax, esi
jmp 0x18026240f
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x240
pop r14
pop rsi
pop rbx
ret
Function at 0x18026e3f0
Capabilities:
Check mutex on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
cmp qword [rcx + 0x60], 0
jne 0x18026e51e
xor esi, esi
mov qword [r11 - 0x28], rsi
mov qword [r11 - 0x20], rsi
mov qword [r11 - 0x28], rsi
mov qword [r11 - 0x20], 7
mov word [rsp + 0x30], si
lea r8d, [rsi + 0x26]
lea rdx, str.02099BA0_F791_4224_AD07_4C4EA722B792
lea rcx, [r11 - 0x38]
call fcn.180004ea0
nop
lea ecx, [rsi + 0x10]
call fcn.180386914
mov rbx, rax
mov qword [rsp + 0x28], rax
mov qword [rax], rsi
mov word [rax + 8], si
cmp qword [rsp + 0x40], rsi
je 0x18026e486
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r8, qword [rsp + 0x30]
jmp 0x18026e489
mov r8, rsi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx], rax
test rax, rax
je 0x18026e4ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18026e4ac
mov byte [rbx + 9], 1
mov qword [rdi + 0x60], rbx
cmp qword [rbx], 0
jne 0x18026e540
mov rcx, rbx
call fcn.18026c010
mov qword [rdi + 0x60], rsi
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x18026e50b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18026e506
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18026e506
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1803868f0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x18026e585
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18026e580
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18026e580
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
mov al, 1
jmp 0x18026e520
Function at 0x1802b86e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov r13, rcx
mov r15d, edx
mov r12d, r9d
mov r11, qword [rax + 8]
mov rax, qword [rcx + 0x28]
mov r14, qword [r11]
mov r10, qword [rax + 8]
movsxd rax, dword [r10 + 0x30]
movsxd r10, dword [r11 + 0x30]
cmp eax, r10d
mov qword [rsp + 0x20], rax
mov ecx, r10d
cmovl ecx, eax
xor ebx, ebx
imul r15, rax
mov dword [rsp + 0x78], ecx
mov rcx, rax
cmp eax, r10d
je 0x1802b8743
cmp byte [r14 + 0x10], bl
mov eax, 8
cmovne ebx, eax
mov rdi, r15
sub rdi, rcx
test ebx, ebx
jne 0x1802b88e4
mov qword [rsp + 0x88], rbp
mov rbp, r10
mov qword [rsp + 0x30], rsi
cmp rdi, r15
jge 0x1802b88c6
mov rax, rdi
mov qword [rsp + 0x70], 0
cqo
idiv rbp
mov rsi, rdx
xor edx, edx
lea r10d, [rax + 1]
mov rax, qword [r13 + 8]
mov rcx, qword [rax + 8]
mov eax, dword [0x1804d0ed8]
div dword [rcx + 0x30]
inc eax
cmp r10d, eax
je 0x1802b88bb
xor r9d, r9d
lea r8, [rsp + 0x70]
mov edx, r10d
mov rcx, r14
call qword [r14 + 0x108]
mov ebx, eax
test eax, eax
jne 0x1802b8862
mov rcx, qword [rsp + 0x70]
test byte [rcx + 0x34], 4
mov rdx, qword [rcx + 0x28]
je 0x1802b87e9
mov eax, dword [rcx + 0x30]
cmp dword [rdx + 0x1c], eax
jb 0x1802b87e9
cmp dword [rdx + 0x80], ebx
je 0x1802b87e5
call fcn.1802a47f0
jmp 0x1802b880a
xor ebx, ebx
jmp 0x1802b8815
mov ebx, dword [rdx + 0x2c]
test ebx, ebx
jne 0x1802b8867
mov eax, dword [rdx + 0xbc]
cmp dword [rdx + 0xb8], eax
jbe 0x1802b8805
call fcn.1802a60e0
jmp 0x1802b880a
call fcn.1802a5f10
mov rcx, qword [rsp + 0x70]
mov ebx, eax
test eax, eax
jne 0x1802b8867
add rsi, qword [rcx + 8]
mov rax, rdi
movsxd r8, dword [rsp + 0x78]
cqo
idiv qword [rsp + 0x20]
mov rcx, rsi
add rdx, qword [rsp + 0x80]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 0x10]
mov byte [rcx], 0
test rdi, rdi
jne 0x1802b8862
test r12d, r12d
jne 0x1802b8862
mov rax, qword [r13 + 0x28]
mov rcx, qword [rax + 8]
mov eax, dword [rcx + 0x3c]
btr eax, 0x1f
bswap eax
mov dword [rsi + 0x1c], eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1802b88bb
test byte [rcx + 0x34], 0x20
je 0x1802b88b6
mov r8, qword [rcx + 0x28]
mov rax, qword [r8 + 0xa8]
dec dword [r8 + 0x98]
mov qword [rcx + 0x20], rax
mov r9, qword [r8 + 0x48]
movsxd rax, dword [r8 + 0xbc]
mov qword [r8 + 0xa8], rcx
mov edx, dword [rcx + 0x30]
mov r8, qword [rcx + 8]
dec edx
mov r10, qword [r9]
mov rcx, r9
imul rdx, rax
call qword [r10 + 0x90]
jmp 0x1802b88bb
call fcn.18029fc90
add rdi, rbp
test ebx, ebx
je 0x1802b8761
mov rsi, qword [rsp + 0x30]
mov eax, ebx
mov rbp, qword [rsp + 0x88]
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret
mov eax, ebx
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret
Function at 0x1802cbbc0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov qword [rcx], 0
mov ecx, 0x28
mov rsi, r8
mov rbp, rdx
call fcn.180295be0
mov rbx, rax
test rax, rax
jne 0x1802cbbfe
lea eax, [rbx + 7]
jmp 0x1802cbc86
cmp byte [0x1804cd134], 0
je 0x1802cbc53
mov rax, qword [0x1804cd2b8]
test rax, rax
je 0x1802cbc1e
mov ecx, 0xc8
call rax
test eax, eax
jne 0x1802cbc53
lea rax, [rbx + 8]
mov qword [rbx + 0x10], rbp
mov qword [rsp + 0x28], rax
lea r8, [0x180298bf0]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
mov qword [rbx + 0x18], rsi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
jne 0x1802cbc68
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x10], 0
jne 0x1802cbc81
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, rsi
mov dword [rbx + 8], eax
call rbp
mov qword [rbx + 0x20], rax
mov qword [rdi], rbx
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1802d84c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push r14
sub rsp, 0x28
mov rbx, rdx
mov r14, rcx
movzx edx, byte [rdx]
movzx eax, dl
cmp dl, 0xad
jne 0x1802d84dd
movzx eax, byte [rbx + 2]
cmp al, 0xae
jne 0x1802d84e7
mov rax, qword [rbx + 0x20]
jmp 0x1802d84f7
cmp al, 0x88
jne 0x1802d8594
mov rax, qword [rbx + 0x20]
mov rax, qword [rax + 0x20]
movsxd rcx, dword [rax]
cmp ecx, 1
je 0x1802d8594
mov qword [rsp + 0x50], rdi
xor edi, edi
mov dword [r8], edi
cmp dl, 0x88
jne 0x1802d8529
mov rdx, rbx
mov rcx, r14
mov rdi, qword [rsp + 0x50]
add rsp, 0x28
pop r14
pop rbx
jmp fcn.1802d6240
mov eax, dword [r14 + 0x38]
mov qword [rsp + 0x40], rbp
mov rbp, rcx
mov qword [rsp + 0x20], r15
lea r15d, [rax + 1]
add eax, ecx
mov dword [r14 + 0x38], eax
test ecx, ecx
jle 0x1802d858f
mov qword [rsp + 0x48], rsi
mov esi, r15d
mov rdx, qword [rbx + 0x20]
mov r8d, esi
mov rcx, r14
mov rdx, qword [rdx + rdi + 8]
call fcn.1802d9dd0
inc esi
lea rdi, [rdi + 0x20]
sub rbp, 1
jne 0x1802d8550
mov rsi, qword [rsp + 0x48]
mov eax, r15d
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x50]
add rsp, 0x28
pop r14
pop rbx
ret
mov eax, r15d
jmp 0x1802d8578
mov rdx, rbx
mov rcx, r14
add rsp, 0x28
pop r14
pop rbx
jmp fcn.1802d9c40
Function at 0x1802db980
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ebx, r8d
lea r9, str.sqlite_master
mov rdi, rdx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
mov r8, rdx
lea rdx, str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
mov rsi, rcx
call fcn.1802e24b0
test ebx, ebx
jne 0x1802db9d4
mov r9, rdi
lea r8, str.sqlite_master
lea rdx, str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
mov rcx, rsi
call fcn.1802e24b0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1802e2640
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, r8
lea r14, [0x1803b9ff0]
mov rdi, rdx
mov rbp, rcx
xor ebx, ebx
cmp dword [rbp + 0x28], ebx
jle 0x1802e26e7
nop dword [rax]
mov r10d, ebx
xor r10d, 1
cmp ebx, 2
cmovge r10d, ebx
test rsi, rsi
je 0x1802e26b4
mov rcx, qword [rbp + 0x20]
mov rax, rsi
movsxd rdx, r10d
shl rdx, 5
mov r9, qword [rdx + rcx]
sub r9, rsi
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [r9 + rax]
cmp edx, ecx
jne 0x1802e2723
test edx, edx
jne 0x1802e2732
mov rax, qword [rbp + 0x20]
xor r8d, r8d
movsxd rcx, r10d
mov rdx, rdi
shl rcx, 5
mov rcx, qword [rcx + rax + 0x18]
add rcx, 8
call fcn.18029aa90
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1802e278b
inc ebx
cmp ebx, dword [rbp + 0x28]
jl 0x1802e2670
lea r8, str.sqlite_master
sub r8, rdi
movzx ecx, byte [rdi]
movzx eax, byte [r8 + rdi]
cmp ecx, eax
jne 0x1802e273a
test ecx, ecx
jne 0x1802e2748
mov rax, qword [rbp + 0x20]
mov r9, qword [rax + 0x20]
test rsi, rsi
jne 0x1802e274d
neg r9
sbb edx, edx
test edx, edx
jne 0x1802e2789
lea rdi, str.sqlite_temp_master
jmp 0x1802e2662
movzx r8d, byte [rcx + r14]
movzx edx, byte [rdx + r14]
cmp edx, r8d
jne 0x1802e26e0
inc rax
jmp 0x1802e26a0
movzx edx, byte [rax + r14]
movzx ecx, byte [rcx + r14]
cmp ecx, edx
jne 0x1802e2789
inc rdi
jmp 0x1802e26f1
test r9, r9
je 0x1802e2789
mov r8, rsi
sub r9, rsi
nop dword [rax + rax]
movzx edx, byte [r8]
movzx eax, byte [r9 + r8]
cmp edx, eax
jne 0x1802e2776
test edx, edx
je 0x1802e2717
inc r8
jmp 0x1802e2760
movzx ecx, byte [rax + r14]
movzx edx, byte [rdx + r14]
sub edx, ecx
jne 0x1802e2713
inc r8
jmp 0x1802e2760
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1802e2ae0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
xor r10d, r10d
mov rdi, r8
mov ebx, r10d
mov rbp, rdx
mov rsi, rcx
cmp dword [rcx + 0x28], ebx
jle 0x1802e2b98
mov qword [rsp + 0x48], r14
lea r14, [0x1803b9ff0]
mov eax, ebx
xor eax, 1
cmp ebx, 2
cmovge eax, ebx
movsxd r9, eax
shl r9, 5
add r9, qword [rsi + 0x20]
mov r11, qword [r9 + 0x18]
test rdi, rdi
je 0x1802e2b50
mov r9, qword [r9]
mov rax, rdi
sub r9, rdi
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [r9 + rax]
cmp edx, ecx
jne 0x1802e2b84
test edx, edx
jne 0x1802e2b93
lea rcx, [r11 + 0x20]
xor r8d, r8d
mov rdx, rbp
call fcn.18029aa90
mov r10, qword [rax + 0x10]
test r10, r10
jne 0x1802e2b6f
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x1802e2b10
mov r14, qword [rsp + 0x48]
mov rax, r10
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
movzx r8d, byte [rcx + r14]
movzx edx, byte [rdx + r14]
cmp edx, r8d
jne 0x1802e2b68
inc rax
jmp 0x1802e2b40
mov rbx, qword [rsp + 0x50]
mov rax, r10
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x1802e6190
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x20
mov rbx, rdx
mov rsi, rcx
mov rcx, rbx
mov edx, 0x5f
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
mov r14, rax
test rax, rax
je 0x1802e62b6
mov qword [rsp + 0x40], rbp
lea rbp, [0x1803b9ff0]
mov qword [rsp + 0x48], rdi
mov byte [rax], 0
nop dword [rax]
xor edi, edi
cmp dword [rsi + 0x28], edi
jle 0x1802e621a
nop word [rax + rax]
mov eax, edi
mov rdx, rbx
xor eax, 1
cmp edi, 2
cmovge eax, edi
xor r8d, r8d
movsxd rcx, eax
mov rax, qword [rsi + 0x20]
shl rcx, 5
mov rcx, qword [rcx + rax + 0x18]
add rcx, 8
call fcn.18029aa90
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1802e625b
inc edi
cmp edi, dword [rsi + 0x28]
jl 0x1802e61e0
lea r8, str.sqlite_master
sub r8, rbx
movzx ecx, byte [rbx]
movzx eax, byte [r8 + rbx]
cmp ecx, eax
jne 0x1802e6248
test ecx, ecx
jne 0x1802e6254
mov rax, qword [rsi + 0x20]
cmp qword [rax + 0x20], 0
jne 0x1802e6259
lea rbx, str.sqlite_temp_master
jmp 0x1802e61d0
movzx edx, byte [rax + rbp]
movzx ecx, byte [rcx + rbp]
cmp ecx, edx
jne 0x1802e6259
inc rbx
jmp 0x1802e6224
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov byte [r14], 0x5f
test rax, rax
je 0x1802e62b6
cmp dword [rax + 0x54], 0
je 0x1802e62b6
mov rax, qword [rax + 0x58]
lea rcx, [rsi + 0x1f8]
xor r8d, r8d
mov rdx, qword [rax]
call fcn.18029aa90
mov rax, qword [rax + 0x10]
test rax, rax
je 0x1802e62b6
mov rax, qword [rax]
cmp dword [rax], 3
jl 0x1802e62b6
mov rdx, qword [rax + 0xb8]
test rdx, rdx
je 0x1802e62b6
lea rcx, [r14 + 1]
add rsp, 0x20
pop r14
pop rsi
pop rbx
jmp rdx
xor eax, eax
add rsp, 0x20
pop r14
pop rsi
pop rbx
ret
Function at 0x1802e73f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rcx]
mov r13, r9
movsxd r10, edx
mov r12, r8
shl r10, 5
mov r15, rcx
mov r14d, 1
mov rdx, qword [rax + 0x20]
mov rsi, qword [r10 + rdx]
mov r9d, r14d
lea r8, str.sqlite_stat_d
lea rdx, [rsp + 0x38]
mov ecx, 0x18
call fcn.180298820
mov rbp, qword [r15]
lea rdi, [rsp + 0x38]
xor ebx, ebx
cmp dword [rbp + 0x28], ebx
jle 0x1802e74d5
nop dword [rax]
mov r10d, ebx
xor r10d, 1
cmp ebx, 2
cmovge r10d, ebx
test rsi, rsi
je 0x1802e74a4
mov rcx, qword [rbp + 0x20]
mov rax, rsi
movsxd rdx, r10d
shl rdx, 5
mov r9, qword [rdx + rcx]
sub r9, rsi
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [r9 + rax]
cmp edx, ecx
jne 0x1802e7516
test edx, edx
jne 0x1802e752c
mov rax, qword [rbp + 0x20]
xor r8d, r8d
movsxd rcx, r10d
mov rdx, rdi
shl rcx, 5
mov rcx, qword [rcx + rax + 0x18]
add rcx, 8
call fcn.18029aa90
cmp qword [rax + 0x10], 0
jne 0x1802e758d
inc ebx
cmp ebx, dword [rbp + 0x28]
jl 0x1802e7460
lea r8, str.sqlite_master
sub r8, rdi
nop
movzx ecx, byte [rdi]
movzx eax, byte [r8 + rdi]
cmp ecx, eax
jne 0x1802e7534
test ecx, ecx
jne 0x1802e7547
mov rax, qword [rbp + 0x20]
mov r9, qword [rax + 0x20]
test rsi, rsi
jne 0x1802e754c
neg r9
sbb edx, edx
test edx, edx
jne 0x1802e75ae
lea rdi, str.sqlite_temp_master
jmp 0x1802e7452
lea r11, [0x1803b9ff0]
movzx r8d, byte [rcx + r11]
movzx edx, byte [rdx + r11]
cmp edx, r8d
jne 0x1802e74ce
inc rax
jmp 0x1802e7490
lea rbx, [0x1803b9ff0]
movzx edx, byte [rax + rbx]
movzx ecx, byte [rcx + rbx]
cmp ecx, edx
jne 0x1802e75ae
inc rdi
jmp 0x1802e74e0
test r9, r9
je 0x1802e75ae
mov r8, rsi
lea r10, [0x1803b9ff0]
sub r9, rsi
nop
movzx edx, byte [r8]
movzx eax, byte [r9 + r8]
cmp edx, eax
jne 0x1802e7576
test edx, edx
je 0x1802e750a
inc r8
jmp 0x1802e7560
movzx ecx, byte [rax + r10]
movzx edx, byte [rdx + r10]
sub edx, ecx
jne 0x1802e7502
inc r8
jmp 0x1802e7560
mov qword [rsp + 0x28], r13
lea r9, [rsp + 0x38]
mov r8, rsi
mov qword [rsp + 0x20], r12
lea rdx, str.DELETE_FROM__Q._s_WHERE__s_Q
mov rcx, r15
call fcn.1802e24b0
inc r14d
cmp r14d, 4
jle 0x1802e7431
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1802f6ff0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rsi, qword [rcx + 0x98]
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
mov r12, qword [rcx]
test rsi, rsi
je 0x1802f71eb
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r13
xor r13d, r13d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x30], r15
nop dword [rax + rax]
movsxd rbp, dword [rsi + 0x10]
movzx eax, byte [rbx + 0x1f]
mov r14d, dword [rsi + 0x14]
shl rbp, 5
add rbp, qword [r12 + 0x20]
test al, al
jne 0x1802f7052
inc dword [rbx + 0x38]
mov r15d, dword [rbx + 0x38]
jmp 0x1802f7062
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r15d, dword [rbx + rax*4 + 0xcc]
movsxd rcx, dword [rdi + 0x90]
lea r8d, [r14 + 2]
lea edx, [rcx + 7]
cmp dword [rdi + 0x94], ecx
jg 0x1802f708f
mov r9d, edx
mov dword [rsp + 0x20], r14d
mov edx, 0x37
mov rcx, rdi
call fcn.1802bb270
jmp 0x1802f70bd
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x37
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r13
mov r9, qword [rbp + 0x18]
xor edx, edx
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], 0x61
mov r9, qword [r9 + 0x68]
call fcn.1802f6490
mov eax, dword [rdi + 0x90]
add eax, 5
cmp eax, dword [rdi + 0x94]
jle 0x1802f70fc
mov rcx, rdi
call fcn.1802bb0e0
test eax, eax
jne 0x1802f71d7
movsxd rax, dword [rdi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], 0x33
mov dword [rax + rcx*8 + 4], r13d
lea rdx, [rax + rcx*8]
mov eax, dword [rdi + 0x90]
mov dword [rdx + 0xc], r13d
lea ecx, [r14 + 1]
mov byte [rdx + 1], r13b
add eax, 2
mov dword [rdx + 8], eax
lea eax, [r14 - 1]
mov qword [rdx + 0x10], r13
mov word [rdx + 2], r13w
mov qword [rdx + 0x18], 0x78
mov qword [rdx + 0x20], r13
mov qword [rdx + 0x28], r13
mov qword [rdx + 0x30], 0x5b
mov qword [rdx + 0x38], 2
mov qword [rdx + 0x40], r13
mov qword [rdx + 0x48], 0x79
mov qword [rdx + 0x50], r13
mov qword [rdx + 0x58], r13
mov qword [rdx + 0x60], 0x74
mov qword [rdx + 0x68], r13
mov qword [rdx + 0x70], r13
add dword [rdi + 0x90], 5
mov dword [rdx + 0x34], eax
mov eax, 8
mov word [rdx + 0x4a], ax
mov dword [rdx + 4], ecx
mov dword [rdx + 0x20], ecx
mov dword [rdx + 0x3c], r15d
mov dword [rdx + 0x50], r15d
mov dword [rdx + 0x54], ecx
test r15d, r15d
je 0x1802f71cb
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x1802f71cb
movzx eax, al
mov dword [rbx + rax*4 + 0xcc], r15d
inc byte [rbx + 0x1f]
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1802f7030
mov r15, qword [rsp + 0x30]
mov r13, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r14, qword [rsp + 0x70]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x18035bcf0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
lea rax, str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
movsxd r15, edx
mov rdi, qword [rcx + r15*8 + 0x28]
lea r14, [rcx + r15*8]
mov qword [rsp + 0x40], rax
lea rax, str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov qword [rsp + 0x48], rax
mov rbp, r9
mov rsi, r8
mov rbx, rcx
test rdi, rdi
jne 0x18035bd53
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
mov rdx, qword [rsp + r15*8 + 0x40]
call fcn.18035bbe0
mov rdi, rax
mov qword [r14 + 0x28], rax
cmp dword [rbx + 0x40], 0
jne 0x18035be09
mov r8, rsi
mov edx, 1
mov rcx, rdi
call fcn.1802c2fc0
mov rcx, rdi
call fcn.1802c1c30
cmp eax, 0x65
jne 0x18035bdab
test r15d, r15d
lea rcx, str.__rowid
lea rax, str.__parent
mov r9, rbp
cmovne rax, rcx
lea rdx, str.Mapping___lld_____lld__missing_from__s_table
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov r8, rsi
call fcn.18035bc70
jmp 0x18035bdf8
cmp eax, 0x64
jne 0x18035bdf8
xor edx, edx
mov rcx, rdi
call fcn.1802c2710
mov r9, rax
cmp rax, rbp
je 0x18035bdf8
test r15d, r15d
mov qword [rsp + 0x30], rbp
lea rcx, str.__rowid
mov qword [rsp + 0x28], rsi
lea rax, str.__parent
mov r8, rsi
cmovne rax, rcx
lea rdx, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.18035bc70
mov rcx, rdi
call fcn.1802c0d60
cmp dword [rbx + 0x40], 0
jne 0x18035be09
mov dword [rbx + 0x40], eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
Function at 0x180374500
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x18037453b
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x18037453b
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x20]
call fcn.180189a70
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x18037fdd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, rcx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x28], rcx
test rcx, rcx
je 0x18037fe1d
mov rcx, qword [rcx]
test rcx, rcx
je 0x18037fe1d
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsi + 0x38]
cmp eax, 0x7530
jb 0x18037fea3
lea rcx, [rsi + 8]
call fcn.180010c10
lea rcx, [rsi + 0x20]
call fcn.180010c10
lea rdx, [rsi + 8]
mov rcx, rsi
call fcn.18037fee0
lea r9, [rsi + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call fcn.1803801e0
lea r9, [rsi + 0x20]
mov r8b, 1
xor edx, edx
mov rcx, rsi
call fcn.1803801e0
lea r9, [rsi + 0x20]
xor r8d, r8d
mov dl, 1
mov rcx, rsi
call fcn.1803801e0
lea r9, [rsi + 0x20]
mov r8b, 1
movzx edx, r8b
mov rcx, rsi
call fcn.1803801e0
lea rdx, [rsi + 0x20]
call fcn.180381360
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsi + 0x38], eax
mov rcx, qword [rsi]
test rcx, rcx
je 0x18037feb1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1803868f0
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret