joyce8/EMBER2024-capa huggingface dataset:
Function at 0x507d00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6d28e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.00505840
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x507d59
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.00502be0
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.00502bd0
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.005073b0
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [0x6db6c8]
push 0
lea ecx, [esp + 0x4c]
call fcn.006c79b2
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.0051d450
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.00505260
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [0x6db074]
mov ecx, ebx
call fcn.00502b50
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x507e24
push edi
mov ecx, esi
call fcn.00505370
push eax
push ebp
mov ecx, esi
call fcn.00505530
cmp eax, dword [esp + 0x40]
jg 0x507e20
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x507dfe
mov eax, ebx
jmp 0x507e2a
cmp edi, ebx
jl 0x507e28
mov eax, ebx
jmp 0x507e2a
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x507e3b
mov dword [esp + 0x30], eax
jmp 0x507e46
cmp edi, ebx
jl 0x507e41
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.00502b10
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x507e8d
push edi
mov ecx, esi
call fcn.00505290
push eax
push ebx
mov ecx, esi
call fcn.00505660
cmp eax, dword [esp + 0x44]
jg 0x507e85
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x507e5f
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x507e97
cmp edi, ebp
jl 0x507e91
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x507e97
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x507ea0
mov ecx, eax
jmp 0x507ea9
cmp edi, ebp
jl 0x507ea6
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.00505280
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.006c7a24
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x50df80
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6d2d98
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x50dfb9
inc eax
mov dword [esi + 0x10], eax
jmp 0x50e0cc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x50dfcd
mov eax, 0xffffffc7
jmp 0x50e0ce
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x50dfde
cmp dword [esi + 8], eax
jne 0x50dfcd
cmp dword [esi + 8], eax
jne 0x50dff7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x50dff7
mov eax, 0xffffffc7
jmp 0x50e0ce
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x50e00b
push eax
mov ecx, ebx
call fcn.0050d7b0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004d4820
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x50e03c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004d4840
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0050cf20
test eax, eax
mov dword [esp + 0x38], eax
je 0x50e06f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x741978
call fcn.004d4a20
mov eax, dword [esp + 0x38]
jmp 0x50e0ce
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0050dde0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x50e0b3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0050de00
mov esi, eax
test esi, esi
jne 0x50e0e3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0050dde0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x50e085
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x741978
call fcn.004d4a20
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x741978
call fcn.004d4a20
mov eax, esi
jmp 0x50e0ce
Function at 0x51daf0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x6d3688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x6db6c8]
push 0
lea ecx, [esp + 0x20]
call fcn.006c79b2
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0051d450
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.006c78e0
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.006c3ec4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.006c3ec4
push 1
push 0
push 0
mov ecx, esi
call fcn.006c3e6c
push 1
push 0
push 1
mov ecx, esi
call fcn.006c3e6c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.006c7a24
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x51dc70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x6d36a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.006c79b2
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0051d450
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.006c78e0
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x6db6c8]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x51dd34
cmp dword [esp + 0x40], 1
jne 0x51dd32
cmp ecx, eax
jge 0x51dd34
mov eax, ecx
cmp eax, 0xc8
jge 0x51dd40
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0051daf0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x6db6c4]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.006c7a24
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x53ea50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6d3ca0
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.0053e600
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0053e680
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0053e680
lea ecx, [esi + 0xc]
call fcn.006c0ae0
lea ecx, [esi + 0x10]
call fcn.006c0ae0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0053fa80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0053fa80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0053fa80
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.006c0b55
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.006c0b55
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x556fe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6d4ec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x869df8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push eax
push 0x84d978
push ecx
mov byte [esp + 0x2c], 1
call fcn.006bd610
add esp, 0xc
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push 0x84d974
push eax
call fcn.006c0e12
push 0x84d970
lea ecx, [esp + 0x30]
mov bl, 2
push eax
push ecx
mov byte [esp + 0x2c], bl
call fcn.006c0d9e
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 3
call fcn.006c0c42
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call fcn.006c0b55
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.006c0b55
mov edi, dword [esi + 0x118]
mov eax, dword [esi + 0x114]
cmp edi, eax
jge 0x557138
push ebp
mov ebp, dword [esp + 0x2c]
mov al, byte [esp + 0x34]
test al, al
je 0x5570ac
push 1
push 0x8a41c4
jmp 0x55711f
push ebp
lea edx, [esp + 0x34]
push edi
push edx
mov ecx, esi
call fcn.00552d50
mov eax, dword [eax]
mov ebx, dword [esp + 0x10]
push eax
mov byte [esp + 0x28], 4
call fcn.0069e7e2
push ecx
lea eax, [esp + 0x1c]
fstp qword [esp]
push ebx
push eax
call fcn.006bd610
add esp, 0x10
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 1
call fcn.006c0b55
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0069e7e2
fcomp qword [0x7469b0]
add esp, 4
fnstsw ax
test ah, 0x40
je 0x557118
mov eax, dword [esi + 0x348]
test eax, eax
jne 0x557128
push 1
push 0x8a41c4
jmp 0x55711f
mov edx, dword [esp + 0x14]
push 1
push edx
push ebp
push edi
mov ecx, esi
call fcn.0054d8c0
mov eax, dword [esi + 0x114]
inc edi
cmp edi, eax
jl 0x55709b
pop ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.006c0b55
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.006c0b55
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x55cb30
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x6d5578
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.006c79b2
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.0055ca70
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.006c78e0
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x6db6c8]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x55cbf7
cmp dword [esp + 0x40], 1
jne 0x55cbf5
cmp ecx, eax
jge 0x55cbf7
mov eax, ecx
cmp eax, 0x12c
jge 0x55cc03
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.0055cc50
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x6db6c4]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.006c7a24
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x59f160
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 0x59f191
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 0x59f174
pop esi
pop ebp
ret

Function at 0x5a1040
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.00578ad0
mov esi, eax
add esp, 8
test esi, esi
jne 0x5a1067
mov eax, 7
pop esi
pop ebp
ret
mov al, byte [0x853534]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test al, al
je 0x5a10be
push 0xc8
call fcn.00580c10
add esp, 4
test eax, eax
jne 0x5a10be
lea ecx, [esi + 4]
mov dword [esi + 8], ebx
push ecx
push eax
push esi
push 0x5a1100
push eax
push eax
mov dword [esi + 0xc], edi
call fcn.006a1cef
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x5a10d0
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 0x5a10d0
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 0x5a10e9
call dword [0x6db3f0]
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 0x5aa300
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.0057ada0
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
add eax, 0x174
push esi
push eax
call fcn.005a9370
mov esi, dword [ebp + 0x14]
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x5aa356
mov ecx, dword [ebp + 0x10]
push esi
push ecx
push edi
call fcn.005aa490
mov ecx, dword [ebp - 4]
add esp, 0xc
cmp eax, ecx
jle 0x5aa34f
mov ebx, edi
mov dword [ebp - 4], eax
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x5aa335
mov al, byte [ebp + 0x18]
test al, al
jne 0x5aa3cd
test ebx, ebx
je 0x5aa36e
mov edx, dword [ebp + 8]
test byte [edx + 0x18], 2
je 0x5aa473
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 + 0x749d60]
mov eax, edx
mov edx, dword [ebp - 8]
add eax, edx
cdq
idiv edi
push edx
call fcn.005aa500
mov edi, eax
add esp, 8
test edi, edi
je 0x5aa473
mov eax, dword [ebp + 0x10]
push esi
push eax
push edi
call fcn.005aa490
mov ecx, dword [ebp - 4]
add esp, 0xc
cmp eax, ecx
jle 0x5aa3c1
mov ebx, edi
mov dword [ebp - 4], eax
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x5aa3a7
jmp 0x5aa473
cmp dword [ebp - 4], 6
jge 0x5aa473
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add ecx, 0x29
push 0
push ecx
push edx
call fcn.00589bf0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x5aa467
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 0x5aa43a
and ecx, 0xff
inc eax
mov cl, byte [ecx + 0x749d60]
mov byte [eax - 1], cl
mov cl, byte [eax]
test cl, cl
jne 0x5aa424
mov eax, dword [ebp + 8]
mov edx, dword [ebx + 0x20]
push ebx
add eax, 0x174
push edx
push eax
call fcn.005a96e0
add esp, 0xc
cmp eax, ebx
jne 0x5aa470
mov esi, dword [ebp + 8]
push ebx
push esi
call fcn.00578d80
push esi
call fcn.005791a0
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 0x5aa467
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x5aa485
mov al, byte [ebp + 0x18]
test al, al
je 0x5aa467
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b8020
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.005bd1e0
add esp, 0x18
test edi, edi
jne 0x5b805d
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.005bd1e0
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5fd4d0
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.005e18f0
mov ecx, eax
add esp, 0x24
test ecx, ecx
je 0x5fd517
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.0057aa30
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x5fd53f
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.005aea20
xor ecx, ecx
add esp, 0x14
cmp eax, ecx
mov dword [ebp + 8], eax
jne 0x5fd5a4
mov eax, dword [ebp + 0xc]
push eax
call fcn.0058daf0
add esp, 4
cmp eax, 0x64
jne 0x5fd580
mov ecx, dword [ebp + 0xc]
push 0
push ecx
call fcn.0058ed20
add esp, 8
mov edi, eax
mov ebx, edx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0058a550
add esp, 4
mov dword [ebp + 8], eax
xor ecx, ecx
cmp eax, ecx
jne 0x5fd5d1
mov eax, edi
or eax, ebx
jne 0x5fd5b5
mov dword [esi + 0x30], 0x100000
jmp 0x5fd5ce
cmp eax, 7
je 0x5fd58f
mov dword [ebp + 8], ecx
mov dword [esi + 0x30], 0x100000
jmp 0x5fd5ce
cmp ebx, ecx
jl 0x5fd5c6
jg 0x5fd5c0
cmp edi, 0x64
jbe 0x5fd5c6
mov eax, edi
mov ecx, ebx
jmp 0x5fd5cb
mov eax, 0x64
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov ecx, dword [ebp - 4]
push ecx
call fcn.00578d00
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5fd5f0
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 0x5fd692
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.0057aa30
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0x10]
mov ebx, eax
push ecx
push ebx
push edx
call fcn.005fd710
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x5fd666
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 0x5fd6fd
push ebx
mov dword [edi + 0x10], eax
call fcn.00578d00
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
push ecx
call fcn.005e06b0
push eax
push 0x753468
call fcn.0057aa30
mov edx, dword [ebp + 0x14]
add esp, 0xc
push ebx
mov dword [edx], eax
call fcn.00578d00
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.0057aa30
mov edx, dword [ebp + 8]
mov ebx, eax
lea eax, [edi + 0x10]
push eax
push ebx
push edx
call fcn.005fd710
mov esi, eax
add esp, 0x18
test esi, esi
je 0x5fd6d9
mov eax, dword [ebp + 8]
push eax
call fcn.005e06b0
push eax
push 0x753468
call fcn.0057aa30
add esp, 0xc
jmp 0x5fd6f8
cmp dword [edi + 0x10], 0x1c0
jge 0x5fd6fd
mov edx, dword [edi + 0x24]
mov esi, 0x10b
push edx
push str.undersize_RTree_blobs_in___q_node_
call fcn.0057aa30
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
push ebx
call fcn.00578d00
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x6001e0
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 0x6002ce
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x600216
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.005fff70
add esp, 0x10
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x6002ce
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.0058f2a0
mov edx, dword [ebx + 0x14]
push edx
call fcn.0058daf0
add esp, 0x14
cmp eax, 0x64
jne 0x60029f
mov eax, dword [ebx + 0x14]
push 0
push eax
call fcn.0058ec60
mov ecx, dword [ebx + 0x14]
mov esi, eax
push 0
push ecx
mov dword [ebp - 4], esi
call fcn.0058eb90
mov edi, eax
mov eax, esi
cdq
push edx
push eax
call fcn.00578c90
add esp, 0x18
mov dword [ebp + 8], eax
test eax, eax
jne 0x600280
mov dword [ebx + 0x28], 7
jmp 0x60029c
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.006002e0
mov eax, dword [ebx + 0x28]
add esp, 8
test eax, eax
pop edi
jne 0x6002ce
test esi, esi
jne 0x6002ce
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.005fffe0
add esp, 0x10
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret