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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x41ef18]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40f813
push 0xa
pop esi
cmp word [ebx], si
jne 0x40f813
or byte [eax + edi + 0x28], 4
jmp 0x40f818
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x40f983
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x40f95b
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x40f865
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x40f88f
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x40f8ae
push 0xa
pop ebx
cmp word [edx], bx
jne 0x40f87c
push ebx
add eax, 4
pop edx
jmp 0x40f884
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x40f82a
jmp 0x40f983
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f956
cmp dword [ebp - 0x14], 0
je 0x40f956
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x41ef18]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x40f932
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x40f8fa
mov word [esi], ax
jmp 0x40f980
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x41ef18]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x41ef18]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x41ef18]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x40f980
cmp word [ebp - 4], ax
jne 0x40f93c
cmp esi, ebx
je 0x40f8f2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040f5ec
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x40f983
push 0xd
pop eax
jmp 0x40f8f2
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x41ef18]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x40f97d
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x40f983
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x413535
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004134b1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4136a4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4136a4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x413659
jg 0x413591
test eax, eax
je 0x41364f
push 1
push 0x1000
call fcn.00408270
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4135b4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x413646
push 0x8000
push ebx
call fcn.00407944
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4135dd
jg 0x4135d8
cmp ecx, 0x1000
jb 0x4135dd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0040a127
add esp, 0x10
cmp eax, 0xffffffff
je 0x413622
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4135d8
jl 0x413609
test ecx, ecx
jne 0x4135ca
push dword [ebp - 0xc]
push ebx
call fcn.00407944
push esi
call fcn.00408690
add esp, 0xc
xor ebx, ebx
jmp 0x4136b2
cmp byte [edi + 0x24], 0
je 0x413639
cmp dword [edi + 0x20], 5
jne 0x413639
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x413644
mov ebx, dword [edi + 0x18]
jmp 0x413646
xor ebx, ebx
push esi
call fcn.00408690
pop ecx
jmp 0x4136b2
test ecx, ecx
jg 0x41361b
jl 0x413659
test eax, eax
jae 0x41361b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040f5ec
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x413679
cmp byte [edi + 0x1c], 0
je 0x41361b
jmp 0x4136aa
push ebx
call fcn.0040dfc4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41361b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4136b2
cmp byte [edi + 0x1c], 0
je 0x4136af
mov ebx, dword [edi + 0x18]
jmp 0x4136b2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0040f5ec
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4160c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4160ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4160ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401010
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c185
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x38
push esi
push edi
mov eax, dword [0x413004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov edi, ecx
push 0x411d4c
push dword [ebx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0
push 0x11
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00403b20
add esp, 0xc
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x20]
push edx
push edi
push ecx
mov eax, dword [ecx]
call dword [eax + 0xb4]
push edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x24]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
push 0
push 0
push 0xc
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edi, eax
lea eax, [ebp - 0x48]
push eax
call esi
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push eax
call esi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x24]
movups xmm0, xmmword [ebp - 0x48]
push eax
push edi
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
push ecx
movups xmmword [eax], xmm0
call dword [edx + 0x94]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x38]
push eax
call esi
lea eax, [ebp - 0x48]
push eax
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x401140
Capabilities:
Load windows common language runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push 0x411d58
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push 0x411d5c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.CLRCreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 4], 0
test eax, eax
je 0x4011d2
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push 0x411dfc
push 0x411e0c
call eax
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4011ca
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push 0x411e1c
push str.v4.0.30319
push ecx
call dword [eax + 0xc]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4011ca
mov eax, dword [ecx]
lea edx, [esp + 4]
push edx
push 0x411dcc
push 0x411dec
push ecx
call dword [eax + 0x24]
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x4011f1
lea eax, [esp + 4]
push eax
push 0x411dcc
push 0x411dec
push 0
push 0
push 0
call dword [sym.imp.mscoree.dll_CorBindToRuntimeEx]
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x28]
mov eax, dword [esp + 4]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
push 0x411ddc
push eax
mov ecx, dword [eax]
call dword [ecx]
mov edx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
push str._RESOLVER
call fcn.00401010
mov edx, dword [esp + 0x10]
add esp, 4
mov ecx, dword [ebp + 8]
push str._ENTRYPOINT
call fcn.00401010
add esp, 4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x61e04a95
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ecx, edx
mov ebp, esp
push esi
push ebx
movzx edx, byte [eax]
cmp byte [edx + 0x61ea4a20], 0x1c
ja case.0x61e04ab3.1
movzx ebx, byte [edx + 0x61ea4a20]
jmp dword [ebx*4 + 0x61e980b8]
mov ebx, 1
jmp 0x61e04adf
movzx edx, byte [eax + ebx]
test byte [edx + 0x61ea9360], 1
je 0x61e04b85
inc ebx
jmp 0x61e04adf
mov dword [ecx], 0xac
jmp 0x61e04ee0
mov dword [ecx], 0xad
xor ebx, ebx
jmp 0x61e04ee0
mov dword [ecx], 0xad
mov ebx, 1
jmp 0x61e04ee0
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x61e0d70a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
cmp eax, 0x7f
mov ebp, esp
push edi
push esi
push ebx
push ebx
mov dword [ebp - 0x10], edx
jg 0x61e0d727
lea ecx, [eax - 0x41]
lea edx, [eax + 0x20]
cmp ecx, 0x19
jmp 0x61e0d7ab
cmp eax, 0xffff
jg 0x61e0d79f
or ebx, 0xffffffff
xor esi, esi
mov edi, 0xa2
lea ecx, [esi + edi]
sar ecx, 1
movzx edx, word [ecx*4 + 0x61ea0ac0]
cmp eax, edx
js 0x61e0d750
lea esi, [ecx + 1]
mov ebx, ecx
jmp 0x61e0d753
lea edi, [ecx - 1]
cmp esi, edi
jle 0x61e0d738
movzx esi, word [ebx*4 + 0x61ea0ac0]
movzx ecx, byte [ebx*4 + 0x61ea0ac3]
add ecx, esi
cmp eax, ecx
jge 0x61e0d78f
mov cl, byte [ebx*4 + 0x61ea0ac2]
xor esi, eax
mov ebx, ecx
and ebx, 1
test ebx, esi
jne 0x61e0d78f
shr cl, 1
movzx ecx, cl
add ax, word [ecx + ecx + 0x61ea0640]
movzx eax, ax
cmp dword [ebp - 0x10], 0
je 0x61e0d7ae
pop ecx
pop ebx
pop esi
pop edi
pop ebp
jmp sym._fts5_remove_diacritic
lea ecx, [eax - 0x10400]
lea edx, [eax + 0x28]
cmp ecx, 0x27
cmovbe eax, edx
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x61e16c09
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor esi, esi
mov ebx, eax
sub esp, 0x2c
movzx edi, byte [eax + 0x3b]
mov byte [eax + 0x38], 1
mov dword [ebp - 0x1c], 0
dec edi
cmp esi, edi
jge 0x61e16c68
movzx eax, byte [ebx + 0x3a]
lea eax, [esi + eax + 1]
cdq
idiv edi
imul eax, edx, 0x48
mov dword [ebp - 0x20], edx
cmp dword [ebx + eax + 0x44], 0
lea ecx, [ebx + eax + 0x40]
mov dword [ebp - 0x1c], ecx
jne 0x61e16c57
imul eax, dword [ebp - 0x20], 0x48
cmp dword [ebx + eax + 0x40], 0
je 0x61e16c68
inc esi
jmp 0x61e16c26
mov eax, dword [ebp - 0x1c]
call sym._vdbeSorterJoinThread
test eax, eax
je 0x61e16c49
jmp 0x61e16d01
cmp esi, edi
jne 0x61e16c82
imul esi, esi, 0x48
add esp, 0x2c
lea edx, [ebx + 0x24]
lea eax, [ebx + esi + 0x40]
pop ebx
pop esi
pop edi
pop ebp
jmp sym._vdbeSorterListToPMA
mov ecx, dword [ebp - 0x1c]
lea edx, [ebx + 0x40]
mov eax, dword [ebp - 0x1c]
lea esi, [ebx + 0x24]
sub ecx, edx
mov eax, dword [eax + 0x14]
mov edx, ecx
mov ecx, dword [ebp - 0x1c]
sar edx, 3
imul edx, edx, 0x38e38e39
test eax, eax
lea edi, [ecx + 0x10]
mov ecx, 3
mov byte [ebx + 0x3a], dl
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x2c], 0
je 0x61e16cd0
mov dword [ebx + 0x28], eax
mov dword [esp], eax
call sym._sqlite3MallocSize
mov dword [ebx + 0x34], eax
jmp 0x61e16ce6
cmp dword [ebx + 0x28], 0
je 0x61e16ce6
mov eax, dword [ebx + 0x34]
cdq
call sym._sqlite3Malloc
test eax, eax
mov dword [ebx + 0x28], eax
je 0x61e16cfc
mov ecx, dword [ebp - 0x1c]
add esp, 0x2c
mov edx, sym._vdbeSorterFlushThread
pop ebx
pop esi
pop edi
pop ebp
mov eax, ecx
jmp sym._sqlite3ThreadCreate
mov eax, 7
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x61e1801f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov eax, 0x102c
mov ebp, esp
push edi
push esi
push ebx
call fcn.61e912b0
mov edx, 0xffb
sub esp, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp eax, 0xffb
cmovle edx, eax
mov eax, dword [sym._OutputDebugStringA_4]
test edx, edx
mov dword [ebp - 0x101c], eax
jle 0x61e1806f
lea ebx, [ebp - 0x1014]
mov ecx, 0x3ff
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov edi, ebx
mov ecx, edx
rep movsb byte es:[edi], byte [esi]
mov dword [esp], ebx
jmp 0x61e18072
mov dword [esp], esi
call dword [ebp - 0x101c]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x61e3e9e9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
cmp dword [ebp + 0xc], 1
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x20], 0
jbe 0x61e3eabe
cmp byte [ebx + 0x10], 1
je 0x61e3ea16
test byte [ebp + 0x14], 2
je 0x61e3ea9c
mov eax, dword [ebx + 0xd8]
test eax, eax
je 0x61e3ea3d
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
call sym._sqlite3WalFindFrame
test eax, eax
je 0x61e3ea3d
mov edi, dword [ebp + 0x10]
mov dword [edi], 0
jmp 0x61e3ebd0
cmp dword [ebp - 0x20], 0
jne 0x61e3ea9c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0
mov esi, dword [ebx + 0x98]
dec eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [esp + 0xc], esi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov eax, esi
cdq
mov eax, esi
imul ecx, edx
mul dword [ebp - 0x2c]
add edx, ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebx + 0x3c]
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call dword [eax + 0x44]
test eax, eax
jne 0x61e3ebbe
cmp dword [ebp - 0x1c], 0
jne 0x61e3ead3
mov eax, dword [ebp + 0x14]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
call sym._getPageNormal
jmp 0x61e3ebd0
cmp dword [ebp + 0xc], 0
jne 0x61e3ea9c
mov eax, 0xd968
call sym._sqlite3CorruptError
jmp 0x61e3ebd0
cmp byte [ebx + 0x10], 1
ja 0x61e3eb10
cmp byte [ebx + 0xc], 0
jne 0x61e3eb10
mov esi, dword [ebx + 0x88]
mov eax, dword [ebp - 0x1c]
test esi, esi
mov dword [ebp - 0x30], eax
je 0x61e3eb50
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 8]
mov ecx, 2
mov dword [ebx + 0x88], eax
xor eax, eax
mov dword [esi + 0x10], 0
rep stosd dword es:[edi], eax
jmp 0x61e3ebad
mov edx, dword [ebp + 0xc]
lea eax, [ebx + 0xd4]
call sym._sqlite3PagerLookup.isra.265
test eax, eax
mov esi, eax
je 0x61e3eadf
mov ecx, dword [ebx + 0x98]
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebx + 0x3c]
mov eax, ecx
cdq
mov eax, dword [ebp - 0x2c]
imul edi, edx
mul ecx
mov ecx, edx
mov edx, eax
mov eax, dword [ebp - 0x1c]
add ecx, edi
mov dword [esp], eax
mov eax, ebx
call sym._sqlite3OsUnfetch
jmp 0x61e3ebc9
movzx eax, word [ebx + 0x8c]
xor edx, edx
add eax, 0x28
call sym._sqlite3MallocZero
test eax, eax
mov esi, eax
jne 0x61e3eb98
mov ecx, dword [ebx + 0x98]
mov esi, dword [ebp - 0x2c]
mov eax, ecx
mov edi, ecx
mul dword [ebp - 0x2c]
sar edi, 0x1f
imul esi, edi
mov edi, dword [ebp - 0x30]
mov ecx, edx
mov edx, eax
mov eax, dword [ebx + 0x3c]
add ecx, esi
mov dword [esp], edi
call sym._sqlite3OsUnfetch
mov eax, 7
jmp 0x61e3ebbe
lea eax, [eax + 0x28]
mov word [esi + 0x1c], 0x20
mov word [esi + 0x1e], 1
mov dword [esi + 0x14], ebx
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 4], eax
inc dword [ebx + 0x78]
jmp 0x61e3ebc9
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
jmp 0x61e3ebd0
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
xor eax, eax
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x61e71059
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x6c
mov dword [ebp - 0x4c], eax
lea eax, [eax + edx*4]
mov dword [ebp - 0x54], ecx
cmp dword [eax + 0x1c], 0
mov dword [ebp - 0x50], eax
jne 0x61e711f6
mov eax, dword [ebp - 0x4c]
cmp edx, 0xa
lea edi, [ebp - 0x44]
mov esi, 0x61e962c0
mov ecx, 0xb
mov ebx, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [eax]
ja case.0x61e71099.5
jmp dword [edx*4 + 0x61e9d214]
mov eax, dword [esi + 0x24]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
jmp 0x61e71184
mov eax, dword [esi + 0x28]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp + edx*4 - 0x44]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_mprintf
jmp 0x61e7118c
mov eax, dword [esi + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_mprintf
jmp 0x61e7118c
mov eax, dword [esi + 0xc]
lea edi, [eax + 1]
lea eax, [edi + edi + 1]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_malloc
mov edx, eax
xor eax, eax
test edx, edx
jne 0x61e7112d
mov ebx, 7
jmp 0x61e711f6
cmp eax, edi
jge 0x61e7113d
mov byte [edx + eax*2], 0x3f
mov byte [edx + eax*2 + 1], 0x2c
inc eax
jmp 0x61e7112d
mov byte [edx + eax*2 - 1], 0
mov dword [esp + 0xc], edx
mov eax, dword [esi + 8]
mov dword [ebp - 0x58], edx
mov dword [esp + 8], eax
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp + ebx*4 - 0x44]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_mprintf
mov edx, dword [ebp - 0x58]
mov edi, eax
mov dword [esp], edx
call sym.sqlite3.dll_sqlite3_free
jmp 0x61e7118e
mov eax, dword [esi + 8]
mov dword [esp + 8], eax
mov eax, dword [esi + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp + ebx*4 - 0x44]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_mprintf
mov edi, eax
test edi, edi
je 0x61e71123
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], edi
lea eax, [eax + ebx*4 + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_prepare_v3
mov dword [esp], edi
mov ebx, eax
call sym.sqlite3.dll_sqlite3_free
test ebx, ebx
je 0x61e711f6
cmp dword [ebp + 8], 0
je 0x61e711f6
mov eax, dword [esi]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_errmsg
mov dword [esp], 0x61e98be8
mov dword [esp + 4], eax
call sym.sqlite3.dll_sqlite3_mprintf
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
mov eax, dword [eax + 0x1c]
mov dword [ecx], eax
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_reset
add esp, 0x6c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x61e75e1c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov edx, dword [ebx + 0x10]
mov dword [esp + 8], eax
lea eax, [ebp - 0x20]
mov dword [esp + 4], str.SELECT_t._Q_FROM__Q._Q_AS_t_WHERE_t._Q_MATCH_id
mov dword [esp], eax
mov dword [esp + 0xc], edx
call sym._sqlite3Fts5Mprintf
test eax, eax
mov esi, eax
je 0x61e75e8e
lea eax, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_prepare_v2
mov dword [ebp - 0x20], eax
mov dword [esp], esi
call sym.sqlite3.dll_sqlite3_free
cmp dword [ebp - 0x20], 1
jne 0x61e75ea3
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x61e75eb0
xor edi, edi
xor esi, esi
jmp 0x61e75ef5
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_step
cmp eax, 0x64
jne 0x61e75eaa
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_column_int64
mov ecx, dword [ebx + 0x18]
mov ecx, dword [ecx + 0x2c]
test ecx, ecx
je 0x61e75f83
cmp edx, dword [ecx + 0x14]
jne 0x61e75ee8
cmp eax, dword [ecx + 0x10]
je 0x61e75eed
mov ecx, dword [ecx + 4]
jmp 0x61e75ed6
mov eax, dword [ecx]
mov edi, dword [eax + 0xc]
mov esi, dword [eax + 0x10]
cmp dword [ebp - 0x20], 0
jne 0x61e75f3c
test esi, esi
jne 0x61e75f3c
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_finalize
test eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
jne 0x61e75f74
mov eax, dword [ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], str.no_such_fts5_table:__s._s
mov dword [esp + 4], eax
call sym.sqlite3.dll_sqlite3_mprintf
mov dword [ebp - 0x20], 1
mov dword [ebx + 8], eax
cmp dword [ebp - 0x20], 0
jne 0x61e75f74
mov edx, dword [edi + 0xc]
lea eax, [ebp - 0x20]
shl edx, 4
add edx, 0x58
call sym._sqlite3Fts5MallocZero
test eax, eax
je 0x61e75f74
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0xc]
mov dword [eax + 8], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 4], edx
lea edx, [eax + 0x58]
mov dword [eax + 0x24], edx
lea edx, [edx + ecx*8]
mov dword [eax + 0x28], edx
jmp 0x61e75f8a
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_finalize
xor eax, eax
jmp 0x61e75f8a
mov eax, dword [pe_dos_header]
ud2
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0x20]
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x61e7bd83
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x14], 0
mov dword [ebp + 8], ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x10], ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp + 0xc], ebx
pop ebx
pop ebp
jmp sym._rtreeInit

Function at 0x61e7bdb0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x14], 1
mov dword [ebp + 8], ebx
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x10], ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp + 0xc], ebx
pop ebx
pop ebp
jmp sym._rtreeInit