joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b7da0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
mov r9, rdx
mov r10, qword [r8]
add r10, rdx
movabs r11, 0x5851f42d4c957f2d
imul r10, r11
mov qword [r8], r10
cmp rdx, 8
jbe 0x1400b7e2c
cmp r9, 0x10
jbe 0x1400b7e49
mov r15, qword [r8 + 8]
mov rdi, qword [r8 + 0x10]
mov r14, qword [r9 + rcx - 0x10]
xor r14, rdi
mov rbx, qword [r8 + 0x18]
mov rax, qword [r9 + rcx - 8]
xor rax, rbx
mul r14
xor rdx, rax
add r10, rdx
xor r10, r15
rol r10, 0x17
mov qword [r8], r10
mov rsi, qword [rcx]
mov rax, qword [rcx + 8]
add rcx, 0x10
add r9, 0xfffffffffffffff0
xor rsi, rdi
xor rax, rbx
mul rsi
xor rdx, rax
add rdx, r10
xor rdx, r15
mov r10, rdx
rol r10, 0x17
cmp r9, 0x10
ja 0x1400b7dfc
jmp 0x1400b7e98
cmp r9, 1
jbe 0x1400b7e6c
cmp r9, 4
jb 0x1400b7e7c
mov esi, dword [rcx]
mov eax, dword [r9 + rcx - 4]
xor rsi, qword [r8 + 0x10]
xor rax, qword [r8 + 0x18]
jmp 0x1400b7e59
mov rsi, qword [r8 + 0x10]
mov rax, qword [r8 + 0x18]
xor rsi, qword [rcx]
xor rax, qword [r9 + rcx - 8]
mul rsi
xor rdx, rax
add r10, rdx
xor r10, qword [r8 + 8]
rol r10, 0x17
jmp 0x1400b7e98
test r9, r9
je 0x1400b7e9b
movzx eax, byte [rcx]
xor r10, rax
mov rax, r10
jmp 0x1400b7e8f
movzx edx, word [rcx]
movzx eax, byte [r9 + rcx - 1]
shl rax, 0x20
or rax, rdx
xor rax, r10
mul r11
mov r10, rdx
xor r10, rax
mov qword [r8], r10
xor r10, 0xff
mov rax, r10
mul r11
xor rdx, rax
mov qword [r8], rdx
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400cb1e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov r14, rdx
mov rdi, rcx
mov rcx, qword [0x14024c1c0]
test rcx, rcx
jne 0x1400cb203
call fcn.1400cb350
mov rcx, rax
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
jne 0x1400cb258
call sub.KERNEL32.dll_GetProcessHeap
mov r8d, 0x18
mov rcx, rax
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400cb33f
mov rbx, rax
mov qword [rax], 8
xorps xmm0, xmm0
movups xmmword [rax + 8], xmm0
mov rcx, qword [0x14024c1c0]
test rcx, rcx
jne 0x1400cb250
call fcn.1400cb350
mov rcx, rax
mov rdx, rbx
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [0x14024c1c0]
test rcx, rcx
jne 0x1400cb26c
call fcn.1400cb350
mov rcx, rax
call sub.KERNEL32.dll_TlsGetValue
mov rbx, rax
mov rsi, qword [rax + 0x10]
cmp rsi, qword [rax + 8]
jne 0x1400cb2d6
mov rcx, rsi
inc rcx
je 0x1400cb338
lea rax, [rsi + rsi]
cmp rax, rcx
cmova rcx, rax
cmp rcx, 4
mov eax, 4
cmova rax, rcx
mov ecx, 0x10
xor r8d, r8d
mul rcx
setno r8b
shl r8, 3
test rsi, rsi
je 0x1400cb2db
mov rcx, qword [rbx]
shl rsi, 4
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 8
jmp 0x1400cb2e4
mov rcx, qword [rbx]
jmp 0x1400cb317
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x40]
lea r9, [rsp + 0x28]
mov rdx, rax
call fcn.1400c2640
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
cmp qword [rsp + 0x40], 1
je 0x1400cb333
mov qword [rbx], rcx
shr rdx, 4
mov qword [rbx + 8], rdx
mov rsi, qword [rbx + 0x10]
shl rsi, 4
mov qword [rcx + rsi], rdi
mov qword [rcx + rsi + 8], r14
add qword [rbx + 0x10], 1
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
test rdx, rdx
jne 0x1400cb349
call fcn.14002ff10
ud2
mov ecx, 0x18
mov edx, 8
call fcn.14002fe70
ud2
Function at 0x1400cb350
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
lea rsi, [0x1402514a8]
mov rcx, rsi
call fcn.1400c1d40
mov qword [rbp - 0x10], rsi
mov rsi, qword [0x14024c1c0]
test rsi, rsi
jne 0x1400cb3ff
mov rsi, qword [0x14024c1c8]
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400cb453
mov edi, eax
test rsi, rsi
je 0x1400cb3ef
call sub.KERNEL32.dll_GetProcessHeap
mov r8d, 0x18
mov rcx, rax
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400cb4a6
mov rcx, rax
mov qword [rax], rsi
mov qword [rax + 8], 0
mov dword [rax + 0x10], edi
mov rax, qword [0x1402513e0]
nop word cs:[rax + rax]
nop
mov qword [rcx + 8], rax
lock cmpxchg qword [0x1402513e0], rcx
jne 0x1400cb3e0
mov esi, edi
mov rax, rsi
xchg qword [0x14024c1c0], rax
test edi, edi
je 0x1400cb46d
mov rdi, qword [rbp - 0x10]
mov rax, qword [0x1402513f0]
test rax, rax
je 0x1400cb445
lea rcx, [0x1400c1ea0]
cmp rax, rcx
jne 0x1400cb429
mov rcx, qword [rdi]
mov byte [rcx + 0x28], 0
call fcn.14019e231
jmp 0x1400cb43a
mov rax, qword [0x1402513f8]
test rax, rax
je 0x1400cb44c
mov rcx, rdi
call rax
mov rax, rsi
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
call fcn.1400c1e60
jmp 0x1400cb40f
call fcn.1400c1ec0
jmp 0x1400cb435
lea rcx, str.assertion_failed:_key___c::TLS_OUT_OF_INDEXES
lea r8, [0x140210388]
mov edx, 0x2e
call fcn.140031820
jmp 0x1400cb4a4
lea rax, str.assertion_failed:_key___0library_std_src_syswindows_thread_local_key.rslibrary_std_src_ffic_str.rslibrary_std_srcpanicking.rs
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
mov qword [rbp - 0x30], 0
lea rax, str.C:UsersThalya.cargo_registry_srcgithub.com_1ecc6299db9ec823_slab_0.4.2_srclib.rs
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], 0
lea rcx, [rbp - 0x40]
call fcn.1400c30a0
ud2
mov ecx, 0x18
mov edx, 8
call fcn.14002fe70
ud2

Function at 0x1400d22d0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400d2333
movaps xmm0, xmmword [rbp - 0x20]
mov eax, dword [0x140251ad8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0xa8], 1
movups xmmword [rax + 0xb0], xmm0
add rsp, 0x90
pop rbp
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
mov qword [rbp - 8], rax
mov qword [rbp], 0
lea rax, [rbp - 8]
mov qword [rbp - 0x30], rax
lea rax, [0x1400cbd70]
mov qword [rbp - 0x28], rax
lea rax, [0x1402111d0]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x50], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, str.library_std_src_syswindows_rand.rscouldnt_generate_random_bytes:
lea rcx, [rbp - 0x60]
call fcn.1400cc050
ud2
Function at 0x1400d24d0
Capabilities:
Create thread

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
mov r15, r9
mov rsi, r8
mov rdi, rdx
mov r14, rcx
call sub.KERNEL32.dll_GetProcessHeap
mov r8d, 0x10
mov rcx, rax
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x1400d25c1
mov rbx, rax
mov qword [rax], rsi
mov qword [rax + 8], r15
add rdi, 0xfffe
and rdi, 0xffffffffffff0001
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1400d2620]
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
test rax, rax
je 0x1400d255d
mov qword [r14 + 8], rax
xor eax, eax
jmp 0x1400d25b1
mov rcx, qword [rbx]
mov qword [rbp - 8], rbx
mov rax, qword [rbx + 8]
call qword [rax]
mov rsi, qword [rbp - 8]
mov rax, qword [rsi + 8]
cmp qword [rax + 8], 0
je 0x1400d2585
mov rcx, qword [rsi]
mov rdx, qword [rax + 0x10]
call fcn.140040ca0
call sub.KERNEL32.dll_GetProcessHeap
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.14019e1f5
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], 0
mov eax, 1
mov qword [r14], rax
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov ecx, 0x10
mov edx, 8
call fcn.14002fe70
ud2
Function at 0x1400dcbc8
Capabilities:
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov r12, rdx
mov r14, rcx
mov qword [rbp - 8], rdx
lea rdx, [rdx + 0x10]
mov qword [rbp - 0x28], rdx
movabs rbx, 0xcbf29ce484222325
mov eax, 1
movabs rcx, 0x100000001b3
movzx edx, dl
xor rbx, rdx
imul rbx, rcx
cmp rax, 8
je 0x1400dcc29
mov dl, byte [rbp + rax - 0x28]
inc rax
jmp 0x1400dcc10
mov r13, rbx
shr r13, 0x39
mov rax, qword [r14]
mov r9, qword [r14 + 8]
mov rdx, rax
and rdx, rbx
lea r10, [rdx + 0x10]
and r10, rax
movdqu xmm1, xmmword [r9 + rdx]
movd xmm0, r13d
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0xe0
pshufd xmm0, xmm0, 0
movdqa xmm2, xmm0
pcmpeqb xmm2, xmm1
pmovmskb edi, xmm2
mov r8d, 0x10
pcmpeqd xmm2, xmm2
test di, di
je 0x1400dcc9e
lea ecx, [rdi - 1]
and ecx, edi
bsf di, di
movzx edi, di
add rdi, rdx
and rdi, rax
shl rdi, 3
mov rsi, r9
sub rsi, rdi
mov edi, ecx
cmp qword [rsi - 8], r12
je 0x1400dccd0
jmp 0x1400dcc73
pcmpeqb xmm1, xmm2
pmovmskb ecx, xmm1
test cx, cx
jne 0x1400dcce9
mov rdx, r10
add r10, r8
add r10, 0x10
add r8, 0x10
and r10, rax
movdqu xmm1, xmmword [r9 + rdx]
movdqa xmm3, xmm0
pcmpeqb xmm3, xmm1
pmovmskb edi, xmm3
jmp 0x1400dcc73
lock dec qword [r12]
jne 0x1400dcdb8
lea rcx, [rbp - 8]
call fcn.1400db934
jmp 0x1400dcdb8
mov qword [rbp - 0x10], r12
xor edi, edi
mov rsi, rbx
mov rdx, rsi
and rdx, rax
lea rsi, [rdi + rdx]
add rsi, 0x10
add rdi, 0x10
movdqu xmm0, xmmword [r9 + rdx]
pmovmskb ecx, xmm0
test cx, cx
je 0x1400dccf2
bsf cx, cx
movzx ecx, cx
add rdx, rcx
and rdx, rax
mov r15b, byte [r9 + rdx]
test r15b, r15b
jns 0x1400dcdc9
and r15b, 1
cmp qword [r14 + 0x10], 0
jne 0x1400dcd87
test r15b, r15b
je 0x1400dcd87
lea rcx, [rbp - 0x28]
mov rdx, r14
call fcn.1400dc663
mov rax, qword [r14]
mov r9, qword [r14 + 8]
xor edi, edi
mov rdx, rbx
and rdx, rax
lea rbx, [rdi + rdx]
add rbx, 0x10
add rdi, 0x10
movdqu xmm0, xmmword [r9 + rdx]
pmovmskb esi, xmm0
test si, si
je 0x1400dcd52
bsf cx, si
movzx ecx, cx
add rdx, rcx
and rdx, rax
cmp byte [r9 + rdx], 0
jns 0x1400dcde2
lea rcx, [rdx*8]
mov rbx, r9
sub rbx, rcx
neg r15b
movsx rcx, r15b
add qword [r14 + 0x10], rcx
lea rcx, [rdx - 0x10]
and rcx, rax
mov byte [r9 + rdx], r13b
mov byte [rcx + r9 + 0x10], r13b
mov qword [rbx - 8], r12
inc qword [r14 + 0x18]
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movdqa xmm0, xmmword [r9]
pmovmskb ecx, xmm0
bsf cx, cx
movzx edx, cx
mov r15b, byte [r9 + rdx]
jmp 0x1400dcd2d
movdqa xmm0, xmmword [r9]
pmovmskb ecx, xmm0
bsf cx, cx
movzx edx, cx
jmp 0x1400dcd87
Function at 0x1400deac0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1400deac7
test al, 1
je 0x1400deae6
test al, 2
jne 0x1400deafb
xor rax, 3
add rsp, 0x28
ret
lea rcx, [0x140213a36]
lea r8, str.C:UsersThalya.cargo_registry_srcgithub.com_1ecc6299db9ec823_tokio_0.2.24_src_runtime_task_state.rsassertion_failed:_prev.is_running__
mov edx, 0x23
jmp 0x1400deb0e
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, str.C:UsersThalya.cargo_registry_srcgithub.com_1ecc6299db9ec823_tokio_0.2.24_src_runtime_task_state.rsassertion_failed:_prev.is_running__
mov edx, 0x25
call fcn.140031820
ud2
Function at 0x14012b3ac
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r12d, r12d
mov rbp, rcx
mov rcx, qword [rdx + 0x50]
mov rdi, rdx
mov esi, r12d
mov r14d, r12d
test rcx, rcx
je 0x14012b401
mov rax, qword [rdx]
movsxd r14, dword [rcx + 0x1c]
mov rcx, rbp
movsxd rdx, dword [rax]
shl rdx, 0x25
add rdx, r14
call fcn.140120948
mov rsi, rax
jmp 0x14012b4d0
mov ebx, dword [rdx + 0xc]
mov r8, qword [rdx + 0x10]
cmp dword [rdx + 0x30], ebx
jne 0x14012b412
mov ecx, dword [rdx + 0x34]
jmp 0x14012b417
mov ecx, 4
mov r10, qword [r8]
lea eax, [rcx + 9]
movsxd r9, eax
movsxd rdx, ecx
mov al, byte [r10 + rdx]
inc ecx
inc rdx
test al, al
jns 0x14012b435
cmp rdx, r9
jl 0x14012b423
mov dword [rdi + 0x20], ecx
mov eax, dword [r8 + 0xc]
cmp dword [rdi + 0x3c], eax
jl 0x14012b531
mov r15, qword [rdi]
inc ebx
cmp dword [rbp + 0x34], r12d
jne 0x14012b531
cmp ebx, dword [r15 + 8]
jg 0x14012b4d0
movsxd rdx, dword [r15]
mov rcx, rbp
shl rdx, 0x25
movsxd rax, ebx
add rdx, rax
call fcn.140120948
mov r9, rax
test rax, rax
je 0x14012b4c8
mov r8, qword [rax]
mov r13d, dword [rax + 0xc]
mov eax, dword [rax + 8]
mov dword [rsp + 0x58], eax
mov eax, 0x100
movzx r12d, byte [r8]
movzx ecx, byte [r8 + 1]
movzx edx, ax
imul r12d, edx
add r12w, cx
je 0x14012b4a9
mov rax, r9
mov r9, rsi
mov rsi, rax
mov rcx, r9
call fcn.1400f3680
test r12w, r12w
mov eax, ebx
cmove eax, r14d
mov r14d, eax
cmp r13d, dword [rsp + 0x58]
jl 0x14012b4d0
xor r12d, r12d
inc ebx
cmp dword [rbp + 0x34], r12d
je 0x14012b454
test rsi, rsi
je 0x14012b531
mov rcx, qword [rdi + 0x10]
call fcn.1400f3680
mov qword [rdi + 0x10], rsi
lea rdx, [rdi + 0x68]
mov dword [rdi + 0xc], r14d
mov r8, qword [rsi]
movzx ebx, byte [r8]
movzx eax, byte [r8 + 1]
shl ebx, 8
add ebx, eax
mov ecx, ebx
add rcx, r8
call fcn.14015f91c
movzx eax, al
add eax, ebx
mov dword [rdi + 0x20], eax
mov eax, dword [rsi + 8]
cmp dword [rsi + 0xc], eax
jl 0x14012b519
inc eax
jmp 0x14012b52e
movsxd rcx, dword [rsi + 0xc]
lea rdx, [rsp + 0x58]
add rcx, qword [rsi]
call fcn.14015fad8
mov eax, dword [rsp + 0x58]
mov dword [rdi + 0x3c], eax
mov rdx, rdi
mov rcx, rbp
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
jmp fcn.14012b558
Function at 0x14012b7ec
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, qword [rsp + 0x98]
mov rdi, rcx
mov r14d, r9d
mov r13d, 1
xor edx, edx
mov rcx, rbx
mov ebp, r9d
and r14d, 8
xor r15d, r15d
lea r8d, [r13 + 0x77]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x90]
lea r12, [rdi + 0x60]
mov qword [rbx], rax
mov rsi, qword [r12]
test rsi, rsi
jne 0x14012b87f
mov rdx, qword [rdi]
lea rcx, str.SELECT_pgno_FROM__q._q_idx_WHERE_segid__AND_term___ORDER_BY_term_DESC_LIMIT_1
mov r8, qword [rdx + 0x10]
mov rdx, qword [rdx + 8]
call fcn.1400f3418
mov r8, rax
mov rdx, r12
mov rcx, rdi
call fcn.140126e1c
mov rax, qword [rsp + 0x90]
mov rsi, qword [r12]
cmp dword [rdi + 0x34], r15d
jne 0x14012b9e4
movsxd r8, dword [rax]
mov edx, r13d
mov rcx, rsi
call fcn.1400f4b10
mov r12d, dword [rsp + 0x80]
test r12d, r12d
jns 0x14012b8b0
mov ecx, 0x149b4
call fcn.140169ae0
jmp 0x14012b8cf
mov r8, qword [rsp + 0x78]
mov r9d, r12d
mov byte [rsp + 0x28], r15b
mov edx, 2
and qword [rsp + 0x20], r15
mov rcx, rsi
call fcn.140104454
mov rcx, rsi
call fcn.1400f55d0
cmp eax, 0x64
jne 0x14012b8f3
xor edx, edx
mov rcx, rsi
call fcn.1400f5af4
movsxd r15, eax
mov r13, r15
sar r13, 1
and r15d, 1
mov rcx, rsi
call fcn.1400f5e6c
mov edx, 2
mov dword [rdi + 0x34], eax
mov rcx, rsi
call fcn.1400f4b98
mov rcx, qword [rsp + 0x90]
xor esi, esi
mov rdx, rbx
mov eax, dword [rcx + 4]
cmp r13d, eax
mov rcx, rdi
cmovge eax, r13d
cmovge esi, r15d
dec eax
mov dword [rbx + 0xc], eax
call fcn.14012b0e0
cmp qword [rbx + 0x10], 0
je 0x14012b952
mov r9, qword [rsp + 0x78]
mov r8, rbx
mov edx, r14d
mov dword [rsp + 0x20], r12d
mov rcx, rdi
call fcn.14012749c
cmp dword [rdi + 0x34], 0
jne 0x14012b9b4
test r14d, r14d
jne 0x14012b9b4
mov edx, dword [rbx + 8]
mov rax, qword [rbx + 0x10]
or edx, 1
mov dword [rbx + 8], edx
test rax, rax
je 0x14012b9b4
and ebp, 2
je 0x14012b97a
or edx, 2
mov dword [rbx + 8], edx
test esi, esi
je 0x14012b9a5
mov r9d, dword [rbx + 0x30]
and edx, 2
cmp r9d, dword [rbx + 0xc]
jne 0x14012b993
mov eax, dword [rax + 0xc]
cmp dword [rbx + 0x3c], eax
jl 0x14012b9a5
mov rax, qword [rbx]
mov rcx, rdi
mov r8d, dword [rax]
call fcn.1401216f8
mov qword [rbx + 0x50], rax
test ebp, ebp
je 0x14012b9b4
mov rdx, rbx
mov rcx, rdi
call fcn.14012b3ac
test byte [rbx + 8], 2
je 0x14012b9c7
lea rax, [0x14012b32c]
mov qword [rbx + 0x28], rax
jmp 0x14012b9e4
mov rax, qword [rdi]
lea rcx, [0x14012ad40]
lea rdx, [0x14012b184]
cmp dword [rax + 0x5c], 1
cmove rcx, rdx
mov qword [rbx + 0x28], rcx
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140131bec
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rdx, qword [rdx + 0x30]
mov r14, r9
mov rsi, rcx
test r8d, r8d
je 0x140131c74
and dword [rax + 0x18], 0
lea rcx, str.PRAGMA__Q.page_size
call fcn.1400f3418
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, rsi
mov rbp, rax
call fcn.1401312e0
mov edi, eax
test eax, eax
jne 0x140131c60
movzx ecx, byte [rbx + 0x27]
mov r8d, dword [rsp + 0x50]
imul edx, ecx, 0x33
add r8d, 0xffffffc0
mov dword [rbx + 0x20], r8d
add edx, 4
cmp edx, r8d
jge 0x140131cbd
mov dword [rbx + 0x20], edx
jmp 0x140131cbd
mov rcx, rsi
call fcn.1400f4224
mov rdx, rax
lea rcx, [0x1402201e8]
jmp 0x140131cb5
mov r8, qword [rbx + 0x38]
lea rcx, str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.1400f3418
lea r8, [rbx + 0x20]
mov rdx, rax
mov rcx, rsi
mov rbp, rax
call fcn.1401312e0
mov edi, eax
test eax, eax
jne 0x140131c60
cmp dword [rbx + 0x20], 0x1c0
jge 0x140131cbd
mov rdx, qword [rbx + 0x38]
lea rcx, str.undersize_RTree_blobs_in___q_node_
mov edi, 0x10b
call fcn.1400f3418
mov qword [r14], rax
mov rcx, rbp
call fcn.1400f3680
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140141c70
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ebx, r8d
mov rdi, rdx
mov r8, rdx
mov dword [rsp + 0x20], ebx
mov r9, rdx
mov rsi, rcx
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
call fcn.140169ba4
test ebx, ebx
jne 0x140141cb4
mov r8, rdi
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_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.140169ba4
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14015fbd0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x20
movsxd rsi, r9d
xor ebx, ebx
mov rbp, r8
movsxd r15, edx
mov r13, rcx
mov r10d, 0xd
lea eax, [rsi - 1]
movsxd r11, eax
test eax, eax
js 0x14015fc24
movzx r8d, byte [r11 + rbp]
lea edx, [r10*8]
xor r8d, edx
xor r10d, r8d
sub r11, 1
jns 0x14015fc0b
xor edx, edx
mov eax, r10d
div dword [rcx + 0x14]
mov rax, qword [rcx + 0x20]
mov rdi, qword [rax + rdx*8]
test rdi, rdi
je 0x14015fcc7
mov eax, dword [rdi + 0x1c]
inc eax
cmp esi, eax
jne 0x14015fc59
mov r8, rsi
lea rcx, [rdi + 0x30]
mov rdx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14015fc61
mov rdi, qword [rdi]
test rdi, rdi
jne 0x14015fc3d
test rdi, rdi
je 0x14015fcc7
lea r14d, [rsi + 0x31]
mov esi, dword [rdi + 0x18]
lea eax, [r15 + 0xa]
sub esi, r14d
add eax, esi
movsxd rcx, eax
call fcn.1400f35e8
mov rcx, qword [rsp + 0x60]
mov rbp, rax
mov qword [rcx], rax
test rax, rax
je 0x14015fcb9
movsxd rdx, r14d
lea rcx, [r15 + rax]
add rdx, rdi
movsxd r8, esi
call sub.VCRUNTIME140.dll_memcpy
sub r15d, r14d
mov rdx, rdi
movsxd r8, r15d
mov rcx, r13
add r8, rbp
call fcn.140125284
lea ebx, [rsi + rax]
jmp 0x14015fccf
mov rax, qword [rsp + 0x68]
mov dword [rax], ebx
mov eax, 7
jmp 0x14015fcd8
mov rax, qword [rsp + 0x60]
mov qword [rax], rbx
mov rax, qword [rsp + 0x68]
mov dword [rax], ebx
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
ret
Function at 0x140163044
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, qword [rsp + 0x70]
mov r12, r8
and dword [rsp + 0x50], 0
mov r15d, edx
movsxd rdi, r9d
mov r14, rcx
and dword [rbp], 0
test rcx, rcx
je 0x14016312c
lea eax, [rdi - 1]
mov r10d, 0xd
movsxd r9, eax
test eax, eax
js 0x1401630a5
movsx ecx, byte [r9 + r8]
lea eax, [r10*8]
xor ecx, eax
xor r10d, ecx
sub r9, 1
jns 0x14016308d
lea esi, [r10*8]
mov eax, r10d
xor rsi, rdx
xor rsi, rax
and esi, 0x1ff
mov rbx, qword [r14 + rsi*8]
test rbx, rbx
je 0x1401630f1
cmp dword [rbx + 0xc], r15d
jne 0x1401630e2
cmp dword [rbx + 8], edi
jne 0x1401630e2
mov rcx, qword [rbx]
mov r8, rdi
mov rdx, r12
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1401630e8
mov rbx, qword [rbx + 0x10]
jmp 0x1401630c0
mov dword [rbp], 1
jmp 0x14016312c
lea rdx, [rdi + 0x18]
lea rcx, [rsp + 0x50]
call fcn.140161098
mov rbx, rax
test rax, rax
je 0x14016312c
lea rcx, [rax + 0x18]
mov dword [rax + 8], edi
mov r8, rdi
mov qword [rax], rcx
mov rdx, r12
mov dword [rax + 0xc], r15d
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [r14 + rsi*8]
mov qword [rbx + 0x10], rcx
mov qword [r14 + rsi*8], rbx
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1401635dc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r10d, edx
mov r8d, ecx
cmp ecx, 0x80
jge 0x14016360e
lea eax, [rcx - 0x41]
add ecx, 0x20
cmp eax, 0x19
cmova ecx, r8d
mov r8d, ecx
jmp 0x1401636d1
cmp r8d, 0x10000
jge 0x1401636c2
xor r9d, r9d
lea rsi, [0x140000000]
mov edi, r9d
or r11d, 0xffffffff
mov ebx, 0xa2
lea eax, [rdi + rbx]
cdq
sub eax, edx
mov edx, r8d
sar eax, 1
movsxd rcx, eax
movzx ecx, word [rsi + rcx*4 + 0x217300]
sub edx, ecx
mov ecx, eax
cmovs ecx, r11d
test edx, edx
movsxd r11, ecx
lea ecx, [rax + 1]
cmovs ecx, edi
dec eax
test edx, edx
mov edi, ecx
cmovs ebx, eax
cmp ebx, ecx
jge 0x140163631
movzx ecx, word [rsi + r11*4 + 0x217300]
movzx eax, byte [rsi + r11*4 + 0x217303]
add eax, ecx
cmp r8d, eax
jge 0x1401636a5
movzx eax, byte [rsi + r11*4 + 0x217302]
xor ecx, r8d
and ecx, eax
test cl, 1
jne 0x1401636a5
shr rax, 1
movzx eax, word [rsi + rax*2 + 0x217590]
add eax, r8d
movzx r8d, ax
test r10d, r10d
je 0x1401636d1
cmp r10d, 2
mov ecx, r8d
sete r9b
mov edx, r9d
call fcn.14012f884
mov r8d, eax
jmp 0x1401636d1
lea eax, [rcx - 0x10400]
cmp eax, 0x27
ja 0x1401636d1
add r8d, 0x28
mov rbx, qword [rsp + 0x30]
mov eax, r8d
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14018fc4c
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov rsi, rcx
mov qword [rcx], rbx
mov rbp, r8
mov r14, rdx
lea ecx, [rbx + 0x28]
call fcn.14016960c
mov rdi, rax
test rax, rax
jne 0x14018fc88
lea ebx, [rax + 7]
jmp 0x14018fd02
cmp byte [0x14024c204], bl
je 0x14018fcd8
mov rax, qword [0x14024c388]
test rax, rax
je 0x14018fca7
mov ecx, 0xc8
call rax
test eax, eax
jne 0x14018fcd8
lea rax, [rdi + 8]
mov qword [rdi + 0x10], r14
mov qword [rsp + 0x28], rax
lea r8, [0x140175018]
mov r9, rdi
mov dword [rsp + 0x20], ebx
xor edx, edx
mov qword [rdi + 0x18], rbp
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
jne 0x14018fce6
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0x28]
call sub.VCRUNTIME140.dll_memset
cmp qword [rdi + 0x10], rbx
jne 0x14018fcff
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, rbp
mov dword [rdi + 8], eax
call r14
mov qword [rdi + 0x20], rax
mov qword [rsi], rdi
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret