joyce8/EMBER2024-capa huggingface dataset:
Function at 0x61e0481c
Capabilities:
Access peb ldr_data
Get process heap flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ecx, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10
movzx esi, word [ecx + 0x28]
mov di, word [eax + 0x2a]
mov eax, dword [edx + 0x28]
mov bx, word [edx + 0x2a]
mov dword [ebp - 0x10], edx
mov word [ebp - 0x14], ax
mov edx, esi
movzx eax, di
sub edx, eax
movzx eax, word [ebp - 0x14]
mov dword [ebp - 0x18], edx
movzx edx, bx
sub eax, edx
cmp dword [ebp - 0x18], eax
jge 0x61e04812
cmp di, bx
jb 0x61e04812
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
cmp word [ecx + 0x14], ax
jl 0x61e047aa
mov eax, 0
jg 0x61e04814
mov ebx, dword [ebp - 0x10]
mov di, word [ebx + 0x16]
cmp word [ecx + 0x16], di
jg 0x61e04814
movzx eax, word [ebp - 0x14]
xor edi, edi
mov dword [ebp - 0x18], eax
add eax, 0x3fffffff
mov dword [ebp - 0x1c], eax
cmp edi, esi
je 0x61e047f9
lea eax, [esi + 0x3fffffff]
mov ebx, dword [ecx + 0x30]
sub eax, edi
mov ebx, dword [ebx + eax*4]
test ebx, ebx
je 0x61e047f6
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
cmp dword [ebp - 0x18], edx
je 0x61e04812
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x14]
inc dword [ebp - 0x14]
mov eax, edx
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x30]
cmp ebx, dword [edx + eax*4]
jne 0x61e047d8
inc edi
jmp 0x61e047bb
test byte [ecx + 0x24], 0x40
mov eax, 1
je 0x61e04814
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
shr eax, 6
and eax, 1
jmp 0x61e04814
xor dword [esi + 0x57], edx
push edi
push ebx
push ebp
sub esp, 0x38
mov edi, dword [0x61e97922]
and bh, byte [ecx - 0x17]
popal
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
mov edx, dword [ebx]
cmp edx, ebx
je 0x61e04888
xor ebp, ebp
mov esi, dword [edx + 0x30]
mov ecx, ebp
movzx eax, word [esi]
test eax, eax
je 0x61e0487a
mov dword [esp + 8], edx
mov eax, ebp
mov dword [esp + 4], ebx
mov dword [esp], edi
movzx ebx, word [esi + eax*2]
inc eax
lea edx, [ebx - 0x41]
cmp edx, 0x19
lea edi, [ebx + 0x20]
jbe 0x61e04862
mov edi, ebx
movzx edx, di
movzx ebx, word [esi + eax*2]
add ecx, edx
test ebx, ebx
jne 0x61e04850
mov edx, dword [esp + 8]
mov ebx, dword [esp + 4]
mov edi, dword [esp]
cmp edi, ecx
je 0x61e05107
mov edx, dword [edx]
cmp edx, ebx
jne 0x61e04837
xor ebx, ebx
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
mov esi, dword [0x61e9790e]
mov edi, dword [0x61e978e2]
mov edx, dword [0x61e97936]
mov eax, dword [ecx + esi*8 + 0x78]
mov dword [esp + 0xc], edx
mov edx, dword [eax + ebx + 0x24]
mov esi, dword [eax + ebx + 0x20]
add edx, ebx
mov ecx, dword [eax + ebx + 0x1c]
add esi, ebx
mov eax, dword [eax + ebx + 0x18]
add ecx, ebx
test eax, eax
jbe 0x61e04949
mov dword [esp + 0x30], ebx
xor ebp, ebp
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
xor ecx, ecx
jmp 0x61e04936
mov ebx, dword [edx + 0x18]
jmp 0x61e0488a
Function at 0x61e04909
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [esp + 0x30]
add edx, dword [esi + ebp*4]
cmp byte [edx], 0
je 0x61e05100
xor ebx, ebx
inc ebx
cmp byte [ebx + edx], 0
jne 0x61e048ea
xor ecx, ecx
test ebx, ebx
je 0x61e04936
mov dword [esp + 0x18], ebp
xor eax, eax
mov dword [esp + 0x1c], ebx
and al, 0x1c
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov ebp, dword [esp + 0xc]
movzx esi, byte [eax + edx]
xor ebx, ebx
test ebp, ebp
jbe 0x61e04920
xor edi, edi
inc edi
add ebx, ecx
cmp edi, ebp
jb 0x61e04919
inc eax
lea ecx, [ebx + esi]
cmp eax, dword [esp + 0x1c]
jb 0x61e0490d
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
cmp ecx, edi
je 0x61e050e7
inc ebp
cmp ebp, dword [esp + 8]
jb 0x61e048d8
mov ebx, dword [esp + 0x30]
xor eax, eax
mov edx, dword [0x61e978ea]
push edx
push 0
call eax
mov ebp, eax
mov edi, dword [ebx + 0x3c]
add edi, ebx
mov eax, dword [0x61e9790e]
mov edx, dword [0x61e9792e]
mov ecx, dword [0x61e97936]
mov esi, dword [edi + eax*8 + 0x78]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov edx, dword [esi + ebx + 0x24]
mov edi, dword [esi + ebx + 0x20]
add edx, ebx
mov ecx, dword [esi + ebx + 0x1c]
add edi, ebx
mov eax, dword [esi + ebx + 0x18]
add ecx, ebx
test eax, eax
jbe 0x61e04a22
mov dword [esp + 0x1c], ebp
xor esi, esi
test byte [ecx - 0x76cfdba4], 0x44
and al, 8
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
add edx, dword [edi + esi*4]
cmp byte [edx], 0
je 0x61e050e0
xor ebx, ebx
inc ebx
cmp byte [ebx + edx], 0
jne 0x61e049c3
xor ecx, ecx
test ebx, ebx
je 0x61e04a0b
mov dword [esp + 0x20], ebx
xor eax, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov ebp, dword [esp + 0xc]
movzx esi, byte [eax + edx]
xor ebx, ebx
test ebp, ebp
jbe 0x61e049f5
xor edi, edi
inc edi
add ebx, ecx
cmp edi, ebp
jb 0x61e049ee
inc eax
lea ecx, [ebx + esi]
cmp eax, dword [esp + 0x20]
jb 0x61e049e2
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
cmp ecx, ebp
je 0x61e050c3
inc esi
cmp esi, dword [esp + 8]
jb 0x61e049b1
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x1c]
xor eax, eax
push 0x104
push ebp
push 0
call eax
mov edx, eax
mov eax, dword [str.rasmm]
mov esi, dword [0x61e97932]
movzx ecx, word [ebp + edx*2 - 2]
cmp cx, si
je 0x61e04a5d
xor edi, edi
mov word [ebp + edx*2], di
dec edx
mov esi, dword [0x61e97932]
invalid
mov bh, 0x4c
Function at 0x61e0499d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edx, dword [esp + 0x30]
add edx, dword [esi + ebp*4]
cmp byte [edx], 0
je 0x61e05100
xor ebx, ebx
inc ebx
cmp byte [ebx + edx], 0
jne 0x61e048ea
xor ecx, ecx
test ebx, ebx
je 0x61e04936
mov dword [esp + 0x18], ebp
xor eax, eax
mov dword [esp + 0x1c], ebx
and al, 0x1c
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov ebp, dword [esp + 0xc]
movzx esi, byte [eax + edx]
xor ebx, ebx
test ebp, ebp
jbe 0x61e04920
xor edi, edi
inc edi
add ebx, ecx
cmp edi, ebp
jb 0x61e04919
inc eax
lea ecx, [ebx + esi]
cmp eax, dword [esp + 0x1c]
jb 0x61e0490d
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
cmp ecx, edi
je 0x61e050e7
inc ebp
cmp ebp, dword [esp + 8]
jb 0x61e048d8
mov ebx, dword [esp + 0x30]
xor eax, eax
mov edx, dword [0x61e978ea]
push edx
push 0
call eax
mov ebp, eax
mov edi, dword [ebx + 0x3c]
add edi, ebx
mov eax, dword [0x61e9790e]
mov edx, dword [0x61e9792e]
mov ecx, dword [0x61e97936]
mov esi, dword [edi + eax*8 + 0x78]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
mov edx, dword [esi + ebx + 0x24]
mov edi, dword [esi + ebx + 0x20]
add edx, ebx
mov ecx, dword [esi + ebx + 0x1c]
add edi, ebx
mov eax, dword [esi + ebx + 0x18]
add ecx, ebx
test eax, eax
jbe 0x61e04a22
mov dword [esp + 0x1c], ebp
xor esi, esi
test byte [ecx - 0x76cfdba4], 0x44
and al, 8
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
add edx, dword [edi + esi*4]
cmp byte [edx], 0
je 0x61e050e0
xor ebx, ebx
inc ebx
cmp byte [ebx + edx], 0
jne 0x61e049c3
xor ecx, ecx
test ebx, ebx
je 0x61e04a0b
mov dword [esp + 0x20], ebx
xor eax, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
mov ebp, dword [esp + 0xc]
movzx esi, byte [eax + edx]
xor ebx, ebx
test ebp, ebp
jbe 0x61e049f5
xor edi, edi
inc edi
add ebx, ecx
cmp edi, ebp
jb 0x61e049ee
inc eax
lea ecx, [ebx + esi]
cmp eax, dword [esp + 0x20]
jb 0x61e049e2
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
cmp ecx, ebp
je 0x61e050c3
inc esi
cmp esi, dword [esp + 8]
jb 0x61e049b1
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x1c]
xor eax, eax
push 0x104
push ebp
push 0
call eax
mov edx, eax
mov eax, dword [str.rasmm]
mov esi, dword [0x61e97932]
movzx ecx, word [ebp + edx*2 - 2]
cmp cx, si
je 0x61e04a5d
xor edi, edi
mov word [ebp + edx*2], di
dec edx
mov esi, dword [0x61e97932]
invalid
mov bh, 0x4c
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 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

Function at 0x61e7bddd
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
mov edi, edx
lea esi, [ebx + edi*4]
sub esp, 0x6c
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp dword [esi + 0x18], 0
mov dword [ebp - 0x20], str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
mov dword [ebp - 0x1c], str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
jne 0x61e7be3a
mov eax, dword [ebx + 8]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [ebp + edi*4 - 0x20]
mov dword [esp + 4], eax
call sym._rtreeCheckPrepare
mov dword [esi + 0x18], eax
cmp dword [ebx + 0x28], 0
jne 0x61e7bf3a
mov esi, dword [esi + 0x18]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], 1
mov dword [esp + 0xc], edx
mov dword [esp], esi
mov dword [esp + 8], eax
call sym.sqlite3.dll_sqlite3_bind_int64
mov dword [esp], esi
call sym.sqlite3.dll_sqlite3_step
cmp eax, 0x65
jne 0x61e7beb3
test edi, edi
mov edx, str.__parent
mov eax, str.__rowid
cmove eax, edx
mov edx, dword [ebp - 0x2c]
mov dword [esp + 4], str.Mapping___lld_____lld__missing_from__s_table
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], eax
call sym._rtreeCheckAppendMsg
jmp 0x61e7bf29
cmp eax, 0x64
jne 0x61e7bf29
mov dword [esp + 4], 0
mov dword [esp], esi
call sym.sqlite3.dll_sqlite3_column_int64
cmp dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], edx
jne 0x61e7bed5
cmp dword [ebp - 0x34], eax
je 0x61e7bf29
test edi, edi
mov ecx, str.__rowid
mov edi, str.__parent
cmovne edi, ecx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x18], edi
mov edi, dword [ebp - 0x34]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 0x14], eax
mov eax, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], edi
mov dword [esp + 8], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov dword [esp], ebx
call sym._rtreeCheckAppendMsg
mov dword [esp], esi
call sym.sqlite3.dll_sqlite3_reset
cmp dword [ebx + 0x28], 0
jne 0x61e7bf3a
mov dword [ebx + 0x28], eax
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x61e90c90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x61eaa7e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x61eaa7e0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x61e90ce5
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x61e90cde
test esi, esi
je 0x61e90cde
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x61e90cc0
mov dword [esp], 0x61eaa7e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x61e952be
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edi, ecx
mov esi, eax
mov ebx, edx
sub esp, 0x2c
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.sqlite_master
mov dword [esp + 8], edx
mov dword [esp + 4], str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqlite____AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
mov dword [esp], eax
call sym._sqlite3NestedParse
test edi, edi
jne 0x61e95311
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.sqlite_master
mov dword [esp + 4], str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqlite____AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
mov dword [esp], esi
call sym._sqlite3NestedParse
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10036c0
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x1013805
call fcn.010136e0
sub esp, 0x224
mov eax, dword [0x10171b0]
push esi
push edi
push 0xfa1
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov esi, ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
xor edi, edi
cmp eax, edi
je 0x1003737
cmp dword [esi], edi
jne 0x100383b
push 0x34
call fcn.010121dd
pop ecx
mov dword [ebp - 0x22c], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x1003718
push 3
mov ecx, eax
call fcn.0100ed50
jmp 0x100371a
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp eax, edi
mov dword [esi], eax
je 0x1003737
push eax
call fcn.0100ed74
test eax, eax
jge 0x100373e
push dword [esi]
call fcn.0100fe91
mov dword [esi], edi
xor eax, eax
jmp 0x100383e
push 0x20019
call sym.mobsync.dll_RegGetHandlerTopLevelKey
cmp eax, edi
mov dword [ebp - 0x22c], eax
je 0x10037d9
push ebx
mov ebx, 0x104
push ebx
lea ecx, [ebp - 0x228]
push ecx
push edi
mov dword [ebp - 0x230], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push eax
jmp 0x10037c4
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x10037aa
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [esi]
call fcn.0100eda2
test eax, eax
jne 0x10037aa
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
push dword [esi]
call fcn.0100fa50
inc dword [ebp - 0x230]
push ebx
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x230]
push dword [ebp - 0x22c]
call edi
test eax, eax
je 0x1003774
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
pop ebx
lea eax, [ebp + 8]
push eax
push 3
push dword [esi]
call fcn.0100fa12
jmp 0x100380a
push edi
push edi
push 0x100
push edi
push dword [ebp + 8]
push dword [esi]
call fcn.0100faea
lea eax, [ebp + 8]
push eax
push 3
push dword [ebp + 8]
push dword [esi]
call fcn.0100f061
test eax, eax
je 0x10037e8
lea eax, [ebp + 8]
push eax
push 5
push dword [esi]
call fcn.0100fa12
jmp 0x1003837
push dword [ebp + 8]
push dword [esi]
call fcn.0100feb3
lea eax, [ebp + 8]
push eax
push 5
push dword [ebp + 8]
push dword [esi]
call fcn.0100f061
test eax, eax
je 0x100381d
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.01012103
leave
ret 8
Function at 0x1004431
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x101383f
call fcn.010136e0
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x2c], ebx
je 0x1004456
xor eax, eax
cmp dword [esi + 0x30], ebx
sete al
jmp 0x1004568
push edi
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x18]
call fcn.0100410f
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
inc dword [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.0101356a
cmp dword [esi + 0x2c], ebx
jne 0x100453f
push 0x1001638
mov dword [esi + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x30], eax
je 0x100450b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001654
push eax
call edi
push 0x1001668
push dword [esi + 0x30]
mov dword [esi + 0x34], eax
call edi
push 0x100167c
push dword [esi + 0x30]
mov dword [esi + 0x38], eax
call edi
push 0x100168c
push dword [esi + 0x30]
mov dword [esi + 0x3c], eax
call edi
push 0x100169c
push dword [esi + 0x30]
mov dword [esi + 0x40], eax
call edi
push 0x10016b4
push dword [esi + 0x30]
mov dword [esi + 0x44], eax
call edi
push 0x10016c8
push dword [esi + 0x30]
mov dword [esi + 0x48], eax
call edi
push 0x10016dc
push dword [esi + 0x30]
mov dword [esi + 0x4c], eax
call edi
push 0x10016f4
push dword [esi + 0x30]
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x1004533
cmp dword [esi + 0x38], ebx
je 0x1004525
cmp dword [esi + 0x4c], ebx
je 0x1004525
cmp dword [esi + 0x3c], ebx
je 0x1004525
xor edi, edi
jmp 0x1004536
cmp eax, ebx
je 0x1004533
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x30], ebx
xor edi, edi
inc edi
mov dword [esi + 0x2c], 1
jmp 0x1004549
xor eax, eax
cmp dword [esi + 0x30], ebx
sete al
mov edi, eax
cmp dword [ebp - 0x18], ebx
jbe 0x1004559
mov ecx, dword [ebp - 0x14]
dec dword [ebp - 0x18]
call fcn.0101357f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0100412b
mov eax, edi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret