joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b42670
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5c51004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x118], eax
push edi
lea edx, [ebp - 0x114]
mov dword [ebp - 0x114], 0
mov esi, ecx
call fcn.05b45b70
mov edi, eax
test edi, edi
js 0x5b426c0
cmp edi, 1
je 0x5b426c0
mov edx, dword [ebp - 0x114]
call fcn.05b44e50
mov edi, eax
lea ecx, [ebp - 0x114]
call fcn.05b44d90
test edi, edi
jns 0x5b42736
push 0x105
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.05b02790
add esp, 0xc
lea eax, [ebp - 0x110]
push edi
push edi
push str.API_called_without_license:__ld__0x_lx_
push 0x104
push eax
call fcn.05b01010
add esp, 0x14
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebp - 0x110]
push eax
push 0x5c38c48
push 0x15
call sym.SQLite.Interop.dll_SI350ef657c32efd79
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.05b011bc
mov esp, ebp
pop ebp
ret
cmp dword [0x5c5460c], 0
jne 0x5b4276f
push str.API_called_without_activation
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.API_called_without_activation
push 0x15
call sym.SQLite.Interop.dll_SI350ef657c32efd79
add esp, 8
mov eax, 0x15
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.05b011bc
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
test eax, eax
je 0x5b42780
push eax
call dword [0x5c52638]
add esp, 4
cmp byte [esi + 0x5f], 0
jne 0x5b4278d
mov ecx, esi
call fcn.05c097a0
mov edx, ebx
mov ecx, esi
call fcn.05b42800
test eax, eax
jns 0x5b427a1
mov edi, 1
jmp 0x5b427c5
shl eax, 4
add eax, dword [esi + 0x10]
cmp dword [eax + 4], 0
je 0x5b427c3
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x118]
push eax
call fcn.05b42920
add esp, 4
mov edi, eax
jmp 0x5b427c5
xor edi, edi
cmp byte [esi + 0x5f], 0
jne 0x5b427d2
mov ecx, esi
call fcn.05c09750
mov eax, dword [esi + 0xc]
test eax, eax
je 0x5b427e3
push eax
call dword [0x5c52640]
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.05b011bc
mov esp, ebp
pop ebp
ret

Function at 0x5b43180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, edx
push edi
mov edi, ecx
and eax, 0x80000003
jns 0x5b43195
dec eax
or eax, 0xfffffffc
inc eax
mov esi, dword [ebp + 8]
jne 0x5b431d8
mov eax, esi
and eax, 0x80000003
jns 0x5b431a8
dec eax
or eax, 0xfffffffc
inc eax
mov ecx, dword [ebp + 0xc]
jne 0x5b431db
cmp ecx, 4
jle 0x5b431db
push ebx
lea ebx, [ecx - 5]
shr ebx, 2
inc ebx
mov eax, ebx
neg eax
lea ecx, [ecx + eax*4]
mov eax, dword [esi]
add esi, 4
xor eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ebx, 1
jne 0x5b431c1
pop ebx
jmp 0x5b431db
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x5b431f5
sub esi, edx
sub edi, edx
mov al, byte [esi + edx]
lea edx, [edx + 1]
xor al, byte [edx - 1]
dec ecx
mov byte [edi + edx - 1], al
test ecx, ecx
jg 0x5b431e3
pop edi
pop esi
pop ebp
ret
Function at 0x5b43c40
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ecx + 4]
mov dword [ebp - 4], ecx
push ebx
mov ebx, dword [edx + 0xc]
push esi
mov esi, dword [edx + 4]
push edi
mov edi, dword [edx]
bswap edi
mov dword [ecx], edi
mov ecx, dword [edx + 8]
bswap ecx
bswap esi
mov dword [eax], esi
mov esi, dword [ebp - 4]
bswap ebx
mov dword [esi + 8], ecx
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
mov dword [esi + 0xc], ebx
mov edx, dword [ecx*4 + str.ccccwwww]
mov ecx, ebx
shr ecx, 8
xor edx, 0x1000000
movzx ecx, cl
and edx, 0xff000000
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff0000
xor edx, ecx
mov ecx, ebx
shr ecx, 0x18
movzx ecx, byte [ecx*4 + str.ccccwwww]
xor edx, ecx
movzx ecx, bl
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff00
xor edx, ecx
mov ecx, dword [eax]
xor edx, edi
mov edi, 0x5c46c44
xor ecx, edx
mov dword [esi + 0x10], edx
mov edx, dword [esi + 8]
xor edx, ecx
mov dword [esi + 0x14], ecx
mov ecx, ebx
mov dword [esi + 0x18], edx
xor ecx, edx
mov dword [esi + 0x1c], ecx
mov edx, dword [eax + 0x18]
lea eax, [eax + 0x10]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
mov esi, dword [ecx*4 + str.ccccwwww]
mov ecx, edx
shr ecx, 0x10
and esi, 0xff0000
movzx ecx, cl
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff000000
xor esi, ecx
mov ecx, edx
shr ecx, 0x18
movzx ecx, byte [ecx*4 + str.ccccwwww]
xor esi, ecx
movzx ecx, dl
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff00
xor esi, ecx
xor esi, dword [eax - 4]
xor esi, dword [edi]
add edi, 4
mov dword [eax + 0xc], esi
mov ecx, dword [eax]
xor ecx, esi
mov dword [eax + 0x10], ecx
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [eax + 0x14], edx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x18], ecx
cmp edi, 0x5c46c68
jne 0x5b43ce0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b44bb0
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
mov eax, dword [edx + 4]
bswap eax
push esi
push edi
mov edi, ecx
mov esi, dword [edx]
mov ecx, dword [edx + 0x1c]
bswap ecx
bswap esi
mov dword [edi + 4], eax
mov eax, dword [edx + 8]
bswap eax
mov dword [edi + 8], eax
mov eax, dword [edx + 0xc]
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [edx + 0x10]
bswap eax
mov dword [edi + 0x10], eax
mov eax, dword [edx + 0x14]
bswap eax
mov dword [edi + 0x14], eax
mov eax, dword [edx + 0x18]
bswap eax
mov dword [edi + 0x18], eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov dword [edi + 0x1c], ecx
mov dword [edi], esi
mov edx, dword [eax*4 + str.ccccwwww]
mov eax, ecx
shr eax, 8
xor edx, 0x1000000
movzx eax, al
and edx, 0xff000000
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff0000
xor edx, eax
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + str.ccccwwww]
xor edx, eax
movzx eax, cl
mov ecx, dword [edi + 8]
mov eax, dword [eax*4 + str.ccccwwww]
and eax, 0xff00
xor edx, eax
mov eax, dword [edi + 4]
xor edx, esi
xor eax, edx
mov dword [edi + 0x20], edx
mov dword [edi + 0x24], eax
xor ecx, eax
mov eax, dword [edi + 0xc]
xor eax, ecx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x30]
mov edi, 0x5c46c44
mov edx, dword [eax - 4]
lea eax, [eax + 0x20]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
mov esi, dword [ecx*4 + str.ccccwwww]
mov ecx, edx
shr ecx, 8
and esi, 0xff0000
movzx ecx, cl
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff00
xor esi, ecx
mov ecx, edx
shr ecx, 0x18
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff000000
xor esi, ecx
movzx ecx, dl
mov edx, dword [eax - 0x38]
movzx ecx, byte [ecx*4 + str.ccccwwww]
xor esi, ecx
mov ecx, dword [eax - 0x3c]
xor esi, dword [eax - 0x40]
xor ecx, esi
mov dword [eax - 0x20], esi
mov dword [eax - 0x1c], ecx
xor edx, ecx
mov ecx, dword [eax - 0x34]
xor ecx, edx
mov dword [eax - 0x18], edx
mov dword [eax - 0x14], ecx
mov edx, dword [eax - 0x14]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
mov esi, dword [ecx*4 + str.ccccwwww]
mov ecx, edx
shr ecx, 0x10
and esi, 0xff0000
movzx ecx, cl
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff000000
xor esi, ecx
mov ecx, edx
shr ecx, 0x18
movzx ecx, byte [ecx*4 + str.ccccwwww]
xor esi, ecx
movzx ecx, dl
mov ecx, dword [ecx*4 + str.ccccwwww]
and ecx, 0xff00
xor esi, ecx
xor esi, dword [eax - 0x30]
xor esi, dword [edi]
add edi, 4
mov dword [eax - 0x10], esi
mov ecx, dword [eax - 0x2c]
xor ecx, esi
mov dword [eax - 0xc], ecx
mov edx, dword [eax - 0x28]
xor edx, ecx
mov dword [eax - 8], edx
mov ecx, dword [eax - 0x24]
xor ecx, edx
mov dword [eax - 4], ecx
cmp edi, 0x5c46c5c
jne 0x5b44c68
pop edi
pop esi
ret
Function at 0x5b44d90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x5c51004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x5b44dbf
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.invalid_ICLRRuntimeHost_pointer._n
call esi
mov edi, 0x80004003
jmp 0x5b44dd7
mov eax, dword [esi]
test eax, eax
jne 0x5b44e24
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.invalid_ICLRRuntimeHost._n
call esi
mov edi, 0x80070057
push 0x125
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.05b02790
push edi
push str.VerifyClrCleanup
push str.eeeSdk1:__s_HRESULT_0x_016X
lea eax, [ebp - 0x12c]
push 0x125
push eax
call fcn.05b01010
add esp, 0x20
lea eax, [ebp - 0x12c]
push eax
call esi
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.05b011bc
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax]
push eax
mov ecx, dword [ecx + 8]
call ecx
push str.done_with_cleanup._n
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.05b011bc
mov esp, ebp
pop ebp
ret
Function at 0x5b459f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x5c51004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x18], 0xaac56b
mov dword [ebp - 0x14], 0x11d0cd44
mov dword [ebp - 0x10], 0xc000c28c
mov dword [ebp - 0xc], 0xee95c24f
push edi
mov edi, ecx
test edx, edx
jne 0x5b45ad7
test edi, edi
jne 0x5b45a51
push str.cannot_trust__heap_invalid._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [edi + 6]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.05b011bc
mov esp, ebp
pop ebp
ret
push 0x10000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x5b45a86
push str.cannot_trust__cannot_allocate._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 0x8007000e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.05b011bc
mov esp, ebp
pop ebp
ret
push 0x10000
push 0
push esi
call fcn.05b02790
add esp, 0xc
push 0x7fff
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x5b45ad5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.cannot_trust__no_module_file_name._n
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test esi, esi
mov eax, 0xbe
cmovne eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.05b011bc
mov esp, ebp
pop ebp
ret
mov edx, esi
push 0x34
xorps xmm0, xmm0
lea eax, [ebp - 0x5c]
movups xmmword [ebp - 0x28], xmm0
push 0
push eax
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x24], edx
call fcn.05b02790
add esp, 0xc
mov dword [ebp - 0x5c], 0x34
lea eax, [ebp - 0x28]
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x4c], 1
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x48], 1
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x34], 0x1100
mov dword [ebp - 0x30], 0
call dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
mov ebx, eax
test esi, esi
je 0x5b45b4f
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.05b011bc
mov esp, ebp
pop ebp
ret
Function at 0x5b4dd10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
push dword [esi + 0x18]
mov edx, dword [ebx + 4]
push dword [esi + 0x14]
mov ecx, dword [esi + 8]
push dword [esi + 4]
push edi
call fcn.05b4e000
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x5b4dd4b
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 4]
mov edx, esi
call fcn.05b4de70
mov edx, esi
mov dword [ebp - 0xc], eax
mov ecx, edi
call fcn.05b4de70
push dword [ebp - 8]
mov ecx, dword [esi + 4]
push dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
push ecx
push edi
mov edi, dword [ebp - 0xc]
push ecx
push dword [ebx + 4]
push eax
push edi
push str.SELECT__s__s_FROM___w_.__w_____w_.__w__WHERE__s_AND___z_
call sym.SQLite.Interop.dll_SI5ea70b9767a9e9ce
add esp, 0x24
mov dword [ebp - 8], eax
test eax, eax
je 0x5b4de5d
test edi, edi
je 0x5b4de5d
cmp dword [ebp - 0x10], 0
je 0x5b4de5d
push 0
lea ecx, [ebp - 4]
mov edx, eax
push ecx
mov ecx, dword [ebx]
push 0
push 0
push 0xffffffffffffffff
call fcn.05bb1a30
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x5b4de32
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
push dword [ebp - 4]
call sym.SQLite.Interop.dll_SI5d045c2b9d9b73fa
add esp, 4
cmp eax, 0x64
jne 0x5b4de25
nop
cmp dword [esi + 0x10], 0
je 0x5b4ddf5
push 0
push dword [ebp - 4]
call sym.SQLite.Interop.dll_SI7f2136bd3d2988aa
add esp, 8
jmp 0x5b4de03
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push esi
push edx
push eax
mov edx, ebx
mov ecx, 0x17
call fcn.05b4e3d0
add esp, 0xc
push dword [ebp - 4]
call sym.SQLite.Interop.dll_SI5d045c2b9d9b73fa
add esp, 4
cmp eax, 0x64
je 0x5b4dde0
push dword [ebp - 4]
call fcn.05bf3ed0
add esp, 4
mov edi, eax
mov eax, dword [ebp - 8]
push eax
call sym.SQLite.Interop.dll_SI9edfb98001bcad06
add esp, 4
push dword [ebp - 0xc]
call sym.SQLite.Interop.dll_SI9edfb98001bcad06
add esp, 4
push dword [ebp - 0x10]
call sym.SQLite.Interop.dll_SI9edfb98001bcad06
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 7
jmp 0x5b4de35
Function at 0x5b4ded0
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, str._rowid___
mov dword [ebp - 4], ecx
mov ebx, edx
mov ecx, 0x5c399b8
mov eax, dword [edi + 4]
cmp dword [edi + 0x10], 0
push eax
push dword [ebp + 0x10]
cmove esi, ecx
push eax
push dword [ebp + 0xc]
push esi
push str.SELECT__s_FROM___w_.__w__WHERE_NOT_EXISTS____SELECT_1_FROM___w_.__w__WHERE__s_
call sym.SQLite.Interop.dll_SI5ea70b9767a9e9ce
add esp, 0x1c
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x5b4df21
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 [ebx]
push 0
push 0
push 0xffffffffffffffff
call fcn.05bb1a30
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x5b4dfb2
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 8], esi
mov eax, dword [edi + 0x10]
mov dword [ecx + 4], eax
push dword [ebp + 8]
call sym.SQLite.Interop.dll_SI5d045c2b9d9b73fa
add esp, 4
cmp eax, 0x64
jne 0x5b4dfa5
mov esi, dword [ebp - 4]
cmp dword [edi + 0x10], 0
je 0x5b4df78
push 0
push dword [ebp + 8]
call sym.SQLite.Interop.dll_SI7f2136bd3d2988aa
add esp, 8
jmp 0x5b4df86
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
push edi
push edx
push eax
mov edx, ebx
mov ecx, esi
call fcn.05b4e3d0
add esp, 0xc
push dword [ebp + 8]
call sym.SQLite.Interop.dll_SI5d045c2b9d9b73fa
add esp, 4
cmp eax, 0x64
je 0x5b4df63
push dword [ebp + 8]
call fcn.05bf3ed0
add esp, 4
mov esi, eax
push dword [ebp - 0xc]
call sym.SQLite.Interop.dll_SI9edfb98001bcad06
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b4fb40
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 0x5b4fc8e
mov ebx, dword [ecx + 0x18]
mov dword [ebp - 0x14], ebx
nop word [eax + eax]
cmp dword [ebp - 0x10], 0
movzx ecx, byte [edi]
movzx eax, byte [ebx + eax]
je 0x5b4fb87
test eax, eax
je 0x5b4fc7f
jmp 0x5b4fb8f
test eax, eax
je 0x5b4fc20
lea eax, [esi*8]
inc edi
xor eax, ecx
xor esi, eax
cmp ecx, 1
je 0x5b4fbf4
cmp ecx, 2
je 0x5b4fbf4
mov al, byte [edi]
cmp al, 0x80
jae 0x5b4fbb8
movzx ebx, al
mov eax, 1
mov dword [ebp - 4], ebx
jmp 0x5b4fbc8
lea edx, [ebp - 4]
mov ecx, edi
call fcn.05c1b490
mov ebx, dword [ebp - 4]
movzx eax, al
movzx eax, al
xor edx, edx
add edi, eax
test ebx, ebx
jle 0x5b4fbe7
movzx ecx, byte [edx + edi]
lea eax, [esi*8]
xor ecx, eax
inc edx
xor esi, ecx
cmp edx, ebx
jl 0x5b4fbd3
mov edx, dword [ebp + 8]
add edi, ebx
mov ebx, dword [ebp - 0x14]
jmp 0x5b4fc7f
mov ecx, edi
call fcn.05b501c0
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 0x5b4fc7f
test ecx, ecx
je 0x5b4fc78
cmp ecx, 0xff
je 0x5b4fc78
cmp ecx, 5
je 0x5b4fc78
cmp ecx, 1
je 0x5b4fc71
cmp ecx, 2
je 0x5b4fc71
mov al, byte [edi + 1]
lea ecx, [edi + 1]
cmp al, 0x80
jae 0x5b4fc58
movzx ecx, al
mov eax, 1
movzx eax, al
inc eax
mov dword [ebp - 8], ecx
add eax, ecx
jmp 0x5b4fc7d
lea edx, [ebp - 8]
call fcn.05c1b490
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
movzx eax, al
movzx eax, al
inc eax
add eax, ecx
jmp 0x5b4fc7d
mov eax, 9
jmp 0x5b4fc7d
mov eax, 1
add edi, eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, edx
jl 0x5b4fb70
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 0x5b4feb0
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 0x5b4fed6
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 0x5b4fec1
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x5b52d10
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 0x5b52d49
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp + edi*4 - 0x10]
push esi
call fcn.05b52fa0
add esp, 0x10
mov dword [esi + edi*4 + 0x18], eax
cmp dword [esi + 0x28], 0
jne 0x5b52e0e
push dword [ebp + 0xc]
mov ebx, dword [esi + edi*4 + 0x18]
push dword [ebp + 8]
push 1
push ebx
call sym.SQLite.Interop.dll_SI35b071367928739e
push ebx
call sym.SQLite.Interop.dll_SI5d045c2b9d9b73fa
add esp, 0x14
cmp eax, 0x65
jne 0x5b52da1
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.05b52f40
add esp, 0x1c
jmp 0x5b52dfc
cmp eax, 0x64
jne 0x5b52dfc
push 0
push ebx
call sym.SQLite.Interop.dll_SI7f2136bd3d2988aa
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 0x5b52dc9
cmp eax, ecx
je 0x5b52dfc
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.05b52f40
add esp, 0x2c
push ebx
call fcn.05bf3e00
add esp, 4
cmp dword [esi + 0x28], 0
jne 0x5b52e0e
mov dword [esi + 0x28], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b52e20
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 0x5b52f29
cmp dword [esi + 0x14], edi
jne 0x5b52e59
push dword [esi + 8]
push dword [esi + 4]
push str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
push esi
call fcn.05b52fa0
add esp, 0x10
mov dword [esi + 0x14], eax
cmp dword [esi + 0x28], edi
jne 0x5b52f29
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
push 1
push dword [esi + 0x14]
call sym.SQLite.Interop.dll_SI35b071367928739e
push dword [esi + 0x14]
call sym.SQLite.Interop.dll_SI5d045c2b9d9b73fa
add esp, 0x14
cmp eax, 0x64
jne 0x5b52efb
push 0
push dword [esi + 0x14]
call sym.SQLite.Interop.dll_SI3145812b5ff77358
push 0
push dword [esi + 0x14]
mov ebx, eax
call sym.SQLite.Interop.dll_SI2f17e57366f2805e
mov dword [esp + 0x20], eax
add esp, 0x10
mov eax, ebx
cdq
mov edi, eax
mov dword [esp + 0xc], edx
call fcn.05b7ef20
test eax, eax
je 0x5b52ebd
xor edi, edi
mov dword [esi + 0x28], 7
jmp 0x5b52ef8
mov ecx, dword [esp + 0xc]
mov eax, edi
or eax, ecx
je 0x5b52ed5
push ecx
push edi
call fcn.05c20d50
add esp, 8
mov edi, eax
jmp 0x5b52ed7
xor edi, edi
test edi, edi
jne 0x5b52ee4
mov dword [esi + 0x28], 7
jmp 0x5b52ef8
push ebx
push dword [esp + 0x14]
push edi
call fcn.05b15590
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [eax], ebx
mov ebx, dword [ebp + 0xc]
push dword [esi + 0x14]
call fcn.05bf3e00
add esp, 4
cmp dword [esi + 0x28], 0
jne 0x5b52f29
mov dword [esi + 0x28], eax
test eax, eax
jne 0x5b52f29
test edi, edi
jne 0x5b52f29
push ebx
push dword [ebp + 8]
push str.Node__lld_missing_from_database
push esi
call fcn.05b52f40
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b53740
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 0x5b537bd
push dword [esi + 0x20]
mov dword [ebp + 8], 0
push str.PRAGMA__Q.page_size
call sym.SQLite.Interop.dll_SI5ea70b9767a9e9ce
lea ecx, [ebp + 8]
mov dword [ebp - 4], eax
push ecx
mov edx, eax
mov ecx, edi
call fcn.05b53820
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x5b537ac
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 0x5b5380c
push dword [ebp - 4]
mov dword [esi + 0x10], ecx
call sym.SQLite.Interop.dll_SI9edfb98001bcad06
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.05b7c3d0
add esp, 4
push eax
push 0x5c38c48
jmp 0x5b537ff
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_SI5ea70b9767a9e9ce
add esp, 0xc
mov dword [ebp - 4], eax
lea ecx, [esi + 0x10]
mov edx, eax
push ecx
mov ecx, edi
call fcn.05b53820
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x5b537ac
cmp dword [esi + 0x10], 0x1c0
jge 0x5b5380c
push dword [esi + 0x24]
mov ebx, 0x10b
push str.undersize_RTree_blobs_in___q_node_
call sym.SQLite.Interop.dll_SI5ea70b9767a9e9ce
mov ecx, dword [ebp + 0xc]
add esp, 8
mov dword [ecx], eax
push dword [ebp - 4]
call sym.SQLite.Interop.dll_SI9edfb98001bcad06
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret