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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [eax + 8]
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edx
test edx, edx
jle 0x1013dbe2
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], 0
mov edx, dword [ebp - 0x10]
movzx eax, byte [edi]
movzx ecx, byte [edx + ecx]
je 0x1013daa0
test ecx, ecx
je 0x1013dbd2
jmp 0x1013daa8
test ecx, ecx
je 0x1013db72
lea ecx, [ebx*8]
xor ecx, eax
inc edi
xor ebx, ecx
cmp eax, 1
je 0x1013db0d
cmp eax, 2
je 0x1013db0d
mov al, byte [edi]
cmp al, 0x80
jae 0x1013dad1
movzx edx, al
mov dword [ebp - 4], edx
mov eax, 1
jmp 0x1013dae1
lea esi, [ebp - 4]
mov ecx, edi
call fcn.1012d0d0
mov edx, dword [ebp - 4]
movzx eax, al
movzx eax, al
add edi, eax
xor eax, eax
mov ecx, ebx
test edx, edx
jle 0x1013db04
mov edi, edi
movzx esi, byte [eax + edi]
lea ebx, [ecx*8]
xor esi, ebx
inc eax
xor ecx, esi
cmp eax, edx
jl 0x1013daf0
mov ebx, ecx
add edi, edx
jmp 0x1013dbd2
movzx edx, byte [edi + 4]
movzx ecx, byte [edi + 5]
movzx eax, byte [edi + 6]
movzx esi, byte [edi + 1]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 7]
shl edx, 8
or edx, eax
movzx eax, byte [edi]
shl eax, 8
or eax, esi
movzx esi, byte [edi + 2]
shl eax, 8
or eax, esi
movzx esi, byte [edi + 3]
shl eax, 8
or eax, esi
shl edx, 8
or edx, ecx
xor ecx, ecx
xor esi, esi
add edx, esi
adc ecx, eax
lea eax, [ebx*8]
xor eax, edx
xor eax, ebx
lea ebx, [eax*8]
xor ebx, ecx
mov edx, ecx
sar edx, 0x1f
xor ebx, eax
add edi, 8
jmp 0x1013dbd2
test eax, eax
je 0x1013dbcb
cmp eax, 0xff
je 0x1013dbcb
cmp eax, 5
je 0x1013dbcb
cmp eax, 1
je 0x1013dbc4
cmp eax, 2
je 0x1013dbc4
mov al, byte [edi + 1]
lea ecx, [edi + 1]
cmp al, 0x80
jae 0x1013dbad
movzx eax, al
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, 1
movzx ecx, al
lea eax, [ecx + edx + 1]
jmp 0x1013dbd0
lea esi, [ebp - 8]
call fcn.1012d0d0
mov edx, dword [ebp - 8]
movzx eax, al
movzx ecx, al
lea eax, [ecx + edx + 1]
jmp 0x1013dbd0
mov eax, 9
jmp 0x1013dbd0
mov eax, 1
add edi, eax
mov ecx, dword [ebp - 0xc]
inc ecx
mov dword [ebp - 0xc], ecx
cmp ecx, dword [ebp - 0x14]
jl 0x1013da86
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 0x101434d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov al, byte [esi + 0x44]
push ebx
xor ebx, ebx
push edi
mov dword [esp + 0xc], ebx
test al, al
js 0x1014357b
je 0x101435ea
mov eax, dword [esi + 0x74]
call fcn.1013c030
mov al, byte [esi + 0x44]
dec al
mov byte [esi + 0x44], al
je 0x10143570
movsx eax, byte [esi + 0x44]
mov ecx, dword [esi + eax*4 + 0x78]
mov eax, dword [ecx + 0x48]
test byte [eax + 0x1c], 0x20
je 0x10143561
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov edi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov ebx, dword [edi]
dec eax
push edx
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [esp + 0x14]
push 0
push eax
call fcn.10100050
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
mov ebx, dword [esp + 0x1c]
add esp, 0x10
jmp 0x10143566
call fcn.1012c920
mov al, byte [esi + 0x44]
dec al
mov byte [esi + 0x44], al
jne 0x10143504
mov ecx, dword [esi + 0x78]
mov dword [esi + 0x74], ecx
jmp 0x10143606
cmp dword [esi + 0x40], ebx
jne 0x1014358e
mov byte [esi], 1
mov eax, 0x10
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esi]
cmp al, 3
jb 0x101435b3
cmp al, 4
jne 0x101435a1
mov eax, dword [esi + 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x10]
push edx
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov dword [esi + 0x10], ebx
mov byte [esi], 1
movzx eax, byte [esi + 2]
mov ecx, dword [esi + 8]
mov ebx, dword [ecx + 4]
push eax
mov eax, dword [esi + 0x40]
lea edi, [esi + 0x74]
push 0
push edi
call fcn.1013fde0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x101435de
mov byte [esi], 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi]
mov byte [esi + 0x44], 0
mov al, byte [edx + 2]
mov byte [esi + 0x45], al
mov eax, dword [esi + 0x74]
cmp byte [eax], 0
je 0x10143676
movzx edx, byte [eax + 2]
xor ecx, ecx
cmp dword [esi + 0x70], ecx
sete cl
cmp ecx, edx
jne 0x10143676
and byte [esi + 1], 0xf1
xor eax, eax
mov word [esi + 0x46], ax
mov eax, dword [esi + 0x74]
xor ecx, ecx
mov word [esi + 0x32], cx
cmp word [eax + 0x18], cx
jbe 0x10143629
mov byte [esi], cl
mov eax, ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [eax + 8], cl
jne 0x10143666
cmp dword [eax + 4], 1
je 0x10143644
mov eax, 0x129a3
call fcn.1011a6c0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
movzx edx, byte [eax + 9]
mov eax, dword [eax + 0x38]
mov eax, dword [edx + eax + 8]
bswap eax
push eax
mov eax, esi
mov byte [esi], cl
call fcn.10141e60
add esp, 4
mov ebx, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 0x10
mov byte [esi], 1
mov eax, ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1027dfdc
push 0x12996
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call sym.SQLite.Interop.dll_sqlite3_log
add esp, 0x14
pop edi
mov eax, 0xb
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10144640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.101434d0
cmp eax, 0x10
jne 0x10144681
mov dword [edi], 0
mov dword [edi + 4], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x101447bd
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x120]
test edx, edx
jne 0x101447bd
mov ecx, dword [esi + 0x74]
cmp byte [ecx + 8], dl
jne 0x101446a7
cmp byte [ecx + 2], dl
jne 0x101446b4
movzx eax, word [ecx + 0x18]
cdq
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
cmp byte [ecx + 8], 0
je 0x10144759
mov al, byte [esi + 0x44]
test al, al
je 0x101447a8
and byte [esi + 1], 0xf9
xor edx, edx
mov word [esi + 0x32], dx
movsx edx, al
mov dx, word [esi + edx*2 + 0x46]
dec al
mov byte [esi + 0x44], al
movsx eax, al
mov word [esi + 0x46], dx
mov edx, dword [esi + eax*4 + 0x78]
mov dword [esi + 0x74], edx
mov eax, dword [ecx + 0x48]
test byte [eax + 0x1c], 0x20
je 0x1014473f
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov edi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov ebx, dword [edi]
dec eax
push edx
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [esp + 0x18]
push 0
push eax
call fcn.10100050
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x10144744
call fcn.1012c920
mov ecx, dword [esi + 0x74]
mov dx, word [esi + 0x46]
cmp dx, word [ecx + 0x18]
jae 0x101446be
inc word [esi + 0x46]
movzx eax, word [esi + 0x46]
movzx edx, word [ecx + 0x18]
cmp eax, edx
jne 0x10144772
movzx eax, byte [ecx + 9]
mov ecx, dword [ecx + 0x38]
mov eax, dword [eax + ecx + 8]
jmp 0x1014478c
mov edx, dword [ecx + 0x40]
mov ax, word [edx + eax*2]
mov dh, al
mov dl, ah
movzx eax, dx
movzx edx, word [ecx + 0x1a]
mov ecx, dword [ecx + 0x38]
and eax, edx
mov eax, dword [eax + ecx]
bswap eax
push eax
mov eax, esi
call fcn.10141e60
add esp, 4
test eax, eax
je 0x10144689
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [eax], edx
mov dword [eax + 4], ecx
call fcn.101434d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10149490
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
lea ecx, [edi - 1]
mov eax, 0xd
test ecx, ecx
js 0x101494c5
lea ebx, [ebx]
mov edx, dword [ebp + 0xc]
movzx edx, byte [ecx + edx]
lea esi, [eax*8]
xor edx, esi
xor eax, edx
dec ecx
jns 0x101494b0
mov ecx, dword [ebp + 8]
xor edx, edx
div dword [ecx + 0xc]
mov eax, dword [ecx + 0x14]
mov ebx, dword [eax + edx*4]
test ebx, ebx
je 0x1014952e
mov ecx, dword [ebx + 0x14]
inc ecx
cmp edi, ecx
jne 0x10149528
mov ecx, dword [ebp + 0xc]
mov eax, edi
lea esi, [ebx + 0x28]
cmp edi, 4
jb 0x10149504
lea esp, [esp]
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x10149528
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x101494f0
test eax, eax
je 0x10149549
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x10149528
cmp eax, 1
jbe 0x10149549
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x10149528
cmp eax, 2
jbe 0x10149549
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x10149549
mov ebx, dword [ebx]
test ebx, ebx
jne 0x101494d7
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [eax], 0
mov dword [ecx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x29]
mov edi, dword [ebx + 0x10]
sub edi, eax
mov dword [esp + 0x14], eax
lea eax, [edi + 0x16]
cdq
mov esi, eax
mov dword [esp + 0x10], edx
call sym.SQLite.Interop.dll_sqlite3_initialize
test eax, eax
je 0x1014956c
xor esi, esi
jmp 0x101495d4
mov eax, dword [esp + 0x10]
mov ecx, esi
or ecx, eax
je 0x10149621
test eax, eax
ja 0x10149621
jb 0x10149590
cmp esi, 0x7fffff00
jae 0x10149621
cmp dword [0x10292428], 0
je 0x10149615
mov eax, dword [0x10299778]
test eax, eax
je 0x101495ac
push eax
call dword [0x10292478]
add esp, 4
lea edx, [esp + 0xc]
push edx
mov eax, esi
call fcn.101448e0
mov eax, dword [0x10299778]
add esp, 4
test eax, eax
je 0x101495ce
push eax
call dword [0x10292480]
add esp, 4
mov eax, dword [esp + 0xc]
mov esi, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
test esi, esi
je 0x10149625
mov ecx, dword [esp + 0x14]
push edi
add ecx, ebx
push ecx
lea edx, [esi + 0xc]
push edx
call fcn.100ffb30
sub esi, dword [esp + 0x20]
mov eax, dword [ebp + 8]
add esp, 0xc
add esi, 0xc
push esi
push eax
call fcn.10124510
mov ecx, dword [ebp + 0x14]
add eax, edi
add esp, 8
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [0x10292448]
add esp, 4
jmp 0x101495d2
xor eax, eax
jmp 0x101495d2
mov edx, dword [ebp + 0x14]
pop edi
pop esi
mov dword [edx], 0
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10149820
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
push esi
push edi
mov edi, dword [ebx + 0x14]
add eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edi
lea esi, [eax*4]
call sym.SQLite.Interop.dll_sqlite3_initialize
test eax, eax
jne 0x10149867
mov ecx, esi
or ecx, eax
je 0x10149867
push eax
push esi
call fcn.10145440
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jne 0x10149873
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push eax
call fcn.100ffab0
add esp, 0xc
cmp dword [ebx + 0xc], 0
mov dword [esp + 0xc], 0
jle 0x1014990a
mov dword [esp + 0x10], edi
cmp dword [edi], 0
je 0x101498f1
mov esi, dword [edi]
mov edx, dword [esi]
lea eax, [esi + 0x28]
mov dword [edi], edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101498a2
sub eax, ebx
mov ecx, eax
dec ecx
mov eax, 0xd
js 0x101498d7
jmp 0x101498c0
movzx edi, byte [esi + ecx + 0x28]
lea ebx, [eax*8]
xor edi, ebx
xor eax, edi
dec ecx
jns 0x101498c0
mov edi, dword [esp + 0x10]
xor edx, edx
div dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + edx*4]
mov dword [esi], ecx
mov dword [eax + edx*4], esi
cmp dword [edi], 0
jne 0x10149896
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0xc]
inc eax
add edi, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
cmp eax, dword [ebx + 0xc]
jl 0x10149891
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x10149963
cmp dword [0x10292428], 0
je 0x10149959
mov eax, dword [0x10299778]
test eax, eax
je 0x1014992a
push eax
call dword [0x10292478]
add esp, 4
push edi
call dword [0x10292454]
sub dword [0x10299710], eax
dec dword [0x10299734]
push edi
call dword [0x1029244c]
mov eax, dword [0x10299778]
add esp, 8
test eax, eax
je 0x10149963
push eax
call dword [0x10292480]
jmp 0x10149960
push edi
call dword [0x1029244c]
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
pop edi
mov dword [ebx + 0x14], eax
pop esi
mov dword [ebx + 0xc], edx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1014ee50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [edi + 0x88]
push ebx
push esi
xor esi, esi
cmp eax, esi
je 0x1014ee81
mov edx, dword [eax + 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [edi + 0x88], edx
mov edx, dword [eax + 8]
mov dword [ecx], eax
xor ecx, ecx
mov dword [eax + 0x10], esi
mov dword [edx], ecx
mov dword [edx + 4], ecx
jmp 0x1014eefe
movzx ebx, word [edi + 0x8c]
add ebx, 0x28
xor eax, eax
mov ecx, ebx
or ecx, eax
je 0x1014eeaf
push eax
push ebx
call fcn.10145440
mov esi, eax
add esp, 8
test esi, esi
je 0x1014eeaf
push ebx
push 0
push esi
call fcn.100ffab0
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov eax, esi
mov dword [edx], esi
test esi, esi
jne 0x1014eeee
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov esi, dword [edi + 0x3c]
mov ebx, dword [esi]
push eax
mov eax, dword [edi + 0x98]
push 0
cdq
dec ecx
push ecx
push edx
push eax
call fcn.10100050
push edx
mov edx, dword [ebx + 0x48]
push eax
push esi
call edx
add esp, 0x10
mov eax, 7
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0x28]
mov dword [esi + 8], ecx
mov dword [esi + 0x1c], 0x10020
mov dword [esi + 0x14], edi
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
mov dword [eax + 4], ecx
inc dword [edi + 0x78]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1014fb50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x10], 0
je 0x1014fd06
cmp dword [edi + 4], 0
je 0x1014fd06
cmp dword [ebx + 0x3c], 0
je 0x1014fb84
mov esi, ebx
call fcn.10121860
test eax, eax
jne 0x1014fd0b
mov eax, dword [ebx + 0x10]
mov ecx, dword [edi + 4]
add eax, eax
mov dword [ebp - 8], eax
add eax, 3
mov dword [ebp - 4], ecx
cmp ecx, eax
jne 0x1014fbdb
mov esi, dword [edi + 0x10]
push 2
push 0x102752ec
push esi
call sym.SQLite.Interop.dll_sqlite3_strnicmp
add esp, 0xc
test eax, eax
jne 0x1014fbdb
mov edx, dword [ebp - 8]
add esi, 2
call fcn.10122840
test eax, eax
je 0x1014fbdb
mov eax, dword [edi + 8]
mov edx, dword [ebp - 4]
push eax
add edx, 0xfffffffd
mov edi, esi
call fcn.1012ea00
mov edi, dword [ebp + 8]
add esp, 4
jmp 0x1014fc79
mov esi, dword [ebx + 0xc]
add esi, dword [ebx + 0x10]
add esi, esi
lea ecx, [esi + 3]
cmp dword [ebp - 4], ecx
jne 0x1014fc42
mov eax, dword [edi + 0x10]
push 2
push 0x102752ec
push eax
call sym.SQLite.Interop.dll_sqlite3_strnicmp
add esp, 0xc
test eax, eax
jne 0x1014fc42
mov eax, dword [edi + 0x10]
add eax, 2
mov edx, esi
mov esi, eax
call fcn.10122840
test eax, eax
je 0x1014fc42
mov edx, dword [edi + 8]
push edx
mov edx, dword [ebp - 8]
mov edi, esi
call fcn.1012ea00
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
add esp, 4
push eax
add edx, edx
lea edi, [edi + ecx*2]
call fcn.1012ea00
mov edi, dword [ebp + 8]
add esp, 4
jmp 0x1014fc79
mov eax, dword [edi + 8]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 0x5c]
push eax
mov eax, dword [ebx + 0x10]
push eax
mov eax, dword [ebx + 0xc]
push ecx
mov ecx, dword [ebp - 4]
push eax
mov eax, dword [ebx + 0x44]
push eax
mov eax, dword [edi + 0x10]
push ecx
mov ecx, dword [ebx + 0x34]
push eax
mov eax, dword [ebx + 0x60]
push ecx
mov ecx, dword [edx + 0x18]
push eax
call ecx
add esp, 0x24
test eax, eax
jne 0x1014fd06
mov edx, dword [edi + 8]
push edx
push edi
push ebx
call fcn.10147d00
add esp, 0xc
test eax, eax
jne 0x1014fd0b
test byte [ebx + 0x40], 1
je 0x1014fcf8
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x44]
mov edx, dword [ebx + 0x48]
push eax
push ecx
push edx
call fcn.100ffb30
xor eax, eax
add esp, 0xc
cmp dword [ebx + 0xc], eax
jle 0x1014fcc8
mov cl, byte [0x102923ec]
mov esi, dword [ebx + 0x48]
xor cl, byte [esi + eax]
mov edx, dword [ebx + 0x48]
mov byte [eax + edx], cl
inc eax
cmp eax, dword [ebx + 0xc]
jl 0x1014fcb0
mov edx, dword [edi + 0xc]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x5c]
mov ecx, dword [ecx + 0x18]
push edx
mov edx, dword [ebx + 8]
push eax
push edx
mov edx, dword [ebx + 0xc]
push edx
mov edx, dword [ebx + 0x48]
push edx
mov edx, dword [ebx + 0x34]
push eax
mov eax, dword [edi + 8]
push eax
mov eax, dword [ebx + 0x60]
push edx
push eax
call ecx
add esp, 0x24
test eax, eax
jne 0x1014fd06
mov dword [edi], 0
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10151980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
xor eax, eax
push esi
push edi
mov dword [esp + 0xc], eax
mov dword [ecx], eax
test edx, edx
je 0x10151b24
lea ecx, [ebx - 1]
mov eax, 0xd
test ecx, ecx
js 0x101519c5
lea ecx, [ecx]
mov esi, dword [ebp + 0x10]
movsx esi, byte [ecx + esi]
lea edi, [eax*8]
xor esi, edi
xor eax, esi
dec ecx
jns 0x101519b0
lea ecx, [eax*8]
xor ecx, eax
xor ecx, dword [ebp + 0xc]
and ecx, 0x1ff
mov edi, dword [edx + ecx*4]
mov dword [esp + 0x14], ecx
test edi, edi
je 0x10151a3f
mov edx, dword [ebp + 0xc]
cmp dword [edi + 8], edx
jne 0x10151a38
cmp dword [edi + 4], ebx
jne 0x10151a38
mov ecx, dword [ebp + 0x10]
mov esi, dword [edi]
mov eax, ebx
cmp ebx, 4
jb 0x10151a14
jmp 0x10151a00
mov edx, dword [esi]
cmp edx, dword [ecx]
jne 0x10151a38
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x10151a00
test eax, eax
je 0x10151a4f
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x10151a38
cmp eax, 1
jbe 0x10151a4f
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x10151a38
cmp eax, 2
jbe 0x10151a4f
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x10151a4f
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x101519e2
lea edi, [ebx + 0x10]
xor esi, esi
call sym.SQLite.Interop.dll_sqlite3_initialize
test eax, eax
je 0x10151a62
jmp 0x10151abd
mov ecx, dword [ebp + 0x14]
mov eax, dword [esp + 0xc]
mov dword [ecx], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, edi
or edx, esi
je 0x10151ada
test esi, esi
ja 0x10151ada
jb 0x10151a76
cmp edi, 0x7fffff00
jae 0x10151ada
cmp dword [0x10292428], esi
je 0x10151ace
mov eax, dword [0x10299778]
test eax, eax
je 0x10151a91
push eax
call dword [0x10292478]
add esp, 4
lea eax, [esp + 0x10]
push eax
mov eax, edi
call fcn.101448e0
mov eax, dword [0x10299778]
add esp, 4
test eax, eax
je 0x10151ab3
push eax
call dword [0x10292480]
add esp, 4
mov eax, dword [esp + 0x10]
mov esi, eax
test eax, eax
jne 0x10151ade
xor eax, eax
jl 0x10151af0
jg 0x10151ac7
test edi, edi
je 0x10151af0
mov edi, 7
jmp 0x10151af2
push edi
call dword [0x10292448]
add esp, 4
jmp 0x10151ab7
xor eax, eax
jmp 0x10151ab7
push edi
push 0
push eax
call fcn.100ffab0
mov edi, dword [esp + 0x18]
add esp, 0xc
jmp 0x10151af2
mov edi, eax
test esi, esi
je 0x10151b22
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
lea eax, [esi + 0x10]
push edx
push eax
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
call fcn.100ffb30
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x20]
mov edx, dword [ecx + eax*4]
mov dword [esi + 0xc], edx
add esp, 0xc
mov dword [ecx + eax*4], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1015de70
Capabilities:
Reference sql statements

Disassembly:
push edi
push esi
push str.sqlite_master
push esi
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push ebx
call fcn.1015dcc0
add esp, 0x18
test edi, edi
jne 0x1015de9e
push esi
push str.sqlite_master
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push ebx
call fcn.1015dcc0
add esp, 0x10
ret

Function at 0x10161c90
Capabilities:
Reference sql statements

Disassembly:
push ecx
cmp dword [esi + 0x3c], 0
push ebx
lea ebx, [esi + 0x3c]
push edi
jne 0x10161cfb
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
push ecx
push edx
push str.SELECT_pgno_FROM__q._q_idx_WHERE_segid__AND_term___ORDER_BY_term_DESC_LIMIT_1
call sym.SQLite.Interop.dll_sqlite3_mprintf
add esp, 0xc
cmp dword [esi + 0x24], 0
mov edi, eax
jne 0x10161cf2
test edi, edi
je 0x10161ceb
mov eax, dword [esi]
mov eax, dword [eax]
push 0
push ebx
push 0
push 0x85
push 0xffffffffffffffff
push edi
push eax
call fcn.101fbc70
add esp, 0x1c
push edi
mov dword [esi + 0x24], eax
call sym.SQLite.Interop.dll_sqlite3_free
mov eax, dword [ebx]
add esp, 4
pop edi
pop ebx
pop ecx
ret
mov dword [esi + 0x24], 7
push edi
call sym.SQLite.Interop.dll_sqlite3_free
add esp, 4
mov eax, dword [ebx]
pop edi
pop ebx
pop ecx
ret
Function at 0x10165df0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10291210]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
mov ecx, dword [esi]
mov dword [ebp - 0x3c], edx
mov edx, dword [ecx + 0x10]
add eax, eax
mov eax, dword [edx + eax*8]
mov dword [ebp - 0x20], eax
mov eax, 1
push edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], eax
jmp 0x10165e33
mov esi, dword [ebp - 0x2c]
push eax
push str.sqlite_stat_d
lea ecx, [ebp - 0x1c]
push ecx
push 0x18
call sym.SQLite.Interop.dll_sqlite3_snprintf
mov edi, dword [esi]
lea edx, [ebp - 0x1c]
add esp, 0x10
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x30], edi
xor ebx, ebx
cmp dword [edi + 0x14], ebx
jle 0x10165f19
mov eax, ebx
cmp ebx, 2
jge 0x10165e67
xor eax, 1
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x10165e92
mov esi, dword [edi + 0x10]
mov ecx, eax
add ecx, ecx
mov edi, dword [esi + ecx*8]
sub edi, edx
lea ebx, [ebx]
movzx ecx, byte [edx]
movzx esi, byte [edi + edx]
cmp ecx, esi
jne 0x10165ef4
test ecx, ecx
jne 0x10165f06
mov edi, dword [ebp - 0x30]
mov edx, dword [edi + 0x10]
mov ecx, dword [ebp - 0x24]
add eax, eax
mov eax, dword [edx + eax*8 + 0xc]
push 0
add eax, 8
push ecx
call fcn.1012ced0
add esp, 8
cmp dword [eax + 8], 0
je 0x10165f0f
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x1c]
push edx
push eax
push str.DELETE_FROM__Q._s_WHERE__s_Q
push ecx
call fcn.1015dcc0
add esp, 0x18
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp eax, 4
jle 0x10165e30
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100fd740
mov esp, ebp
pop ebp
ret
movzx esi, byte [esi + 0x1026d428]
movzx ecx, byte [ecx + 0x1026d428]
sub ecx, esi
jne 0x10165f0c
inc edx
jmp 0x10165e80
mov edi, dword [ebp - 0x30]
inc ebx
cmp ebx, dword [edi + 0x14]
jl 0x10165e5d
mov ecx, dword [ebp - 0x24]
mov esi, str.sqlite_master
sub esi, ecx
movzx eax, byte [ecx]
movzx edx, byte [esi + ecx]
cmp eax, edx
jne 0x10165f52
test eax, eax
jne 0x10165f68
cmp dword [ebp - 0x20], 0
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 0x10]
jne 0x10165f6b
neg eax
sbb eax, eax
test eax, eax
jne 0x10165ed3
mov dword [ebp - 0x24], str.sqlite_temp_master
jmp 0x10165e52
movzx edx, byte [edx + 0x1026d428]
movzx eax, byte [eax + 0x1026d428]
sub eax, edx
jne 0x10165ed3
inc ecx
jmp 0x10165f23
test eax, eax
je 0x10165ed3
mov ecx, dword [ebp - 0x20]
mov esi, eax
sub esi, ecx
lea ebx, [ebx]
movzx eax, byte [ecx]
movzx edx, byte [esi + ecx]
cmp eax, edx
jne 0x10165f92
test eax, eax
je 0x10165f46
inc ecx
jmp 0x10165f80
movzx edx, byte [edx + 0x1026d428]
movzx eax, byte [eax + 0x1026d428]
sub eax, edx
jne 0x10165f42
inc ecx
jmp 0x10165f80