joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012eb60
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x1403214c0]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14012eb98
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14012ebef
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x14012ebfc
xor edx, edx
xor eax, eax
jmp 0x14012ec26
cmp eax, 0x103
je 0x14012ec30
test eax, eax
js 0x14012ec0f
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14012ec26
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x140321528]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.140126870
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140121de0
mov ecx, 7
int 0x29
ud2

Function at 0x14012ec80
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x1403214c0]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14012ecb8
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14012ed16
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14012ed43
test eax, eax
js 0x14012ed22
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14012ed39
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, [0x140321528]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.140126870
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140121de0
mov ecx, 7
int 0x29
ud2
Function at 0x14012eda0
Capabilities:
Create udp socket

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov edi, edx
cmp word [rcx], 0
mov eax, 2
mov r14d, 0x17
cmove r14d, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor ebx, ebx
mov ecx, r14d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14012ee81
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x14012ee08
mov esi, eax
cmp eax, 0x2726
jne 0x14012ee74
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, r14d
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14012ee6c
mov rsi, rax
xor ebx, ebx
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x14012ee81
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov ebx, 1
mov rsi, rdi
jmp 0x14012ee81
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov ebx, 1
mov rax, rbx
mov rdx, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

Function at 0x14012f880
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14034bf01]
mov ecx, 0x10
mov edx, 8
call fcn.140022700
test rax, rax
je 0x14012f96b
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14012fa20]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14012f95d
mov rax, qword [rbx]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], rbx
mov rax, qword [rbx + 8]
or byte [r8 - 0x77], cl
invalid
invalid
mov rax, qword [rax]
test rax, rax
je 0x14012f91a
mov rcx, qword [rbp - 0x18]
call rax
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
Function at 0x140131d70
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x208
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
mov rdx, qword [rdx]
mov rdi, qword [rax + 8]
movzx eax, word [rax + 0x10]
mov word [rbp + 0x186], ax
mov rax, qword [0x14034c448]
cmp rax, 3
jne 0x140131ea2
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
ja 0x140131ec8
lea rbx, [rbp - 0x60]
mov rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rdi - 0x60], 0
inc rdi
lea rcx, [rbp + 0x158]
mov rdx, rbx
mov r8, rdi
call fcn.14013e840
cmp qword [rbp + 0x158], 0
je 0x140131e11
lea rax, str._b_n2_
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140131e93
mov rcx, qword [rbp + 0x160]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x120], xmm0
movaps xmmword [rbp + 0x140], xmm0
movaps xmmword [rbp + 0x130], xmm0
mov dword [rbp + 0x128], 1
mov qword [rbp + 0x178], 0
lea r8, [rbp + 0x120]
lea r9, [rbp + 0x178]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x140131e74
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x140131e8c
mov rax, qword [rbp + 0x178]
movzx ecx, word [rbp + 0x186]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov rax, rsi
add rsp, 0x208
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rbx, rdx
call fcn.14028d910
mov rdx, rbx
lea rax, [rbp + 0x186]
mov qword [rbp + 0x170], rax
cmp rdi, 0x17f
jbe 0x140131dc7
lea r9, [rbp + 0x170]
mov rcx, rsi
mov r8, rdi
call fcn.14028d980
jmp 0x140131e93
Function at 0x140132010
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x60], xmm0
mov dword [rbp + 0x34], 0x80
lea rdx, [rbp - 0x60]
lea r8, [rbp + 0x34]
mov rcx, rax
call qword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14013209a
mov eax, dword [rbp + 0x34]
movzx ecx, word [rbp - 0x60]
cmp ecx, 0x17
je 0x1401320aa
cmp ecx, 2
jne 0x1401320e8
cmp eax, 0xf
jbe 0x140132102
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
jmp 0x1401320f8
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x1401320ef
cmp eax, 0x1b
jbe 0x14013211a
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov edx, dword [rbp - 0x48]
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rbp + 0x24], xmm0
mov word [rsi], 1
movups xmm0, xmmword [rbp + 0x22]
movups xmmword [rsi + 2], xmm0
movzx r8d, word [rbp + 0x32]
mov word [rsi + 0x12], r8w
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
jmp 0x1401320f8
lea rax, str.invalid_argument_
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb8
pop rsi
pop rbp
ret
lea rcx, [0x140321eb2]
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
mov edx, 0x39
call fcn.14028ecc0
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
mov edx, 0x3a
call fcn.14028ecc0
int3
Function at 0x140146370
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x1401463fa
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1401463f0
cmp r11, r10
ja 0x140146476
cmp r10, rdx
ja 0x140146488
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x1401463f2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1401463d0
jmp 0x140146457
ja 0x1401463fa
mov r11, r10
cmp rax, r8
jne 0x140146397
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14014645b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140146430
mov r8, r10
sub ecx, r9d
jns 0x14014644e
jmp 0x14014645d
cmp r10, rdx
je 0x14014646a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14014645d
xor al, 1
cmp r8, rdx
jne 0x140146410
jmp 0x14014645d
xor eax, eax
jmp 0x14014645d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14028eb80
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14028f160
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14028f0f0
int3
Function at 0x140171780
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
mov ebx, ecx
call fcn.14025f340
test eax, eax
jne 0x14017191d
mov qword [rsp + 0x30], rbp
xor ebp, ebp
cmp byte [0x140343054], bpl
mov qword [rsp + 0x38], rdi
jne 0x1401717b5
mov edi, ebp
jmp 0x1401717d1
mov ecx, 5
call qword [0x1403430c0]
mov rdi, rax
test rax, rax
je 0x1401717d1
mov rcx, rax
call qword [0x1403430d0]
test ebx, ebx
jle 0x1401718ff
test rsi, rsi
je 0x1401718ff
cmp dword [0x14034c0e0], ebp
jne 0x140171888
xor ecx, ecx
call fcn.14014e9d0
movups xmm0, xmmword [str.expand_32_byte_kH_n_]
movaps xmmword [0x14034c0e0], xmm0
test rax, rax
jne 0x140171828
xorps xmm0, xmm0
mov qword [0x14034c110], rax
movups xmmword [0x14034c0f0], xmm0
mov dword [0x14034c118], eax
movups xmmword [0x14034c100], xmm0
jmp 0x14017186c
mov ecx, dword [0x140343200]
test ecx, ecx
je 0x14017185a
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x14034c0f0], xmm0
mov dword [0x14034c0f0], ecx
movups xmmword [0x14034c100], xmm0
mov qword [0x14034c110], rax
mov dword [0x14034c118], eax
jmp 0x14017186c
lea r8, [0x14034c0f0]
mov edx, 0x2c
mov rcx, rax
call qword [rax + 0x68]
mov eax, dword [0x14034c110]
xor cl, cl
mov byte [0x14034c160], cl
mov dword [0x14034c11c], eax
mov dword [0x14034c110], ebp
jmp 0x14017188f
movzx ecx, byte [0x14034c160]
movzx eax, cl
lea rbp, [0x14034c120]
cmp ebx, eax
jle 0x1401718e1
nop dword [rax]
test cl, cl
je 0x1401718bf
movzx r8d, cl
mov rdx, rbp
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movzx ecx, byte [0x14034c160]
sub ebx, ecx
add rsi, rcx
inc dword [0x14034c110]
lea rdx, [0x14034c0e0]
mov rcx, rbp
call fcn.14017f3a0
mov cl, 0x40
mov byte [0x14034c160], cl
cmp ebx, 0x40
jg 0x1401718a0
movzx eax, cl
mov rcx, rsi
sub eax, ebx
movsxd r8, ebx
movsxd rdx, eax
add rdx, rbp
call sub.VCRUNTIME140.dll_memcpy
sub byte [0x14034c160], bl
jmp 0x140171905
mov dword [0x14034c0e0], ebp
test rdi, rdi
je 0x140171913
mov rcx, rdi
call qword [0x1403430e0]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x14017a310
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rsi, qword [rcx + 0xa0]
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
mov r12, qword [rcx]
test rsi, rsi
je 0x14017a509
mov qword [rsp + 0x68], r13
xor r13d, r13d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x60], rbp
nop dword [rax + rax]
movsxd r14, dword [rsi + 0x10]
movzx eax, byte [rbx + 0x1f]
mov r15d, dword [rsi + 0x14]
shl r14, 5
add r14, qword [r12 + 0x20]
test al, al
jne 0x14017a371
inc dword [rbx + 0x38]
mov ebp, dword [rbx + 0x38]
jmp 0x14017a380
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov ebp, dword [rbx + rax*4 + 0xe4]
movsxd rcx, dword [rdi + 0x90]
lea r8d, [r15 + 2]
lea edx, [rcx + 7]
cmp dword [rdi + 0x94], ecx
jg 0x14017a3ad
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x37
mov rcx, rdi
call fcn.1401d24b0
jmp 0x14017a3db
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x37
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r13
mov r9, qword [r14 + 0x18]
xor edx, edx
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], 0x71
mov r9, qword [r9 + 0x68]
call fcn.14022b520
mov eax, dword [rdi + 0x90]
add eax, 5
cmp eax, dword [rdi + 0x94]
jle 0x14017a41f
mov edx, 5
mov rcx, rdi
call fcn.1401d2520
test eax, eax
jne 0x14017a4f5
movsxd rax, dword [rdi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], 0x33
mov dword [rax + rcx*8 + 4], r13d
lea rax, [rax + rcx*8]
mov ecx, dword [rdi + 0x90]
mov dword [rax + 0xc], r13d
add ecx, 2
mov dword [rax + 8], ecx
mov byte [rax + 1], r13b
mov qword [rax + 0x10], r13
mov word [rax + 2], r13w
mov qword [rax + 0x18], 0x7f
mov qword [rax + 0x20], r13
mov qword [rax + 0x28], r13
mov qword [rax + 0x30], 0x61
mov qword [rax + 0x38], 2
mov qword [rax + 0x40], r13
mov qword [rax + 0x48], 0x80
mov qword [rax + 0x50], r13
mov qword [rax + 0x58], r13
mov qword [rax + 0x60], 0x7a
mov qword [rax + 0x68], r13
mov qword [rax + 0x70], r13
add dword [rdi + 0x90], 5
test rax, rax
je 0x14017a4f5
mov dword [rax + 0x3c], ebp
lea edx, [r15 + 1]
mov dword [rax + 4], edx
lea ecx, [r15 - 1]
mov dword [rax + 0x20], edx
mov dword [rax + 0x34], ecx
mov dword [rax + 0x54], edx
mov dword [rax + 0x50], ebp
mov word [rax + 0x4a], 8
test ebp, ebp
je 0x14017a4e9
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x14017a4e9
mov dword [rbx + rax*4 + 0xe4], ebp
inc byte [rbx + 0x1f]
mov rsi, qword [rsi]
test rsi, rsi
jne 0x14017a350
mov rbp, qword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14018b710
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rdi
push r14
sub rsp, 0x68
movzx eax, byte [rdx]
mov r14, rdx
mov rdi, rcx
cmp al, 0xb0
jne 0x14018b729
movzx eax, byte [rdx + 2]
cmp al, 0xb1
jne 0x14018b733
mov rcx, qword [rdx + 0x20]
jmp 0x14018b743
cmp al, 0x8a
jne 0x14018b8c7
mov rax, qword [rdx + 0x20]
mov rcx, qword [rax + 0x20]
movsxd rcx, dword [rcx]
cmp ecx, 1
je 0x14018b8c7
mov dword [r8], 0
cmp byte [rdx], 0x8a
jne 0x14018b76a
mov rcx, rdi
add rsp, 0x68
pop r14
pop rdi
jmp fcn.1401ff2c0
mov eax, dword [rdi + 0x38]
mov qword [rsp + 0x60], r12
mov r12, rcx
mov qword [rsp + 0x58], r13
lea r13d, [rax + 1]
add eax, ecx
mov dword [rsp + 0x88], r13d
mov dword [rdi + 0x38], eax
test ecx, ecx
jle 0x14018b8b2
mov qword [rsp + 0x80], rbx
lea rcx, [0x14023c350]
mov qword [rsp + 0x90], rbp
mov edx, 2
mov qword [rsp + 0x50], r15
mov ebp, r13d
xor r15d, r15d
mov qword [rsp + 0x98], rsi
lea r13, [fcn.14018cb00]
nop dword [rax]
cmp byte [rdi + 0x23], 0
mov rax, qword [r14 + 0x20]
mov rbx, qword [rax + r15 + 8]
je 0x14018b820
mov word [rsp + 0x44], dx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x48], 0
test rbx, rbx
je 0x14018b810
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14026bc20
cmp word [rsp + 0x44], 0
je 0x14018b820
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.140208930
jmp 0x14018b860
mov rsi, qword [rdi]
test rbx, rbx
je 0x14018b83c
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.14018bba0
mov rbx, rax
cmp byte [rsi + 0x67], 0
jne 0x14018b850
mov r8d, ebp
mov rdx, rbx
mov rcx, rdi
call fcn.140206e50
test rbx, rbx
je 0x14018b860
mov rdx, rbx
mov rcx, rsi
call fcn.14020ad70
inc ebp
lea rcx, [0x14023c350]
add r15, 0x20
mov edx, 2
sub r12, 1
jne 0x14018b7d0
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
mov eax, dword [rsp + 0x88]
mov r12, qword [rsp + 0x60]
mov r13, qword [rsp + 0x58]
add rsp, 0x68
pop r14
pop rdi
ret
mov r12, qword [rsp + 0x60]
mov eax, r13d
mov r13, qword [rsp + 0x58]
add rsp, 0x68
pop r14
pop rdi
ret
mov rcx, rdi
add rsp, 0x68
pop r14
pop rdi
jmp fcn.14020a400
Function at 0x1401e98e0
Capabilities:
Reference sql statements

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, 0x40
mov r14d, dword [rsp + 0x70]
mov ebx, r8d
mov dword [rax - 0x18], r14d
mov rbp, r9
mov qword [rax - 0x20], r9
mov rdi, rdx
mov r9, rdx
mov byte [rcx + 0x1c], 1
mov r8, rdx
mov dword [rax - 0x28], ebx
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 rsi, rcx
call fcn.14022b150
test ebx, ebx
jne 0x1401e9949
mov r9, rbp
mov dword [rsp + 0x20], r14d
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___Q___d_NULL
mov rcx, rsi
call fcn.14022b150
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1401ecfc0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r12
push r15
sub rsp, 0x20
xor edi, edi
mov r12, r8
mov r15, rdx
mov rbx, rcx
cmp dword [rcx + 0x40], edi
jne 0x1401ecffc
cmp qword [rcx + 0x20], rdi
jne 0x1401ecffc
mov r9, qword [rcx + 0x10]
lea rdx, str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
mov r8, qword [rcx + 8]
call fcn.1401ed5f0
mov qword [rbx + 0x20], rax
cmp dword [rbx + 0x40], edi
jne 0x1401ed14a
mov rcx, qword [rbx + 0x20]
mov r8, r15
mov edx, 1
call fcn.1401735b0
mov rcx, qword [rbx + 0x20]
call fcn.1401745e0
cmp eax, 0x64
jne 0x1401ed11a
mov rcx, qword [rbx + 0x20]
xor edx, edx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x40], rbp
call fcn.140148ff0
mov rsi, qword [rbx + 0x20]
movsxd r14, eax
test rsi, rsi
jne 0x1401ed05f
lea rcx, [0x14029d6e8]
call fcn.14014a360
mov rbp, rax
jmp 0x1401ed0d7
mov rax, qword [rsi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1401ed071
call qword [0x1403430d0]
mov rcx, qword [rsi + 0xa0]
test rcx, rcx
je 0x1401ed086
cmp di, word [rsi + 0xc0]
jb 0x1401ed0a1
mov rcx, qword [rsi]
mov edx, 0x19
mov dword [rcx + 0x50], 0x19
call fcn.140205c50
lea rcx, [0x14029d6e8]
call fcn.14014a360
mov rcx, qword [rsi]
mov rbp, rax
mov edx, dword [rsi + 0x34]
cmp byte [rcx + 0x67], dil
jne 0x1401ed0bd
test edx, edx
jne 0x1401ed0bd
mov eax, edi
jmp 0x1401ed0c2
call fcn.140179e40
mov dword [rsi + 0x34], eax
mov rax, qword [rsi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1401ed0d7
call qword [0x1403430e0]
call fcn.14025f340
test eax, eax
jne 0x1401ed0f0
mov rcx, r14
call fcn.14022a800
mov rdi, rax
test rax, rax
jne 0x1401ed0f9
mov dword [rbx + 0x40], 7
jmp 0x1401ed10b
mov r8, r14
mov rdx, rbp
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov dword [r12], r14d
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
mov rcx, qword [rbx + 0x20]
call fcn.1401493b0
mov ecx, dword [rbx + 0x40]
test ecx, ecx
jne 0x1401ed14a
mov dword [rbx + 0x40], eax
mov ecx, eax
test eax, eax
jne 0x1401ed14a
test rdi, rdi
jne 0x1401ed14a
mov r8, r15
lea rdx, str.Node__lld_missing_from_database
mov rcx, rbx
call fcn.1401ecf40
mov rbx, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x20
pop r15
pop r12
pop rdi
ret
Function at 0x1401ed160
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
lea rax, str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
movsxd r15, edx
mov rdi, qword [rcx + r15*8 + 0x28]
lea r14, [rcx + r15*8]
mov qword [rsp + 0x40], rax
lea rax, str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov qword [rsp + 0x48], rax
mov rbp, r9
mov rsi, r8
mov rbx, rcx
test rdi, rdi
jne 0x1401ed1c3
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
mov rdx, qword [rsp + r15*8 + 0x40]
call fcn.1401ed5f0
mov rdi, rax
mov qword [r14 + 0x28], rax
cmp dword [rbx + 0x40], 0
jne 0x1401ed279
mov r8, rsi
mov edx, 1
mov rcx, rdi
call fcn.1401735b0
mov rcx, rdi
call fcn.1401745e0
cmp eax, 0x65
jne 0x1401ed21b
test r15d, r15d
lea rcx, str.__rowid
lea rax, str.__parent
mov r9, rbp
cmovne rax, rcx
lea rdx, str.Mapping___lld_____lld__missing_from__s_table
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov r8, rsi
call fcn.1401ecf40
jmp 0x1401ed268
cmp eax, 0x64
jne 0x1401ed268
xor edx, edx
mov rcx, rdi
call fcn.140148c30
mov r9, rax
cmp rax, rbp
je 0x1401ed268
test r15d, r15d
mov qword [rsp + 0x30], rbp
lea rcx, str.__rowid
mov qword [rsp + 0x28], rsi
lea rax, str.__parent
mov r8, rsi
cmovne rax, rcx
lea rdx, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1401ecf40
mov rcx, rdi
call fcn.1401493b0
cmp dword [rbx + 0x40], 0
jne 0x1401ed279
mov dword [rbx + 0x40], eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
Function at 0x14020d670
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
xor r11d, r11d
mov rdi, r8
mov ebx, r11d
mov r14, rdx
mov rsi, rcx
cmp dword [rcx + 0x28], ebx
jle 0x14020d779
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r12
lea r12, [0x1402a1d48]
mov qword [rsp + 0x20], r15
lea r15, [0x14029c680]
nop
mov rax, qword [rsi + 0x20]
mov r10d, ebx
xor r10d, 1
cmp ebx, 2
cmovge r10d, ebx
movsxd rcx, r10d
shl rcx, 5
mov rbp, qword [rcx + rax + 0x18]
test rdi, rdi
je 0x14020d6f1
mov r8, qword [rcx + rax]
mov r9, rdi
sub r9, r8
nop dword [rax]
movzx ecx, byte [r8]
movzx eax, byte [r9 + r8]
cmp ecx, eax
jne 0x14020d72c
test ecx, ecx
jne 0x14020d73a
lea rcx, [rbp + 0x20]
xor r8d, r8d
mov rdx, r14
call fcn.14018dfa0
mov r11, qword [rax + 0x10]
test r11, r11
jne 0x14020d710
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x14020d6b0
mov r12, qword [rsp + 0x60]
mov rax, r11
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx edx, byte [rax + r15]
movzx ecx, byte [rcx + r15]
cmp ecx, edx
jne 0x14020d73f
inc r8
jmp 0x14020d6e0
test r10d, r10d
jne 0x14020d709
mov r9, rdi
mov rax, r12
sub r9, r12
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [r9 + rax]
cmp edx, ecx
jne 0x14020d765
test edx, edx
je 0x14020d6f1
inc rax
jmp 0x14020d750
movzx r8d, byte [rcx + r15]
movzx edx, byte [rdx + r15]
cmp edx, r8d
jne 0x14020d709
inc rax
jmp 0x14020d750
mov rax, r11
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret