joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140046a80
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x140300b88]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r14, r9
mov r15, rdx
mov rdi, rcx
mov r12, qword [rsp + 0xd0]
mov rsi, qword [r8]
xor r13d, r13d
test rsi, rsi
je 0x140046ba4
cmp byte [rcx + 4], r13b
je 0x140046ad1
mov eax, dword [rsi + 0x20]
cmp dword [rcx], eax
jl 0x140046ba4
lea rbx, [rsi + 0x60]
mov qword [rsp + 0x50], rbx
mov rcx, rbx
call fcn.14020a500
test eax, eax
jne 0x140046cb2
mov r9, r15
mov r8, rdi
lea rdx, str._FT_T
lea rcx, [rsp + 0x30]
call fcn.140044280
nop
mov rdx, qword [rsi + 0x50]
cmp rdx, qword [rsi + 0x58]
je 0x140046b43
mov qword [rdx], r13
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], r13
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rdx + 0x10], xmm1
mov qword [rsp + 0x40], r13
mov eax, recv
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x30], 0
add qword [rsi + 0x50], 0x20
jmp 0x140046b56
lea r8, [rsp + 0x30]
lea rcx, [rsi + 0x48]
call fcn.1400456f0
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x140046b90
lea rdx, [rax + 1]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046b8a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140046cba
call fcn.1402090c4
nop
mov rcx, rbx
call fcn.14020a508
lea rcx, [rsi + 0xb0]
call fcn.14020b050
mov rbx, qword [r14]
test rbx, rbx
je 0x140046c5c
cmp qword [rbx + 8], 0xffffffffffffffff
je 0x140046c5c
cmp byte [rdi + 4], 0
je 0x140046bcb
mov eax, dword [rbx]
cmp dword [rdi], eax
jl 0x140046c5c
mov r9, r15
mov r8, rdi
lea rdx, str._H:_M:_S
lea rcx, [rsp + 0x30]
call fcn.140044280
nop
lea rdx, [rsp + 0x30]
cmp byte [rbx + 0x10], 0
je 0x140046bf8
mov rcx, rbx
call fcn.1400447c0
jmp 0x140046c23
mov dword [rsp + 0x50], r13d
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x40]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140046c5c
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046c57
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140046cac
call fcn.1402090c4
mov rax, qword [r12]
test rax, rax
je 0x140046c8e
mov rcx, qword [rax + 0x38]
test rcx, rcx
je 0x140046c8e
cmp byte [rdi + 4], 0
je 0x140046c7b
mov eax, dword [rax + 0x40]
cmp dword [rdi], eax
jl 0x140046c8e
mov rax, qword [rcx]
mov r8, r15
mov rdx, rdi
mov rax, qword [rax + 0x10]
call qword [case.0x14004822f.0]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140208e10
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140212258
int3
mov ecx, eax
call fcn.14020a1d4
nop
call fcn.140212258
nop
Function at 0x14004e920
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x100
mov rax, qword [0x140300b88]
xor rax, rsp
mov qword [rsp + 0xf0], rax
xor ebp, ebp
mov dword [rsp + 0x50], ebp
lea rdi, [0x140301d10]
mov rcx, rdi
cmp qword [0x140301d28], 8
cmovae rcx, qword [0x140301d10]
lea rdx, [rsp + 0x50]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x14004e9ab
mov ecx, esi
call fcn.140209a80
mov r15, rax
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.14020dff0
mov qword [rsp + 0x60], r15
test r15, r15
jne 0x14004e9b2
mov rcx, r15
call fcn.1402090c4
xor al, al
jmp 0x14004eb3a
xor r12b, r12b
cmp qword [0x140301d28], 8
cmovae rdi, qword [0x140301d10]
mov r9, r15
mov r8d, esi
xor edx, edx
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14004eb2e
mov edi, 0x409
mov esi, 0x4b0
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x48]
lea rdx, str.VarFileInfoTranslation
mov rcx, r15
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14004ea12
mov rax, qword [rsp + 0x48]
movzx edi, word [rax]
movzx esi, word [rax + 2]
lea rax, [0x1402d6770]
mov qword [rsp + 0x30], rax
lea rax, [0x1402d6808]
mov qword [rsp + 0x38], rax
mov r14d, ebp
lea r13, [rsp + 0x30]
mov ebx, ebp
mov rbp, qword [r13]
nop dword [rax + rax]
movzx r9d, si
movzx r8d, di
mov qword [rsp + 0x20], rbp
lea rdx, str.StringFileInfo_04x_04x_ls
lea rcx, [rsp + 0x70]
call fcn.14004eb80
cmp eax, 0x3f
ja 0x14004eab2
cdqe
add rax, rax
cmp rax, 0x80
jae 0x14004eb6b
xor ecx, ecx
mov word [rsp + rax + 0x70], cx
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov rcx, r15
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x14004eabb
mov eax, 0x409
cmp di, ax
jne 0x14004eaab
mov ecx, 0x4b0
cmp si, cx
je 0x14004eab2
mov edi, eax
mov esi, 0x4b0
inc ebx
cmp ebx, 2
jge 0x14004eb1a
jmp 0x14004ea40
test r14d, r14d
jne 0x14004eae4
mov rdx, qword [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14004ead0
lea rcx, [0x140301d30]
jmp 0x14004eb12
cmp r14d, 1
jne 0x14004eb17
mov rdx, qword [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14004eb00
lea rcx, [0x140301cf0]
call fcn.140001e70
mov r12b, 1
inc r14d
add r13, 8
cmp r14d, 2
jae 0x14004eb2e
xor ebp, ebp
jmp 0x14004ea32
mov rcx, r15
call fcn.1402090c4
movzx eax, r12b
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140208e10
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.1402092e0
nop
int3
Function at 0x14004ebe0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
lea rsi, [0x1403089e0]
cmp word [0x1403089e0], 0
jne 0x14004ec22
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], ax
mov r8, 0xffffffffffffffff
inc r8
cmp word [rsi + r8*2], ax
jne 0x14004ec43
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140001e70
nop
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14004c640
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14004ecaa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004eca5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004ecbf
call fcn.1402090c4
mov rax, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140212258
int3
Function at 0x14004ecd0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x140300b88]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rsi, rdx
mov rdi, rcx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.14004caa0
nop
xor bl, bl
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x14004ed3f
mov ebx, dword [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
and ebx, 0x10
setne bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14004ed81
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ed7c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004eea8
call fcn.1402090c4
test bl, bl
je 0x14004ed8c
mov al, 1
jmp 0x14004ee7d
mov rbx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14004ed99
mov rbx, qword [rdi]
mov edx, 0x5c
mov rcx, rbx
call fcn.14020d544
mov r8, rax
xor eax, eax
test r8, r8
je 0x14004edcd
sub r8, rbx
sar r8, 1
je 0x14004edd0
cmp word [rbx + r8*2 - 2], 0x3a
jne 0x14004edd0
cmp qword [rdi + 0x10], 3
je 0x14004edcd
inc r8
jmp 0x14004edd0
mov r8, rax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], ax
cmp qword [rdi + 0x10], r8
cmovb r8, qword [rdi + 0x10]
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14004edfe
mov rdx, qword [rdi]
lea rcx, [rsp + 0x20]
call fcn.140001e70
nop
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.14004ecd0
test al, al
sete bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14004ee59
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004ee54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004eea2
call fcn.1402090c4
test bl, bl
je 0x14004ee61
xor al, al
jmp 0x14004ee7d
cmp qword [rdi + 0x18], 8
jb 0x14004ee6b
mov rdi, qword [rdi]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
sete al
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140208e10
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140212258
int3
call fcn.140212258
int3
Function at 0x140077b20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
movzx eax, byte [rcx + 0x1f]
mov rsi, rcx
mov qword [rsp + 0x68], r12
mov r12d, r9d
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x38], r14
mov r14, qword [rcx + 0x10]
mov qword [rsp + 0x30], r15
mov r15d, edx
test al, al
jne 0x140077b59
inc dword [rcx + 0x54]
mov ebp, dword [rcx + 0x54]
jmp 0x140077b65
dec al
movzx eax, al
mov byte [rcx + 0x1f], al
mov ebp, dword [rcx + rax*4 + 0x24]
mov r13d, dword [rsp + 0x80]
mov r9d, r8d
mov r8d, r15d
mov dword [rsp + 0x20], r13d
mov edx, 0x45
mov rcx, r14
call fcn.1401089e0
mov r8, qword [r14 + 8]
xor edi, edi
mov rcx, qword [r14]
test r8, r8
je 0x140077be0
cmp byte [rcx + 0x51], dil
jne 0x140077be0
mov qword [rsp + 0x60], rbx
test eax, eax
jns 0x140077ba8
mov eax, dword [r14 + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
lea rbx, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rbx + 0x10]
call fcn.140087680
mov qword [rbx + 0x10], rdi
mov dword [rbx + 0x10], r12d
mov byte [rbx + 1], 0xf2
mov rbx, qword [rsp + 0x60]
nop dword [rax]
nop word [rax + rax]
mov r9d, r12d
mov dword [rsp + 0x20], ebp
mov r8d, r13d
mov edx, 0x31
mov rcx, r14
call fcn.1401089e0
mov r9d, ebp
mov dword [rsp + 0x20], edi
mov r8d, r15d
mov edx, WSASetLastError
mov rcx, r14
call fcn.1401089e0
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r13, qword [rsp + 0x70]
mov r12, qword [rsp + 0x68]
test ebp, ebp
je 0x140077c59
movzx ecx, byte [rsi + 0x1f]
cmp cl, 8
jae 0x140077c59
lea rax, [rsi + 0x88]
cmp dword [rax + 0xc], ebp
je 0x140077c55
inc edi
add rax, 0x14
cmp edi, 0xa
jl 0x140077c36
mov dword [rsi + rcx*4 + 0x24], ebp
inc byte [rsi + 0x1f]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov byte [rax + 6], 1
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400bb900
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, edx
mov edi, 0x40
shl rax, 4
mov rbx, rcx
cmp rax, 0x400
cmovbe edi, edx
cmp edi, dword [rcx]
je 0x1400bbad6
mov rax, qword [0x140303480]
test rax, rax
je 0x1400bb93c
call rax
mov ecx, edi
shl rcx, 4
call fcn.1400f1360
mov rcx, qword [0x140303488]
mov rsi, rax
test rcx, rcx
je 0x1400bb958
call rcx
test rsi, rsi
je 0x1400bbad6
mov rdi, qword [rbx + 0x10]
test rdi, rdi
je 0x1400bb9c5
cmp dword [0x1402fd010], 0
je 0x1400bb9bc
mov rcx, qword [0x140303640]
test rcx, rcx
je 0x1400bb985
call qword [0x1402fd098]
mov rcx, rdi
call qword [0x1402fd050]
dec qword [0x140303428]
mov rcx, rdi
movsxd rdx, eax
sub qword [0x1403033e0], rdx
call qword [0x1402fd040]
mov rcx, qword [0x140303640]
test rcx, rcx
je 0x1400bb9c5
call qword [0x1402fd0a8]
jmp 0x1400bb9c5
mov rcx, rdi
call qword [0x1402fd040]
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [0x1402fd050]
movsxd rdi, eax
xor edx, edx
shr rdi, 4
mov rcx, rsi
mov r8d, edi
shl r8, 4
mov dword [rbx], edi
call fcn.14020dff0
mov rcx, qword [rbx + 8]
xor r10d, r10d
mov qword [rbx + 8], r10
test rcx, rcx
je 0x1400bbac1
lea r11, [0x14024c050]
nop word [rax + rax]
mov r9, qword [rcx + 0x18]
mov eax, r10d
movzx edx, byte [r9]
test dl, dl
je 0x1400bba41
nop
movzx edx, dl
lea r9, [r9 + 1]
movzx r8d, byte [rdx + r11]
lea edx, [rax*8]
xor r8d, edx
movzx edx, byte [r9]
xor eax, r8d
test dl, dl
jne 0x1400bba20
mov r9, qword [rcx]
xor edx, edx
div edi
mov r8d, edx
shl r8, 4
add r8, rsi
je 0x1400bba99
mov eax, dword [r8]
test eax, eax
je 0x1400bba61
mov rdx, qword [r8 + 8]
jmp 0x1400bba64
mov rdx, r10
inc eax
mov qword [r8 + 8], rcx
mov dword [r8], eax
test rdx, rdx
je 0x1400bba99
mov qword [rcx], rdx
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov rax, qword [rdx + 8]
test rax, rax
je 0x1400bba8f
mov qword [rax], rcx
mov qword [rdx + 8], rcx
jmp 0x1400bbab5
mov qword [rbx + 8], rcx
mov qword [rdx + 8], rcx
jmp 0x1400bbab5
mov rax, qword [rbx + 8]
mov qword [rcx], rax
mov rax, qword [rbx + 8]
test rax, rax
je 0x1400bbaad
mov qword [rax + 8], rcx
mov qword [rcx + 8], r10
mov qword [rbx + 8], rcx
mov rcx, r9
test r9, r9
jne 0x1400bba10
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bc8c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x140300b88]
xor rax, rsp
mov qword [rbp + 0x40], rax
movdqa xmm0, xmmword [0x140258810]
lea r10d, [rcx*8]
movdqa xmm1, xmmword [0x140258820]
xor r11d, r11d
movdqa xmmword [rbp - 0x30], xmm0
mov eax, 0xf79e
movdqa xmm0, xmmword [0x140258840]
mov ebx, ecx
movdqa xmmword [rbp - 0x20], xmm1
or r10d, 7
movdqa xmm1, xmmword [str.usthaeoy]
mov ecx, 0x64
movdqa xmmword [rbp - 0x10], xmm0
mov r9d, r11d
movdqa xmm0, xmmword [0x140258830]
movdqa xmmword [rbp], xmm1
movdqa xmm1, xmmword [0x140258800]
movdqa xmmword [rbp + 0x10], xmm0
movdqa xmmword [rbp + 0x20], xmm1
mov dword [rsp], 0x7050000
mov dword [rsp + 4], 0x7430738
mov dword [rsp + 8], 0x7880763
mov dword [rsp + 0xc], 0x7cb0794
mov dword [rsp + 0x10], 0x7f807e8
mov dword [rsp + 0x14], 0x83e080c
mov dword [rsp + 0x18], 0x89e0878
mov dword [rsp + 0x1c], 0x8ee08d8
mov dword [rsp + 0x20], 0x94f0928
mov dword [rsp + 0x24], 0x9b809a8
mov dword [rsp + 0x28], 0xa2409d4
mov dword [rsp + 0x2c], 0xaac0a6c
mov dword [rsp + 0x30], 0xb1a0ade
mov dword [rsp + 0x34], 0xb8a0b4e
mov dword [rsp + 0x38], 0xbb80ba8
mov dword [rsp + 0x3c], 0xd080bd4
mov dword [rsp + 0x40], 0xe700d80
mov dword [rsp + 0x44], 0xe900e80
mov dword [rsp + 0x48], 0xf380ea0
mov dword [rsp + 0x4c], 0xf580f48
mov dword [rsp + 0x50], 0xfa80f80
mov dword [rsp + 0x54], 0x100a0fc8
mov dword [rsp + 0x58], 0x104a102a
mov dword [rsp + 0x5c], 0x108a106a
mov dword [rsp + 0x60], 0x10c810aa
mov dword [rsp + 0x64], 0x10f810d8
mov dword [rsp + 0x68], 0x11481138
mov dword [rsp + 0x6c], 0x11981178
mov dword [rsp + 0x70], 0x18361804
mov dword [rsp + 0x74], 0x18881878
mov dword [rsp + 0x78], 0x191d18d8
mov dword [rsp + 0x7c], 0x19811969
mov dword [rbp - 0x80], 0xf01cf008
mov dword [rbp - 0x7c], 0xf098f05e
mov dword [rbp - 0x78], 0xf0f8f0ca
mov dword [rbp - 0x74], 0xf11ef108
mov dword [rbp - 0x70], 0xf168f158
mov dword [rbp - 0x6c], 0xf1b8f18c
mov dword [rbp - 0x68], 0xf1fcf1da
mov dword [rbp - 0x64], 0xf2aaf22e
mov dword [rbp - 0x60], 0xf2f8f2ca
mov dword [rbp - 0x5c], 0xf35ef30a
mov dword [rbp - 0x58], 0xf3eaf39c
mov dword [rbp - 0x54], 0xf448f40e
mov dword [rbp - 0x50], 0xf478f45a
mov dword [rbp - 0x4c], 0xf4b0f48c
mov dword [rbp - 0x48], 0xf4c0f4b8
mov dword [rbp - 0x44], 0xf50af4c8
mov dword [rbp - 0x40], 0xf64af5cc
mov dword [rbp - 0x3c], 0xf72af66a
mov word [rbp - 0x38], ax
mov dword [rbp + 0x30], 0x756f6965
mov byte [rbp + 0x34], 0x79
nop dword [rax + rax]
lea eax, [r9 + rcx]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
movzx r8d, word [rsp + rdx*2]
lea edx, [rax + 1]
cmp r10d, r8d
cmovb edx, r9d
mov r9d, edx
lea edx, [rax - 1]
cmovb eax, r11d
cmovb ecx, edx
movsxd r11, eax
cmp ecx, r9d
jge 0x1400bcae0
movzx eax, word [rsp + r11*2]
mov ecx, eax
and eax, 7
shr ecx, 3
add ecx, eax
mov eax, ebx
cmp ebx, ecx
jg 0x1400bcb2b
movsx eax, byte [rbp + r11 - 0x30]
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140208e10
mov rbx, qword [rsp + 0x160]
add rsp, 0x150
pop rbp
ret
Function at 0x1400c02b0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov r8, qword [rdx + 0x38]
mov rbp, rdx
mov rdx, qword [rdx + 0x30]
mov rbx, rcx
lea rcx, str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
xor edi, edi
call fcn.140061bf0
mov rsi, rax
test rax, rax
jne 0x1400c02f0
lea eax, [rdi + 7]
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov qword [rsp + 0x60], r14
mov rcx, rbx
mov r14d, 1
mov qword [rsp + 0x20], rdi
mov r9d, r14d
lea r8d, [r14 - 2]
call fcn.1400f0db0
mov ebx, eax
test eax, eax
jne 0x1400c0443
mov rcx, qword [rsp + 0x68]
call fcn.1400648f0
cmp eax, 0x64
jne 0x1400c041a
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x1400c03c1
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1400c037d
cmp di, word [rbx + 0x88]
jae 0x1400c037d
mov rax, qword [rbx]
mov rdx, qword [rax + 0x18]
test rdx, rdx
je 0x1400c0373
mov rcx, rdx
call qword [0x1402fd098]
mov rcx, qword [rbx + 0x28]
call fcn.140111da0
mov rdi, rax
jmp 0x1400c03d5
mov rax, qword [rbx]
test rax, rax
je 0x1400c03c1
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1400c0397
call qword [0x1402fd098]
mov rax, qword [rbx]
mov rcx, qword [rax + 0x140]
mov dword [rax + 0x44], 0x19
test rcx, rcx
je 0x1400c03c1
mov eax, 0x2460
test word [rcx + 8], ax
je 0x1400c03bc
call fcn.14011e400
jmp 0x1400c03c1
mov word [rcx + 8], r14w
lea rcx, [0x14024c638]
call fcn.140111da0
mov rdi, rax
test rbx, rbx
je 0x1400c041a
mov rcx, qword [rbx]
mov edx, dword [rbx + 0x84]
test rcx, rcx
jne 0x1400c03e8
movzx eax, dl
jmp 0x1400c0402
cmp byte [rcx + 0x51], 0
jne 0x1400c03fd
cmp edx, 0xc0a
je 0x1400c03fd
mov eax, dword [rcx + 0x48]
and eax, edx
jmp 0x1400c0402
call fcn.1400710e0
mov rcx, qword [rbx]
mov dword [rbx + 0x84], eax
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x1400c041a
call qword [0x1402fd0a8]
mov rcx, qword [rsp + 0x68]
call fcn.1400654c0
mov ebx, eax
mov ecx, eax
test eax, eax
jne 0x1400c0452
test rdi, rdi
je 0x1400c044a
mov eax, 0x64
cmp rdi, rax
cmovg rax, rdi
mov qword [rbp + 0x48], rax
jmp 0x1400c0452
cmp eax, 7
je 0x1400c0452
mov ebx, edi
mov qword [rbp + 0x48], 0x100000
cmp dword [0x1402fd010], 0
mov r14, qword [rsp + 0x60]
je 0x1400c04b6
mov rcx, qword [0x140303640]
test rcx, rcx
je 0x1400c0472
call qword [0x1402fd098]
mov rcx, rsi
call qword [0x1402fd050]
dec qword [0x140303428]
movsxd rcx, eax
sub qword [0x1403033e0], rcx
mov rcx, rsi
call qword [0x1402fd040]
mov rcx, qword [0x140303640]
test rcx, rcx
je 0x1400c04bf
call qword [0x1402fd0a8]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
call qword [0x1402fd040]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400c0950
Capabilities:
Reference sql statements

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x140300b88]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor r12d, r12d
mov qword [rcx + 0x18], rdx
mov r14, r9
mov rbp, r8
mov r15, rdx
mov rdi, rcx
cmp dword [rsp + 0x120], r12d
je 0x1400c0a55
mov eax, dword [rcx + 0x20]
lea rcx, str.CREATE_TABLE___w_.__w_node__nodeno_INTEGER_PRIMARY_KEY__data_BLOB__CREATE_TABLE___w_.__w_rowid__rowid_INTEGER_PRIMARY_KEY__nodeno_INTEGER__CREATE_TABLE___w_.__w_parent__nodeno_INTEGER_PRIMARY_KEY__parentnode_INTEGER__INSERT_INTO__q._q_node_VALUES_1__zeroblob__d__
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r9
mov r9, r8
mov rdx, r9
mov r8, r14
call fcn.140061bf0
mov rbx, rax
test rax, rax
jne 0x1400c09da
lea eax, [rbx + 7]
jmp 0x1400c0ba6
xor r9d, r9d
mov qword [rsp + 0x20], r12
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call fcn.14005f740
cmp dword [0x1402fd010], r12d
mov esi, eax
je 0x1400c0a44
mov rcx, qword [0x140303640]
test rcx, rcx
je 0x1400c0a0d
call qword [0x1402fd098]
mov rcx, rbx
call qword [0x1402fd050]
dec qword [0x140303428]
movsxd rcx, eax
sub qword [0x1403033e0], rcx
mov rcx, rbx
call qword [0x1402fd040]
mov rcx, qword [0x140303640]
test rcx, rcx
je 0x1400c0a4d
call qword [0x1402fd0a8]
jmp 0x1400c0a4d
mov rcx, rbx
call qword [0x1402fd040]
test esi, esi
jne 0x1400c0ba4
lea rax, [rdi + 0x60]
mov qword [rsp + 0xb8], r13
mov qword [rsp + 0x50], rax
mov rdx, rdi
lea rax, [rdi + 0x68]
mov rcx, r15
mov qword [rsp + 0x58], rax
lea rax, [rdi + 0x70]
mov qword [rsp + 0x60], rax
lea rax, [rdi + 0x78]
mov qword [rsp + 0x68], rax
lea rax, [rdi + 0x80]
mov qword [rsp + 0x70], rax
lea rax, [rdi + 0x88]
mov qword [rsp + 0x78], rax
lea rax, [rdi + 0x90]
mov qword [rsp + 0x80], rax
lea rax, [rdi + 0x98]
mov qword [rsp + 0x88], rax
lea rax, [rdi + 0xa0]
mov qword [rsp + 0x90], rax
call fcn.1400c02b0
mov esi, eax
lea r13, str.SELECT_data_FROM__q._q_node_WHERE_nodeno__:1
mov rdi, r12
nop dword [rax]
test esi, esi
jne 0x1400c0b9c
mov rcx, qword [rdi + r13]
mov r8, r14
mov rdx, rbp
call fcn.140061bf0
mov rbx, rax
test rax, rax
je 0x1400c0b89
mov rcx, qword [rsp + rdi + 0x50]
lea r9d, [rsi + 1]
mov qword [rsp + 0x30], r12
lea r8d, [rsi - 1]
mov qword [rsp + 0x28], rcx
mov rdx, rax
mov rcx, r15
mov qword [rsp + 0x20], r12
call fcn.1400f0db0
cmp dword [0x1402fd010], r12d
mov esi, eax
je 0x1400c0b7e
mov rcx, qword [0x140303640]
test rcx, rcx
je 0x1400c0b47
call qword [0x1402fd098]
mov rcx, rbx
call qword [0x1402fd050]
dec qword [0x140303428]
movsxd rcx, eax
sub qword [0x1403033e0], rcx
mov rcx, rbx
call qword [0x1402fd040]
mov rcx, qword [0x140303640]
test rcx, rcx
je 0x1400c0b8e
call qword [0x1402fd0a8]
jmp 0x1400c0b8e
mov rcx, rbx
call qword [0x1402fd040]
jmp 0x1400c0b8e
mov esi, 7
add rdi, 8
cmp rdi, 0x48
jl 0x1400c0ae0
mov r13, qword [rsp + 0xb8]
mov eax, esi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140208e10
add rsp, 0xc0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400c9320
Capabilities:
Encode data using xor

Disassembly:
push rbx
xor r11d, r11d
mov r10, rdx
mov rdx, rcx
mov eax, r11d
mov r9d, r11d
test r8d, r8d
jle 0x1400c93fe
cmp r8d, 8
jb 0x1400c93fe
mov qword [rsp + 0x10], rsi
lea rbx, [rcx + 4]
mov qword [rsp + 0x18], rdi
mov rcx, r10
movsxd rdi, r8d
sub rcx, rdx
and rdi, 0xfffffffffffffff8
mov rsi, 0xfffffffffffffffc
sub rsi, rdx
xorps xmm4, xmm4
xorps xmm3, xmm3
nop
movd xmm2, dword [rcx + rbx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rbx - 4]
lea rbx, [rbx + 8]
punpcklbw xmm2, xmm0
lea rax, [rsi + rbx]
punpcklwd xmm2, xmm0
add r9d, 8
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [rbx - 8]
punpcklbw xmm1, xmm0
por xmm2, xmm4
punpcklwd xmm1, xmm0
movdqa xmm4, xmm2
movd xmm2, dword [rcx + rbx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
pxor xmm2, xmm1
por xmm2, xmm3
movdqa xmm3, xmm2
cmp rax, rdi
jl 0x1400c9370
mov rdi, qword [rsp + 0x18]
por xmm3, xmm4
mov rsi, qword [rsp + 0x10]
movdqa xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd eax, xmm3
movsxd rbx, r9d
movsxd r9, r8d
cmp rbx, r9
jge 0x1400c9438
sub r10, rdx
lea rcx, [rbx + rdx]
sub r9, rbx
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [rcx + r10]
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
xor r8d, edx
or eax, r8d
sub r9, 1
jne 0x1400c9420
test eax, eax
setne r11b
mov eax, r11d
pop rbx
ret