joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002b4a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, ecx
push ebx
mov ebx, dword [eax + 0xc]
push esi
mov dword [esp + 0x14], eax
mov eax, dword [eax + 0x14]
add ebx, ebx
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], eax
lea esi, [ebx*4]
call sym.SQLite.Interop.dll_sqlite3_initialize
test eax, eax
jne 0x1002b621
test esi, esi
jle 0x1002b4f5
mov eax, esi
cdq
mov ecx, eax
or ecx, edx
je 0x1002b4f5
push edx
push eax
call fcn.100ecdb0
add esp, 8
mov edi, eax
mov dword [esp + 0x14], eax
jmp 0x1002b4fb
xor edi, edi
mov dword [esp + 0x14], edi
test edi, edi
je 0x1002b621
push esi
push 0
push edi
call fcn.10003750
mov esi, dword [esp + 0x24]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x1c], eax
cmp dword [esi + 0xc], eax
jle 0x1002b59f
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
lea ebx, [ebx]
cmp dword [ecx], 0
je 0x1002b58a
mov ebx, dword [ecx]
mov eax, dword [ebx]
mov dword [ecx], eax
lea eax, [ebx + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002b541
sub eax, edx
dec eax
mov esi, 0xd
js 0x1002b565
movzx edx, byte [ebx + eax + 0x28]
lea ecx, [esi*8]
xor edx, ecx
xor esi, edx
dec eax
jns 0x1002b552
xor edx, edx
mov eax, esi
div dword [esp + 0x24]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov eax, dword [edi + edx*4]
mov dword [ebx], eax
mov dword [edi + edx*4], ebx
cmp dword [ecx], 0
jne 0x1002b535
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
inc eax
add ecx, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
cmp eax, dword [esi + 0xc]
jl 0x1002b530
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1002b612
cmp dword [0x101272c0], 0
je 0x1002b608
mov eax, dword [0x10128368]
test eax, eax
je 0x1002b5c3
push eax
call dword [0x1012731c]
add esp, 4
push dword [esp + 0x10]
call dword [0x101272f8]
push dword [esp + 0x14]
sub dword [0x10128398], eax
dec dword [0x101283bc]
call dword [0x101272f0]
mov eax, dword [0x10128368]
add esp, 8
test eax, eax
je 0x1002b612
push eax
call dword [0x10127324]
add esp, 4
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [0x101272f0]
add esp, 4
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10031f10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
mov dword [eax], 0
test edi, edi
je 0x10032007
mov ebx, dword [ebp + 0xc]
mov esi, 0xd
lea edx, [ebx - 1]
test edx, edx
js 0x10031f65
mov ebx, dword [ebp + 8]
jmp 0x10031f50
movsx ecx, byte [edx + ebx]
lea eax, [esi*8]
xor ecx, eax
xor esi, ecx
dec edx
jns 0x10031f50
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
lea eax, [esi*8]
xor eax, esi
xor eax, ecx
and eax, 0x1ff
lea eax, [edi + eax*4]
mov dword [esp + 0x14], eax
mov edi, dword [eax]
test edi, edi
je 0x10031fee
cmp dword [edi + 8], ecx
jne 0x10031fe7
cmp dword [edi + 4], ebx
jne 0x10031fe7
mov edx, dword [edi]
mov esi, dword [ebp + 8]
mov ecx, ebx
sub ecx, 4
jb 0x10031fb1
lea esp, [esp]
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x10031fb6
add edx, 4
add esi, 4
sub ecx, 4
jae 0x10031fa0
cmp ecx, 0xfffffffc
je 0x10031ffe
mov al, byte [edx]
cmp al, byte [esi]
jne 0x10031fe3
cmp ecx, 0xfffffffd
je 0x10031ffe
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x10031fe3
cmp ecx, 0xfffffffe
je 0x10031ffe
mov al, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x10031fe3
cmp ecx, 0xffffffff
je 0x10031ffe
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x10031ffe
mov ecx, dword [esp + 0x10]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x10031f86
lea edi, [ebx + 0x10]
call sym.SQLite.Interop.dll_sqlite3_initialize
test eax, eax
je 0x10032010
xor esi, esi
jmp 0x10032031
mov eax, dword [ebp + 0x10]
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x1003202b
mov eax, edi
cdq
mov ecx, eax
or ecx, edx
je 0x1003202b
push edx
push eax
call fcn.100ecdb0
add esp, 8
mov esi, eax
jmp 0x1003202d
xor esi, esi
test esi, esi
jne 0x1003203c
test edi, edi
jle 0x10032048
mov edi, 7
jmp 0x1003204a
push edi
push 0
push esi
call fcn.10003750
add esp, 0xc
xor edi, edi
test esi, esi
je 0x10032075
mov edx, dword [esp + 0x10]
push ebx
push dword [ebp + 8]
lea eax, [esi + 0x10]
push eax
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], edx
call fcn.100086a0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [ecx]
mov dword [esi + 0xc], eax
mov dword [ecx], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10037050
Capabilities:
Encrypt data using rc4 via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x10037118
test edi, edi
je 0x10037118
call fcn.100373f0
test eax, eax
jne 0x10037087
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.100ed620
test eax, eax
je 0x10037094
xor esi, esi
jmp 0x100370af
push 2
call dword [0x10127314]
mov esi, eax
add esp, 4
test esi, esi
je 0x100370af
push esi
call dword [0x1012731c]
add esp, 4
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8004
push dword [0x10128364]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10037100
push 0
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x100370f7
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp - 4]
push 0x6801
push dword [0x10128364]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test esi, esi
je 0x1003710e
push esi
call dword [0x10127324]
add esp, 4
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100372f0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edi
test ebx, ebx
jne 0x1003734c
call sym.SQLite.Interop.dll_sqlite3_initialize
test eax, eax
jne 0x100373d2
push eax
push 0x18
call fcn.100ecdb0
mov esi, eax
add esp, 8
test esi, esi
je 0x100373d2
mov edx, dword [esp + 0x10]
xorps xmm0, xmm0
movq qword [esi], xmm0
movq qword [esi + 8], xmm0
movq qword [esi + 0x10], xmm0
mov dword [esi + 4], edi
mov dword [esi + 8], edi
jmp 0x1003734e
mov esi, ebx
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x1003735c
mov eax, dword [edx + 0x98]
lea edi, [esi + 0x14]
mov dword [esi + 0xc], eax
mov dword [edi], eax
mov eax, dword [esi + 0x10]
mov dword [esi], edx
test eax, eax
je 0x1003737d
push eax
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov dword [esi + 0x10], 0
mov eax, dword [edi]
add eax, eax
push eax
push edi
push 0
push 0
push 1
push 0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov edi, dword [edi]
add edi, 0x10
call sym.SQLite.Interop.dll_sqlite3_initialize
test eax, eax
jne 0x100373bc
test edi, edi
jle 0x100373bc
mov eax, edi
cdq
mov ecx, eax
or ecx, edx
je 0x100373bc
push edx
push eax
call fcn.100ecdb0
add esp, 8
jmp 0x100373be
xor eax, eax
mov dword [esi + 0x10], eax
test eax, eax
jne 0x100373db
cmp esi, ebx
je 0x100373d2
push esi
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10043510
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
push edi
push dword [esi + 0x10]
mov edi, ecx
push dword [esi + 0xc]
mov edx, dword [edi + 4]
push dword [esi + 4]
mov ecx, dword [esi + 8]
push ebx
call fcn.100436d0
mov ecx, eax
add esp, 0x10
test ecx, ecx
je 0x1004355f
mov eax, dword [esi + 4]
push ecx
push dword [ebp + 0xc]
push eax
push ebx
push eax
push dword [edi + 4]
push str.SELECT__FROM___w_.__w_____w_.__w__WHERE__s_AND___z_
call sym.SQLite.Interop.dll_sqlite3_mprintf
add esp, 0x1c
mov dword [ebp - 8], eax
test eax, eax
jne 0x1004356b
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [edi]
push 0
push 0
push 0xffffffffffffffff
mov edx, eax
call fcn.1008e180
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x100435d4
mov ecx, dword [edi + 0x28]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [esi + 8]
mov dword [ecx + 4], eax
push dword [ebp - 4]
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x100435c7
push esi
mov edx, edi
mov ecx, 0x17
call fcn.10043a50
add esp, 4
push dword [ebp - 4]
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
je 0x100435a7
push dword [ebp - 4]
call sym.SQLite.Interop.dll_sqlite3_finalize
add esp, 4
mov ebx, eax
push dword [ebp - 8]
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100435f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov esi, edx
mov eax, dword [edi + 4]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push eax
push dword [ebp + 0xc]
push str.SELECT__FROM___w_.__w__WHERE_NOT_EXISTS____SELECT_1_FROM___w_.__w__WHERE__s_
call sym.SQLite.Interop.dll_sqlite3_mprintf
add esp, 0x18
mov dword [ebp - 8], eax
test eax, eax
jne 0x1004362f
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [esi]
push 0
push 0
push 0xffffffffffffffff
mov edx, eax
call fcn.1008e180
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x1004369a
mov ecx, dword [esi + 0x28]
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], ebx
push dword [ebp + 8]
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x1004368d
mov ebx, dword [ebp - 4]
jmp 0x10043670
push edi
mov edx, esi
mov ecx, ebx
call fcn.10043a50
add esp, 4
push dword [ebp + 8]
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
je 0x10043670
push dword [ebp + 8]
call sym.SQLite.Interop.dll_sqlite3_finalize
add esp, 4
mov ebx, eax
push dword [ebp - 8]
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10044d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ecx + 8]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
xor edx, edx
xor ebx, ebx
mov dword [ebp - 8], edi
mov dword [ebp + 8], edx
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x10044f07
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x14], eax
lea esp, [esp]
movzx ecx, byte [esi]
movzx eax, byte [eax + edx]
test edi, edi
je 0x10044dc5
test eax, eax
je 0x10044ef7
jmp 0x10044dcd
test eax, eax
je 0x10044e9d
lea eax, [ebx*8]
xor eax, ecx
inc esi
xor ebx, eax
cmp ecx, 1
je 0x10044e32
cmp ecx, 2
je 0x10044e32
mov al, byte [esi]
cmp al, 0x80
jae 0x10044df6
movzx edi, al
mov dword [ebp - 4], edi
mov eax, 1
jmp 0x10044e06
lea edx, [ebp - 4]
mov ecx, esi
call fcn.100e89d0
mov edi, dword [ebp - 4]
movzx eax, al
movzx eax, al
add esi, eax
xor edx, edx
test edi, edi
jle 0x10044e25
movzx ecx, byte [edx + esi]
lea eax, [ebx*8]
xor ecx, eax
inc edx
xor ebx, ecx
cmp edx, edi
jl 0x10044e11
mov edx, dword [ebp + 8]
add esi, edi
mov edi, dword [ebp - 8]
jmp 0x10044ef7
movzx edi, byte [esi + 4]
movzx eax, byte [esi + 5]
movzx ecx, byte [esi]
shl edi, 8
or edi, eax
movzx eax, byte [esi + 6]
shl edi, 8
or edi, eax
movzx eax, byte [esi + 7]
shl ecx, 8
shl edi, 8
or edi, eax
movzx eax, byte [esi + 1]
or ecx, eax
movzx eax, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 3]
shl ecx, 8
or ecx, eax
xor edx, edx
add edi, edx
adc edx, ecx
lea ecx, [ebx*8]
xor ecx, edi
mov edi, dword [ebp - 8]
xor ecx, ebx
mov ebx, edx
mov edx, dword [ebp + 8]
mov eax, ebx
sar eax, 0x1f
lea eax, [ecx*8]
xor ebx, eax
xor ebx, ecx
add esi, 8
jmp 0x10044ef7
test ecx, ecx
jne 0x10044ea6
lea eax, [ecx + 1]
jmp 0x10044ef5
cmp ecx, 5
jne 0x10044eb0
lea eax, [ecx - 4]
jmp 0x10044ef5
cmp ecx, 1
je 0x10044ef0
cmp ecx, 2
je 0x10044ef0
mov al, byte [esi + 1]
lea ecx, [esi + 1]
cmp al, 0x80
jae 0x10044ed7
movzx ecx, al
mov eax, 1
movzx eax, al
inc eax
mov dword [ebp - 0xc], ecx
add eax, ecx
jmp 0x10044ef5
lea edx, [ebp - 0xc]
call fcn.100e89d0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
movzx eax, al
movzx eax, al
inc eax
add eax, ecx
jmp 0x10044ef5
mov eax, 9
add esi, eax
mov eax, dword [ebp - 0x14]
inc edx
mov dword [ebp + 8], edx
cmp edx, dword [ebp - 0x10]
jl 0x10044db0
mov eax, ebx
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov eax, edx
mov esp, ebp
pop ebp
ret

Function at 0x10045120
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push edi
mov edi, ecx
test edx, edx
jle 0x10045146
push ebx
mov ebx, dword [ebp + 8]
movzx ecx, byte [esi + ebx]
lea eax, [edi*8]
xor ecx, eax
inc esi
xor edi, ecx
cmp esi, edx
jl 0x10045131
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x100461e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, ecx
push esi
cmp dword [ebx + 0x1c], 0
push edi
je 0x100462de
mov eax, dword [0x10128368]
xor edi, edi
cmp dword [ebx + 0x14], edi
jle 0x10046284
xor esi, esi
mov dword [esp + 0xc], esi
lea esp, [esp]
mov ecx, dword [ebx + 0x1c]
mov esi, dword [esi + ecx + 0xc]
test esi, esi
je 0x10046273
cmp dword [0x101272c0], 0
je 0x10046264
test eax, eax
je 0x10046232
push eax
call dword [0x1012731c]
add esp, 4
push esi
call dword [0x101272f8]
sub dword [0x10128398], eax
dec dword [0x101283bc]
add esp, 4
push esi
call dword [0x101272f0]
mov eax, dword [0x10128368]
add esp, 4
test eax, eax
je 0x10046273
push eax
call dword [0x10127324]
jmp 0x1004626b
push esi
call dword [0x101272f0]
mov eax, dword [0x10128368]
add esp, 4
mov esi, dword [esp + 0xc]
inc edi
add esi, 0x18
mov dword [esp + 0xc], esi
cmp edi, dword [ebx + 0x14]
jl 0x10046210
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x100462e3
cmp dword [0x101272c0], 0
je 0x100462d4
test eax, eax
je 0x100462a2
push eax
call dword [0x1012731c]
add esp, 4
push esi
call dword [0x101272f8]
sub dword [0x10128398], eax
dec dword [0x101283bc]
add esp, 4
push esi
call dword [0x101272f0]
mov eax, dword [0x10128368]
add esp, 4
test eax, eax
je 0x100462e3
push eax
call dword [0x10127324]
jmp 0x100462db
push esi
call dword [0x101272f0]
add esp, 4
mov eax, dword [0x10128368]
mov edx, dword [ebx + 4]
test edx, edx
je 0x1004633b
test byte [edx + 0x1c], 0x20
je 0x1004632f
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
mov edi, dword [esi]
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.100070f0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x10046336
mov ecx, edx
call fcn.100e2fe0
mov eax, dword [0x10128368]
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x10046395
cmp dword [0x101272c0], 0
je 0x1004638b
test eax, eax
je 0x10046359
push eax
call dword [0x1012731c]
add esp, 4
push esi
call dword [0x101272f8]
sub dword [0x10128398], eax
dec dword [0x101283bc]
add esp, 4
push esi
call dword [0x101272f0]
mov eax, dword [0x10128368]
add esp, 4
test eax, eax
je 0x10046395
push eax
call dword [0x10127324]
jmp 0x10046392
push esi
call dword [0x101272f0]
add esp, 4
xorps xmm0, xmm0
movq qword [ebx], xmm0
movq qword [ebx + 8], xmm0
movq qword [ebx + 0x10], xmm0
pop edi
movq qword [ebx + 0x18], xmm0
pop esi
movq qword [ebx + 0x20], xmm0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100470b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
je 0x10047132
push dword [esi + 0x20]
mov dword [ebp + 8], 0
push str.PRAGMA__Q.page_size
call sym.SQLite.Interop.dll_sqlite3_mprintf
lea ecx, [ebp + 8]
push ecx
mov edx, eax
mov ecx, edi
mov dword [ebp - 4], eax
call fcn.100471a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1004711c
movzx ecx, byte [esi + 0x17]
mov edx, dword [ebp + 8]
imul ecx, ecx, 0x33
add edx, 0xffffffc0
add ecx, 4
mov dword [esi + 0x10], edx
cmp ecx, edx
jge 0x1004717e
push dword [ebp - 4]
mov dword [esi + 0x10], ecx
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call sym.SQLite.Interop.dll_sqlite3_errmsg
push eax
push 0x100fc3c4
call sym.SQLite.Interop.dll_sqlite3_mprintf
add esp, 0xc
jmp 0x10047179
push dword [esi + 0x24]
push dword [esi + 0x20]
push str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call sym.SQLite.Interop.dll_sqlite3_mprintf
lea ecx, [esi + 0x10]
push ecx
mov edx, eax
mov ecx, edi
mov dword [ebp - 4], eax
call fcn.100471a0
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1004711c
cmp dword [esi + 0x10], 0x1c0
jge 0x1004717e
push dword [esi + 0x24]
mov ebx, 0x10b
push str.undersize_RTree_blobs_in___q_node_
call sym.SQLite.Interop.dll_sqlite3_mprintf
add esp, 8
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [ebp - 4]
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10047320
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
push 0
push 0
mov edi, edx
push str.sqlite_stat1
push dword [edi + 0x20]
mov esi, ecx
xorps xmm0, xmm0
push esi
movlpd qword [esp + 0x3c], xmm0
call sym.SQLite.Interop.dll_sqlite3_table_column_metadata
add esp, 0x24
test eax, eax
je 0x10047377
xor ecx, ecx
cmp eax, 1
mov dword [edi + 0x30], 0x100000
mov dword [edi + 0x34], 0
cmove eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi + 0x24]
push dword [edi + 0x20]
push str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
call sym.SQLite.Interop.dll_sqlite3_mprintf
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x100473a0
mov esi, 7
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x80
push 0xffffffffffffffff
mov edx, eax
mov ecx, esi
call fcn.1008e180
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x10047404
push dword [esp + 0xc]
call sym.SQLite.Interop.dll_sqlite3_step
add esp, 4
cmp eax, 0x64
jne 0x100473e4
push esi
push dword [esp + 0x10]
call sym.SQLite.Interop.dll_sqlite3_column_int64
add esp, 8
mov ebx, eax
jmp 0x100473ec
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
push dword [esp + 0xc]
mov dword [esp + 0x14], edx
call sym.SQLite.Interop.dll_sqlite3_finalize
mov ecx, dword [esp + 0x14]
add esp, 4
mov esi, eax
jmp 0x10047432
cmp esi, 7
je 0x1004742a
push dword [esp + 0x14]
xor esi, esi
mov dword [edi + 0x30], 0x100000
mov dword [edi + 0x34], esi
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
test esi, esi
jne 0x10047473
mov eax, ebx
or eax, ecx
jne 0x1004745b
push dword [esp + 0x14]
mov dword [edi + 0x30], 0x100000
mov dword [edi + 0x34], eax
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
jl 0x10047466
jg 0x1004746d
cmp ebx, 0x64
ja 0x1004746d
mov ebx, 0x64
xor ecx, ecx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ecx
push dword [esp + 0x14]
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004cc20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
mov dword [ebp - 8], edx
cmp esi, 0x80
jge 0x1004cc48
lea eax, [esi - 0x41]
cmp eax, 0x19
ja 0x1004ccec
lea eax, [esi + 0x20]
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0x10000
jge 0x1004ccde
push ebx
push edi
mov edi, 0xa2
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + edi]
cdq
sub eax, edx
sar eax, 1
mov edx, esi
movzx ecx, word [eax*4 + 0x10108ba8]
sub edx, ecx
js 0x1004cc84
mov edx, eax
mov dword [ebp - 4], edx
lea ebx, [eax + 1]
jmp 0x1004cc8a
mov edx, dword [ebp - 4]
lea edi, [eax - 1]
cmp edi, ebx
jge 0x1004cc64
movzx ecx, word [edx*4 + 0x10108ba8]
movzx eax, byte [edx*4 + 0x10108bab]
add eax, ecx
pop edi
pop ebx
cmp esi, eax
jge 0x1004cccc
movzx eax, byte [edx*4 + 0x10108baa]
xor ecx, esi
and ecx, eax
test ecx, 1
jne 0x1004cccc
shr eax, 1
movzx eax, word [eax*2 + 0x10105630]
add esi, eax
and esi, 0xffff
cmp dword [ebp - 8], 0
je 0x1004ccec
mov ecx, esi
call fcn.1004cd40
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x10400]
cmp eax, 0x27
lea eax, [esi + 0x28]
jbe 0x1004ccee
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1004f650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [eax + 4]
push esi
push edi
mov edi, dword [eax]
mov eax, edi
or eax, ebx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ebx
je 0x1004f810
mov eax, edi
xor esi, esi
and eax, 1
or eax, esi
mov dword [ebp - 0xc], esi
jne 0x1004f6a8
inc esi
xor edx, edx
mov eax, esi
bts edx, eax
xor ecx, ecx
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, edi
and ecx, ebx
or edx, ecx
je 0x1004f685
mov dword [ebp - 0xc], esi
mov eax, dword [ebp + 8]
xor edx, edx
dec eax
bts edx, eax
xor ecx, ecx
cmp eax, 0x20
mov dword [ebp - 8], 0
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, edi
and ecx, ebx
or edx, ecx
jne 0x1004f6f8
mov esi, eax
inc dword [ebp - 8]
dec esi
xor edx, edx
mov eax, esi
bts edx, eax
xor ecx, ecx
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, edi
and ecx, ebx
or edx, ecx
je 0x1004f6d2
mov esi, dword [ebp - 0xc]
sub esi, dword [ebp - 8]
mov eax, esi
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
test ebx, ebx
jle 0x1004f810
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], 0
mov ecx, dword [ecx + 0x24]
mov dword [ebp - 8], 0
mov eax, dword [ecx]
mov dword [ebp - 0x10], eax
mov edi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi + 0xc]
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
push ecx
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1004f776
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
cmp dword [edi], 1
jl 0x1004f776
push dword [ebp - 0x18]
mov eax, dword [edi + 0x18]
push dword [ebp - 8]
call eax
mov esi, eax
add esp, 8
test esi, esi
je 0x1004f776
push dword [ebp - 8]
mov eax, dword [edi + 0x10]
call eax
add esp, 4
xor edi, edi
mov dword [ebp - 8], edi
jmp 0x1004f779
mov edi, dword [ebp - 8]
test esi, esi
je 0x1004f786
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add ebx, dword [ebp + 8]
lea esp, [esp]
cmp dword [ebp - 0xc], ebx
jge 0x1004f7d0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push edi
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
call eax
mov esi, eax
add esp, 0x18
test esi, esi
je 0x1004f790
mov eax, dword [ebp - 0x10]
push edi
mov ecx, dword [eax + 0x10]
call ecx
add esp, 4
test esi, esi
je 0x1004f7e5
cmp esi, 0x65
jne 0x1004f77d
xor ecx, ecx
cmp esi, 0x65
sete cl
sub ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
test ecx, ecx
jle 0x1004f810
mov eax, dword [ebp + 0x14]
movq xmm1, qword [ebp - 0x2c]
add dword [eax], ecx
mov eax, dword [ebp + 0x18]
movd xmm0, ecx
psrlq xmm1, xmm0
movq qword [eax], xmm1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret