joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14011c27c
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rdi, rcx
lea rdx, [0x1402a2cc7]
lea rcx, [rsp + 0x70]
mov r8d, 0x2c
call fcn.14011c51a
lea rdx, [0x1402a2cf3]
lea rcx, [rsp + 0x40]
mov r8d, 0x12
call fcn.14011c51a
lea rax, [rsp + 0x88]
and qword [rax], 0
mov rsi, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov rdx, rsi
xor r8d, r8d
mov r9d, 0x20019
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x14011c309
movabs rax, 0x8000000000000000
mov qword [rdi], rax
mov rbx, qword [rsp + 0x48]
jmp 0x14011c49a
mov dword [rsp + 0x38], 0x800
and dword [rsp + 0x3c], 0
lea rcx, [rsp + 0x58]
mov edx, 0x800
call fcn.14011aaef
mov rbx, qword [rsp + 0x48]
lea r13, [rsp + 0x38]
lea r15, [rsp + 0x3c]
lea r12, [rsp + 0x58]
mov rcx, qword [rsp + 0x88]
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rdx, rbx
xor r8d, r8d
mov r9, r15
call sub.advapi32.dll_RegQueryValueExW
cmp eax, 0xea
jne 0x14011c373
mov edx, dword [rsp + 0x38]
mov rcx, r12
call fcn.140136fac
jmp 0x14011c339
test eax, eax
jne 0x14011c467
mov r8d, dword [rsp + 0x38]
shr r8d, 1
lea rcx, [rsp + 0x90]
mov rdx, r14
call fcn.14011266d
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x14011c3b3
cmp byte [rax + rcx - 1], 0
sete r8b
jmp 0x14011c3b6
xor r8d, r8d
test r8b, r8b
je 0x14011c476
test rcx, rcx
je 0x14011c460
movzx r9d, byte [rax + rcx - 1]
mov rdx, 0xffffffffffffffff
test r9b, r9b
jns 0x14011c458
movzx r10d, byte [rax + rcx - 2]
cmp r10b, 0xbf
jg 0x14011c406
movzx r11d, byte [rax + rcx - 3]
cmp r11b, 0xbf
jg 0x14011c40c
movzx ebp, byte [rax + rcx - 4]
and ebp, 7
shl ebp, 6
and r11d, 0x3f
or r11d, ebp
jmp 0x14011c410
and r10d, 0x1f
jmp 0x14011c41b
and r11d, 0xf
shl r11d, 6
and r10d, 0x3f
or r10d, r11d
shl r10d, 6
and r9d, 0x3f
or r9d, r10d
cmp r9d, 0x110000
je 0x14011c3b6
cmp r9d, 0x80
jb 0x14011c458
mov rdx, 0xfffffffffffffffe
cmp r9d, 0x800
jb 0x14011c458
xor edx, edx
cmp r9d, 0x10000
setb dl
or rdx, 0xfffffffffffffffc
add rcx, rdx
jmp 0x14011c3a3
xor ecx, ecx
jmp 0x14011c3a3
movabs rax, 0x8000000000000000
mov qword [rdi], rax
jmp 0x14011c48d
mov qword [rsp + 0xa0], rcx
mov qword [rdi + 0x10], rcx
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rdi], xmm0
mov rcx, qword [rsp + 0x58]
mov rdx, r14
call fcn.1400d671a
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
call fcn.140111faa
mov rcx, qword [rsp + 0x70]
mov rdx, rsi
call fcn.140111faa
nop
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14011f122
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov rax, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x14011f13b
dec ecx
add rsp, 0x28
jmp fcn.1401381a4
mov rcx, rax
call fcn.1400dba40
mov ecx, eax
jmp 0x14011f132
Function at 0x1401249c6
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 0x1401249cd
test al, 1
je 0x1401249ec
test al, 2
jne 0x140124a04
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1402a5a78]
mov edx, 0x23
call fcn.140036dc0
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1402a5ab8]
mov edx, 0x25
call fcn.140036dc0
int3

Function at 0x140125e0a
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.140123a2b
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140125e45
xor eax, eax
jmp 0x140125e52
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x14012610b
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
lea r14, [rsp + 0x2a]
lea r15, [rsp + 0x42]
mov r12, qword [rcx + 0x10]
mov r13d, 0x7fffffff
cmp r9, r13
cmovb r13, r9
mov rax, qword [rcx + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x48], rax
lea rbp, [rsp + 0x20]
mov qword [rsp + 0x30], r13
mov rcx, rbp
mov rdx, r12
mov r8, rdi
call fcn.140125e02
mov al, byte [rsp + 0x29]
cmp al, 3
je 0x140126289
mov rbp, qword [rsp + 0x20]
cmp al, 2
je 0x140126282
mov cl, byte [rsp + 0x28]
movzx edx, word [r14 + 4]
mov word [r15 + 4], dx
mov edx, dword [r14]
mov dword [r15], edx
mov qword [rsp + 0x38], rbp
mov byte [rsp + 0x40], cl
mov byte [rsp + 0x41], al
mov rcx, qword [rsp + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x1401262a9
mov rdx, rsi
mov r8d, r13d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x140126290
call sub.ws2_32.dll_WSAGetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rcx, rbp
call fcn.14005096a
cmp al, 0xd
jne 0x140126252
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140126252
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1401262b5
mov r13, r12
mov r12, rbx
mov rbx, r14
mov r14, rdi
mov rdi, rsi
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.1400730f3
mov rsi, rax
xor ecx, ecx
call fcn.140074da0
test rsi, rsi
je 0x14012623e
mov ecx, 1
mov rdx, rbp
call fcn.14007336c
mov rbp, rsi
mov rsi, rdi
mov rdi, r14
mov r14, rbx
mov rbx, r12
mov r12, r13
mov r13, qword [rsp + 0x30]
mov rcx, rbp
call fcn.14011e166
cmp al, 0xd
jne 0x140126282
mov qword [rsp + 0x20], rbp
mov rcx, rbx
lea rdx, [rsp + 0x38]
call fcn.140125b84
lea rbp, [rsp + 0x20]
mov rcx, rbp
call fcn.14011c9ad
jmp 0x14012615b
mov eax, 1
jmp 0x140126295
mov eax, 2
jmp 0x140126295
movsxd rbp, eax
xor eax, eax
mov rdx, rbp
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str._home_ellie_.cargo_registry_src_index.crates.io_6f17d22bba15001f_tokio_1.40.0_src_io_poll_evented.rs
call fcn.14003a940
ud2
Function at 0x140133990
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rsi, rcx
xorps xmm0, xmm0
lea r13, [rsp + 0x30]
movaps xmmword [r13], xmm0
mov r15d, 0x10
mov r12d, 0xffffffff
test r15, r15
je 0x140133a10
mov rdi, r13
cmp r15, r12
mov r14d, 0xffffffff
cmovb r14, r15
add r13, r14
sub r15, r14
xor ecx, ecx
mov rdx, rdi
mov r8d, r14d
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x1401339be
mov ebx, eax
mov rcx, rdi
mov edx, r14d
call sub.advapi32.dll_SystemFunction036
test al, al
jne 0x1401339be
and ebx, 0x7fffffff
jne 0x140133ac5
mov rax, qword [rsp + 0x38]
mov rcx, rax
shr rcx, 0x38
mov byte [rsi], cl
mov rcx, rax
shr rcx, 0x30
mov byte [rsi + 1], cl
mov rcx, rax
shr rcx, 0x28
mov byte [rsi + 2], cl
mov rcx, rax
shr rcx, 0x20
mov byte [rsi + 3], cl
mov ecx, eax
shr ecx, 0x18
mov byte [rsi + 4], cl
mov ecx, eax
shr ecx, 0x10
mov byte [rsi + 5], cl
mov ecx, eax
and ecx, 0xf00
or ecx, 0x4000
mov byte [rsi + 6], ch
mov rcx, qword [rsp + 0x30]
mov byte [rsi + 7], al
movabs rax, 0x3f00000000000000
and rax, rcx
bts rax, 0x3f
shr rax, 0x38
mov byte [rsi + 8], al
mov rax, rcx
shr rax, 0x30
mov byte [rsi + 9], al
mov rax, rcx
shr rax, 0x28
mov byte [rsi + 0xa], al
mov rax, rcx
shr rax, 0x20
mov byte [rsi + 0xb], al
mov eax, ecx
shr eax, 0x18
mov byte [rsi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [rsi + 0xd], al
mov byte [rsi + 0xe], ch
mov byte [rsi + 0xf], cl
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsp + 0x2c]
mov dword [rax], ebx
lea rdx, [rsp + 0x40]
mov qword [rdx], rax
lea rax, [0x1402cab48]
lea rcx, [rsp + 0x50]
mov qword [rcx], rax
mov eax, 1
mov qword [rcx + 8], rax
and qword [rcx + 0x20], 0
lea r8, [0x14004b3ee]
mov qword [rdx + 8], r8
mov qword [rcx + 0x10], rdx
mov qword [rcx + 0x18], rax
lea rdx, str._home_ellie_.cargo_registry_src_index.crates.io_6f17d22bba15001f_uuid_1.10.0_src_rng.rscould_not_retrieve_random_bytes_for_uuid:
call fcn.1400360d0
int3

Function at 0x140139d50
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14013ab50
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.14013ab50
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140139dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x140320214]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140139f70
mov rax, qword [0x140320218]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140139e0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140139e97
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140139df0
mov rcx, r12
call fcn.14013a870
mov rbp, rax
test rax, rax
je 0x140139fcd
mov rax, qword [0x140320218]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.14013a9a0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140320218]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140139fb2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140139e90
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140139f20
add dword [0x140320214], 1
cmp ebx, 8
jae 0x140139ec8
test bl, 4
jne 0x140139f80
test ebx, ebx
je 0x140139eb9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140139fa0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140139eb9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140139efa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x140320218]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140139e90
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140139d50
xor edi, edi
jmp 0x140139e17
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140139eb9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140139eb9
mov rax, qword [0x140320218]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.140139d50
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140139d50
nop
nop dword [rax]
Function at 0x14013a4e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140320280]
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
mov rbx, qword [0x140320260]
test rbx, rbx
je 0x14013a534
mov rdi, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rsi, qword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14013a52b
test r12, r12
je 0x14013a52b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14013a510
lea rcx, [0x140320280]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.kernel32.dll_LeaveCriticalSection]

Function at 0x14013a870
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1402d86c0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x14013a8e9
mov rcx, r10
call fcn.14013a740
test eax, eax
je 0x14013a8e9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x14013a8e6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14013a8dd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x14013a8e9
add r8, 0x28
cmp r8, r9
jne 0x14013a8c8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140140950
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x18
mov r11d, 1
mov eax, r8d
mov qword [rsp + 0x68], rdx
mov r10, rcx
mov ecx, r9d
inc rax
shl r11, cl
mov edx, eax
add rdx, rdx
lea rdx, [rdx + r11 + 8]
cmp rdx, qword [rsp + 0x88]
mov r11, 0xffffffffffffffd2
seta sil
cmp r8d, 0xff
seta dl
or sil, dl
jne 0x140140b8b
mov r11, 0xffffffffffffffd4
cmp r9d, 0xc
ja 0x140140b8b
lea edi, [r8 + 1]
movzx r14d, r9w
lea rbx, [r10 + 4]
xor r13d, r13d
mov r15d, 1
mov dword [rsp + 0xc], edi
or r14d, 0x10000
mov r11d, 1
mov r8d, r15d
mov r12d, r14d
shl r8d, cl
lea ecx, [r9 - 1]
lea edi, [r8 - 1]
shl r15d, cl
xor ecx, ecx
mov edx, edi
cmp dword [rsp + 0xc], ecx
jbe 0x140140a44
mov rbp, qword [rsp + 0x68]
mov bp, word [rbp + rcx*2]
cmp bp, 0xffff
jne 0x140140a28
mov ebp, edx
dec edx
mov byte [rbx + rbp*4 + 2], cl
mov rbp, qword [rsp + 0x80]
mov word [rbp + rcx*2], 1
jmp 0x140140a3f
mov rsi, qword [rsp + 0x80]
cmp bp, r15w
cmovge r11d, r13d
mov word [rsi + rcx*2], bp
mov sil, 1
inc rcx
jmp 0x1401409f9
test sil, sil
je 0x140140a54
shl r11d, 0x10
movzx r12d, r14w
or r12d, r11d
mov r11d, r8d
mov ecx, r8d
mov dword [r10], r12d
shr r11d, 3
shr ecx, 1
lea ecx, [r11 + rcx + 3]
cmp edx, edi
jne 0x140140b0a
add rax, rax
xor r11d, r11d
xor ebp, ebp
add rax, qword [rsp + 0x80]
movabs r14, 0x101010101010101
mov r12, r11
imul r12, r14
cmp dword [rsp + 0xc], r11d
jbe 0x140140aca
mov rsi, qword [rsp + 0x68]
lea r13, [rax + rbp]
mov edi, 8
movsx r15, word [rsi + r11*2]
mov qword [r13], r12
mov rsi, r15
cmp r15d, edi
jle 0x140140ac2
mov qword [r13 + rdi], r12
add rdi, 8
jmp 0x140140ab2
add rbp, rsi
inc r11
jmp 0x140140a8a
xor esi, esi
xor r11d, r11d
movsxd r12, r8d
cmp r12, rsi
ja 0x140140adc
xor r11d, r11d
jmp 0x140140b49
mov bpl, byte [rax + rsi]
mov rdi, r11
add r11, rcx
and rdi, rdx
mov byte [rbx + rdi*4 + 2], bpl
mov rdi, rdx
mov bpl, byte [rax + rsi + 1]
add rsi, 2
and rdi, r11
add r11, rcx
mov byte [rbx + rdi*4 + 2], bpl
and r11, rdx
jmp 0x140140ad2
xor r11d, r11d
xor eax, eax
cmp dword [rsp + 0xc], r11d
jbe 0x140140b3f
mov rsi, qword [rsp + 0x68]
movsx ebp, word [rsi + r11*2]
xor esi, esi
cmp ebp, esi
jle 0x140140b3a
mov r12d, eax
mov byte [rbx + r12*4 + 2], r11b
add eax, ecx
and eax, edi
cmp edx, eax
jb 0x140140b2e
inc esi
jmp 0x140140b22
inc r11
jmp 0x140140b0f
or r11, 0xffffffffffffffff
test eax, eax
je 0x140140ad7
jmp 0x140140b8b
cmp r8d, r11d
jbe 0x140140b88
movzx edx, byte [r10 + r11*4 + 6]
add rdx, rdx
add rdx, qword [rsp + 0x80]
movzx eax, word [rdx]
lea ecx, [rax + 1]
mov word [rdx], cx
bsr ecx, eax
xor ecx, 0x1f
lea ecx, [r9 + rcx - 0x1f]
shl eax, cl
mov byte [r10 + r11*4 + 7], cl
sub eax, r8d
mov word [r10 + r11*4 + 4], ax
inc r11
jmp 0x140140b49
xor r11d, r11d
mov rax, r11
add rsp, 0x18
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401ab400
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xa8
xor esi, esi
movsxd r13, edx
mov rbp, rcx
mov r15, r8
mov r14, r9
cmp qword [rcx + r13*8 + 0x28], 0
mov r10, r13
jne 0x1401ab605
lea rdi, [rsp + 0x48]
lea rsi, str.SELECT__s_FROM__s_T_WHERE_T._Q_____AND_T._Q_____ORDER_BY_T._Q_ASC
mov ecx, 0x16
mov rbx, qword [rbp]
rep movsd dword [rdi], dword [rsi]
cmp r13d, 4
jg 0x1401ab484
cmp r13d, 2
jg 0x1401ab4ea
je 0x1401ab4be
test r13d, r13d
js 0x1401ab567
mov r9, qword [rbx + 0x50]
mov r8, qword [rbx + 0x48]
mov rdx, qword [rbx + 0x60]
mov rcx, qword [rsp + r13*8 + 0x48]
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], r9
call fcn.140216fc0
jmp 0x1401ab4d6
cmp r13d, 0xa
jne 0x1401ab567
mov rdx, qword [rbx + 0x60]
mov r8, qword [rbx + 0x48]
lea rcx, str.SELECT__s_FROM__s_AS_T
call fcn.140216fc0
mov r9d, 5
mov r12, rax
test rax, rax
jne 0x1401ab5a8
mov esi, 7
jmp 0x1401ab605
mov rdx, qword [rbx + 0x60]
mov r9, qword [rbx + 0x50]
lea rcx, str.SELECT__s_FROM__s_T_WHERE_T._Q_
mov r8, qword [rbx + 0x48]
call fcn.140216fc0
mov r12, rax
mov r9d, 1
test rax, rax
jne 0x1401ab5a8
jmp 0x1401ab4b4
mov esi, dword [rbx + 0x18]
lea ecx, [rsi + rsi + 3]
lea r12d, [rsi + 1]
movsxd rcx, ecx
call fcn.140216f20
mov r9, rax
xor eax, eax
test r9, r9
je 0x1401ab4b4
cmp r12d, eax
jle 0x1401ab51c
mov byte [r9 + rax*2], 0x3f
mov byte [r9 + rax*2 + 1], 0x2c
inc rax
jmp 0x1401ab507
add r12, r12
mov eax, 0
inc esi
mov rcx, qword [rsp + r13*8 + 0x48]
cmovl r12, rax
mov qword [rsp + 0x38], r9
mov byte [r9 + r12 - 1], 0
mov rdx, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
call fcn.140216fc0
mov r9, qword [rsp + 0x38]
mov r12, rax
mov rcx, r9
call fcn.140216000
mov r9d, 5
test r12, r12
jne 0x1401ab5a8
jmp 0x1401ab4b4
mov rdx, qword [rbx + 8]
mov rcx, qword [rsp + r13*8 + 0x48]
mov dword [rsp + 0xf8], r10d
mov r8, qword [rbx + 0x10]
call fcn.140216fc0
mov r12, rax
test rax, rax
je 0x1401ab4b4
mov r10d, dword [rsp + 0xf8]
xor r9d, r9d
cmp r10d, 3
setge r9b
lea r9d, [r9*4 + 1]
mov rax, qword [rbp]
or r8d, 0xffffffff
mov rdx, r12
inc dword [rax + 0x78]
lea rax, [rbp + r13*8 + 0x28]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
mov rcx, qword [rbx]
call fcn.140217420
mov rcx, r12
mov esi, eax
mov rax, qword [rbp]
dec dword [rax + 0x78]
call fcn.140216000
test esi, esi
je 0x1401ab605
test r14, r14
je 0x1401ab605
mov rcx, qword [rbx]
call fcn.140215810
lea rcx, [0x1402ceaf7]
mov rdx, rax
call fcn.140216fc0
mov qword [r14], rax
mov rcx, qword [rbp + r13*8 + 0x28]
mov qword [r15], rcx
call fcn.140217a70
mov eax, esi
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401bbdf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov ebp, dword [rcx + 0x80]
movsxd rdx, edx
mov rbx, rcx
mov rcx, qword [rcx + 0x78]
mov rsi, rdx
imul rdx, rdx, 0x38
call fcn.1401f7b60
mov r8, rax
test rax, rax
jne 0x1401bbe26
mov eax, 7
jmp 0x1401bbec2
movsxd rdi, ebp
mov ecx, esi
imul rdi, rdi, 0x38
sub ecx, ebp
movsxd rcx, ecx
imul rcx, rcx, 0x38
lea rdx, [rax + rdi]
xor eax, eax
mov rdi, rdx
rep stosb byte [rdi], al
mov qword [rbx + 0x78], r8
mov rdi, rdx
cmp ebp, esi
jge 0x1401bbec0
mov rax, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x20]
cmp qword [rax], 0
mov dword [rdi + 0x18], ecx
je 0x1401bbe67
mov rax, qword [rbx + 0x60]
test rax, rax
jg 0x1401bbe6d
mov eax, dword [rbx + 0xb8]
mov qword [rdi], rax
mov eax, dword [rbx + 0x3c]
mov dword [rdi + 0x1c], eax
call fcn.1401ced90
mov dword [rdi + 0x20], 1
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1401bbe1c
mov rax, qword [rbx + 0x128]
test rax, rax
je 0x1401bbeb2
mov edx, dword [rax + 0x58]
mov dword [rdi + 0x24], edx
mov edx, dword [rax + 0x60]
mov dword [rdi + 0x28], edx
mov edx, dword [rax + 0x64]
mov dword [rdi + 0x2c], edx
mov eax, dword [rax + 0x88]
mov dword [rdi + 0x30], eax
inc ebp
add rdi, 0x38
mov dword [rbx + 0x80], ebp
jmp 0x1401bbe4a
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x1401c3960
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov ebp, dword [rsp + 0xa0]
mov byte [rcx + 0x1c], 1
mov edi, r8d
mov rbx, rdx
mov rsi, r9
mov qword [rsp + 0x28], r9
mov r9, rdx
mov dword [rsp + 0x20], r8d
mov r8, rdx
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___Q___d_NULL
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x48], rcx
call fcn.1401ec630
test edi, edi
mov rcx, qword [rsp + 0x48]
jne 0x1401c39cb
mov r9, rsi
mov r8, rbx
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___Q___d_NULL
mov dword [rsp + 0xa0], ebp
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.1401ec630
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x1401c6ce0
Capabilities:
Reference sql statements

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rax, str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
movsxd r12, edx
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov rsi, r8
lea rax, str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
cmp qword [rcx + r12*8 + 0x28], 0
mov rbp, r12
mov rdi, r9
mov qword [rsp + 0x48], rax
lea r13, [r12 + 4]
jne 0x1401c6d37
mov rdx, qword [rsp + r12*8 + 0x40]
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
call fcn.1401c7170
mov qword [rbx + r13*8 + 8], rax
cmp dword [rbx + 0x40], 0
jne 0x1401c6df0
mov r12, qword [rbx + r12*8 + 0x28]
mov r8, rsi
mov edx, 1
mov rcx, r12
call fcn.140212e50
mov rcx, r12
call fcn.1402187f0
cmp eax, 0x65
jne 0x1401c6d93
test ebp, ebp
lea rdx, str.__parent
mov r9, rdi
mov r8, rsi
lea rax, str.__rowid
mov rcx, rbx
cmove rax, rdx
lea rdx, str.Mapping___lld_____lld__missing_from__s_table
mov qword [rsp + 0x20], rax
call fcn.1401c6be0
jmp 0x1401c6ddf
cmp eax, 0x64
jne 0x1401c6ddf
xor edx, edx
mov rcx, r12
call fcn.140213d20
mov r9, rax
cmp rax, rdi
je 0x1401c6ddf
lea rdx, str.__parent
test ebp, ebp
mov r8, rsi
mov rcx, rbx
lea rax, str.__rowid
mov qword [rsp + 0x30], rdi
cmove rax, rdx
mov qword [rsp + 0x28], rsi
lea rdx, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov qword [rsp + 0x20], rax
call fcn.1401c6be0
mov rcx, r12
call fcn.140217a70
cmp dword [rbx + 0x40], 0
jne 0x1401c6df0
mov dword [rbx + 0x40], eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x1401e57b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
mov eax, ecx
mov r8d, edx
cmp ecx, 0x7f
jg 0x1401e57cf
lea edx, [rcx - 0x41]
cmp edx, 0x19
ja 0x1401e5870
add eax, 0x20
jmp 0x1401e5870
cmp ecx, 0xffff
jg 0x1401e5862
or rdx, 0xffffffffffffffff
xor r11d, r11d
mov r10d, 0xa2
lea r9, [0x1402da260]
lea ecx, [r10 + r11]
sar ecx, 1
movsxd rbx, ecx
movzx ebx, word [r9 + rbx*4]
cmp eax, ebx
js 0x1401e580a
lea r11d, [rcx + 1]
movsxd rdx, ecx
jmp 0x1401e580e
lea r10d, [rcx - 1]
cmp r11d, r10d
jle 0x1401e57ef
movzx ecx, word [r9 + rdx*4]
movzx r10d, byte [r9 + rdx*4 + 3]
add r10d, ecx
cmp eax, r10d
jge 0x1401e584c
mov dl, byte [r9 + rdx*4 + 2]
xor ecx, eax
mov r9d, edx
and r9d, 1
test r9d, ecx
jne 0x1401e584c
shr dl, 1
lea rcx, [0x1402dd9a0]
and edx, 0x7f
add ax, word [rcx + rdx*2]
movzx eax, ax
test r8d, r8d
je 0x1401e5870
xor edx, edx
cmp r8d, 2
mov ecx, eax
sete dl
pop rbx
jmp fcn.1401c1fa0
lea edx, [rcx - 0x10400]
cmp edx, 0x27
ja 0x1401e5870
add eax, 0x28
pop rbx
ret