joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004e150
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
mov edi, ecx
push dword [esi + 0x14]
mov ecx, dword [esi + 8]
push dword [esi + 0x10]
mov edx, dword [edi + 4]
push dword [esi + 4]
push ebx
call fcn.1004e310
mov ecx, eax
add esp, 0x10
test ecx, ecx
je 0x1004e19f
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_SI1c7a7970970b9619
add esp, 0x1c
mov dword [ebp - 8], eax
test eax, eax
jne 0x1004e1ab
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 4]
mov edx, eax
push ecx
mov ecx, dword [edi]
push 0
push 0
push 0xffffffffffffffff
call fcn.100a7a30
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x1004e214
mov ecx, dword [edi + 0x44]
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_SI9c6d7cd7b7d38055
add esp, 4
cmp eax, 0x64
jne 0x1004e207
push esi
mov edx, edi
mov ecx, 0x17
call fcn.1004e6b0
add esp, 4
push dword [ebp - 4]
call sym.SQLite.Interop.dll_SI9c6d7cd7b7d38055
add esp, 4
cmp eax, 0x64
je 0x1004e1e7
push dword [ebp - 4]
call fcn.100e6950
add esp, 4
mov ebx, eax
push dword [ebp - 8]
call sym.SQLite.Interop.dll_SIfc350ae509dc2b53
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1004e230
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 dword [ebp - 4], ecx
mov eax, dword [edi + 4]
push eax
push dword [ebp + 0x10]
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_SI1c7a7970970b9619
add esp, 0x18
mov dword [ebp - 8], eax
test eax, eax
jne 0x1004e26f
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp + 8]
mov edx, eax
push ecx
mov ecx, dword [esi]
push 0
push 0
push 0xffffffffffffffff
call fcn.100a7a30
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x1004e2da
mov ecx, dword [esi + 0x44]
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], ebx
push dword [ebp + 8]
call sym.SQLite.Interop.dll_SI9c6d7cd7b7d38055
add esp, 4
cmp eax, 0x64
jne 0x1004e2cd
mov ebx, dword [ebp - 4]
nop dword [eax + eax]
push edi
mov edx, esi
mov ecx, ebx
call fcn.1004e6b0
add esp, 4
push dword [ebp + 8]
call sym.SQLite.Interop.dll_SI9c6d7cd7b7d38055
add esp, 4
cmp eax, 0x64
je 0x1004e2b0
push dword [ebp + 8]
call fcn.100e6950
add esp, 4
mov ebx, eax
push dword [ebp - 8]
call sym.SQLite.Interop.dll_SIfc350ae509dc2b53
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1004fd10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov dword [ebp - 0x10], edx
xor eax, eax
mov edx, dword [ecx + 8]
xor esi, esi
mov dword [ebp - 0xc], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp + 8], edx
test edx, edx
jle 0x1004fe5e
mov ebx, dword [ecx + 0x14]
mov dword [ebp - 0x14], ebx
nop word [eax + eax]
cmp dword [ebp - 0x10], 0
movzx ecx, byte [edi]
movzx eax, byte [ebx + eax]
je 0x1004fd57
test eax, eax
je 0x1004fe4f
jmp 0x1004fd5f
test eax, eax
je 0x1004fdf0
lea eax, [esi*8]
inc edi
xor eax, ecx
xor esi, eax
cmp ecx, 1
je 0x1004fdc4
cmp ecx, 2
je 0x1004fdc4
mov al, byte [edi]
cmp al, 0x80
jae 0x1004fd88
movzx ebx, al
mov eax, 1
mov dword [ebp - 4], ebx
jmp 0x1004fd98
lea edx, [ebp - 4]
mov ecx, edi
call fcn.1010cdd0
mov ebx, dword [ebp - 4]
movzx eax, al
movzx eax, al
xor edx, edx
add edi, eax
test ebx, ebx
jle 0x1004fdb7
movzx ecx, byte [edx + edi]
lea eax, [esi*8]
xor ecx, eax
inc edx
xor esi, ecx
cmp edx, ebx
jl 0x1004fda3
mov edx, dword [ebp + 8]
add edi, ebx
mov ebx, dword [ebp - 0x14]
jmp 0x1004fe4f
mov ecx, edi
call fcn.10050370
lea ecx, [esi*8]
xor ecx, eax
xor ecx, esi
mov esi, edx
mov edx, dword [ebp + 8]
mov eax, esi
sar eax, 0x1f
lea eax, [ecx*8]
xor esi, eax
xor esi, ecx
add edi, 8
jmp 0x1004fe4f
test ecx, ecx
je 0x1004fe48
cmp ecx, 0xff
je 0x1004fe48
cmp ecx, 5
je 0x1004fe48
cmp ecx, 1
je 0x1004fe41
cmp ecx, 2
je 0x1004fe41
mov al, byte [edi + 1]
lea ecx, [edi + 1]
cmp al, 0x80
jae 0x1004fe28
movzx ecx, al
mov eax, 1
movzx eax, al
inc eax
mov dword [ebp - 8], ecx
add eax, ecx
jmp 0x1004fe4d
lea edx, [ebp - 8]
call fcn.1010cdd0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
movzx eax, al
movzx eax, al
inc eax
add eax, ecx
jmp 0x1004fe4d
mov eax, 9
jmp 0x1004fe4d
mov eax, 1
add edi, eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, edx
jl 0x1004fd40
mov eax, esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10050060
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 0x10050086
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 0x10050071
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x10052f00
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x10], str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
mov esi, ecx
mov dword [ebp - 0xc], str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
cmp dword [esi + edi*4 + 0x18], 0
jne 0x10052f39
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp + edi*4 - 0x10]
push esi
call fcn.10053190
add esp, 0x10
mov dword [esi + edi*4 + 0x18], eax
cmp dword [esi + 0x28], 0
jne 0x10052ffe
push dword [ebp + 0xc]
mov ebx, dword [esi + edi*4 + 0x18]
push dword [ebp + 8]
push 1
push ebx
call sym.SQLite.Interop.dll_SI46481015c7f49c68
push ebx
call sym.SQLite.Interop.dll_SI9c6d7cd7b7d38055
add esp, 0x14
cmp eax, 0x65
jne 0x10052f91
mov edx, dword [ebp + 8]
mov ecx, str.__parent
test edi, edi
mov eax, str.__rowid
cmove eax, ecx
mov ecx, dword [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push edx
push str.Mapping___lld_____lld__missing_from__s_table
push esi
call fcn.10053130
add esp, 0x1c
jmp 0x10052fec
cmp eax, 0x64
jne 0x10052fec
push 0
push ebx
call sym.SQLite.Interop.dll_SIf8364af380546f2d
mov ecx, eax
add esp, 8
mov eax, edx
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x10]
cmp ecx, edx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], eax
jne 0x10052fb9
cmp eax, ecx
je 0x10052fec
push ecx
mov ecx, dword [ebp + 0xc]
test edi, edi
push edx
mov edx, dword [ebp + 8]
mov eax, str.__rowid
push ecx
push edx
mov dword [ebp - 4], str.__parent
cmove eax, dword [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push ecx
push edx
push str.Found___lld_____lld__in__s_table__expected___lld_____lld_
push esi
call fcn.10053130
add esp, 0x2c
push ebx
call fcn.100e6880
add esp, 4
cmp dword [esi + 0x28], 0
jne 0x10052ffe
mov dword [esi + 0x28], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10053010
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], edx
push edi
xor edi, edi
cmp dword [esi + 0x28], edi
jne 0x10053119
cmp dword [esi + 0x14], edi
jne 0x10053049
push dword [esi + 8]
push dword [esi + 4]
push str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
push esi
call fcn.10053190
add esp, 0x10
mov dword [esi + 0x14], eax
cmp dword [esi + 0x28], edi
jne 0x10053119
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
push 1
push dword [esi + 0x14]
call sym.SQLite.Interop.dll_SI46481015c7f49c68
push dword [esi + 0x14]
call sym.SQLite.Interop.dll_SI9c6d7cd7b7d38055
add esp, 0x14
cmp eax, 0x64
jne 0x100530eb
push 0
push dword [esi + 0x14]
call sym.SQLite.Interop.dll_SId99ac2a61d035e11
push 0
push dword [esi + 0x14]
mov ebx, eax
call sym.SQLite.Interop.dll_SIbc9b0b73a965892b
mov dword [esp + 0x20], eax
add esp, 0x10
mov eax, ebx
cdq
mov edi, eax
mov dword [esp + 0xc], edx
call fcn.100791f0
test eax, eax
je 0x100530ad
xor edi, edi
mov dword [esi + 0x28], 7
jmp 0x100530e8
mov ecx, dword [esp + 0xc]
mov eax, edi
or eax, ecx
je 0x100530c5
push ecx
push edi
call fcn.10111bb0
add esp, 8
mov edi, eax
jmp 0x100530c7
xor edi, edi
test edi, edi
jne 0x100530d4
mov dword [esi + 0x28], 7
jmp 0x100530e8
push ebx
push dword [esp + 0x14]
push edi
call fcn.10015590
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [eax], ebx
mov ebx, dword [ebp + 0xc]
push dword [esi + 0x14]
call fcn.100e6880
add esp, 4
cmp dword [esi + 0x28], 0
jne 0x10053119
mov dword [esi + 0x28], eax
test eax, eax
jne 0x10053119
test edi, edi
jne 0x10053119
push ebx
push dword [ebp + 8]
push str.Node__lld_missing_from_database
push esi
call fcn.10053130
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10053930
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 0x100539ad
push dword [esi + 0x20]
mov dword [ebp + 8], 0
push str.PRAGMA__Q.page_size
call sym.SQLite.Interop.dll_SI1c7a7970970b9619
lea ecx, [ebp + 8]
mov dword [ebp - 4], eax
push ecx
mov edx, eax
mov ecx, edi
call fcn.10053a10
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1005399c
movzx ecx, byte [esi + 0x17]
mov edx, dword [ebp + 8]
imul ecx, ecx, 0x33
add edx, 0xffffffc0
mov dword [esi + 0x10], edx
add ecx, 4
cmp ecx, edx
jge 0x100539fc
push dword [ebp - 4]
mov dword [esi + 0x10], ecx
call sym.SQLite.Interop.dll_SIfc350ae509dc2b53
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.100766e0
add esp, 4
push eax
push 0x10128c10
jmp 0x100539ef
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_SI1c7a7970970b9619
add esp, 0xc
mov dword [ebp - 4], eax
lea ecx, [esi + 0x10]
mov edx, eax
push ecx
mov ecx, edi
call fcn.10053a10
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1005399c
cmp dword [esi + 0x10], 0x1c0
jge 0x100539fc
push dword [esi + 0x24]
mov ebx, 0x10b
push str.undersize_RTree_blobs_in___q_node_
call sym.SQLite.Interop.dll_SI1c7a7970970b9619
mov ecx, dword [ebp + 0xc]
add esp, 8
mov dword [ecx], eax
push dword [ebp - 4]
call sym.SQLite.Interop.dll_SIfc350ae509dc2b53
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10053f80
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov esi, edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.sqlite_stat1
push dword [esi + 0x20]
mov eax, ecx
mov edi, 0x64
push eax
mov dword [ebp - 4], eax
call fcn.10074e00
add esp, 0x24
test eax, eax
je 0x10053fcb
xor ecx, ecx
mov dword [esi + 0x30], 0x100000
cmp eax, 1
mov dword [esi + 0x34], ebx
cmove eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x24]
push dword [esi + 0x20]
push str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
call sym.SQLite.Interop.dll_SI1c7a7970970b9619
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x10053ffe
mov edi, 0x64
xor ebx, ebx
mov eax, 7
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 8]
mov edx, eax
push ecx
mov ecx, dword [ebp - 4]
push 0
push 0x80
push 0xffffffffffffffff
call fcn.100a7a30
add esp, 0x14
mov dword [ebp - 4], eax
test eax, eax
jne 0x10054050
push dword [ebp - 8]
call sym.SQLite.Interop.dll_SI9c6d7cd7b7d38055
add esp, 4
cmp eax, 0x64
jne 0x10054042
push 0
push dword [ebp - 8]
call sym.SQLite.Interop.dll_SIf8364af380546f2d
add esp, 8
mov edi, eax
mov ebx, edx
push dword [ebp - 8]
call fcn.100e6950
add esp, 4
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
call sym.SQLite.Interop.dll_SIfc350ae509dc2b53
add esp, 4
test ebx, ebx
jl 0x10054076
jg 0x10054066
cmp edi, 0x64
jbe 0x10054076
mov eax, dword [ebp - 4]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov edi, 0x64
xor ebx, ebx
mov dword [esi + 0x30], edi
pop edi
mov dword [esi + 0x34], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10059940
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 0x10059968
lea eax, [esi - 0x41]
cmp eax, 0x19
ja 0x10059a12
lea eax, [esi + 0x20]
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0x10000
jge 0x10059a04
push ebx
push edi
mov edi, 0xa2
mov dword [ebp - 4], 0xffffffff
xor ebx, ebx
lea eax, [ebx + edi]
cdq
sub eax, edx
mov edx, esi
sar eax, 1
movzx ecx, word [eax*4 + 0x10135370]
sub edx, ecx
js 0x100599a4
mov edx, eax
lea ebx, [eax + 1]
mov dword [ebp - 4], edx
jmp 0x100599aa
mov edx, dword [ebp - 4]
lea edi, [eax - 1]
cmp edi, ebx
jge 0x10059984
movzx ecx, word [edx*4 + 0x10135370]
movzx eax, byte [edx*4 + 0x10135373]
add eax, ecx
pop edi
pop ebx
cmp esi, eax
jge 0x100599e9
movzx eax, byte [edx*4 + 0x10135372]
xor ecx, esi
and ecx, eax
test ecx, 1
jne 0x100599e9
shr eax, 1
movzx eax, word [eax*2 + 0x10134c00]
add eax, esi
movzx esi, ax
mov eax, dword [ebp - 8]
test eax, eax
je 0x10059a12
xor edx, edx
mov ecx, esi
cmp eax, 2
sete dl
call fcn.10059a60
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x10400]
cmp eax, 0x27
lea eax, [esi + 0x28]
jbe 0x10059a14
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1005c670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [eax]
mov ebx, dword [eax + 4]
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 0x1005c830
mov eax, edi
xor esi, esi
and eax, 1
mov dword [ebp - 0xc], esi
or eax, esi
jne 0x1005c6c8
inc esi
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
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 0x1005c6a5
mov dword [ebp - 0xc], esi
mov eax, dword [ebp + 8]
xor edx, edx
dec eax
mov dword [ebp - 8], 0
xor ecx, ecx
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, edi
and ecx, ebx
or edx, ecx
jne 0x1005c718
mov esi, eax
inc dword [ebp - 8]
dec esi
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
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 0x1005c6f2
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 0x1005c830
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov ecx, dword [ecx + 0x24]
mov dword [ebp - 0x14], ecx
mov eax, dword [ecx]
mov edi, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi + 0xc]
push dword [ebp + 0xc]
push ecx
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1005c796
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
cmp dword [edi], 1
jl 0x1005c796
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 0x1005c796
push dword [ebp - 8]
mov eax, dword [edi + 0x10]
call eax
add esp, 4
xor edi, edi
mov dword [ebp - 8], edi
jmp 0x1005c799
mov edi, dword [ebp - 8]
test esi, esi
je 0x1005c7a6
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add ebx, dword [ebp + 8]
nop dword [eax]
cmp dword [ebp - 0xc], ebx
jge 0x1005c7f0
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0
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]
call eax
mov esi, eax
add esp, 0x18
test esi, esi
je 0x1005c7b0
mov eax, dword [ebp - 0x10]
push edi
mov ecx, dword [eax + 0x10]
call ecx
add esp, 4
test esi, esi
je 0x1005c805
cmp esi, 0x65
jne 0x1005c79d
xor ecx, ecx
cmp esi, 0x65
sete cl
sub ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
test ecx, ecx
jle 0x1005c830
mov eax, dword [ebp + 0x14]
movq xmm1, qword [ebp - 0x2c]
movd xmm0, ecx
psrlq xmm1, xmm0
add dword [eax], ecx
mov eax, dword [ebp + 0x18]
movq qword [eax], xmm1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100b94c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, ecx
mov dword [esp + 8], 0xffffffff
push ebx
push esi
xor ecx, ecx
mov dword [esp + 0xc], eax
test byte [edx + 0x1c], 0x80
mov ebx, dword [eax + 8]
push edi
mov dword [esp + 0x24], ebx
jne 0x100b94ed
xor edi, edi
jmp 0x100b9504
mov edi, dword [edx + 8]
test edi, edi
je 0x100b9504
mov eax, dword [edi + 0x38]
and al, 3
cmp al, 2
je 0x100b9504
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x100b94f4
mov esi, dword [edx + 8]
test esi, esi
je 0x100b9644
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], edx
nop dword [eax]
cmp dword [ebp + 0x10], 0
je 0x100b952f
cmp dword [edx], 0
je 0x100b962e
cmp esi, edi
je 0x100b962e
cmp eax, dword [ebp + 0x14]
je 0x100b962e
push dword [esp + 0x14]
lea eax, [esp + 0x24]
mov edx, esi
push ecx
mov ecx, dword [esp + 0x18]
push eax
push 1
push 0
push dword [ebp + 8]
call fcn.100b9250
add esp, 0x18
mov edx, eax
test byte [esi + 0x38], 8
mov dword [esp + 0x14], edx
je 0x100b9571
movzx ecx, word [esi + 0x32]
jmp 0x100b9575
movzx ecx, word [esi + 0x34]
movzx eax, cx
mov ecx, dword [ebx + 0x74]
mov dword [esp + 0x1c], eax
cmp dword [ebx + 0x78], ecx
jg 0x100b959a
push eax
push edx
push dword [ebp + 0xc]
mov edx, 0x8a
mov ecx, ebx
call fcn.100ec0c0
add esp, 0xc
jmp 0x100b95cc
mov edx, dword [ebp + 0xc]
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x8a
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [ebx + 0x74]
test eax, eax
jle 0x100b95e3
lea ecx, [eax + eax*4]
mov edx, 1
mov eax, dword [ebx + 0x70]
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [esp + 0x20]
test edx, edx
je 0x100b9625
mov eax, dword [esp + 0x10]
not edx
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x100b9611
push edx
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 8]
call fcn.100eb740
add esp, 4
jmp 0x100b9625
mov ebx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x40]
mov eax, dword [ebx + 8]
mov ebx, dword [esp + 0x24]
mov eax, dword [eax + 0x74]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp + 0xc]
mov ecx, esi
mov edx, dword [esp + 0x18]
mov esi, dword [esi + 0x14]
add edx, 4
inc eax
mov dword [esp + 0x18], edx
mov dword [ebp + 0xc], eax
test esi, esi
jne 0x100b9520
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100c35e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
mov dword [ebp - 0x10], edx
xor edx, edx
mov dword [ebp - 8], eax
push edi
xor edi, edi
mov dword [ebp - 4], edx
cmp dword [eax + 0x14], edx
jle 0x100c36a7
push esi
mov esi, dword [ebp + 8]
push ebx
mov eax, edi
mov ebx, edi
xor eax, 1
cmp edi, 2
cmovl ebx, eax
mov eax, dword [ebp - 8]
mov ecx, ebx
add ecx, ecx
mov eax, dword [eax + 0x10]
mov edx, dword [eax + ecx*8 + 0xc]
mov dword [ebp - 0xc], edx
test esi, esi
je 0x100c366c
mov eax, dword [eax + ecx*8]
sub esi, eax
nop dword [eax + eax]
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x100c3642
test edx, edx
je 0x100c366c
inc eax
jmp 0x100c3630
movzx ecx, byte [ecx + 0x10137280]
movzx edx, byte [edx + 0x10137280]
sub edx, ecx
jne 0x100c3657
inc eax
jmp 0x100c3630
test ebx, ebx
jne 0x100c368b
mov edx, dword [ebp + 8]
mov ecx, str.main
call fcn.1010de20
test eax, eax
jne 0x100c368b
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
push 0
lea ecx, [ecx + 0x18]
call fcn.1010c340
add esp, 4
mov edx, dword [eax + 8]
mov dword [ebp - 4], edx
test edx, edx
jne 0x100c369e
jmp 0x100c368e
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc edi
mov esi, dword [ebp + 8]
cmp edi, dword [eax + 0x14]
jl 0x100c3604
pop ebx
pop esi
mov eax, edx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, edx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100cc640
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 0x10]
mov edi, edx
mov ebx, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
mov byte [ebx + 0x10], 1
push edi
push edi
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
push ebx
call fcn.100c3ab0
add esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x100cc681
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
push ebx
call fcn.100c3ab0
add esp, 0x14
pop edi
pop ebx
pop ebp
ret
Function at 0x100f9840
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [esi + 0x25fffffc], edi
lea eax, [ebp - 0x354]
push eax
call fcn.100f8fbe
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100f8f73
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
int3
cld
invalid
inc dword [eax]
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
invalid
dec dword [edx]