joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44eb90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5679a8
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 [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.005609fb
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0044e4f0
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.00560929
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.0055d220
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.0055d220
push 1
push 0
push 0
mov ecx, esi
call fcn.0055d1c8
push 1
push 0
push 1
mov ecx, esi
call fcn.0055d1c8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00560a6d
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x44ed10
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5679c8
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.005609fb
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0044e4f0
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.00560929
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
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 0x44edd4
cmp dword [esp + 0x40], 1
jne 0x44edd2
cmp ecx, eax
jge 0x44edd4
mov eax, ecx
cmp eax, 0xc8
jge 0x44ede0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0044eb90
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00560a6d
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x44f5e0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x567a73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0055b656
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00560ca3
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.005621bf
test eax, eax
je 0x44f6fc
mov ecx, dword [esp + 0x3c]
call fcn.00560cd0
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44f6c0
push edi
mov ecx, esi
call fcn.0055e33d
mov ecx, esi
call fcn.0044f8a0
cmp dword [esp + 0x38], 1
jne 0x44f6f5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0055e478
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4518f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x451923
push esi
call fcn.0045fca0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45191c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4519a9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x451992
mov eax, dword [esi + 8]
test eax, eax
je 0x451947
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45198e
cmp eax, 2
je 0x451992
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45193a
cmp eax, 3
je 0x45196d
cmp eax, 1
jne 0x45193a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45193a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45193a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004519d0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4519b8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004519d0
add esp, 4
pop esi
ret

Function at 0x452240
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x452261
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x452261
mov eax, dword [eax + 0x44]
test eax, eax
je 0x452261
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x495900
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 0x495931
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 0x495914
pop esi
pop ebp
ret

Function at 0x4977e0
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.0046f280
mov esi, eax
add esp, 8
test esi, esi
jne 0x497807
mov eax, 7
pop esi
pop ebp
ret
mov al, byte [0x8d876c]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
test al, al
je 0x49785e
push 0xc8
call fcn.004773c0
add esp, 4
test eax, eax
jne 0x49785e
lea ecx, [esi + 4]
mov dword [esi + 8], ebx
push ecx
push eax
push esi
push 0x4978a0
push eax
push eax
mov dword [esi + 0xc], edi
call fcn.0054b2cf
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x497870
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 0x497870
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 0x497889
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 0x4a0aa0
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.00471550
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
add eax, 0x174
push esi
push eax
call fcn.0049fb10
mov esi, dword [ebp + 0x14]
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x4a0af6
mov ecx, dword [ebp + 0x10]
push esi
push ecx
push edi
call fcn.004a0c30
mov ecx, dword [ebp - 4]
add esp, 0xc
cmp eax, ecx
jle 0x4a0aef
mov ebx, edi
mov dword [ebp - 4], eax
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x4a0ad5
mov al, byte [ebp + 0x18]
test al, al
jne 0x4a0b6d
test ebx, ebx
je 0x4a0b0e
mov edx, dword [ebp + 8]
test byte [edx + 0x18], 2
je 0x4a0c13
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 + 0x8ab8f0]
mov eax, edx
mov edx, dword [ebp - 8]
add eax, edx
cdq
idiv edi
push edx
call fcn.004a0ca0
mov edi, eax
add esp, 8
test edi, edi
je 0x4a0c13
mov eax, dword [ebp + 0x10]
push esi
push eax
push edi
call fcn.004a0c30
mov ecx, dword [ebp - 4]
add esp, 0xc
cmp eax, ecx
jle 0x4a0b61
mov ebx, edi
mov dword [ebp - 4], eax
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x4a0b47
jmp 0x4a0c13
cmp dword [ebp - 4], 6
jge 0x4a0c13
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add ecx, 0x29
push 0
push ecx
push edx
call fcn.00480390
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4a0c07
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 0x4a0bda
and ecx, 0xff
inc eax
mov cl, byte [ecx + 0x8ab8f0]
mov byte [eax - 1], cl
mov cl, byte [eax]
test cl, cl
jne 0x4a0bc4
mov eax, dword [ebp + 8]
mov edx, dword [ebx + 0x20]
push ebx
add eax, 0x174
push edx
push eax
call fcn.0049fe80
add esp, 0xc
cmp eax, ebx
jne 0x4a0c10
mov esi, dword [ebp + 8]
push ebx
push esi
call fcn.0046f530
push esi
call fcn.0046f950
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 0x4a0c07
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4a0c25
mov al, byte [ebp + 0x18]
test al, al
je 0x4a0c07
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ae7a0
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.004b3960
add esp, 0x18
test edi, edi
jne 0x4ae7dd
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.004b3960
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4f4350
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.004d8070
mov ecx, eax
add esp, 0x24
test ecx, ecx
je 0x4f4397
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.004711e0
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
jne 0x4f43bf
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.004a51a0
xor ecx, ecx
add esp, 0x14
cmp eax, ecx
mov dword [ebp + 8], eax
jne 0x4f4424
mov eax, dword [ebp + 0xc]
push eax
call fcn.00484290
add esp, 4
cmp eax, 0x64
jne 0x4f4400
mov ecx, dword [ebp + 0xc]
push 0
push ecx
call fcn.004854c0
add esp, 8
mov edi, eax
mov ebx, edx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00480cf0
add esp, 4
mov dword [ebp + 8], eax
xor ecx, ecx
cmp eax, ecx
jne 0x4f4451
mov eax, edi
or eax, ebx
jne 0x4f4435
mov dword [esi + 0x30], 0x100000
jmp 0x4f444e
cmp eax, 7
je 0x4f440f
mov dword [ebp + 8], ecx
mov dword [esi + 0x30], 0x100000
jmp 0x4f444e
cmp ebx, ecx
jl 0x4f4446
jg 0x4f4440
cmp edi, 0x64
jbe 0x4f4446
mov eax, edi
mov ecx, ebx
jmp 0x4f444b
mov eax, 0x64
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov ecx, dword [ebp - 4]
push ecx
call fcn.0046f4b0
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f4470
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 0x4f4512
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.004711e0
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0x10]
mov ebx, eax
push ecx
push ebx
push edx
call fcn.004f4590
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4f44e6
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 0x4f457d
push ebx
mov dword [edi + 0x10], eax
call fcn.0046f4b0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 8]
push ecx
call fcn.004d6e30
push eax
push 0x8b4ff8
call fcn.004711e0
mov edx, dword [ebp + 0x14]
add esp, 0xc
push ebx
mov dword [edx], eax
call fcn.0046f4b0
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.004711e0
mov edx, dword [ebp + 8]
mov ebx, eax
lea eax, [edi + 0x10]
push eax
push ebx
push edx
call fcn.004f4590
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4f4559
mov eax, dword [ebp + 8]
push eax
call fcn.004d6e30
push eax
push 0x8b4ff8
call fcn.004711e0
add esp, 0xc
jmp 0x4f4578
cmp dword [edi + 0x10], 0x1c0
jge 0x4f457d
mov edx, dword [edi + 0x24]
mov esi, 0x10b
push edx
push str.undersize_RTree_blobs_in___q_node_
call fcn.004711e0
add esp, 8
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
push ebx
call fcn.0046f4b0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4f7070
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 0x4f715e
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x4f70a6
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.004f6e00
add esp, 0x10
mov dword [ebx + 0x14], eax
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x4f715e
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.00485a40
mov edx, dword [ebx + 0x14]
push edx
call fcn.00484290
add esp, 0x14
cmp eax, 0x64
jne 0x4f712f
mov eax, dword [ebx + 0x14]
push 0
push eax
call fcn.00485400
mov ecx, dword [ebx + 0x14]
mov esi, eax
push 0
push ecx
mov dword [ebp - 4], esi
call fcn.00485330
mov edi, eax
mov eax, esi
cdq
push edx
push eax
call fcn.0046f440
add esp, 0x18
mov dword [ebp + 8], eax
test eax, eax
jne 0x4f7110
mov dword [ebx + 0x28], 7
jmp 0x4f712c
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.004f7170
mov eax, dword [ebx + 0x28]
add esp, 8
test eax, eax
pop edi
jne 0x4f715e
test esi, esi
jne 0x4f715e
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.004f6e70
add esp, 0x10
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f7190
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
mov dword [ebp - 4], str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov eax, dword [esi + edi*4 + 0x18]
test eax, eax
jne 0x4f71ce
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edx, dword [ebp + edi*4 - 8]
push eax
push ecx
push edx
push esi
call fcn.004f6e00
add esp, 0x10
mov dword [esi + edi*4 + 0x18], eax
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x4f72a5
mov eax, dword [esi + edi*4 + 0x18]
mov edi, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push ebx
push 1
push eax
mov dword [ebp + 8], eax
call fcn.00485a40
mov eax, dword [ebp + 8]
push eax
call fcn.00484290
add esp, 0x14
cmp eax, 0x65
jne 0x4f7240
mov eax, dword [ebp + 0xc]
test eax, eax
mov eax, str.__rowid
jne 0x4f7213
mov eax, str.__parent
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push eax
push ecx
push edx
push edi
push ebx
push str.Mapping___lld_____lld__missing_from__s_table
push esi
call fcn.004f6e70
mov eax, dword [ebp + 8]
add esp, 0x1c
push eax
push esi
call fcn.004f7170
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x64
jne 0x4f7297
mov eax, dword [ebp + 8]
push 0
push eax
call fcn.004854c0
mov ecx, dword [ebp + 0x18]
add esp, 8
cmp eax, ecx
mov dword [ebp + 0x14], edx
jne 0x4f7262
cmp edx, dword [ebp + 0x1c]
je 0x4f7297
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0xc], str.__rowid
test edx, edx
jne 0x4f7277
mov dword [ebp + 0xc], str.__parent
mov edx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0xc]
push edi
push ebx
push ecx
push edx
push eax
push edi
push ebx
push str.Found___lld_____lld__in__s_table__expected___lld_____lld_
push esi
call fcn.004f6e70
add esp, 0x2c
mov eax, dword [ebp + 8]
push eax
push esi
call fcn.004f7170
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4fee40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
lea esi, [edi + 0x3c]
test eax, eax
jne 0x4fee71
mov eax, dword [edi]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
push ecx
push edx
push str.SELECT_pgno_FROM__q._q_idx_WHERE_segid__AND_term___ORDER_BY_term_DESC_LIMIT_1
call fcn.004711e0
push eax
push esi
push edi
call fcn.004f9bb0
add esp, 0x18
mov eax, dword [esi]
pop edi
pop esi
pop ebp
ret

Function at 0x4ff0e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov eax, 0xd
dec ecx
test ecx, ecx
jl 0x4ff10a
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edx, edx
lea edi, [eax*8]
mov dl, byte [ecx + esi]
xor edx, edi
xor eax, edx
dec ecx
jns 0x4ff0f5
pop edi
pop esi
xor edx, edx
div dword [ebp + 8]
mov eax, edx
pop ebp
ret
Function at 0x50a060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, 0xd
dec eax
test eax, eax
jl 0x50a08a
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edx, edx
lea edi, [ecx*8]
mov dl, byte [eax + esi]
xor edx, edi
xor ecx, edx
dec eax
jns 0x50a075
pop edi
pop esi
mov edx, dword [ebp + 0xc]
lea eax, [ecx*8]
and edx, 0xff
xor eax, edx
xor edx, edx
xor eax, ecx
div dword [ebp + 8]
mov eax, edx
pop ebp
ret
Function at 0x50ba90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
push ebx
xor eax, eax
push esi
push edi
test edx, edx
mov dword [ebp - 4], eax
mov dword [ecx], eax
je 0x50bb6a
mov esi, dword [ebp + 0x14]
mov ecx, 0xd
lea eax, [esi - 1]
test eax, eax
jl 0x50bad0
mov edi, dword [ebp + 0x10]
lea ebx, [ecx*8]
movsx edi, byte [eax + edi]
xor edi, ebx
xor ecx, edi
dec eax
jns 0x50babb
mov edi, dword [ebp + 0xc]
mov ebx, ecx
xor ebx, edi
and ecx, 0x3f
and ebx, 0x1ff
shl ecx, 3
xor ebx, ecx
mov edx, dword [edx + ebx*4]
test edx, edx
je 0x50bb24
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 8]
cmp ecx, eax
jne 0x50bb0b
cmp dword [edx + 4], esi
jne 0x50bb0b
mov edi, dword [ebp + 0x10]
mov ecx, esi
mov esi, dword [edx]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x50bb14
mov esi, dword [ebp + 0x14]
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x50baec
jmp 0x50bb24
mov ecx, dword [ebp + 0x18]
test edx, edx
mov dword [ecx], 1
jne 0x50bb67
mov esi, dword [ebp + 0x14]
lea edx, [esi + 0x10]
push 0
lea eax, [ebp - 4]
push edx
push eax
call fcn.004f8780
add esp, 0xc
test eax, eax
je 0x50bb67
mov ecx, dword [ebp + 0xc]
lea edi, [eax + 0x10]
mov dword [eax + 8], ecx
mov ecx, esi
mov edx, ecx
mov dword [eax + 4], esi
mov esi, dword [ebp + 0x10]
mov dword [eax], edi
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 [ebp + 8]
mov edx, dword [ecx + ebx*4]
mov dword [eax + 0xc], edx
mov dword [ecx + ebx*4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x511bb0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
pop ebp
ret
Function at 0x516270
Capabilities:
Encrypt data using aes
Reference aes constants
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x51c2a1
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
lea esi, [ecx + 2]
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x2dc], esi