joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180106400
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r10, rcx
mov r8, rcx
movzx ecx, byte [rcx]
movzx eax, cl
cmp cl, 0x27
je 0x18010653a
cmp al, 0x4e
je 0x1801064da
cmp al, 0x58
je 0x180106483
cmp al, 0x6e
je 0x1801064da
cmp al, 0x78
je 0x180106483
cmp cl, 0x2b
je 0x180106437
cmp cl, 0x2d
jne 0x180106440
lea r8, [r10 + 1]
nop dword [rax + rax]
movzx eax, byte [r8]
sub al, 0x30
cmp al, 9
ja 0x18010644f
inc r8
jmp 0x180106440
cmp byte [r8], 0x2e
jne 0x180106473
movzx eax, byte [r8 + 1]
sub al, 0x30
cmp al, 9
ja 0x180106473
add r8, 2
movzx eax, byte [r8]
sub al, 0x30
cmp al, 9
ja 0x180106473
inc r8
jmp 0x180106464
cmp r8, r10
jne 0x180106562
xor r8d, r8d
mov eax, r8d
ret
cmp byte [r10 + 1], 0x27
lea r8, [r10 + 1]
jne 0x18010655f
movzx eax, byte [r8 + 1]
inc r8
cmp al, 0x61
jl 0x1801064a2
cmp al, 0x66
jle 0x180106492
cmp al, 0x41
jl 0x1801064aa
cmp al, 0x46
jle 0x180106492
cmp al, 0x30
jl 0x1801064b2
cmp al, 0x39
jle 0x180106492
cmp byte [r8], 0x27
jne 0x18010655f
mov rax, r8
sub rax, r10
cqo
and eax, 1
xor rax, rdx
cmp rax, rdx
jne 0x18010655f
inc r8
mov rax, r8
ret
mov edx, 4
lea r8, str.null
mov r9, r10
lea r11, [0x180144c60]
movzx ecx, byte [r8]
dec edx
test cl, cl
je 0x180106518
movzx eax, byte [r9]
movzx ecx, cl
movzx eax, byte [rax + r11]
cmp byte [rcx + r11], al
jne 0x180106518
inc r8
inc r9
test edx, edx
jg 0x1801064f0
dec edx
test edx, edx
js 0x180106532
movzx eax, byte [r9]
movzx edx, byte [rax + r11]
movzx eax, byte [r8]
movzx ecx, byte [rax + r11]
sub ecx, edx
jne 0x18010655f
lea r8, [r10 + 4]
mov rax, r8
ret
lea r8, [r10 + 1]
test r8, r8
je 0x180106562
movzx eax, byte [r8]
cmp al, 0x27
jne 0x180106553
inc r8
cmp byte [r8], al
jne 0x180106562
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x180106547
xor r8d, r8d
mov rax, r8
ret
Function at 0x18010cf50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov ebp, dword [rcx + 0x14]
mov r13, qword [rcx + 0x20]
mov r12, rcx
add ebp, ebp
movsxd rdi, ebp
shl rdi, 3
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x18010d0bc
test rdi, rdi
je 0x18010d0bc
mov rcx, rdi
call fcn.18000be40
mov rsi, rax
test rax, rax
je 0x18010d0bc
mov r8, rdi
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x40], rbx
call fcn.18012e4b0
xor ebx, ebx
cmp dword [r12 + 0x14], ebx
jle 0x18010d03d
mov r10, r13
cmp qword [r10], 0
je 0x18010d030
nop dword [rax + rax]
mov r11, qword [r10]
or rcx, 0xffffffffffffffff
mov rax, qword [r11]
lea rdi, [r11 + 0x30]
mov qword [r10], rax
xor eax, eax
repne scasb al, byte [rdi]
lea r8d, [rax + 0xd]
not rcx
lea rax, [rcx - 1]
dec eax
cdqe
js 0x18010d018
nop word [rax + rax]
movzx edx, byte [r11 + rax + 0x30]
lea ecx, [r8*8]
xor edx, ecx
xor r8d, edx
dec rax
jns 0x18010d000
xor edx, edx
mov eax, r8d
div ebp
mov rax, qword [rsi + rdx*8]
mov qword [r11], rax
mov qword [rsi + rdx*8], r11
cmp qword [r10], 0
jne 0x18010cfd0
inc ebx
add r10, 8
cmp ebx, dword [r12 + 0x14]
jl 0x18010cfc2
mov rbx, qword [rsp + 0x40]
test r13, r13
je 0x18010d0ae
cmp dword [0x180172920], 0
je 0x18010d0a5
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x18010d062
call qword [0x1801729a0]
mov rcx, r13
call qword [0x180172958]
dec qword [0x180182138]
mov rcx, r13
movsxd rdx, eax
sub qword [0x1801820f0], rdx
call qword [0x180172948]
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x18010d0ae
call qword [0x1801729b0]
mov dword [r12 + 0x14], ebp
mov qword [r12 + 0x20], rsi
xor eax, eax
jmp 0x18010d0c1
mov rcx, r13
call qword [0x180172948]
mov dword [r12 + 0x14], ebp
mov qword [r12 + 0x20], rsi
xor eax, eax
jmp 0x18010d0c1
mov eax, 7
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x18010d980
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
movsxd rdi, r8d
mov r13, rcx
mov r12, r9
lea eax, [rdi - 1]
mov rsi, rdx
mov ecx, 0xd
cdqe
test rax, rax
js 0x18010d9c8
nop
movzx r11d, byte [rax + rdx]
lea r10d, [rcx*8]
xor r11d, r10d
xor ecx, r11d
dec rax
jns 0x18010d9b0
xor edx, edx
mov eax, ecx
mov qword [rsp + 0x48], rbp
div dword [r13 + 0x14]
mov rax, qword [r13 + 0x20]
mov rbx, qword [rax + rdx*8]
test rbx, rbx
je 0x18010da06
mov eax, dword [rbx + 0x1c]
inc eax
cmp edi, eax
jne 0x18010d9fe
lea rcx, [rbx + 0x30]
mov r8, rdi
mov rdx, rsi
call fcn.180137900
test eax, eax
je 0x18010da34
mov rbx, qword [rbx]
test rbx, rbx
jne 0x18010d9e2
mov rax, qword [rsp + 0x60]
mov qword [r12], 0
mov dword [rax], 0
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
mov esi, dword [rbx + 0x18]
lea ebp, [rdi + 0x31]
sub esi, ebp
lea eax, [rsi + 0x1a]
movsxd rdi, eax
call sym.sqlite.dll_sqlite3_initialize
test eax, eax
jne 0x18010daa5
test rdi, rdi
je 0x18010daa5
cmp rdi, 0x7ffffeff
ja 0x18010daa5
cmp dword [0x180172920], eax
je 0x18010da98
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x18010da73
call qword [0x1801729a0]
lea rdx, [rsp + 0x40]
mov ecx, edi
call fcn.18000bd10
mov rcx, qword [0x1801821a8]
test rcx, rcx
je 0x18010da91
call qword [0x1801729b0]
mov rdi, qword [rsp + 0x40]
jmp 0x18010daa7
mov ecx, edi
call qword [0x180172940]
mov rdi, rax
jmp 0x18010daa7
xor edi, edi
mov qword [r12], rdi
test rdi, rdi
je 0x18010daea
movsxd rdx, ebp
lea rcx, [rdi + 0x10]
movsxd r8, esi
add rdx, rbx
call fcn.180128740
mov r11d, 0x10
mov rdx, rbx
sub r11d, ebp
mov rcx, r13
movsxd r8, r11d
add r8, rdi
call fcn.18010d0e0
mov rcx, qword [rsp + 0x60]
add eax, esi
mov dword [rcx], eax
jmp 0x18010da19
mov rax, qword [rsp + 0x60]
mov dword [rax], 0
mov eax, 7
jmp 0x18010da1b
Function at 0x180114270
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push r12
push r13
push r15
sub rsp, 0x28
lea rbp, [rcx + 0x3c]
xor r12d, r12d
xor r13d, r13d
mov r15, r8
mov rbx, rdx
mov rsi, rcx
cmp dword [rbp], r12d
jne 0x18011447f
mov qword [rsp + 0x20], r14
xor r14d, r14d
mov qword [rsp + 0x70], rdi
test r13d, r13d
jne 0x180114475
mov rax, qword [rbx + 0x58]
lea rdi, [r14 + rax]
mov rax, qword [rsi]
mov ecx, dword [rax + 0x88]
cmp dword [rdi + 0x18], ecx
jl 0x1801143f9
mov rax, qword [rdi + 0x10]
mov byte [rax], 1
movsxd rcx, dword [rbx]
mov r9d, dword [rdi + 0x18]
mov r8, qword [rdi + 0x10]
shl rcx, 6
movsxd rax, r12d
lea rdx, [rcx + rax + 0x20]
movsxd rax, dword [rdi]
mov rcx, rsi
shl rdx, 0x1f
add rdx, rax
call fcn.18010dd80
lea r8d, [r12 + 2]
mov rdx, rbx
mov rcx, rsi
call fcn.180113fc0
mov r11, qword [rbx + 0x58]
lea rdi, [r14 + r11]
cmp dword [rbp], r13d
jne 0x1801143e7
cmp dword [rdi + 0x38], r13d
jne 0x1801143e7
mov r11, qword [rdi + 0x10]
movzx r8d, byte [r11 + 1]
lea rcx, [r11 + 1]
test r8b, r8b
js 0x18011434e
mov eax, r8d
mov qword [rsp + 0x78], rax
mov al, 1
jmp 0x180114358
lea rdx, [rsp + 0x78]
call fcn.180126a70
movzx eax, al
inc eax
movsxd rcx, eax
add rcx, r11
movzx r8d, byte [rcx]
test r8b, r8b
js 0x180114376
mov esi, r8d
mov qword [rsp + 0x78], r8
jmp 0x180114385
lea rdx, [rsp + 0x78]
call fcn.180126a70
mov rsi, qword [rsp + 0x78]
mov eax, dword [rdi]
mov dword [rdi + 0x20], eax
mov r8d, dword [rdi + 0x38]
mov eax, dword [rdi + 0x3c]
add r8d, 9
cmp eax, r8d
jae 0x1801143aa
lea rdx, [rdi + 0x30]
mov rcx, rbp
call fcn.180105810
test eax, eax
jne 0x1801143b9
movsxd rcx, dword [rdi + 0x38]
mov rax, qword [rdi + 0x30]
mov byte [rcx + rax], 0
inc dword [rdi + 0x38]
movsxd r8, dword [rdi]
lea rdx, [rdi + 0x30]
mov rcx, rbp
call fcn.1801058a0
lea rdx, [rdi + 0x30]
mov r8, rsi
mov rcx, rbp
call fcn.1801058a0
mov rbx, qword [rsp + 0x68]
mov dword [rdi + 0x24], 1
mov qword [rdi + 0x28], rsi
inc dword [rdi]
mov dword [rdi + 0x18], 0
mov dword [rdi + 4], 0
jmp 0x1801143ff
mov r13d, 1
cmp dword [rdi + 4], 0
je 0x18011440e
mov r8, r15
sub r8, qword [rdi + 8]
jmp 0x180114443
test r12d, r12d
jne 0x180114418
mov esi, dword [rbx + 8]
jmp 0x18011441b
mov esi, dword [rdi - 0x20]
xor r8d, r8d
test r13d, r13d
lea rdx, [rdi + 0x10]
sete r8b
mov rcx, rbp
call fcn.1801058a0
lea rdx, [rdi + 0x10]
movsxd r8, esi
mov rcx, rbp
call fcn.1801058a0
mov r8, r15
lea rdx, [rdi + 0x10]
mov rcx, rbp
call fcn.1801058a0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov dword [rdi + 4], 1
mov qword [rdi + 8], r15
inc r12d
add r14, 0x20
cmp dword [rbp], 0
je 0x1801142b1
mov rdi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop r15
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x180116a20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbx, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
mov rsi, r9
xor r9d, r9d
repne scasb al, byte [rdi]
lea rax, [r11 + 8]
mov qword [r11 + 8], r9
mov qword [r11 - 0x18], rax
mov dword [r11 - 0x20], r9d
not rcx
dec rcx
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x28], ecx
mov qword [r11 - 0x38], r8
lea r8d, [r9 + 0x40]
mov rcx, rbx
call fcn.180113790
cmp dword [rbx + 0x3c], 0
mov rdi, qword [rsp + 0x60]
jne 0x180116ae0
cmp byte [rdi + 0x14], 0
jne 0x180116ae0
mov rax, qword [rdi + 0x58]
movzx ecx, word [rax + 4]
imul rcx, rcx, 0x88
cmp qword [rcx + rdi + 0xd8], rsi
jge 0x180116aae
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.180113c20
cmp dword [rbx + 0x3c], 0
jne 0x180116ae0
cmp byte [rdi + 0x14], 0
jne 0x180116ae0
mov rax, qword [rdi + 0x58]
movzx ecx, word [rax + 4]
imul rcx, rcx, 0x88
cmp rsi, qword [rcx + rdi + 0xd8]
jne 0x180116ae0
lea rdx, [rcx + rdi + 0x60]
mov rcx, rbx
call fcn.1801160d0
mov rcx, rdi
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp fcn.1801120d0
Function at 0x180120a70
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r13, qword [rcx]
xor ebp, ebp
xor ebx, ebx
mov r14, r8
mov r12, rdx
mov r15, rcx
lea esi, [rbp + 1]
test r8, r8
jne 0x180120b4e
cmp qword [rcx + 0x38], rbx
lea rdi, [rcx + 0x38]
jne 0x180120b14
mov r9, qword [r13 + 0x50]
mov r8, qword [r13 + 0x48]
mov rdx, qword [r13 + 0x60]
lea rcx, str.SELECT__s_FROM__s_T_WHERE_T._Q_
call sym.sqlite.dll_sqlite3_mprintf
mov rbp, rax
test rax, rax
jne 0x180120ad7
lea ebx, [rsi + 6]
jmp 0x180120b14
mov rax, qword [r15]
mov r9d, 0x81
or r8d, 0xffffffff
inc dword [rax + 0x78]
mov rcx, qword [r13]
xor eax, eax
mov qword [rsp + 0x30], rax
mov rdx, rbp
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.180088380
mov rcx, rbp
mov ebx, eax
mov rax, qword [r15]
dec dword [rax + 0x78]
call sym.sqlite.dll_sqlite3_free
mov rbp, qword [rdi]
mov rcx, rbp
call sym.sqlite.dll_sqlite3_reset
test ebx, ebx
jne 0x180120c7f
mov r8, r12
mov edx, esi
mov rcx, rbp
call sym.sqlite.dll_sqlite3_bind_int64
mov rcx, rbp
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
je 0x180120b4e
mov rcx, rbp
call sym.sqlite.dll_sqlite3_reset
jmp 0x180120c81
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], 0xffffffff
mov r12, rsi
xor edi, edi
mov eax, 0x10b
mov r8d, 0x202
nop dword [rax + rax]
cmp esi, dword [r13 + 0x18]
jg 0x180120c9f
mov rax, qword [r13 + 0x28]
cmp byte [rax + r12 - 1], 0
jne 0x180120c58
test rbp, rbp
je 0x180120ba8
mov edx, esi
mov rcx, rbp
call sym.sqlite.dll_sqlite3_column_text
mov edx, esi
mov rcx, rbp
mov rbx, rax
call sym.sqlite.dll_sqlite3_column_bytes
jmp 0x180120bf7
test r14, r14
je 0x180120c58
mov rcx, qword [rdi + r14]
test rcx, rcx
jne 0x180120bbe
xor ebx, ebx
jmp 0x180120bee
movzx edx, word [rcx + 0x14]
movzx eax, dx
and ax, r8w
cmp ax, r8w
jne 0x180120bdb
cmp byte [rcx + 0x16], 1
jne 0x180120bdb
mov rbx, qword [rcx + 8]
jmp 0x180120bee
test dl, 1
je 0x180120be4
xor ebx, ebx
jmp 0x180120bee
mov dl, 1
call fcn.180034790
mov rbx, rax
mov rcx, qword [rdi + r14]
call sym.sqlite.dll_sqlite3_value_bytes
mov r11d, eax
xor eax, eax
mov dword [rsp + 0x4c], eax
test rbx, rbx
je 0x180120c35
mov rax, qword [r13 + 0x70]
lea rcx, [0x180120a20]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov rcx, qword [r13 + 0x68]
mov r9, rbx
mov r8d, 4
mov dword [rsp + 0x20], r11d
call qword [rax + 0x10]
mov ebx, eax
mov eax, dword [rsp + 0x4c]
mov rcx, qword [r15 + 0x20]
cdqe
mov r8d, 0x202
sub qword [rcx + rdi], rax
mov rax, qword [r15 + 0x20]
cmp qword [rdi + rax], 0
mov eax, 0x10b
cmovl ebx, eax
jmp 0x180120c5d
mov eax, 0x10b
inc esi
inc r12
add rdi, 8
test ebx, ebx
je 0x180120b70
dec qword [r15 + 0x18]
mov rcx, rbp
call sym.sqlite.dll_sqlite3_reset
test ebx, ebx
cmove ebx, eax
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
test ebx, ebx
jne 0x180120c6e
cmp qword [r15 + 0x18], 1
jge 0x180120c6e
mov ebx, eax
jmp 0x180120c72
Function at 0x180120cb0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor edi, edi
lea rbx, [rcx + 0x68]
mov r12, rdx
mov esi, edi
mov rbp, rcx
cmp qword [rbx], rsi
jne 0x180120d54
mov rsi, qword [rcx]
lea rax, str._origin
lea rdx, [0x180144ae4]
cmp dword [rsi + 0x44], edi
mov r9, qword [rsi + 0x10]
mov r8, qword [rsi + 8]
lea rcx, str.SELECT_sz_s_FROM__Q._q_docsize_WHERE_id_
cmovne rdx, rax
mov qword [rsp + 0x60], r13
call sym.sqlite.dll_sqlite3_mprintf
mov r13, rax
test rax, rax
jne 0x180120d13
lea esi, [rdi + 7]
jmp 0x180120d4f
mov rax, qword [rbp]
mov qword [rsp + 0x30], rdi
mov r9d, 0x85
inc dword [rax + 0x78]
mov rcx, qword [rsi]
or r8d, 0xffffffff
mov rdx, r13
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
call fcn.180088380
mov rcx, r13
mov esi, eax
mov rax, qword [rbp]
dec dword [rax + 0x78]
call sym.sqlite.dll_sqlite3_free
mov r13, qword [rsp + 0x60]
mov rbx, qword [rbx]
mov rcx, rbx
call sym.sqlite.dll_sqlite3_reset
test esi, esi
jne 0x180120dae
lea edx, [rsi + 1]
mov r8, r12
mov rcx, rbx
call sym.sqlite.dll_sqlite3_bind_int64
mov rcx, rbx
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x180120d8c
lea edx, [rsi + 1]
mov rcx, rbx
call sym.sqlite.dll_sqlite3_column_int64
mov rdi, rax
mov rcx, rbx
call sym.sqlite.dll_sqlite3_reset
test eax, eax
jne 0x180120db0
test rdi, rdi
je 0x180120db0
mov rcx, qword [rbp + 8]
mov r8, r12
mov rdx, rdi
call fcn.18011a280
jmp 0x180120db0
mov eax, esi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x180122950
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rdi, qword [rcx]
xor r12d, r12d
lea rbp, [rcx + 0x68]
mov r15d, dword [rdi + 0x18]
mov ebx, r12d
mov r14, r8
mov r13, rdx
mov rsi, rcx
cmp qword [rbp], rbx
jne 0x180122a01
cmp dword [rdi + 0x44], ebx
mov r9, qword [rdi + 0x10]
mov r8, qword [rdi + 8]
lea rax, str._origin
lea rdx, [0x180144ae4]
lea rcx, str.SELECT_sz_s_FROM__Q._q_docsize_WHERE_id_
cmovne rdx, rax
call sym.sqlite.dll_sqlite3_mprintf
mov r12, rax
test rax, rax
jne 0x1801229c2
lea ebx, [rax + 7]
jmp 0x1801229fe
mov rax, qword [rsi]
mov r9d, 0x85
or r8d, 0xffffffff
inc dword [rax + 0x78]
mov rcx, qword [rdi]
xor eax, eax
mov qword [rsp + 0x30], rax
mov rdx, r12
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call fcn.180088380
mov rcx, r12
mov ebx, eax
mov rax, qword [rsi]
dec dword [rax + 0x78]
call sym.sqlite.dll_sqlite3_free
xor r12d, r12d
mov rdi, qword [rbp]
mov rcx, rdi
call sym.sqlite.dll_sqlite3_reset
test rdi, rdi
je 0x180122a77
mov esi, 1
mov r8, r13
mov rcx, rdi
mov edx, esi
call sym.sqlite.dll_sqlite3_bind_int64
mov rcx, rdi
call sym.sqlite.dll_sqlite3_step
cmp eax, 0x64
jne 0x180122a5f
xor edx, edx
mov rcx, rdi
call sym.sqlite.dll_sqlite3_column_blob
xor edx, edx
mov rcx, rdi
mov rbx, rax
call sym.sqlite.dll_sqlite3_column_bytes
mov r8, rbx
mov edx, r15d
mov rcx, r14
mov r9d, eax
call fcn.180122840
test eax, eax
cmove esi, r12d
mov rcx, rdi
call sym.sqlite.dll_sqlite3_reset
test esi, esi
je 0x180122a79
mov ecx, 0x10b
test eax, eax
cmove eax, ecx
jmp 0x180122a79
mov eax, ebx
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1801263a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
sub rsp, 0x20
mov edi, edx
mov r8d, ecx
cmp ecx, 0x80
jge 0x1801263cc
lea eax, [rcx - 0x41]
cmp eax, 0x19
ja 0x1801263c4
lea eax, [rcx + 0x20]
add rsp, 0x20
pop rdi
ret
mov eax, ecx
add rsp, 0x20
pop rdi
ret
cmp ecx, 0x10000
jge 0x1801264a3
mov qword [rsp + 0x30], rbx
xor ebx, ebx
mov qword [rsp + 0x38], rsi
mov r9d, 0xa2
or r11d, 0xffffffff
lea rsi, [0x180000000]
mov r10d, ebx
nop dword [rax + rax]
lea eax, [r10 + r9]
cdq
sub eax, edx
sar eax, 1
movsxd rcx, eax
movzx edx, word [rsi + rcx*4 + 0x14c670]
cmp r8d, edx
js 0x180126422
mov r11d, eax
lea r10d, [rax + 1]
jmp 0x180126426
lea r9d, [rax - 1]
cmp r9d, r10d
jge 0x180126400
movsxd rdx, r11d
movzx ecx, word [rsi + rdx*4 + 0x14c670]
movzx eax, byte [rsi + rdx*4 + 0x14c673]
add eax, ecx
cmp r8d, eax
jge 0x180126472
movzx r9d, byte [rsi + rdx*4 + 0x14c672]
xor ecx, r8d
mov eax, r9d
and eax, 1
and eax, ecx
test al, al
jne 0x180126472
mov eax, r9d
shr rax, 1
movzx eax, word [rsi + rax*2 + 0x14c900]
add eax, r8d
movzx r8d, ax
mov rsi, qword [rsp + 0x38]
test edi, edi
je 0x180126495
cmp edi, 2
mov ecx, r8d
sete bl
mov edx, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.180125d80
mov eax, r8d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea eax, [rcx - 0x10400]
cmp eax, 0x27
ja 0x1801263c4
lea eax, [rcx + 0x28]
add rsp, 0x20
pop rdi
ret

Function at 0x18012c6ff
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1801715d0]
jne 0x18012858a
rol rcx, 0x10
test cx, 0xffff
jne 0x180128586
repz ret
ror rcx, 0x10
jmp 0x18012c658
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180178c20]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180178d18]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18012c6dd
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180178c20]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18012c6ff
mov rax, qword [rsp + 0x88]
mov qword [0x180178d18], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180178cb8], rax
mov rax, qword [0x180178d18]
mov qword [0x180178b90], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180178ca0], rax
mov dword [0x180178b80], 0xc0000409
mov dword [0x180178b84], 1
mov rax, qword [0x1801715d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1801715d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180178c18], eax
mov ecx, 1
call fcn.180134c50
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18013e5d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180178c18], 0
jne 0x18012c786
mov ecx, 1
call fcn.180134c50
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180137b88
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1801715d0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18012d600
xor ebx, ebx
cmp qword [0x180179c50], rbx
mov rdi, rax
jne 0x180137c9b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180137d72
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180137d72
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180179c50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180179c58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x180179c60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180179c70], rax
test rax, rax
je 0x180137c92
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180179c68], rax
jmp 0x180137ca2
mov rax, qword [0x180179c68]
jmp 0x180137ca9
mov rax, qword [0x180179c68]
mov r11, qword [0x180179c70]
cmp rax, rdi
je 0x180137d10
cmp r11, rdi
je 0x180137d10
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180179c70]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180137d10
test rax, rax
je 0x180137d10
call rsi
test rax, rax
je 0x180137d0a
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180137d0a
test byte [rsp + 0x40], 1
jne 0x180137d10
bts ebp, 0x15
jmp 0x180137d50
mov rcx, qword [0x180179c58]
cmp rcx, rdi
je 0x180137d50
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180137d50
call rax
mov rbx, rax
test rax, rax
je 0x180137d50
mov rcx, qword [0x180179c60]
cmp rcx, rdi
je 0x180137d50
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180137d50
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180179c50]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180137d72
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180137d74
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180128570
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret