joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010740
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100de381
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10115034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea edi, [ecx + 0x80]
mov dword [ebp - 0x30], 0
cmp dword [edi + 0x14], 8
jb 0x10010789
mov eax, dword [edi]
jmp 0x1001078b
mov eax, edi
mov esi, dword [ebp + 8]
push eax
push str._sOpera_SoftwareOpera_StableLogin_Data
push esi
call fcn.1002e5f0
add esp, 0xc
xor eax, eax
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.10001a60
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.1002f390
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 4], 0
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
setne al
cmp dword [ebp - 0x18], 8
mov byte [ebp - 0x11], al
jb 0x1001080f
push dword [ebp - 0x2c]
call ebx
mov al, byte [ebp - 0x11]
add esp, 4
test al, al
jne 0x10010869
cmp dword [edi + 0x14], 8
jb 0x1001081b
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x2c]
push str._sOpera_SoftwareOpera_DeveloperLogin_Data
push eax
call fcn.1002e5f0
mov edi, eax
add esp, 0xc
cmp esi, edi
je 0x1001085b
cmp dword [esi + 0x14], 8
jb 0x10010840
push dword [esi]
call ebx
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.10001900
cmp dword [ebp - 0x18], 8
jb 0x10010869
push dword [ebp - 0x2c]
call ebx
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100dc8fb
mov esp, ebp
pop ebp
ret 4
Function at 0x10010890
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100de381
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10115034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea edi, [ecx + 0x80]
mov dword [ebp - 0x30], 0
cmp dword [edi + 0x14], 8
jb 0x100108d9
mov eax, dword [edi]
jmp 0x100108db
mov eax, edi
mov esi, dword [ebp + 8]
push eax
push str._sOpera_SoftwareOpera_StableLocal_State
push esi
call fcn.1002e5f0
add esp, 0xc
xor eax, eax
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.10001a60
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.1002f390
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov byte [ebp - 4], 0
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
setne al
cmp dword [ebp - 0x18], 8
mov byte [ebp - 0x11], al
jb 0x1001095f
push dword [ebp - 0x2c]
call ebx
mov al, byte [ebp - 0x11]
add esp, 4
test al, al
jne 0x100109b9
cmp dword [edi + 0x14], 8
jb 0x1001096b
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x2c]
push str._sOpera_SoftwareOpera_DeveloperLocal_State
push eax
call fcn.1002e5f0
mov edi, eax
add esp, 0xc
cmp esi, edi
je 0x100109ab
cmp dword [esi + 0x14], 8
jb 0x10010990
push dword [esi]
call ebx
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.10001900
cmp dword [ebp - 0x18], 8
jb 0x100109b9
push dword [ebp - 0x2c]
call ebx
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100dc8fb
mov esp, ebp
pop ebp
ret 4
Function at 0x10011670
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100df496
mov eax, dword fs:[0]
push eax
sub esp, 0x844
mov eax, dword [0x10115034]
xor eax, esp
mov dword [esp + 0x83c], eax
mov eax, dword [0x10115034]
xor eax, esp
push eax
lea eax, [esp + 0x848]
mov dword fs:[0], eax
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x44], ax
lea eax, [esp + 0x46]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 8], 0x400
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 4
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x100ebff0
mov word [ecx], ax
call fcn.10001df0
lea ecx, [esp + 0x3c]
call fcn.100ac2e0
mov dword [esp + 0x868], 0
lea ecx, [esp + 0x3c]
cmp dword [esp + 0x50], 8
lea edx, [esp + 0x54]
cmovae ecx, dword [esp + 0x3c]
call fcn.100ac6f0
lea eax, [esp + 0x24]
push str.debuglog.log
push eax
call fcn.1002e5f0
mov byte [esp + 0x870], 1
lea ecx, [esp + 0x44]
cmp dword [esp + 0x58], 8
lea eax, [esp + 0x2c]
cmovae ecx, dword [esp + 0x44]
cmp dword [esp + 0x40], 8
push ecx
cmovae eax, dword [esp + 0x30]
push eax
call fcn.100d0cb0
add esp, 0x28
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
push eax
lea eax, [esp + 0x40]
push eax
push str.________username:_s_isAdmin_:_d____________
push 1
push 0x11
push str..._srcMoniterHelperdllmain.cpp
push str.InitLog4cpp
call fcn.100d1600
add esp, 0x1c
cmp dword [esp + 0x20], 8
jb 0x100117a6
push dword [esp + 0xc]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
cmp dword [esp + 0x38], 8
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
jb 0x100117d1
push dword [esp + 0x24]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x848]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x83c]
xor ecx, esp
call fcn.100dc8fb
mov esp, ebp
pop ebp
ret

Function at 0x10011950
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10115034]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push edi
push 0x10012010
push 0
push 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x3c], eax
lea eax, [ebp - 0xc]
push eax
push 0
push edi
push 0x10012150
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [edi + 0x40], eax
xor ecx, ebp
pop edi
call fcn.100dc8fb
mov esp, ebp
pop ebp
ret
Function at 0x10020ea0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10115034]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
push dword [edi + 0x14]
mov byte [edi + 4], 1
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push edi
push 0x10021000
push 0
push 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x18], eax
lea eax, [ebp - 0xc]
push eax
push 0
push edi
push 0x10021300
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.Start_Scrrenshot
push 1
push 0x31
push 0x100eddf4
push str.CHandleScreenshotEvent::StartScreenshot
mov dword [edi + 0x1c], eax
call fcn.100d1270
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
mov al, 1
pop edi
call fcn.100dc8fb
mov esp, ebp
pop ebp
ret

Function at 0x10021d10
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100e0f49
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x10115034]
xor eax, esp
mov dword [esp + 0x27c], eax
push ebx
push esi
mov eax, dword [0x10115034]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
push 0x40
lea eax, [esp + 0x3c]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [esp + 0x34], 0x44
xorps xmm0, xmm0
movdqu xmmword [esp + 0xc], xmm0
push 0x100ee1ec
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [0x101197dc]
mov esi, eax
test cl, 1
jne 0x10021dcb
or ecx, 1
mov dword [0x101197dc], ecx
push 0x34
push 0
push 0x101197a8
mov dword [esp + 0x2a4], 0
call sub.MSVCR120.dll_memset
add esp, 0xc
call fcn.100b1820
push 0x100e6300
call fcn.100dc9fb
add esp, 4
mov dword [esp + 0x298], 0xffffffff
cmp dword [0x101197bc], 8
mov eax, 0x101197a8
cmovae eax, dword [0x101197a8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.100ac110
push 0x15
push str.Uninstall.exe__force
lea ecx, [esp + 0x24]
mov dword [esp + 0x2a0], 1
call fcn.10005dc0
xor eax, eax
push 0x206
push eax
mov word [esp + 0x84], ax
lea eax, [esp + 0x86]
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x28]
add esp, 0xc
cmp dword [esp + 0x30], 8
cmovae ecx, dword [esp + 0x1c]
add eax, eax
push eax
push ecx
lea eax, [esp + 0x84]
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [esp + 0x9c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10021e82
xor bl, bl
jmp 0x10021e96
push dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x10]
call esi
mov bl, 1
cmp dword [esp + 0x30], 8
jb 0x10021eaa
push dword [esp + 0x1c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x27c]
xor ecx, esp
call fcn.100dc8fb
mov esp, ebp
pop ebp
ret
Function at 0x10023990
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e12b3
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x10115034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 8
cmovae eax, dword [ebp + 0xc]
push eax
push str.SYSTEMCurrentControlSet_serviceseventlog
lea eax, [ebp - 0x834]
push 0x100eed38
push eax
call fcn.1002e5f0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x838]
cmp dword [ebp - 0x820], 8
lea eax, [ebp - 0x834]
push ecx
cmovae eax, dword [ebp - 0x834]
push 0x20019
push 0
push eax
push 0x80000002
mov dword [ebp - 0x838], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10023a56
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegOpenKeyEx_fail_lasterror:0x_x_ret__0x_x
push 1
push 0x28
push 0x100eed70
push 0x100eeda8
call fcn.100d1270
add esp, 0x1c
xor bl, bl
jmp 0x10023b32
xor eax, eax
xor bl, bl
push 0x7fe
push eax
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x81c], 0x800
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x818], 1
push eax
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x818]
push eax
push 0
push str.EventMessageFile
push dword [ebp - 0x838]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10023b02
cmp word [ebp - 0x814], ax
jne 0x10023ad4
xor ecx, ecx
lea eax, [ebp - 0x814]
push ecx
push eax
mov ecx, esi
call fcn.10001df0
mov bl, 1
jmp 0x10023b26
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10023ae0
sub ecx, edx
lea eax, [ebp - 0x814]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10001df0
mov bl, 1
jmp 0x10023b26
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RegQueryValueEx_fail_lasterror:0x_x_ret__0x_x
push 1
push 0x37
push 0x100eee2c
push str.CEventProviderManager::QueryEventMessageFile
call fcn.100d1270
add esp, 0x1c
push dword [ebp - 0x838]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x820], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x10023b4c
push dword [ebp - 0x834]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x820], 7
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x824], 0
mov word [ebp - 0x834], ax
jb 0x10023b77
push dword [ebp + 0xc]
call esi
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100dc8fb
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10027420
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x10115034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x2c
mov esi, eax
lea eax, [ebp - 0x30]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x34], 0x30
lea eax, [ebp - 0x34]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0x10027410
mov dword [ebp - 0x20], esi
push eax
mov dword [ebp - 0xc], 0x100f0744
mov dword [ebp - 0x10], 0
call dword [sym.imp.USER32.dll_RegisterClassExW]
test ax, ax
jne 0x100274b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100f0760
push 3
push 0x2b
push 0x100f07a0
push 0x100f07ec
call fcn.100d1600
add esp, 0x18
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100dc8fb
mov esp, ebp
pop ebp
ret
push 0
push esi
push 0
push 0
push 0x64
push 0x64
push 0x64
push 0x64
push 0xcf0000
push 0x100f0800
push 0x100f081c
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x10027510
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100f0838
push 3
push 0x31
push 0x100f0878
push str.CreateWnd
call fcn.100d1600
add esp, 0x18
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100dc8fb
mov esp, ebp
pop ebp
ret
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100dc8fb
mov esp, ebp
pop ebp
ret
Function at 0x1002a5b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1002a5c9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1002a604
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1002a600
lea ebx, [ebx]
cmp esi, edx
jae 0x1002a604
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x1002a5f0
cmp esi, edx
jb 0x1002a60b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10034ce0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [edi], 0
cmp dword [0x10115ce8], 0
je 0x10034d37
mov eax, dword [0x101191a0]
test eax, eax
je 0x10034d10
push eax
call dword [0x10115d40]
add esp, 4
lea edx, [ebp - 4]
mov ecx, 0x14
call fcn.10032380
mov eax, dword [0x101191a0]
test eax, eax
je 0x10034d32
push eax
call dword [0x10115d48]
mov esi, dword [ebp - 4]
jmp 0x10034d41
mov esi, dword [ebp - 4]
jmp 0x10034d44
push 0x14
call dword [0x10115d10]
mov esi, eax
add esp, 4
test esi, esi
jne 0x10034d52
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x10115cec], 0
mov ebx, dword [ebp + 8]
je 0x10034d9d
mov eax, dword [0x10115df0]
test eax, eax
je 0x10034d75
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x10034d9d
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x10034cb0
push 0
push 0
mov dword [esi + 0xc], ebx
call dword [sym.imp.MSVCR120.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x10034dab
xorps xmm0, xmm0
movdqu xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x10034dc4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call dword [ebp - 8]
add esp, 4
mov dword [esi + 0x10], eax
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10055d20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
mov ecx, ebx
call fcn.10048aa0
mov edi, dword [ebx + 0x18]
xor eax, eax
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x1c], eax
movsx eax, byte [ebx + 0x44]
mov dword [ebp - 0x14], esi
mov esi, dword [ebx + 0x1c]
mov eax, dword [ebx + eax*4 + 0x78]
mov ecx, dword [eax + 0x3c]
movzx eax, word [ebx + 0x20]
sub ecx, edi
cmp eax, ecx
cmovb ecx, eax
cmp esi, ecx
ja 0x10055d71
mov eax, 0x1010
mov dword [ebp - 0x24], edi
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x28], esi
jmp 0x10055d90
lea eax, [ebp - 0x34]
xor edx, edx
push eax
push esi
mov ecx, ebx
call fcn.10050c80
add esp, 8
test eax, eax
jne 0x10055e51
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov al, byte [edi]
cmp al, 0x80
jae 0x10055d9b
movzx ebx, al
jmp 0x10055da8
lea edx, [ebp - 8]
mov ecx, edi
call fcn.100366d0
mov ebx, dword [ebp - 8]
cmp ebx, 3
jb 0x10055e17
cmp ebx, esi
jg 0x10055e17
lea ecx, [edi - 1]
add ecx, ebx
mov al, byte [ecx]
cmp al, 0x80
jae 0x10055dc1
movzx edx, al
jmp 0x10055dcc
lea edx, [ebp - 8]
call fcn.100366d0
mov edx, dword [ebp - 8]
lea eax, [edx - 1]
cmp eax, 8
ja 0x10055e17
cmp edx, 7
je 0x10055e17
movzx ecx, byte [edx + 0x100f3000]
lea eax, [ecx + ebx]
cmp esi, eax
jb 0x10055e17
sub esi, ecx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [edi + esi]
call fcn.10054b40
mov ecx, dword [ebp + 8]
add esp, 4
mov eax, dword [ebp - 0x5c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x58]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x34]
call fcn.10050360
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test dword [ebp - 0x2c], 0x2460
jne 0x10055e26
cmp dword [ebp - 0x1c], 0
je 0x10055e2e
lea ecx, [ebp - 0x34]
call fcn.100502c0
push 0x101031a4
push 0x12800
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.10034ad0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1006fda0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ecx + 0x14]
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
jmp 0x1006fdc0
xor edi, edi
test eax, eax
jle 0x1006fe4d
lea ebx, [ebx]
mov ecx, edi
cmp edi, 2
jge 0x1006fddf
xor ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x1006fde2
mov dword [ebp - 0xc], edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1006fe96
mov bl, byte [esi]
mov edx, ecx
mov ecx, dword [ebp - 8]
add edx, edx
mov eax, esi
mov ecx, dword [ecx + 0x10]
mov edx, dword [ecx + edx*8]
movzx ecx, bl
movzx esi, byte [ecx + 0x100f20e0]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x100f20e0]
sub esi, ecx
jne 0x1006fe44
sub edx, eax
mov dword [ebp - 0x14], edx
jmp 0x1006fe20
test bl, bl
je 0x1006fe8f
movzx ecx, byte [edx + eax + 1]
inc eax
movzx edx, byte [ecx + 0x100f20e0]
mov bl, byte [eax]
movzx ecx, bl
movzx esi, byte [ecx + 0x100f20e0]
sub esi, edx
mov edx, dword [ebp - 0x14]
je 0x1006fe20
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp - 0x10]
jl 0x1006fdd0
mov dl, byte [ebx]
movzx eax, dl
movzx eax, byte [eax + 0x100f20e0]
sub eax, 0x73
jne 0x1006fe86
mov esi, str.sqlite_master
sub esi, ebx
test dl, dl
je 0x1006fec3
movzx eax, byte [esi + ebx + 1]
inc ebx
movzx ecx, byte [eax + 0x100f20e0]
mov dl, byte [ebx]
movzx eax, dl
movzx eax, byte [eax + 0x100f20e0]
sub eax, ecx
je 0x1006fe65
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x1006fe44
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
add ecx, ecx
mov edx, ebx
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + ecx*8 + 0xc]
add ecx, 8
call fcn.10036ff0
add esp, 4
test eax, eax
je 0x1006fe47
mov eax, dword [eax + 8]
test eax, eax
jne 0x1006fe88
jmp 0x1006fe47
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0x10]
test edi, edi
jne 0x1006fed9
neg edx
sbb edx, edx
jmp 0x1006ff23
test edx, edx
je 0x1006fe86
movzx eax, byte [edx]
mov esi, edi
mov bl, byte [edi]
movzx ecx, byte [eax + 0x100f20e0]
movzx eax, bl
movzx eax, byte [eax + 0x100f20e0]
sub eax, ecx
jne 0x1006ff21
sub edx, edi
jmp 0x1006ff00
test bl, bl
je 0x1006ff21
movzx eax, byte [edx + esi + 1]
inc esi
movzx ecx, byte [eax + 0x100f20e0]
mov bl, byte [esi]
movzx eax, bl
movzx eax, byte [eax + 0x100f20e0]
sub eax, ecx
je 0x1006ff00
mov edx, eax
test edx, edx
jne 0x1006fe86
mov eax, dword [ebp - 0x10]
mov ebx, str.sqlite_temp_master
mov dword [ebp - 4], ebx
jmp 0x1006fdc0
Function at 0x100700f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
mov dword [ebp - 0xc], edx
xor eax, eax
mov edx, dword [ecx + 0x14]
xor edi, edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], edx
test edx, edx
jle 0x100701ab
mov edx, dword [ecx + 0x10]
push ebx
mov dword [ebp - 0x14], edx
push esi
mov eax, edi
cmp edi, 2
jge 0x10070121
xor eax, 1
shl eax, 4
mov ecx, dword [eax + edx + 0xc]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10070186
mov ebx, dword [eax + edx]
mov esi, ecx
mov al, byte [ecx]
movzx ecx, byte [ebx]
movzx edx, byte [ecx + 0x100f20e0]
movzx ecx, al
movzx ecx, byte [ecx + 0x100f20e0]
sub ecx, edx
jne 0x10070174
sub ebx, esi
test al, al
je 0x10070182
movzx ecx, byte [ebx + esi + 1]
inc esi
movzx edx, byte [ecx + 0x100f20e0]
mov al, byte [esi]
movzx ecx, al
movzx ecx, byte [ecx + 0x100f20e0]
sub ecx, edx
je 0x10070153
mov eax, dword [ebp - 4]
inc edi
cmp edi, dword [ebp - 0x10]
jge 0x100701a9
mov edx, dword [ebp - 0x14]
jmp 0x10070117
test ecx, ecx
jne 0x10070174
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
add ecx, 0x18
push eax
call fcn.10036ff0
add esp, 4
test eax, eax
je 0x100701b0
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
test eax, eax
je 0x10070177
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x10070177