joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cfd20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ce980
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.005c5a43
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x4cfd53
xor al, al
jmp 0x4cfe7f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x4cfd75
xor al, al
jmp 0x4cfe7f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4cfd88
xor al, al
jmp 0x4cfe7f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4cfd9c
xor al, al
jmp 0x4cfe7f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.005b9935
test eax, eax
jne 0x4cfdd0
xor al, al
jmp 0x4cfe7f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x6b9da4
mov dword [esp + 0x20], ebp
call fcn.005c5a43
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.005c2836
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.005c288d
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x4cfe64
mov ax, word [ebx]
test ax, ax
je 0x4cfe56
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.004cfea0
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4cfe3a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.005c288d
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4d03a0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.005c3f22
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4d03e6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.005a7dd4
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x7331e8
push ecx
call fcn.005a9af3
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4d0e00
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [ecx]
test eax, eax
jne 0x4d0e0b
pop ecx
ret 8
mov edx, dword [esp + 0xc]
lea ecx, [esp]
push 0
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
ret 8

Function at 0x4d0e30
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov word [ebp], di
je 0x4d0f68
mov esi, dword [esp + 0x1c]
cmp esi, edi
je 0x4d0f68
push 0xf0000000
push 1
push edi
lea eax, [esp + 0x28]
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4d0f40
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push edi
push edi
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4d0f40
mov eax, dword [esp + 0x18]
push edi
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4d0f40
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea ecx, [esp + 0x20]
push edi
push ecx
push edi
push 2
push edx
mov dword [esp + 0x34], 4
call esi
test eax, eax
je 0x4d0f40
mov eax, dword [esp + 0x20]
push eax
call fcn.005a8ac7
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4d0f40
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push edi
push ecx
push ebx
push 2
push edx
call esi
test eax, eax
je 0x4d0f32
mov eax, dword [esp + 0x20]
xor esi, esi
test eax, eax
jbe 0x4d0f32
mov al, byte [esi + ebx]
lea edx, [ebp + edi*2]
mov byte [esp + 0x10], al
mov ecx, dword [esp + 0x10]
and ecx, 0xff
push ecx
push str._02x
push edx
call fcn.005a9db0
add esp, 0xc
add edi, eax
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jb 0x4d0f03
push ebx
call fcn.005a89de
add esp, 4
mov edi, 1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4d0f4f
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4d0f60
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x4d1570
Capabilities:
Check os version

Disassembly:
mov edx, dword [0x78ec5c]
sub esp, 0x23c
test edx, edx
push esi
push edi
jne 0x4d15b6
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, eax
test edx, edx
mov dword [0x78ec5c], edx
jne 0x4d15b6
push eax
push 0x7336d8
push 0x7336c8
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
xor eax, eax
pop esi
add esp, 0x23c
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0x46
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 8], 0x11c
push str.RtlGetVersion
rep stosd dword es:[edi], eax
push edx
call esi
test eax, eax
je 0x4d15f9
lea ecx, [esp + 8]
push ecx
call eax
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov al, byte [esp + 0x122]
jmp 0x4d1673
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 0x128]
lea edx, [esp + 0x128]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x12c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4d15ab
mov eax, dword [0x78ec5c]
push str.RtlGetNtVersionNumbers
push eax
call esi
lea ecx, [esp + 0x134]
lea edx, [esp + 0x130]
push ecx
lea ecx, [esp + 0x130]
push edx
push ecx
call eax
mov al, byte [esp + 0x24e]
mov esi, dword [esp + 0x138]
mov ecx, dword [esp + 0x13c]
mov edi, dword [esp + 0x140]
add esp, 0xc
mov byte [esp + 0x122], al
mov edx, dword [esp + 0x248]
test edx, edx
je 0x4d1696
mov dword [edx + 8], edi
mov edi, dword [esp + 0x122]
and edi, 0xff
mov dword [edx], esi
mov dword [edx + 4], ecx
mov dword [edx + 0xc], edi
cmp esi, 5
jne 0x4d170e
test ecx, ecx
jne 0x4d16ad
pop edi
mov eax, 0x14
pop esi
add esp, 0x23c
ret
cmp ecx, 1
jne 0x4d16c0
pop edi
mov eax, 0x13
pop esi
add esp, 0x23c
ret
cmp ecx, 2
jne 0x4d15ab
cmp al, 1
jne 0x4d16db
pop edi
mov eax, 0x12
pop esi
add esp, 0x23c
ret
cmp word [esp + 0x120], 0x8000
jne 0x4d16f5
pop edi
mov eax, 0xf
pop esi
add esp, 0x23c
ret
xor eax, eax
pop edi
cmp word [esp + 0x118], ax
pop esi
setne al
add eax, 0x10
add esp, 0x23c
ret
cmp esi, 6
jne 0x4d1775
test ecx, ecx
jne 0x4d1729
dec al
pop edi
neg al
sbb eax, eax
pop esi
add eax, 0xd
add esp, 0x23c
ret
cmp ecx, 1
jne 0x4d1740
dec al
pop edi
neg al
sbb eax, eax
pop esi
add eax, 0xb
add esp, 0x23c
ret
cmp ecx, 2
jne 0x4d1757
dec al
pop edi
neg al
sbb eax, eax
pop esi
add eax, 9
add esp, 0x23c
ret
cmp ecx, 3
jne 0x4d15ab
xor edx, edx
cmp al, 1
setne dl
add edx, 6
pop edi
mov eax, edx
pop esi
add esp, 0x23c
ret
cmp esi, 0xa
jne 0x4d15ab
test ecx, ecx
jne 0x4d15ab
dec al
pop edi
neg al
sbb eax, eax
pop esi
and al, 0xfe
add eax, 5
add esp, 0x23c
ret
Function at 0x4d17a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4d17c8
cmp word [esi], 0x5a4d
jne 0x4d17c8
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x4d17c8
test word [eax + 4], 0x14c
jne 0x4d17d1
xor eax, eax
pop esi
add esp, 0x10
ret 8
mov ecx, dword [eax + 0x54]
mov dx, word [eax + 6]
mov dword [esp + 8], ecx
xor ecx, ecx
mov cx, word [eax + 0x14]
push ebx
mov ebx, dword [esp + 0x20]
mov word [esp + 0x10], dx
lea edx, [ecx + eax + 0x18]
mov eax, dword [eax + 0x50]
mov ecx, dword [ebx]
push ebp
test ecx, ecx
push edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
jne 0x4d1824
mov ecx, dword [0x6b9e70]
mov edi, eax
cmp eax, ecx
jne 0x4d1811
xor edi, edi
push 0
push edi
mov ecx, ebx
call fcn.004d2c90
mov eax, dword [ebx]
mov dword [eax], edi
jmp 0x4d18ae
mov ecx, dword [ecx + 0xc]
cmp ecx, eax
jae 0x4d1893
lea edi, [ecx + eax + 0x1001]
lea edx, [ecx + eax + 0x1011]
cmp edi, ecx
mov dword [esp + 0x28], edi
jbe 0x4d1893
push 0
push edx
call fcn.004d3660
mov ebp, eax
add esp, 8
mov edi, ebp
mov dword [ebp + 4], 1
mov esi, dword [ebx]
lea eax, [ebp + 0x10]
mov ecx, dword [esi + 0xc]
add ecx, 0x10
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], eax
mov eax, dword [ebx]
test eax, eax
je 0x4d1882
push eax
call fcn.005a89de
add esp, 4
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
mov dword [ebx], ebp
mov dword [ebp + 0xc], ecx
mov edx, dword [ebx]
mov dword [edx], eax
mov ecx, dword [ebx]
cmp eax, dword [ecx + 0xc]
jae 0x4d18ae
mov ecx, dword [ecx + 8]
inc eax
mov byte [ecx + eax - 1], 0
mov ecx, dword [ebx]
cmp eax, dword [ecx + 0xc]
jb 0x4d189e
mov ebx, dword [ebx]
test ebx, ebx
je 0x4d18b9
mov ebp, dword [ebx + 8]
jmp 0x4d18bb
xor ebp, ebp
mov ecx, dword [esp + 0x14]
mov edi, ebp
mov edx, ecx
mov dword [esp + 0x28], ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
test cx, cx
jbe 0x4d1938
mov ebx, dword [esp + 0x1c]
lea eax, [ebx + 0xc]
lea edx, [ebx + 0x14]
add ebx, 0x10
and ecx, 0xffff
mov dword [esp + 0x10], ecx
mov edi, dword [eax]
test edi, edi
je 0x4d1924
mov ecx, dword [ebx]
test ecx, ecx
je 0x4d1924
mov esi, dword [esp + 0x24]
add edi, ebp
add esi, dword [edx]
mov ebp, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [esp + 0x28]
and ecx, 3
add ebx, 0x28
add edx, 0x28
add eax, 0x28
rep movsb byte es:[edi], byte [esi]
jmp 0x4d192d
add ebx, 0x28
add edx, 0x28
add eax, 0x28
mov ecx, dword [esp + 0x10]
dec ecx
mov dword [esp + 0x10], ecx
jne 0x4d18f3
mov eax, ebp
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 8
Function at 0x4d73c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4d7426
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4d7426
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4d7407
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x4d8010
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4d8059
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4d84d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ced80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004d8080
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004d8100
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004d8100
lea ecx, [esi + 0xc]
call fcn.005bb7db
lea ecx, [esi + 0x10]
call fcn.005bb7db
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004d9690
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004d9690
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004d9690
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.005bb850
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.005bb850
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4dddb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5cf1ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
lea eax, [esp + 0x14]
push esi
xor esi, esi
push eax
push 0x104
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jae 0x4dde90
lea ecx, [esp + 0x18]
lea edx, [esp + 0x18]
push ecx
push esi
push 0x736654
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
cmp eax, esi
je 0x4dde90
lea eax, [esp + 0x18]
push 0x1001
push eax
lea ecx, [esp + 0xc]
call fcn.005bbf1b
mov dword [esp + 0x128], esi
mov esi, dword [esp + 0x134]
push str.lt_
push 0x736648
mov ecx, esi
call fcn.005b842e
push str.gt_
push 0x73663c
mov ecx, esi
call fcn.005b842e
mov esi, dword [esi]
lea ecx, [esp + 4]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.005bc1cf
lea ecx, [esp + 4]
call fcn.005bc293
mov esi, dword [esp + 0x130]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.005bb8be
lea ecx, [esp + 4]
mov dword [esp + 0x128], 0xffffffff
call fcn.005bbfbb
jmp 0x4ddea3
mov esi, dword [esp + 0x130]
push 0x77806c
mov ecx, esi
call fcn.005bb8be
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x5082f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
je 0x508321
mov ecx, dword [ebp + 0xc]
push esi
lea edx, [ecx + 1]
mov ecx, dword [eax + 0x98]
mov esi, ecx
xor esi, edx
and esi, 3
xor esi, ecx
mov dword [eax + 0x98], esi
mov eax, dword [eax + 8]
test eax, eax
jne 0x508304
pop esi
pop ebp
ret

Function at 0x50a1d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push 0x14
mov dword [eax], 0
call fcn.004e1b90
mov esi, eax
add esp, 8
test esi, esi
jne 0x50a1f7
mov eax, 7
pop esi
pop ebp
ret
mov al, byte [0x73668c]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test al, al
je 0x50a24e
push 0xc8
call fcn.004e9ce0
add esp, 4
test eax, eax
jne 0x50a24e
lea ecx, [esi + 4]
mov dword [esi + 8], ebx
push ecx
push eax
push esi
push 0x50a290
push eax
push eax
mov dword [esi + 0xc], edi
call fcn.005aac7f
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x50a260
mov eax, esi
xor edx, edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
jmp 0x50a260
mov edx, esi
xor ecx, ecx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x50a279
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call ebx
add esp, 4
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
pop edi
pop ebx
mov dword [eax], esi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x513490
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.004e3e60
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
add eax, 0x174
push esi
push eax
call fcn.00512500
mov esi, dword [ebp + 0x14]
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x5134e6
mov ecx, dword [ebp + 0x10]
push esi
push ecx
push edi
call fcn.00513620
mov ecx, dword [ebp - 4]
add esp, 0xc
cmp eax, ecx
jle 0x5134df
mov ebx, edi
mov dword [ebp - 4], eax
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x5134c5
mov al, byte [ebp + 0x18]
test al, al
jne 0x51355d
test ebx, ebx
je 0x5134fe
mov edx, dword [ebp + 8]
test byte [edx + 0x18], 2
je 0x513603
mov ecx, dword [ebp + 0xc]
xor eax, eax
xor edx, edx
mov edi, 0x17
mov al, byte [ecx]
push ecx
mov dword [ebp - 4], 0
mov dl, byte [eax + 0x6ff410]
mov eax, edx
mov edx, dword [ebp - 8]
add eax, edx
cdq
idiv edi
push edx
call fcn.00513690
mov edi, eax
add esp, 8
test edi, edi
je 0x513603
mov eax, dword [ebp + 0x10]
push esi
push eax
push edi
call fcn.00513620
mov ecx, dword [ebp - 4]
add esp, 0xc
cmp eax, ecx
jle 0x513551
mov ebx, edi
mov dword [ebp - 4], eax
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x513537
jmp 0x513603
cmp dword [ebp - 4], 6
jge 0x513603
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add ecx, 0x29
push 0
push ecx
push edx
call fcn.004f2cc0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x5135f7
mov ecx, dword [ebp - 8]
mov al, byte [ebp + 0x10]
and esi, 0xff
inc ecx
mov edx, ecx
lea edi, [ebx + 0x28]
mov dword [ebx + 4], esi
mov esi, dword [ebp + 0xc]
shr ecx, 2
mov dword [ebx + 0x20], edi
mov byte [ebx], al
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x20]
mov cl, byte [eax]
test cl, cl
je 0x5135ca
and ecx, 0xff
inc eax
mov cl, byte [ecx + 0x6ff410]
mov byte [eax - 1], cl
mov cl, byte [eax]
test cl, cl
jne 0x5135b4
mov eax, dword [ebp + 8]
mov edx, dword [ebx + 0x20]
push ebx
add eax, 0x174
push edx
push eax
call fcn.00512870
add esp, 0xc
cmp eax, ebx
jne 0x513600
mov esi, dword [ebp + 8]
push ebx
push esi
call fcn.004e1e40
push esi
call fcn.004e2260
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0xc], eax
test ebx, ebx
je 0x5135f7
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x513615
mov al, byte [ebp + 0x18]
test al, al
je 0x5135f7
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5211a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
push str.sqlite_master
push esi
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 ebx
call fcn.00526360
add esp, 0x18
test edi, edi
jne 0x5211dd
push esi
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 ebx
call fcn.00526360
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x566630
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov ecx, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x20]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.sqlite_stat1
push eax
push ecx
xor edi, edi
call fcn.0054aa60
mov ecx, eax
add esp, 0x24
test ecx, ecx
je 0x566677
dec eax
mov dword [esi + 0x30], 0x100000
neg eax
mov dword [esi + 0x34], ebx
pop edi
sbb eax, eax
pop esi
and eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
push edx
push eax
push str.SELECT_stat_FROM__Q.sqlite_stat1_WHERE_tbl___q_rowid
call fcn.004e3af0
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x56669f
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push 0
push ecx
push 0xffffffffffffffff
push eax
push edx
call fcn.00517b90
xor ecx, ecx
add esp, 0x14
cmp eax, ecx
mov dword [ebp + 8], eax
jne 0x566704
mov eax, dword [ebp + 0xc]
push eax
call fcn.004f6bd0
add esp, 4
cmp eax, 0x64
jne 0x5666e0
mov ecx, dword [ebp + 0xc]
push 0
push ecx
call fcn.004f7e00
add esp, 8
mov edi, eax
mov ebx, edx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004f3620
add esp, 4
mov dword [ebp + 8], eax
xor ecx, ecx
cmp eax, ecx
jne 0x566731
mov eax, edi
or eax, ebx
jne 0x566715
mov dword [esi + 0x30], 0x100000
jmp 0x56672e
cmp eax, 7
je 0x5666ef
mov dword [ebp + 8], ecx
mov dword [esi + 0x30], 0x100000
jmp 0x56672e
cmp ebx, ecx
jl 0x566726
jg 0x566720
cmp edi, 0x64
jbe 0x566726
mov eax, edi
mov ecx, ebx
jmp 0x56672b
mov eax, 0x64
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov ecx, dword [ebp - 4]
push ecx
call fcn.004e1dc0
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x566750
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
test eax, eax
je 0x5667f2
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], 0
mov eax, dword [edi + 0x20]
push eax
push str.PRAGMA__Q.page_size
call fcn.004e3af0
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0x10]
mov ebx, eax
push ecx
push ebx
push edx
call fcn.00566870
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x5667c6
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dl, byte [edi + 0x17]
lea ecx, [eax - 0x40]
mov eax, edx
shl eax, 4
add eax, edx
mov dword [edi + 0x10], ecx
lea eax, [eax + eax*2 + 4]
cmp eax, ecx
jge 0x56685d
push ebx
mov dword [edi + 0x10], eax
call fcn.004e1dc0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
push ecx
call fcn.00549820
push eax
push 0x708b18
call fcn.004e3af0
mov edx, dword [ebp + 0x14]
add esp, 0xc
push ebx
mov dword [edx], eax
call fcn.004e1dc0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x20]
push eax
push ecx
push str.SELECT_length_data__FROM__q._q_node_WHERE_nodeno__1
call fcn.004e3af0
mov edx, dword [ebp + 8]
mov ebx, eax
lea eax, [edi + 0x10]
push eax
push ebx
push edx
call fcn.00566870
mov esi, eax
add esp, 0x18
test esi, esi
je 0x566839
mov eax, dword [ebp + 8]
push eax
call fcn.00549820
push eax
push 0x708b18
call fcn.004e3af0
add esp, 0xc
jmp 0x566858
cmp dword [edi + 0x10], 0x1c0
jge 0x56685d
mov edx, dword [edi + 0x24]
mov esi, 0x10b
push edx
push str.undersize_RTree_blobs_in___q_node_
call fcn.004e3af0
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
push ebx
call fcn.004e1dc0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x569340
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x56942e
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x569376
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
push eax
push ecx
push str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
push ebx
call fcn.005690d0
add esp, 0x10
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x56942e
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x14]
push edi
push edx
push eax
push 1
push ecx
call fcn.004f8380
mov edx, dword [ebx + 0x14]
push edx
call fcn.004f6bd0
add esp, 0x14
cmp eax, 0x64
jne 0x5693ff
mov eax, dword [ebx + 0x14]
push 0
push eax
call fcn.004f7d40
mov ecx, dword [ebx + 0x14]
mov esi, eax
push 0
push ecx
mov dword [ebp - 4], esi
call fcn.004f7c70
mov edi, eax
mov eax, esi
cdq
push edx
push eax
call fcn.004e1d50
add esp, 0x18
mov dword [ebp + 8], eax
test eax, eax
jne 0x5693e0
mov dword [ebx + 0x28], 7
jmp 0x5693fc
mov ecx, esi
mov esi, edi
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x14]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov esi, dword [ebp + 8]
mov edx, dword [ebx + 0x14]
push edx
push ebx
call fcn.00569440
mov eax, dword [ebx + 0x28]
add esp, 8
test eax, eax
pop edi
jne 0x56942e
test esi, esi
jne 0x56942e
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push str.Node__lld_missing_from_database
push ebx
call fcn.00569140
add esp, 0x10
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret