joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cca90
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c4427
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x7ef784]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x4ccaca
mov byte [ebx + 0xc], 1
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea edi, [ebx + 8]
push edi
push 0x72709c
push 1
push 0
push 0x72708c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x4ccbc6
cmp dword [edi], 0
je 0x4ccba0
push 0xc
call fcn.006391c8
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x4ccb4c
push str.ROOTCIMV2
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
test eax, eax
je 0x4ccc22
jmp 0x4ccb4e
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4ccc2c
mov ecx, dword [ebx + 8]
lea eax, [ebx + 4]
push eax
push 0
push 0
mov esi, dword [ecx]
push 0
push 0
push 0
mov esi, dword [esi + 0xc]
push 0
push dword [edi]
mov dword [ebp - 4], 1
push ecx
mov ecx, esi
call dword [0x70a5a4]
call esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.004c8530
lea edi, [ebx + 8]
test esi, esi
js 0x4ccbc6
mov eax, dword [ebx + 4]
test eax, eax
je 0x4ccbc2
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov esi, eax
test esi, esi
jns 0x4ccc10
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4ccbdd
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x70a5a4]
call esi
mov ecx, dword [edi]
test ecx, ecx
je 0x4ccbf3
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x70a5a4]
call esi
cmp byte [ebx + 0xc], 0
je 0x4ccbff
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebx + 4], 0
mov dword [edi], 0
mov byte [ebx + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.0056c4a0
push 0x8007000e
call fcn.0056c4a0
int3
Function at 0x4cd900
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x7ef784]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
dec eax
push esi
push edi
cmp eax, 0xfe
ja case.0x4cd92b.2
movzx eax, byte [eax + 0x4cda18]
jmp dword [eax*4 + 0x4cd9f8]
mov esi, 0x2b
jmp 0x4cd961
mov esi, 0x23
jmp 0x4cd961
mov esi, 0x1a
jmp 0x4cd961
mov esi, 0x1c
jmp 0x4cd961
mov esi, 0x2a
jmp 0x4cd961
mov esi, 0x26
jmp 0x4cd961
mov esi, 0x2c
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
mov eax, esi
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4cd9a1
cmp esi, 0x2c
jne 0x4cd9e5
push 1
push ebx
call fcn.004cd900
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006391b7
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
call fcn.004ce3c0
mov edi, eax
add esp, 4
test edi, edi
je 0x4cd9e5
push 0x104
push edi
push 0x104
push ebx
call fcn.004ce310
push edi
mov esi, eax
call fcn.00662a80
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006391b7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006391b7
mov esp, ebp
pop ebp
ret

Function at 0x4cdbf0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.004ce360
mov edi, eax
add esp, 4
test edi, edi
je 0x4cdc1d
push esi
push edi
call fcn.00666f9e
push edi
mov esi, eax
call fcn.00662a80
add esp, 8
mov eax, esi
pop esi
pop edi
pop ebp
ret
push 0x16
call fcn.006627a4
add esp, 4
or eax, 0xffffffff
pop edi
pop ebp
ret

Function at 0x4cde40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x7ef784]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4cdecf
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004ce3c0
mov esi, eax
add esp, 4
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4cde84
sub ecx, edx
je 0x4cde9a
cmp byte [ecx + esi - 1], 0x5c
jne 0x4cde9a
mov byte [ecx + esi - 1], al
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4cdea0
sub ecx, edx
push ecx
push esi
push dword [ebp + 0xc]
push edi
call fcn.004ce310
push esi
call fcn.00662a80
add esp, 0x14
mov eax, edi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006391b7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.006391b7
mov esp, ebp
pop ebp
ret
Function at 0x4ce650
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x7ef784]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x4ce6d2
test edi, edi
je 0x4ce6d2
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ce675
sub ecx, edx
je 0x4ce6d2
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.004cde10
add esp, 8
test eax, eax
jne 0x4ce6d2
mov eax, dword [ebp - 0x20]
xor ecx, ecx
add eax, 1
push 1
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00662a69
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x4ce6d2
push 0x714500
push edi
call fcn.004cdb50
mov edi, eax
add esp, 8
mov eax, dword [esi]
test edi, edi
jne 0x4ce6e5
push eax
call fcn.00662a80
add esp, 4
mov dword [esi], edi
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006391b7
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 0x20]
push 1
push eax
call fcn.006585c9
push edi
mov esi, eax
call fcn.006581d4
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.006391b7
mov esp, ebp
pop ebp
ret
Function at 0x4ed440
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi + 0x44]
test al, al
js 0x4ed52f
push ebx
xor ebx, ebx
push edi
test al, al
jle 0x4ed4c9
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ecx
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x4ed4ae
mov eax, dword [ecx + 0x14]
dec dword [eax + 0x78]
mov edx, dword [eax + 0x88]
mov dword [ecx + 0x10], edx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], ecx
push dword [ecx + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [ecx + 0x18]
mov edi, dword [esi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.00639d80
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x4ed4b7
push ecx
call fcn.0052a180
add esp, 4
mov ecx, dword [ebp - 4]
inc ebx
movsx eax, byte [esi + 0x44]
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, eax
jl 0x4ed461
mov eax, dword [esi + 0x74]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4ed520
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]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.00639d80
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp + 8]
add esp, 0x10
pop edi
pop ebx
mov byte [esi + 0x44], 0xff
pop esi
mov esp, ebp
pop ebp
ret
push edx
call fcn.0052a180
add esp, 4
mov byte [esi + 0x44], 0xff
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ee5a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push esi
push ebx
push edi
mov eax, dword [edi + 0x50]
call eax
movzx eax, word [esi + 0x10]
add esp, 0xc
mov edx, dword [esi + 0xc]
cmp eax, edx
je 0x4ee763
movzx esi, word [esi + 0x12]
add esi, ebx
cmp esi, dword [edi + 0x3c]
jbe 0x4ee5ff
push 0x7269b4
push 0x1134c
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d5b20
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [edi + 0x34]
sub edx, eax
mov esi, dword [esi - 4]
bswap esi
mov dword [ebp + 0x10], edi
mov ecx, dword [edi + 0x24]
lea eax, [edx - 1]
sub ecx, 4
xor edx, edx
add eax, ecx
div ecx
mov ebx, eax
test ebx, ebx
je 0x4ee763
nop word [eax + eax]
dec ebx
mov dword [ebp - 4], 0
mov dword [ebp + 8], 0
cmp esi, 2
jb 0x4ee739
cmp esi, dword [edi + 0x2c]
ja 0x4ee739
test ebx, ebx
je 0x4ee679
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push esi
push edi
call fcn.004fb940
add esp, 0x10
test eax, eax
jne 0x4ee765
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4ee689
mov edi, dword [ebp + 0x10]
push esi
push edi
call fcn.004ed0a0
mov edi, eax
add esp, 8
test edi, edi
je 0x4ee6ba
mov ecx, dword [edi + 0x48]
cmp word [ecx + 0x1e], 1
je 0x4ee6ba
push 0x7269b4
push 0x11371
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d5b20
add esp, 0x14
mov dword [ebp + 8], 0xb
jmp 0x4ee6ca
push esi
push edi
push dword [ebp + 0x10]
call fcn.004f9960
add esp, 0xc
mov dword [ebp + 8], eax
test edi, edi
je 0x4ee723
mov edx, dword [edi + 0x48]
test edx, edx
je 0x4ee723
test byte [edx + 0x1c], 0x20
je 0x4ee71a
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]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.00639d80
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4ee723
push edx
call fcn.0052a180
add esp, 4
mov eax, dword [ebp + 8]
test eax, eax
jne 0x4ee765
mov esi, dword [ebp - 4]
test ebx, ebx
je 0x4ee763
mov edi, dword [ebp + 0x10]
jmp 0x4ee630
push 0x7269b4
push 0x1135d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d5b20
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ff790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], 0
mov al, byte [esi + 0x44]
test al, al
js 0x4ff82e
je 0x4ff8a4
push dword [esi + 0x74]
call fcn.00507c20
add esp, 4
sub byte [esi + 0x44], 1
je 0x4ff823
push ebx
movsx eax, byte [esi + 0x44]
mov eax, dword [esi + eax*4 + 0x78]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4ff813
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov edi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov ebx, dword [edi]
cdq
push edx
push eax
push 0
push ecx
call fcn.00639d80
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x4ff81c
push edx
call fcn.0052a180
add esp, 4
sub byte [esi + 0x44], 1
jne 0x4ff7c3
pop ebx
mov eax, dword [esi + 0x78]
mov dword [esi + 0x74], eax
jmp 0x4ff8bc
cmp dword [esi + 0x40], 0
jne 0x4ff842
pop edi
mov byte [esi], 1
mov eax, 0x10
pop esi
mov esp, ebp
pop ebp
ret
mov al, byte [esi]
cmp al, 3
jb 0x4ff86a
cmp al, 4
jne 0x4ff855
mov eax, dword [esi + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi + 0x10]
call fcn.004e08d0
add esp, 4
mov dword [esi + 0x10], 0
mov byte [esi], 1
movzx eax, byte [esi + 2]
lea edi, [esi + 0x74]
push eax
mov eax, dword [esi + 8]
push 0
push edi
push dword [esi + 0x40]
push dword [eax + 4]
call fcn.004fb540
mov ecx, eax
add esp, 0x14
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x4ff898
pop edi
mov byte [esi], 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov byte [esi + 0x44], 0
mov al, byte [eax + 2]
mov byte [esi + 0x45], al
mov eax, dword [esi + 0x74]
cmp byte [eax], 0
je 0x4ff923
movzx eax, byte [eax + 2]
xor ecx, ecx
cmp dword [esi + 0x70], ecx
sete cl
cmp ecx, eax
jne 0x4ff923
and byte [esi + 1], 0xf1
xor eax, eax
mov word [esi + 0x46], ax
mov word [esi + 0x32], ax
mov eax, dword [esi + 0x74]
cmp word [eax + 0x18], 0
jbe 0x4ff8e0
mov eax, dword [ebp - 4]
pop edi
mov byte [esi], 0
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [eax + 8], 0
jne 0x4ff834
cmp dword [eax + 4], 1
je 0x4ff903
push 0x10ed7
call fcn.00515910
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
movzx ecx, byte [eax + 9]
mov eax, dword [eax + 0x38]
mov eax, dword [ecx + eax + 8]
bswap eax
push eax
push esi
mov byte [esi], 0
call fcn.004ff500
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x7269b4
push 0x10eca
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d5b20
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x502340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, dword [ebx + 0x88]
test esi, esi
je 0x502374
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
mov dword [eax], esi
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x88], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x10], 0
movq qword [eax], xmm0
jmp 0x5023eb
movzx eax, word [ebx + 0x8c]
cdq
mov edi, eax
add edi, 0x28
adc edx, 0
push edx
push edi
call fcn.00526af0
mov esi, eax
add esp, 8
test esi, esi
je 0x5023a0
push edi
push 0
push esi
call fcn.0064ed10
add esp, 0xc
mov ecx, dword [ebp + 0x14]
mov dword [ecx], esi
test esi, esi
jne 0x5023db
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x98]
dec ecx
mov esi, dword [ebx + 0x3c]
push 0
cdq
push ecx
mov edi, dword [esi]
push edx
push eax
call fcn.00639d80
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
mov eax, 7
pop edi
pop esi
pop ebx
pop ebp
ret
lea eax, [esi + 0x28]
mov dword [esi + 0x1c], 0x10020
mov dword [esi + 8], eax
mov dword [esi + 0x14], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
inc dword [ebx + 0x78]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x508ba0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push edi
push str.sqlite_master
push edi
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 dword [ebp + 8]
call fcn.00527230
add esp, 0x18
cmp dword [ebp + 0x10], 0
jne 0x508bdd
push edi
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 dword [ebp + 8]
call fcn.00527230
add esp, 0x10
pop edi
pop ebp
ret
Function at 0x510f10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
xorps xmm0, xmm0
push esi
movlpd qword [ebp - 8], xmm0
call fcn.004ff790
add esp, 4
cmp eax, 0x10
jne 0x510f47
mov eax, dword [ebp + 0x10]
pop esi
mov dword [eax], 0
mov dword [eax + 4], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
push edi
test eax, eax
jne 0x511092
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edx
nop dword [eax]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x110], 0
jne 0x511092
mov edi, dword [esi + 0x74]
mov cl, byte [edi + 8]
test cl, cl
jne 0x510f7f
cmp byte [edi + 2], cl
jne 0x510f8c
movzx eax, word [edi + 0x18]
cdq
add dword [ebp - 4], eax
adc ebx, edx
mov dword [ebp - 0xc], ebx
test cl, cl
je 0x51102d
mov cl, byte [esi + 0x44]
test cl, cl
je 0x51107b
and byte [esi + 1], 0xf9
xor eax, eax
mov word [esi + 0x32], ax
movsx eax, cl
dec cl
mov ax, word [esi + eax*2 + 0x46]
mov word [esi + 0x46], ax
movsx eax, cl
mov byte [esi + 0x44], cl
mov eax, dword [esi + eax*4 + 0x78]
mov dword [esi + 0x74], eax
mov edx, dword [edi + 0x48]
test byte [edx + 0x1c], 0x20
je 0x51100c
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov edi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov ebx, dword [edi]
cdq
push edx
push eax
push 0
push ecx
call fcn.00639d80
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x511015
push edx
call fcn.0052a180
add esp, 4
mov edi, dword [esi + 0x74]
mov ax, word [esi + 0x46]
cmp ax, word [edi + 0x18]
jae 0x510f94
inc word [esi + 0x46]
mov ebx, dword [ebp - 0xc]
movzx ecx, word [esi + 0x46]
movzx eax, word [edi + 0x18]
cmp ecx, eax
jne 0x511046
movzx ecx, byte [edi + 9]
mov eax, dword [edi + 0x38]
mov eax, dword [ecx + eax + 8]
jmp 0x511060
mov eax, dword [edi + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x1a]
movzx ecx, cx
and ecx, eax
mov eax, dword [edi + 0x38]
mov eax, dword [ecx + eax]
bswap eax
push eax
push esi
call fcn.004ff500
add esp, 8
test eax, eax
je 0x510f60
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push esi
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
call fcn.004ff790
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x513d20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x7ef784]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
add ecx, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [esi]
push edi
mov dword [ebp - 0x24], esi
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8]
mov dword [ebp - 0x20], eax
mov eax, 1
mov dword [ebp - 0x2c], eax
nop dword [eax]
push eax
push str.sqlite_stat_d
lea eax, [ebp - 0x1c]
push eax
push 0x18
call fcn.004e0330
mov edi, dword [esi]
lea ebx, [ebp - 0x1c]
add esp, 0x10
mov dword [ebp - 0x28], edi
nop dword [eax]
xor esi, esi
cmp dword [edi + 0x14], esi
jle 0x513e2c
nop dword [eax + eax]
mov eax, esi
mov ecx, esi
xor eax, 1
cmp esi, 2
cmovl ecx, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], ecx
test eax, eax
je 0x513dc8
mov edx, ecx
mov ecx, dword [edi + 0x10]
add edx, edx
mov edi, dword [ecx + edx*8]
sub edi, eax
movzx edx, byte [eax]
movzx ecx, byte [edi + eax]
cmp edx, ecx
jne 0x513e0a
test edx, edx
jne 0x513e1c
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x28]
mov eax, dword [edi + 0x10]
add ecx, ecx
push 0
push ebx
mov eax, dword [eax + ecx*8 + 0xc]
add eax, 8
push eax
call fcn.004f7b10
add esp, 0xc
mov eax, dword [eax + 8]
test eax, eax
je 0x513e22
push dword [ebp - 0x34]
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x38]
push eax
push dword [ebp - 0x20]
push str.DELETE_FROM__Q._s_WHERE__s_Q
push esi
call fcn.00527230
add esp, 0x18
jmp 0x513eaa
movzx ecx, byte [ecx + 0x71ce68]
movzx edx, byte [edx + 0x71ce68]
sub edx, ecx
jne 0x513e1f
inc eax
jmp 0x513db3
mov edi, dword [ebp - 0x28]
inc esi
cmp esi, dword [edi + 0x14]
jl 0x513d90
mov edx, str.sqlite_master
sub edx, ebx
movzx ecx, byte [ebx]
movzx eax, byte [edx + ebx]
cmp ecx, eax
jne 0x513e61
test ecx, ecx
jne 0x513e73
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x513e76
neg ecx
sbb ecx, ecx
test ecx, ecx
jne 0x513ea7
mov ebx, str.sqlite_temp_master
jmp 0x513d80
movzx eax, byte [eax + 0x71ce68]
movzx ecx, byte [ecx + 0x71ce68]
sub ecx, eax
jne 0x513ea7
inc ebx
jmp 0x513e33
test ecx, ecx
je 0x513ea7
mov esi, ecx
mov edx, eax
sub esi, eax
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x513e92
test ecx, ecx
je 0x513e57
inc edx
jmp 0x513e80
movzx eax, byte [eax + 0x71ce68]
movzx ecx, byte [ecx + 0x71ce68]
sub ecx, eax
jne 0x513e53
inc edx
jmp 0x513e80
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, 4
jle 0x513d60
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006391b7
mov esp, ebp
pop ebp
ret
Function at 0x51e490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
xor edi, edi
cmp dword [esi + 0x14], ebx
jle 0x51e506
mov edx, dword [ebp + 0x10]
mov esi, dword [esi + 0x10]
mov eax, edi
xor eax, 1
mov ecx, edi
cmp edi, 2
cmovl ecx, eax
add ecx, ecx
mov eax, dword [esi + ecx*8 + 0xc]
mov dword [ebp - 4], eax
test edx, edx
je 0x51e4e2
mov esi, dword [esi + ecx*8]
mov eax, edx
sub esi, edx
nop dword [eax]
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x51e50f
test edx, edx
jne 0x51e521
mov eax, dword [ebp - 4]
push 0
push dword [ebp + 0xc]
add eax, 0x18
push eax
call fcn.004f7b10
add esp, 0xc
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x51e506
mov esi, dword [ebp + 8]
inc edi
mov edx, dword [ebp + 0x10]
cmp edi, dword [esi + 0x14]
jl 0x51e4a8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ecx + 0x71ce68]
movzx edx, byte [edx + 0x71ce68]
sub edx, ecx
jne 0x51e4fa
inc eax
jmp 0x51e4d0

Function at 0x51e530
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 0x14], esi
jle 0x51e5ce
nop dword [eax]
mov eax, esi
mov ecx, esi
xor eax, 1
cmp esi, 2
cmovl ecx, eax
mov dword [ebp - 4], ecx
test edx, edx
je 0x51e588
mov eax, edx
mov edx, ecx
mov ecx, dword [edi + 0x10]
add edx, edx
mov edi, dword [ecx + edx*8]
sub edi, dword [ebp + 0x10]
movzx edx, byte [eax]
movzx ecx, byte [edi + eax]
cmp edx, ecx
jne 0x51e5ad
test edx, edx
jne 0x51e5bf
mov ecx, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
add ecx, ecx
push 0
push ebx
mov eax, dword [eax + ecx*8 + 0xc]
add eax, 8
push eax
call fcn.004f7b10
add esp, 0xc
mov eax, dword [eax + 8]
test eax, eax
jne 0x51e64b
jmp 0x51e5c5
movzx ecx, byte [ecx + 0x71ce68]
movzx edx, byte [edx + 0x71ce68]
sub edx, ecx
jne 0x51e5c2
inc eax
jmp 0x51e573
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
inc esi
cmp esi, dword [edi + 0x14]
jl 0x51e550
mov edx, str.sqlite_master
sub edx, ebx
movzx ecx, byte [ebx]
movzx eax, byte [edx + ebx]
cmp ecx, eax
jne 0x51e5f7
test ecx, ecx
jne 0x51e609
mov eax, dword [edi + 0x10]
mov edx, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
test edx, edx
jne 0x51e60c
neg ecx
sbb ecx, ecx
jmp 0x51e626
movzx eax, byte [eax + 0x71ce68]
movzx ecx, byte [ecx + 0x71ce68]
sub ecx, eax
jne 0x51e649
inc ebx
jmp 0x51e5d5
test ecx, ecx
je 0x51e649
mov esi, ecx
sub esi, edx
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x51e634
test ecx, ecx
jne 0x51e646
mov edx, dword [ebp + 0x10]
test ecx, ecx
jne 0x51e649
mov ebx, str.sqlite_temp_master
jmp 0x51e542
movzx eax, byte [eax + 0x71ce68]
movzx ecx, byte [ecx + 0x71ce68]
sub ecx, eax
jne 0x51e623
inc edx
jmp 0x51e614
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret