joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4754b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3c], 0
je 0x4754c5
or eax, 0xffffffff
jmp 0x475566
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
jne 0x47553c
call fcn.0044dc00
mov dword [eax], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x40]
push eax
push 0x4000
push 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x44]
push edx
call fcn.0044df1b
add esp, 0x10
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
jne 0x475531
mov eax, dword [ebp + 8]
mov dword [eax + 0x3c], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x40]
push edx
call fcn.0044f65a
add esp, 4
test eax, eax
je 0x47552c
mov eax, dword [ebp + 8]
mov dword [eax + 0x38], 0xffffffff
or eax, 0xffffffff
jmp 0x475566
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x44]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
sub edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov al, byte [edx]
mov byte [ebp - 1], al
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax], edx
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x4755f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x475615
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x5c]
cmp edx, 0x77
je 0x47561f
mov eax, 0xfffffffe
jmp 0x475718
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 4]
mov edx, 0x4000
sub edx, dword [ecx + 0x10]
mov dword [ebp - 8], edx
je 0x475682
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
push ecx
mov edx, dword [ebp - 8]
push edx
push 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x48]
push ecx
call fcn.0044c47b
add esp, 0x10
cmp eax, dword [ebp - 8]
je 0x47566c
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], 0xffffffff
or eax, 0xffffffff
jmp 0x475718
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x48]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0x4000
cmp dword [ebp - 0xc], 0
je 0x47568a
jmp 0x4756fa
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00473e90
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x38], eax
cmp dword [ebp - 8], 0
jne 0x4756b9
mov edx, dword [ebp - 4]
cmp dword [edx + 0x38], 0xfffffffb
jne 0x4756b9
mov eax, dword [ebp - 4]
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
jne 0x4756d4
mov edx, dword [ebp - 4]
cmp dword [edx + 0x38], 1
je 0x4756d4
mov dword [ebp - 0x10], 0
jmp 0x4756db
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x4756f5
mov edx, dword [ebp - 4]
cmp dword [edx + 0x38], 1
je 0x4756f5
jmp 0x4756fa
jmp 0x475629
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 1
jne 0x47570c
mov dword [ebp - 0x14], 0
jmp 0x475715
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x475720
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47573c
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x5c]
cmp edx, 0x77
je 0x475746
mov eax, 0xfffffffe
jmp 0x4757f6
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0
je 0x4757d0
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x4757af
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x48]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
push ecx
push 0x4000
push 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x48]
push eax
call fcn.0044c47b
add esp, 0x10
cmp eax, 0x4000
je 0x4757a5
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x38], 0xffffffff
jmp 0x4757d0
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0x4000
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00473e90
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x38], 0
je 0x4757ce
jmp 0x4757d0
jmp 0x475757
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
push eax
call fcn.004762a0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4c], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
sub eax, dword [edx + 4]
mov esp, ebp
pop ebp
ret
Function at 0x4762a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4762b0
xor eax, eax
jmp 0x47644d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x47640e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x502e20]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x502e20]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x502e20]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x502e20]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x502e20]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x502e20]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x502e20]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x502e20]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x4762b9
cmp dword [ebp + 0x10], 0
je 0x476447
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x502e20]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x476414
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x476f60
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], vtable.BProtectedModeCookieFactory.0
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0
je 0x476f86
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 0x10]
test edx, edx
je 0x476f9e
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esp, ebp
pop ebp
ret

Function at 0x476fb0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efbd8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
mov dword [eax], vtable.BProtectedModeCookieFactory.0
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x38]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x38]
mov dword [eax + 0xc], 0
xor ecx, ecx
mov edx, dword [ebp - 0x38]
mov word [edx + 0x10], cx
push 0
call fcn.00478090
add esp, 4
cmp eax, 8
jge 0x47701f
jmp 0x4770c3
mov eax, dword [ebp - 0x38]
add eax, 0x10
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x31]
call fcn.0040b800
push eax
lea ecx, [ebp - 0x30]
call fcn.004148f0
mov dword [ebp - 4], 0
push 1
push 1
lea ecx, [ebp - 0x30]
push ecx
push 0x26
call fcn.00486810
add esp, 0x10
lea ecx, [ebp - 0x2c]
call fcn.00413e50
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push str.ieframe.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 0x38]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x38]
cmp dword [eax + 4], 0
je 0x4770b4
push str.IESetProtectedModeCookie
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0xc], eax
push str.IEGetProtectedModeCookie
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 8], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00414a10
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret
Function at 0x477ef0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eb416
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x234], ecx
cmp dword [ebp + 8], 0
je 0x478069
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x478069
lea ecx, [ebp - 0x14]
call fcn.00419540
mov dword [ebp - 4], 0
push 3
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsUser_AgentPost_Platform
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x14]
call fcn.00419460
test eax, eax
jne 0x47805a
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0x104
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040ae10
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x478023
mov edx, dword [ebp - 0x22c]
add edx, 1
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x228], 0x104
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x224]
push ecx
call fcn.0044b463
add esp, 8
test eax, eax
jne 0x477ff6
mov byte [ebp - 0x22d], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00419520
mov al, byte [ebp - 0x22d]
jmp 0x47806b
push 4
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x224]
push eax
call fcn.0044b5a9
add esp, 0xc
test eax, eax
jne 0x47801e
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041dc20
jmp 0x477f78
push 1
push 0x5044cc
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x14]
call fcn.0041cfc0
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x22e], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00419520
mov al, byte [ebp - 0x22e]
jmp 0x47806b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00419520
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret 4
Function at 0x47a820
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eca19
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], 0
sub esp, 0x20
mov ecx, esp
mov dword [ebp - 0x3c], esp
lea eax, [ebp + 8]
push eax
call fcn.00414990
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00441c00
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 2
lea edx, [ebp - 0x38]
push edx
push 0x47a510
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.0042e490
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00414a10
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret 0x20
Function at 0x47d720
Capabilities:
Gather firefox profile information
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f396e
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x90], ecx
lea ecx, [ebp - 0x89]
call fcn.0040b800
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x50]
call fcn.00414c40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
push ecx
call fcn.0047aa70
add esp, 4
push 0
mov ecx, dword [ebp - 0x90]
call fcn.0047c360
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x47d7b3
mov byte [ebp - 0x8a], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00414a10
mov al, byte [ebp - 0x8a]
jmp 0x47d8e2
mov byte [ebp - 0x51], 0
lea ecx, [ebp - 0x8b]
call fcn.0040b800
push eax
lea ecx, [ebp - 0x30]
call fcn.004148f0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x4c]
call fcn.00413e50
push eax
push str.SELECT_value_FROM_moz_cookies_WHERE_host_LIKE____s___AND_name_s
lea eax, [ebp - 0x30]
push eax
call fcn.00413900
add esp, 0x10
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x78]
call fcn.00424980
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x74]
call fcn.00410bd0
test eax, eax
je 0x47d89d
lea ecx, [ebp - 0x88]
call fcn.0043e430
mov byte [ebp - 4], 3
push 0
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
mov ecx, dword [ebp - 0x90]
add ecx, 0x24
call fcn.0047e470
movzx edx, al
test edx, edx
je 0x47d88e
lea ecx, [ebp - 0x88]
call fcn.0043e500
test eax, eax
je 0x47d88e
push 0
lea ecx, [ebp - 0x88]
call fcn.0043e520
mov ecx, eax
call fcn.00422840
test eax, eax
je 0x47d88e
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
lea ecx, [ebp - 0x88]
call fcn.0043e520
mov ecx, eax
call fcn.00441ca0
mov ecx, eax
call fcn.0043e350
mov byte [ebp - 0x51], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.0043e4a0
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp - 0x90]
call fcn.0047b200
mov dl, byte [ebp - 0x51]
mov byte [ebp - 0x8c], dl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x78]
call fcn.00424a60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00414a10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00414a10
mov al, byte [ebp - 0x8c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47df70
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov byte [ebp - 1], 0
push str.sqlite3_open
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0
jne 0x47dfa3
jmp 0x47e0ad
push str.sqlite3_open_v2
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0xc], 0
jne 0x47dfc9
jmp 0x47e0ad
push str.sqlite3_prepare_v2
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x47dfef
jmp 0x47e0ad
push str.sqlite3_step
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x14], 0
jne 0x47e015
jmp 0x47e0ad
push str.sqlite3_column_count
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
jne 0x47e038
jmp 0x47e0ad
push str.sqlite3_column_text
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x1c], 0
jne 0x47e05b
jmp 0x47e0ad
push str.sqlite3_finalize
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x20], 0
jne 0x47e07e
jmp 0x47e0ad
push str.sqlite3_close
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 0x24], 0
jne 0x47e0a1
jmp 0x47e0ad
mov byte [ebp - 1], 1
xor eax, eax
jne 0x47df7d
movzx ecx, byte [ebp - 1]
test ecx, ecx
jne 0x47e0c2
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 8]
call edx
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x47fa10
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3147
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x5392a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.0041d350
mov eax, dword [ebp + 8]
push eax
call fcn.0047ef90
add esp, 4
test eax, eax
je 0x47fbec
lea ecx, [ebp - 0x18]
call fcn.00419780
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x47fa74
mov ecx, dword [ebp + 8]
add ecx, 4
mov dword [ebp - 0x80], ecx
jmp 0x47fa7b
mov dword [ebp - 0x80], 0
push 0x505d48
mov edx, dword [ebp - 0x80]
push edx
lea eax, [ebp - 0x78]
push eax
call fcn.00407a80
add esp, 0xc
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x88], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x88]
push edx
lea ecx, [ebp - 0x5c]
call fcn.00417720
mov byte [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x5c]
push ecx
call fcn.00483130
add esp, 8
mov byte [ebp - 0x39], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.00414a10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.00414bf0
movzx edx, byte [ebp - 0x39]
test edx, edx
je 0x47fbdd
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.0042f610
jmp 0x47fb0d
lea ecx, [ebp - 0x24]
call fcn.0041a660
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00426830
push eax
lea ecx, [ebp - 0x24]
call fcn.0042f670
movzx edx, al
test edx, edx
je 0x47fbdd
lea ecx, [ebp - 0x24]
call fcn.0041e460
add eax, 4
mov ecx, eax
call fcn.00413e50
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
jne 0x47fb4d
jmp 0x47fb05
lea ecx, [ebp - 0x24]
call fcn.0041e460
add eax, 4
mov ecx, eax
call fcn.00413e50
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x30]
push eax
push 0x505d4c
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0044b216
add esp, 0x18
cmp eax, 4
je 0x47fb94
jmp 0x47fb05
mov edx, dword [ebp - 0x38]
imul edx, edx, 0x3e8
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
imul eax, eax, 0xf4240
add edx, eax
mov ecx, dword [ebp - 0x30]
imul ecx, ecx, 0x5f5e100
add edx, ecx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x20]
jbe 0x47fbd8
lea ecx, [ebp - 0x24]
call fcn.0041d4f0
push eax
mov ecx, dword [ebp + 8]
call fcn.00415500
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
jmp 0x47fb05
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00419800
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00410bd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x47fe20
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f31da
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5392a4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x10], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x47fe7d
push 0
push 0x505754
push 0x50575c
mov ecx, dword [ebp - 0x50]
call fcn.0047f760
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x47fe7d
mov eax, dword [ebp - 0x10]
jmp 0x47ff2a
lea ecx, [ebp - 0x45]
call fcn.0040b800
push eax
push str.SELECT_value_FROM_meta_WHERE_key__Default_Search_Provider_ID
lea ecx, [ebp - 0x34]
call fcn.00418160
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0043e430
mov byte [ebp - 4], 1
push 0
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x50]
add ecx, 0x24
call fcn.0047e470
movzx eax, al
test eax, eax
je 0x47ff06
lea ecx, [ebp - 0x44]
call fcn.0043e500
test eax, eax
je 0x47ff06
push 0
lea ecx, [ebp - 0x44]
call fcn.0043e520
mov ecx, eax
call fcn.00422840
test eax, eax
je 0x47ff06
push 0xa
push 0
push 0
lea ecx, [ebp - 0x44]
call fcn.0043e520
mov ecx, eax
call fcn.00441ca0
mov ecx, eax
call fcn.0043e400
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.0043e4a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00419100
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004489b2
mov esp, ebp
pop ebp
ret 4