joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140115947
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 0x14011594e
test al, 1
je 0x14011596d
test al, 2
jne 0x140115985
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140273160]
mov edx, 0x23
call fcn.140035180
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1402731a0]
mov edx, 0x25
call fcn.140035180
int3

Function at 0x1401165ca
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.1401149ac
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 0x140116605
xor eax, eax
jmp 0x140116612
call sub.ws2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x1401168cb
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.1401165c2
mov al, byte [rsp + 0x29]
cmp al, 3
je 0x140116a49
mov rbp, qword [rsp + 0x20]
cmp al, 2
je 0x140116a42
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 0x140116a69
mov rdx, rsi
mov r8d, r13d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x140116a50
call sub.ws2_32.dll_WSAGetLastError
mov ebp, eax
shl rbp, 0x20
or rbp, 2
mov rcx, rbp
call fcn.140048cef
cmp al, 0xd
jne 0x140116a12
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140116a12
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x140116a75
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.14006a305
mov rsi, rax
xor ecx, ecx
call fcn.14006bfa0
test rsi, rsi
je 0x1401169fe
mov ecx, 1
mov rdx, rbp
call fcn.14006a57e
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.14010f1d7
cmp al, 0xd
jne 0x140116a42
mov qword [rsp + 0x20], rbp
mov rcx, rbx
lea rdx, [rsp + 0x38]
call fcn.140116344
lea rbp, [rsp + 0x20]
mov rcx, rbp
call fcn.14010d9e2
jmp 0x14011691b
mov eax, 1
jmp 0x140116a55
mov eax, 2
jmp 0x140116a55
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.140038d00
ud2
Function at 0x1401241de
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 0x14012425e
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 0x14012420c
mov ebx, eax
mov rcx, rdi
mov edx, r14d
call sub.advapi32.dll_SystemFunction036
test al, al
jne 0x14012420c
and ebx, 0x7fffffff
jne 0x140124313
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, [0x140298230]
lea rcx, [rsp + 0x50]
mov qword [rcx], rax
mov eax, 1
mov qword [rcx + 8], rax
and qword [rcx + 0x20], 0
lea r8, [0x1400437b3]
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.140034490
int3

Function at 0x14012a500
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.14012b300
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.14012b300
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 0x14012a570
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1402ec214]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x14012a720
mov rax, qword [0x1402ec218]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14012a5bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14012a647
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x14012a5a0
mov rcx, r12
call fcn.14012b020
mov rbp, rax
test rax, rax
je 0x14012a77d
mov rax, qword [0x1402ec218]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.14012b150
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1402ec218]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14012a762
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14012a640
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14012a6d0
add dword [0x1402ec214], 1
cmp ebx, 8
jae 0x14012a678
test bl, 4
jne 0x14012a730
test ebx, ebx
je 0x14012a669
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x14012a750
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 0x14012a669
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 0x14012a6aa
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 [0x1402ec218]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14012a640
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14012a500
xor edi, edi
jmp 0x14012a5c7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x14012a669
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x14012a669
mov rax, qword [0x1402ec218]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.14012a500
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14012a500
nop
nop dword [rax]
Function at 0x14012ac90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1402ec280]
call qword [sym.imp.kernel32.dll_EnterCriticalSection]
mov rbx, qword [0x1402ec260]
test rbx, rbx
je 0x14012ace4
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 0x14012acdb
test r12, r12
je 0x14012acdb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14012acc0
lea rcx, [0x1402ec280]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.kernel32.dll_LeaveCriticalSection]

Function at 0x14012b020
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1402a5d60]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x14012b099
mov rcx, r10
call fcn.14012aef0
test eax, eax
je 0x14012b099
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 0x14012b096
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 0x14012b08d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x14012b099
add r8, 0x28
cmp r8, r9
jne 0x14012b078
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140131100
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 0x14013133b
mov r11, 0xffffffffffffffd4
cmp r9d, 0xc
ja 0x14013133b
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 0x1401311f4
mov rbp, qword [rsp + 0x68]
mov bp, word [rbp + rcx*2]
cmp bp, 0xffff
jne 0x1401311d8
mov ebp, edx
dec edx
mov byte [rbx + rbp*4 + 2], cl
mov rbp, qword [rsp + 0x80]
mov word [rbp + rcx*2], 1
jmp 0x1401311ef
mov rsi, qword [rsp + 0x80]
cmp bp, r15w
cmovge r11d, r13d
mov word [rsi + rcx*2], bp
mov sil, 1
inc rcx
jmp 0x1401311a9
test sil, sil
je 0x140131204
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 0x1401312ba
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 0x14013127a
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 0x140131272
mov qword [r13 + rdi], r12
add rdi, 8
jmp 0x140131262
add rbp, rsi
inc r11
jmp 0x14013123a
xor esi, esi
xor r11d, r11d
movsxd r12, r8d
cmp r12, rsi
ja 0x14013128c
xor r11d, r11d
jmp 0x1401312f9
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 0x140131282
xor r11d, r11d
xor eax, eax
cmp dword [rsp + 0xc], r11d
jbe 0x1401312ef
mov rsi, qword [rsp + 0x68]
movsx ebp, word [rsi + r11*2]
xor esi, esi
cmp ebp, esi
jle 0x1401312ea
mov r12d, eax
mov byte [rbx + r12*4 + 2], r11b
add eax, ecx
and eax, edi
cmp edx, eax
jb 0x1401312de
inc esi
jmp 0x1401312d2
inc r11
jmp 0x1401312bf
or r11, 0xffffffffffffffff
test eax, eax
je 0x140131287
jmp 0x14013133b
cmp r8d, r11d
jbe 0x140131338
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 0x1401312f9
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 0x14019bbc0
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 0x14019bdc5
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 0x14019bc44
cmp r13d, 2
jg 0x14019bcaa
je 0x14019bc7e
test r13d, r13d
js 0x14019bd27
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.140207780
jmp 0x14019bc96
cmp r13d, 0xa
jne 0x14019bd27
mov rdx, qword [rbx + 0x60]
mov r8, qword [rbx + 0x48]
lea rcx, str.SELECT__s_FROM__s_AS_T
call fcn.140207780
mov r9d, 5
mov r12, rax
test rax, rax
jne 0x14019bd68
mov esi, 7
jmp 0x14019bdc5
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.140207780
mov r12, rax
mov r9d, 1
test rax, rax
jne 0x14019bd68
jmp 0x14019bc74
mov esi, dword [rbx + 0x18]
lea ecx, [rsi + rsi + 3]
lea r12d, [rsi + 1]
movsxd rcx, ecx
call fcn.1402076e0
mov r9, rax
xor eax, eax
test r9, r9
je 0x14019bc74
cmp r12d, eax
jle 0x14019bcdc
mov byte [r9 + rax*2], 0x3f
mov byte [r9 + rax*2 + 1], 0x2c
inc rax
jmp 0x14019bcc7
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.140207780
mov r9, qword [rsp + 0x38]
mov r12, rax
mov rcx, r9
call fcn.1402067c0
mov r9d, 5
test r12, r12
jne 0x14019bd68
jmp 0x14019bc74
mov rdx, qword [rbx + 8]
mov rcx, qword [rsp + r13*8 + 0x48]
mov dword [rsp + 0xf8], r10d
mov r8, qword [rbx + 0x10]
call fcn.140207780
mov r12, rax
test rax, rax
je 0x14019bc74
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.140207be0
mov rcx, r12
mov esi, eax
mov rax, qword [rbp]
dec dword [rax + 0x78]
call fcn.1402067c0
test esi, esi
je 0x14019bdc5
test r14, r14
je 0x14019bdc5
mov rcx, qword [rbx]
call fcn.140205fd0
lea rcx, [0x14029c1a7]
mov rdx, rax
call fcn.140207780
mov qword [r14], rax
mov rcx, qword [rbp + r13*8 + 0x28]
mov qword [r15], rcx
call fcn.140208230
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 0x1401ac5b0
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.1401e8320
mov r8, rax
test rax, rax
jne 0x1401ac5e6
mov eax, 7
jmp 0x1401ac682
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 0x1401ac680
mov rax, qword [rbx + 0x50]
mov ecx, dword [rbx + 0x20]
cmp qword [rax], 0
mov dword [rdi + 0x18], ecx
je 0x1401ac627
mov rax, qword [rbx + 0x60]
test rax, rax
jg 0x1401ac62d
mov eax, dword [rbx + 0xb8]
mov qword [rdi], rax
mov eax, dword [rbx + 0x3c]
mov dword [rdi + 0x1c], eax
call fcn.1401bf550
mov dword [rdi + 0x20], 1
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1401ac5dc
mov rax, qword [rbx + 0x128]
test rax, rax
je 0x1401ac672
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 0x1401ac60a
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x1401b4120
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.1401dcdf0
test edi, edi
mov rcx, qword [rsp + 0x48]
jne 0x1401b418b
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.1401dcdf0
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x1401b74a0
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 0x1401b74f7
mov rdx, qword [rsp + r12*8 + 0x40]
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
call fcn.1401b7930
mov qword [rbx + r13*8 + 8], rax
cmp dword [rbx + 0x40], 0
jne 0x1401b75b0
mov r12, qword [rbx + r12*8 + 0x28]
mov r8, rsi
mov edx, 1
mov rcx, r12
call fcn.140203610
mov rcx, r12
call fcn.140208fb0
cmp eax, 0x65
jne 0x1401b7553
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.1401b73a0
jmp 0x1401b759f
cmp eax, 0x64
jne 0x1401b759f
xor edx, edx
mov rcx, r12
call fcn.1402044e0
mov r9, rax
cmp rax, rdi
je 0x1401b759f
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.1401b73a0
mov rcx, r12
call fcn.140208230
cmp dword [rbx + 0x40], 0
jne 0x1401b75b0
mov dword [rbx + 0x40], eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x1401d5f70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
mov eax, ecx
mov r8d, edx
cmp ecx, 0x7f
jg 0x1401d5f8f
lea edx, [rcx - 0x41]
cmp edx, 0x19
ja 0x1401d6030
add eax, 0x20
jmp 0x1401d6030
cmp ecx, 0xffff
jg 0x1401d6022
or rdx, 0xffffffffffffffff
xor r11d, r11d
mov r10d, 0xa2
lea r9, [0x1402a7900]
lea ecx, [r10 + r11]
sar ecx, 1
movsxd rbx, ecx
movzx ebx, word [r9 + rbx*4]
cmp eax, ebx
js 0x1401d5fca
lea r11d, [rcx + 1]
movsxd rdx, ecx
jmp 0x1401d5fce
lea r10d, [rcx - 1]
cmp r11d, r10d
jle 0x1401d5faf
movzx ecx, word [r9 + rdx*4]
movzx r10d, byte [r9 + rdx*4 + 3]
add r10d, ecx
cmp eax, r10d
jge 0x1401d600c
mov dl, byte [r9 + rdx*4 + 2]
xor ecx, eax
mov r9d, edx
and r9d, 1
test r9d, ecx
jne 0x1401d600c
shr dl, 1
lea rcx, [0x1402ab040]
and edx, 0x7f
add ax, word [rcx + rdx*2]
movzx eax, ax
test r8d, r8d
je 0x1401d6030
xor edx, edx
cmp r8d, 2
mov ecx, eax
sete dl
pop rbx
jmp fcn.1401b2760
lea edx, [rcx - 0x10400]
cmp edx, 0x27
ja 0x1401d6030
add eax, 0x28
pop rbx
ret
Function at 0x140212e60
Capabilities:
Create thread

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
xor r12d, r12d
xor esi, esi
movzx ebp, byte [rcx + 0x5b]
dec ebp
mov byte [rcx + 0x58], 1
mov rbx, rcx
cmp esi, ebp
jge 0x140212f58
movzx eax, byte [rbx + 0x5a]
lea eax, [rsi + rax + 1]
cdq
idiv ebp
movsxd rdi, edx
imul rax, rdi, 0x68
cmp dword [rbx + rax + 0x68], 0
lea r12, [rbx + rax + 0x60]
jne 0x140212eb2
imul rdi, rdi, 0x68
cmp qword [rbx + rdi + 0x60], 0
je 0x140212ec3
inc esi
jmp 0x140212e7c
mov rcx, r12
call fcn.140212fb0
test eax, eax
je 0x140212ea2
jmp 0x140212f7d
lea rdx, [rbx + 0x60]
mov rax, r12
mov rcx, qword [r12 + 0x28]
movups xmm0, xmmword [rbx + 0x38]
sub rax, rdx
movabs rdx, 0x4ec4ec4ec4ec4ec5
sar rax, 3
imul rax, rdx
mov byte [rbx + 0x5a], al
mov rax, qword [rbx + 0x48]
movups xmmword [r12 + 0x20], xmm0
mov qword [r12 + 0x30], rax
mov qword [rbx + 0x38], 0
mov dword [rbx + 0x48], 0
test rcx, rcx
je 0x140212f1c
mov qword [rbx + 0x40], rcx
call fcn.1401dc870
mov dword [rbx + 0x54], eax
jmp 0x140212f35
cmp qword [rbx + 0x40], 0
je 0x140212f35
movsxd rcx, dword [rbx + 0x54]
call fcn.1401dc700
mov qword [rbx + 0x40], rax
test rax, rax
je 0x140212f51
mov r8, r12
lea rdx, [0x140212f90]
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1401ef010
mov eax, 7
jmp 0x140212f7d
jne 0x140212ec3
movsxd rsi, esi
lea rdx, [rbx + 0x38]
imul rsi, rsi, 0x68
lea rcx, [rbx + rsi + 0x60]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140213030
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x14021e830
Capabilities:
Encode data using xor

Disassembly:
push rbx
xor r11d, r11d
movsxd rax, dword [rcx + 0xc]
mov r9, rdx
xor edx, edx
lea r10d, [rax + 1]
add rax, qword [rcx]
mov bl, byte [r9 + rdx]
xor byte [rax], bl
movsxd rax, r10d
cmp dword [rcx + 8], r10d
cmovle rax, r11
inc rdx
cmp r8d, edx
jg 0x14021e83d
add dword [rcx + 0x10], r8d
mov dword [rcx + 0xc], eax
pop rbx
ret