joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c680
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5868f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push 0x20119
xor ebx, ebx
push ebx
push str.SoftwareQualys
push 0x80000002
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44c6e2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x562968
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44c6e2
cmp dword [ebp - 8], ebx
setne bl
jmp 0x44c6f4
push str.Set_registry_update_value_is_OK_to_fail
push 0x58ba20
call fcn.00437490
add esp, 8
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x44c702
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret

Function at 0x44c720
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5868f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0x20106
push 0
push 0
push 0
push str.SoftwareQualys
push 0x80000002
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x44c785
test esi, esi
push 4
setne al
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x562968
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x44c798
push str.Error_setting_the_registry
push eax
push 0x58ba20
call fcn.00437520
add esp, 0xc
mov eax, dword [ebp - 0xc]
pop esi
test eax, eax
je 0x44c7a7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret
Function at 0x44e210
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
test edi, edi
jne 0x44e22b
lea eax, [edi + 0x57]
pop edi
mov esp, ebp
pop ebp
ret
push esi
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20106
push 0
push 0
push 0
push str.SoftwareQualysEHC
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x44e28c
mov ecx, edi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44e260
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
push str.EhcBlob
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x44e29a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x44e2b0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareQualysEHCNotify
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x44e31f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x10000
push 0
push str.SoftwareQualysEHC
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44e31f
push str.Notify
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esp, ebp
pop ebp
ret

Function at 0x44e330
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x102
push 0
push str.SoftwareQualys
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x44e36d
push str.LastBlob
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x44e37b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 2]
neg eax
sbb eax, eax
and eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x44e390
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x5868f4]
xor eax, esp
mov dword [esp + 0x420], eax
push esi
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0x102
push 0
push 0x562a8c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x44e44a
push ecx
push esi
lea ecx, [esp + 0x28]
call fcn.00407db0
mov dword [esp + 8], str.OracleOciRegistry.cpp
mov dword [esp + 0xc], str.OciRegistry::DeleteRegistryValue
mov dword [esp + 0x10], 0x15
mov dword [esp + 0x14], 0
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push str.Log.txt
mov edx, str._ProgramData_QualysQualysAgent
mov dword [esp + 0x20], eax
call fcn.004265b0
lea eax, [esp + 0x28]
push eax
push 0x562a8c
push str.OCI:_Failed_to_open_registry_key:__s:__s
push 0
push 2
lea eax, [esp + 0x24]
push 0x575dc0
push eax
call fcn.00424820
add esp, 0x24
jmp 0x44e531
push 0x562a38
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x44e4d1
push ecx
push esi
lea ecx, [esp + 0x28]
call fcn.00407db0
mov dword [esp + 8], str.OracleOciRegistry.cpp
mov dword [esp + 0xc], str.OciRegistry::DeleteRegistryValue
mov dword [esp + 0x10], 0x1c
mov dword [esp + 0x14], 0
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push str.Log.txt
mov edx, str._ProgramData_QualysQualysAgent
mov dword [esp + 0x20], eax
call fcn.004265b0
lea eax, [esp + 0x28]
push eax
push 0x562a38
push str.OCI:_Failed_to_delete_registry_value:__s:__s
push 0
push 2
lea eax, [esp + 0x24]
push 0x575e28
push eax
call fcn.00424820
add esp, 0x24
jmp 0x44e531
mov dword [esp + 8], str.OracleOciRegistry.cpp
mov dword [esp + 0xc], str.OciRegistry::DeleteRegistryValue
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push str.Log.txt
mov edx, str._ProgramData_QualysQualysAgent
mov dword [esp + 0x20], eax
call fcn.004265b0
push 0x562a38
push str.OCI:_Successfully_deleted_registry_value:__s
push 0
push 4
lea eax, [esp + 0x20]
push 0x575e90
push eax
call fcn.00424820
add esp, 0x20
mov eax, dword [esp + 4]
test eax, eax
je 0x44e540
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x424]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret 8
Function at 0x44e560
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x428
mov eax, dword [0x5868f4]
xor eax, esp
mov dword [esp + 0x424], eax
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [esp + 0xc]
push 0
push eax
push 0
push 0x20106
push 0
push 0
push 0
push 0x562a54
push 0x80000002
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
je 0x44e619
push ecx
push esi
lea ecx, [esp + 0x30]
call fcn.00407db0
mov dword [esp + 0x10], str.OracleOciRegistry.cpp
mov dword [esp + 0x14], str.OciRegistry::SetRegistryValue
mov dword [esp + 0x18], 0x3b
mov dword [esp + 0x1c], 0
mov byte [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push str.Log.txt
mov edx, str._ProgramData_QualysQualysAgent
mov dword [esp + 0x28], eax
call fcn.004265b0
lea eax, [esp + 0x30]
push eax
push 0x562a54
push str.OCI:_Failed_to_create_registry_key:__s:__s
push 0
push 2
push 0x575f14
jmp 0x44e6a0
mov ecx, edi
call fcn.004088a0
add eax, eax
push eax
push edi
push 1
push 0
push 0x562a7c
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x44e6ad
push ecx
push esi
lea ecx, [esp + 0x30]
call fcn.00407db0
mov dword [esp + 0x10], str.OracleOciRegistry.cpp
mov dword [esp + 0x14], str.OciRegistry::SetRegistryValue
mov dword [esp + 0x18], 0x44
mov dword [esp + 0x1c], 0
mov byte [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push str.Log.txt
mov edx, str._ProgramData_QualysQualysAgent
mov dword [esp + 0x28], eax
call fcn.004265b0
lea eax, [esp + 0x30]
push eax
push 0x562a7c
push str.OCI:_Failed_to_set_registry_value:__s:__s
push 0
push 2
push 0x575f78
lea eax, [esp + 0x30]
push eax
call fcn.00424820
add esp, 0x24
mov eax, dword [esp + 0xc]
test eax, eax
je 0x44e6bc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x42c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44e6e0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x5868f4]
xor eax, esp
mov dword [esp + 0x420], eax
push esi
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0x10100
push 0
push 0x562a8c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x44e79f
push ecx
push esi
lea ecx, [esp + 0x28]
call fcn.00407db0
mov dword [esp + 8], str.OracleOciRegistry.cpp
mov dword [esp + 0xc], str.OciRegistry::DeleteRegistryKey
mov dword [esp + 0x10], 0xbb
mov dword [esp + 0x14], 0
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push str.Log.txt
mov edx, str._ProgramData_QualysQualysAgent
mov dword [esp + 0x20], eax
call fcn.004265b0
lea eax, [esp + 0x28]
push eax
push 0x562a4c
push 0x562a8c
push str.OCI:_Could_not_open_registry_key___s_s_:__s
push 0
push 2
lea eax, [esp + 0x28]
push 0x575ffc
push eax
call fcn.00424820
add esp, 0x28
jmp 0x44e890
push 0x562a4c
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
je 0x44e82b
push ecx
push esi
lea ecx, [esp + 0x28]
call fcn.00407db0
mov dword [esp + 8], str.OracleOciRegistry.cpp
mov dword [esp + 0xc], str.OciRegistry::DeleteRegistryKey
mov dword [esp + 0x10], 0xc2
mov dword [esp + 0x14], 0
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push str.Log.txt
mov edx, str._ProgramData_QualysQualysAgent
mov dword [esp + 0x20], eax
call fcn.004265b0
lea eax, [esp + 0x28]
push eax
push 0x562a4c
push 0x562a8c
push str.OCI:_Could_not_delete_registry_key___s_s_:__s
push 0
push 2
lea eax, [esp + 0x28]
push 0x576068
push eax
call fcn.00424820
add esp, 0x28
jmp 0x44e890
mov dword [esp + 8], str.OracleOciRegistry.cpp
mov dword [esp + 0xc], str.OciRegistry::DeleteRegistryKey
mov dword [esp + 0x10], 0xc6
mov dword [esp + 0x14], 0
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push str.Log.txt
mov edx, str._ProgramData_QualysQualysAgent
mov dword [esp + 0x20], eax
call fcn.004265b0
push 0x562a4c
push 0x562a8c
push str.OCI:_Successfully_deleted_registry_key___s_s_
push 0
push 4
lea eax, [esp + 0x24]
push 0x5760d0
push eax
call fcn.00424820
add esp, 0x24
mov eax, dword [esp + 4]
test eax, eax
je 0x44e89f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x424]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004fdf3d
mov esp, ebp
pop ebp
ret 8
Function at 0x469c00
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 0x469cef
push ebx
xor ebx, ebx
push edi
test al, al
jle 0x469c89
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ecx
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x469c6e
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.004feb10
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x469c77
push ecx
call fcn.004aaac0
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 0x469c21
mov eax, dword [esi + 0x74]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x469ce0
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.004feb10
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.004aaac0
add esp, 4
mov byte [esi + 0x44], 0xff
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46a370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
mov ecx, edi
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x14]
mov dword [ebp - 8], eax
test ebx, ebx
je 0x46a521
cmp dword [esi + 0x10], 0
je 0x46a51b
push ebx
push esi
call fcn.0046a5f0
add esp, 8
test eax, eax
jne 0x46a51b
mov eax, dword [esi + 4]
lea ecx, [ebp + 8]
push 0
push ecx
push ebx
push eax
mov eax, dword [eax + 0xcc]
dec edi
mov dword [ebp + 0x14], edi
call eax
add esp, 0x10
test eax, eax
jne 0x46a50c
cmp dword [ebp + 0xc], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp + 0x10], eax
je 0x46a47d
mov ecx, dword [eax + 4]
mov eax, dword [esi]
bswap ecx
mov dword [ebp - 0x10], ecx
cmp byte [eax + 0x11], 0
je 0x46a40a
push 0
push 2
push ebx
push esi
call fcn.0046a560
mov edx, dword [ebp + 8]
add esp, 0x10
mov ecx, dword [ebp - 0x10]
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
shr eax, 2
sub eax, 2
cmp ecx, eax
jbe 0x46a42e
push ebx
push str.freelist_leaf_count_too_big_on_page__d
push esi
call fcn.0046a1d0
add esp, 0xc
dec edi
mov dword [ebp + 0x14], edi
jmp 0x46a49d
test ecx, ecx
jle 0x46a476
mov ebx, dword [ebp + 0x10]
add ebx, 8
mov dword [ebp - 0xc], ecx
jmp 0x46a440
mov eax, dword [esi]
mov edi, dword [ebx]
bswap edi
cmp byte [eax + 0x11], 0
je 0x46a45a
push 0
push 2
push edi
push esi
call fcn.0046a560
add esp, 0x10
push edi
push esi
call fcn.0046a5f0
add esp, 8
add ebx, 4
sub dword [ebp - 0xc], 1
jne 0x46a440
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
sub edi, ecx
mov dword [ebp + 0x14], edi
jmp 0x46a4a0
mov eax, dword [esi]
cmp byte [eax + 0x11], 0
je 0x46a4a0
test edi, edi
je 0x46a4a0
mov eax, dword [ebp + 0x10]
push ebx
push 4
mov eax, dword [eax]
bswap eax
push eax
push esi
call fcn.0046a560
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax]
bswap ebx
mov dword [ebp + 0x10], ebx
test edx, edx
je 0x46a502
test byte [edx + 0x1c], 0x20
je 0x46a4f9
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.004feb10
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
mov ebx, dword [ebp + 0x10]
add esp, 0x10
mov edi, dword [ebp + 0x14]
jmp 0x46a502
push edx
call fcn.004aaac0
add esp, 4
test ebx, ebx
jne 0x46a395
jmp 0x46a51b
push ebx
push str.failed_to_get_page__d
push esi
call fcn.0046a1d0
add esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
test edi, edi
je 0x46a54d
cmp eax, dword [esi + 0x14]
jne 0x46a54d
cmp dword [ebp + 0xc], 0
mov eax, str.size
jne 0x46a53a
mov eax, str.overflow_list_length
push ecx
sub ecx, edi
push ecx
push eax
push str._s_is__d_but_should_be__d
push esi
call fcn.0046a1d0
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46ac80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
movzx esi, word [edx + 0x12]
add esi, dword [ebp + 0xc]
cmp esi, dword [eax + 0x3c]
jbe 0x46acbc
push 0x55404c
push 0x118d5
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00450070
add esp, 0x14
mov eax, 0xb
pop esi
pop ebp
ret
mov eax, dword [eax + 0x34]
mov ecx, dword [edx + 0xc]
push ebx
mov dword [ebp + 0x10], eax
push edi
mov edi, dword [eax + 0x28]
movzx eax, word [edx + 0x10]
sub edi, 4
sub ecx, eax
mov esi, dword [esi - 4]
xor edx, edx
bswap esi
lea eax, [ecx - 1]
add eax, edi
div edi
mov ebx, eax
test ebx, ebx
je 0x46adf9
jmp 0x46acf0
dec ebx
mov dword [ebp + 8], 0
mov dword [ebp + 0xc], 0
cmp esi, 2
jb 0x46ae00
mov eax, dword [ebp + 0x10]
cmp esi, dword [eax + 0x30]
ja 0x46ae00
test ebx, ebx
je 0x46ad3c
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push esi
push eax
call fcn.00478580
add esp, 0x10
test eax, eax
jne 0x46adfb
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x46ad4c
mov eax, dword [ebp + 0x10]
push esi
push eax
call fcn.00469860
mov edi, eax
add esp, 8
test edi, edi
je 0x46ad7d
mov ecx, dword [edi + 0x48]
cmp word [ecx + 0x1e], 1
je 0x46ad7d
push 0x55404c
push 0x118fa
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00450070
add esp, 0x14
mov dword [ebp + 0xc], 0xb
jmp 0x46ad8e
mov eax, dword [ebp + 0x10]
push esi
push edi
push eax
call fcn.00476850
add esp, 0xc
mov dword [ebp + 0xc], eax
test edi, edi
je 0x46ade7
mov edx, dword [edi + 0x48]
test edx, edx
je 0x46ade7
test byte [edx + 0x1c], 0x20
je 0x46adde
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.004feb10
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x46ade7
push edx
call fcn.004aaac0
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x46adfb
mov esi, dword [ebp + 8]
test ebx, ebx
jne 0x46acf0
xor eax, eax
pop edi
pop ebx
pop esi
pop ebp
ret
push 0x55404c
push 0x118e6
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00450070
add esp, 0x14
mov eax, 0xb
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x47eaa0
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 0x47eb3e
je 0x47ebb4
push dword [esi + 0x74]
call fcn.00486e50
add esp, 4
sub byte [esi + 0x44], 1
je 0x47eb33
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 0x47eb23
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.004feb10
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x47eb2c
push edx
call fcn.004aaac0
add esp, 4
sub byte [esi + 0x44], 1
jne 0x47ead3
pop ebx
mov eax, dword [esi + 0x78]
mov dword [esi + 0x74], eax
jmp 0x47ebcc
cmp dword [esi + 0x40], 0
jne 0x47eb52
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 0x47eb7a
cmp al, 4
jne 0x47eb65
mov eax, dword [esi + 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi + 0x10]
call fcn.0045d440
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.00478230
mov ecx, eax
add esp, 0x14
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x47eba8
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 0x47ec33
movzx eax, byte [eax + 2]
xor ecx, ecx
cmp dword [esi + 0x70], ecx
sete cl
cmp ecx, eax
jne 0x47ec33
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 0x47ebf0
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 0x47eb44
cmp dword [eax + 4], 1
je 0x47ec13
push 0x1145a
call fcn.00495a30
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.0047e810
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x55404c
push 0x1144d
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00450070
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x481640
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 0x481674
mov eax, dword [ebp + 0x14]
xor ecx, ecx
mov dword [eax], esi
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x88], eax
mov eax, dword [esi + 8]
mov dword [esi + 0x10], 0
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x4816eb
movzx eax, word [ebx + 0x8c]
cdq
mov edi, eax
add edi, 0x28
adc edx, 0
push edx
push edi
call fcn.004a7290
mov esi, eax
add esp, 8
test esi, esi
je 0x4816a0
push edi
push 0
push esi
call fcn.00516d20
add esp, 0xc
mov ecx, dword [ebp + 0x14]
mov dword [ecx], esi
test esi, esi
jne 0x4816db
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.004feb10
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 0x488030
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov byte [edi + 0x10], 1
push ebx
push ebx
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 edi
call fcn.004a7ae0
add esp, 0x1c
cmp dword [ebp + 0x10], 0
jne 0x488073
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
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 edi
call fcn.004a7ae0
add esp, 0x14
pop edi
pop ebx
pop ebp
ret