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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5476ce
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x58d038]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
or eax, 0xffffffff
xor ebx, ebx
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
lea ecx, [esi + 0x14]
mov dword [esi], vtable.TiXmlAttribute.0
mov eax, 0xf
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], ebx
mov dword [ebp - 4], ebx
mov byte [ecx], bl
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], edx
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4a4a10
sub eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00408300
mov edx, dword [ebp + 0xc]
mov eax, edx
lea ecx, [eax + 1]
mov dword [ebp + 8], ecx
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a4a30
sub eax, dword [ebp + 8]
lea ecx, [esi + 0x30]
push eax
push edx
call fcn.00408300
mov dword [esi + 0x10], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4a4d30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547733
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x58d038]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
or ecx, 0xffffffff
mov dword [esi + 8], ecx
mov dword [esi + 4], ecx
xor edx, edx
mov dword [esi + 0xc], edx
mov dword [esi + 0x30], edx
mov ebx, 0xf
mov dword [esi + 0x34], ebx
mov byte [esi + 0x20], dl
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 1
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
lea eax, [esi + 0x44]
mov dword [esi], vtable.TiXmlElement.0
mov dword [eax + 8], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], edx
mov dword [eax], vtable.TiXmlAttribute.0
mov dword [eax + 0x28], ebx
mov dword [eax + 0x24], edx
mov byte [eax + 0x14], dl
mov dword [eax + 0x44], ebx
mov dword [eax + 0x40], edx
mov byte [eax + 0x30], dl
mov dword [ebp - 4], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x50], eax
mov dword [eax + 0x4c], eax
mov ecx, dword [ebp + 8]
mov eax, ecx
lea ebx, [eax + 1]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], edx
mov dword [esi + 0x18], edx
mov dword [ebp + 8], ebx
mov bl, byte [eax]
inc eax
cmp bl, dl
jne 0x4a4dd2
sub eax, dword [ebp + 8]
push eax
push ecx
lea ecx, [esi + 0x20]
call fcn.00408300
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a5140
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5477a3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x58d038]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x30], ebx
mov edx, 0xf
mov dword [esi + 0x34], edx
mov byte [esi + 0x20], bl
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
lea ecx, [esi + 0x4c]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x10], ebx
mov dword [ebp - 4], ebx
mov byte [ecx], bl
mov dword [esi + 0x70], eax
mov dword [esi + 0x6c], eax
push ebx
push 0x54ecee
mov byte [ebp - 4], 1
mov dword [esi + 0x68], 4
mov byte [esi + 0x74], bl
mov byte [esi + 0x44], bl
mov dword [esi + 0x48], ebx
call fcn.00408300
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b75c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], eax
jle 0x4b763b
push esi
push edi
mov eax, ebx
cmp ebx, 2
jge 0x4b75e2
xor eax, 1
mov ecx, dword [ecx + 0x10]
mov edi, dword [ebp + 0x10]
mov edx, eax
shl edx, 4
add ecx, edx
mov edx, dword [ecx + 0xc]
mov dword [ebp - 8], edx
test edi, edi
je 0x4b760f
mov ecx, dword [ecx]
sub edi, ecx
lea ecx, [ecx]
movzx edx, byte [ecx]
movzx esi, byte [edi + ecx]
cmp edx, esi
jne 0x4b7640
test edx, edx
jne 0x4b7652
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
push 0
push edx
add eax, 0x18
call fcn.004af610
mov eax, dword [eax + 8]
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
jne 0x4b7639
mov ecx, dword [ebp + 8]
inc ebx
cmp ebx, dword [ecx + 0x14]
jl 0x4b75d8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx esi, byte [esi + 0x568f80]
movzx edx, byte [edx + 0x568f80]
sub edx, esi
jne 0x4b7655
inc ecx
jmp 0x4b7600
test eax, eax
jne 0x4b762d
mov edi, dword [ebp + 0x10]
mov edx, str.main
sub edi, edx
movzx ecx, byte [edx]
movzx esi, byte [edi + edx]
cmp ecx, esi
jne 0x4b7675
test ecx, ecx
je 0x4b760f
inc edx
jmp 0x4b7663
movzx eax, byte [esi + 0x568f80]
movzx ecx, byte [ecx + 0x568f80]
sub ecx, eax
jne 0x4b762d
inc edx
jmp 0x4b7663
Function at 0x4bccf0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [eax], 0
cmp dword [0x58e7a0], 0
push esi
je 0x4bcd52
mov eax, dword [0x5963f8]
test eax, eax
je 0x4bcd1e
push eax
call dword [0x58e7f0]
add esp, 4
lea ecx, [ebp - 4]
push ecx
mov eax, 0x14
call fcn.004bc4a0
mov eax, dword [0x5963f8]
add esp, 4
test eax, eax
je 0x4bcd42
push eax
call dword [0x58e7f8]
add esp, 4
mov esi, dword [ebp - 4]
test esi, esi
jne 0x4bcd61
lea eax, [esi + 7]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x14
call dword [0x58e7c0]
add esp, 4
mov esi, eax
jmp 0x4bcd45
cmp byte [0x58e7a4], 0
je 0x4bcda5
mov eax, dword [0x58e894]
test eax, eax
je 0x4bcd81
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x4bcda5
lea edx, [esi + 4]
push edx
push 0
push esi
push 0x4ae3b0
push 0
push 0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edi
call fcn.004837bf
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x4bcdb5
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp dword [esi + 8], 0
jne 0x4bcdcd
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]
mov dword [eax], esi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4beb60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 0x88]
xor ecx, ecx
push ebx
push esi
cmp eax, ecx
je 0x4beb8c
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov edx, dword [eax + 0x10]
mov dword [edi + 0x88], edx
mov edx, dword [eax + 8]
mov dword [eax + 0x10], ecx
mov dword [edx], ecx
mov dword [edx + 4], ecx
jmp 0x4bec01
movzx ebx, word [edi + 0x8c]
xor eax, eax
push eax
add ebx, 0x28
push ebx
call fcn.004bc5c0
mov esi, eax
add esp, 8
test esi, esi
je 0x4bebb4
push ebx
push 0
push esi
call fcn.00480280
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov eax, esi
mov dword [ecx], esi
test esi, esi
jne 0x4bebf1
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x98]
mov esi, dword [edi + 0x3c]
mov ebx, dword [esi]
push edx
push 0
cdq
dec ecx
push ecx
push edx
push eax
call fcn.00484e00
push edx
mov edx, dword [ebx + 0x48]
push eax
push esi
call edx
add esp, 0x10
pop esi
mov eax, 7
pop ebx
pop ebp
ret
lea ecx, [esi + 0x28]
mov dword [esi + 8], ecx
mov dword [esi + 0x1c], 0x10020
mov dword [esi + 0x14], edi
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
mov dword [eax + 4], ecx
inc dword [edi + 0x78]
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4c02d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov al, byte [ebx + 0x44]
test al, al
js 0x4c03c2
push esi
push edi
xor edi, edi
test al, al
jle 0x4c035c
lea eax, [ebx + 0x78]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x48]
test byte [eax + 0x1c], 0x20
je 0x4c034a
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov esi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov ebx, dword [esi]
dec eax
push edx
mov dword [ebp - 8], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [ebp - 8]
push 0
push eax
call fcn.00484e00
push edx
push eax
mov eax, dword [ebx + 0x48]
push esi
call eax
mov ebx, dword [ebp + 8]
add esp, 0x10
jmp 0x4c034f
call fcn.004b0660
movsx ecx, byte [ebx + 0x44]
add dword [ebp - 4], 4
inc edi
cmp edi, ecx
jl 0x4c02f3
mov edx, dword [ebx + 0x74]
mov eax, dword [edx + 0x48]
test byte [eax + 0x1c], 0x20
je 0x4c03b7
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov esi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov edi, dword [esi]
dec eax
push edx
mov dword [ebp + 8], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [ebp + 8]
push 0
push eax
call fcn.00484e00
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
pop edi
pop esi
mov byte [ebx + 0x44], 0xff
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004b0660
pop edi
mov byte [ebx + 0x44], 0xff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e9be0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov al, byte [esi + 0x44]
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
test al, al
js 0x4e9c84
je 0x4e9cf4
mov eax, dword [esi + 0x74]
call fcn.004b34b0
mov al, byte [esi + 0x44]
dec al
mov byte [esi + 0x44], al
je 0x4e9c79
movsx eax, byte [esi + 0x44]
mov ecx, dword [esi + eax*4 + 0x78]
mov eax, dword [ecx + 0x48]
test byte [eax + 0x1c], 0x20
je 0x4e9c6a
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov edi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov ebx, dword [edi]
dec eax
push edx
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
push 0
push eax
call fcn.00484e00
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
mov ebx, dword [ebp - 8]
add esp, 0x10
jmp 0x4e9c6f
call fcn.004b0660
mov al, byte [esi + 0x44]
dec al
mov byte [esi + 0x44], al
jne 0x4e9c10
mov ecx, dword [esi + 0x78]
mov dword [esi + 0x74], ecx
jmp 0x4e9d10
cmp dword [esi + 0x40], ebx
jne 0x4e9c97
pop edi
mov byte [esi], 1
mov eax, 0x10
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esi]
cmp al, 3
jb 0x4e9cbc
cmp al, 4
jne 0x4e9caa
mov eax, dword [esi + 4]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x10]
push edx
call fcn.004ae140
add esp, 4
mov dword [esi + 0x10], ebx
mov byte [esi], 1
movzx eax, byte [esi + 2]
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 4]
push eax
mov eax, dword [esi + 0x40]
push 0
lea edi, [esi + 0x74]
push edi
push edx
call fcn.004e8f80
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4e9ce8
pop edi
mov byte [esi], 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov byte [esi + 0x44], 0
mov cl, byte [eax + 2]
mov byte [esi + 0x45], cl
mov eax, dword [esi + 0x74]
cmp byte [eax], 0
je 0x4e9d81
movzx eax, byte [eax + 2]
xor edx, edx
cmp dword [esi + 0x70], edx
sete dl
cmp edx, eax
jne 0x4e9d81
mov eax, dword [esi + 0x74]
and byte [esi + 1], 0xf1
xor ecx, ecx
xor edx, edx
mov word [esi + 0x46], cx
mov word [esi + 0x32], dx
cmp word [eax + 0x18], cx
jbe 0x4e9d33
pop edi
mov eax, ebx
mov byte [esi], cl
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [eax + 8], cl
jne 0x4e9d71
cmp dword [eax + 4], 1
je 0x4e9d4e
mov eax, 0x10fc9
call fcn.004e4200
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [eax + 9]
mov edx, dword [eax + 0x38]
mov eax, dword [ecx + edx + 8]
bswap eax
push eax
mov eax, esi
mov byte [esi], 0
call fcn.004e9b60
add esp, 4
pop edi
mov ebx, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 0x10
pop edi
mov eax, ebx
mov byte [esi], 1
pop ebx
mov esp, ebp
pop ebp
ret
push 0x56e494
push 0x10fbc
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d71b0
add esp, 0x14
pop edi
mov eax, 0xb
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ea810
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, eax
push esi
mov edi, ecx
mov eax, dword [edi + 0x50]
push ebx
push edi
call eax
movzx edx, word [esi + 0x10]
mov eax, dword [esi + 0xc]
add esp, 0xc
cmp edx, eax
je 0x4ea88c
movzx ecx, word [esi + 0x12]
add ecx, ebx
cmp ecx, dword [edi + 0x3c]
jbe 0x4ea86b
push 0x56e494
push 0x1143e
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d71b0
add esp, 0x14
pop edi
pop esi
mov eax, 0xb
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ecx - 4]
mov ebx, dword [edi + 0x34]
mov ecx, dword [ebx + 0x28]
sub ecx, 4
sub eax, edx
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
xor ecx, ecx
bswap esi
mov dword [ebp - 0x10], ebx
cmp eax, ecx
jne 0x4ea89d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
dec eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
cmp esi, 2
jb 0x4ea9a7
cmp esi, dword [ebx + 0x30]
ja 0x4ea9a7
cmp eax, ecx
je 0x4ea8db
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
push esi
mov edi, ebx
call fcn.004e9710
add esp, 0xc
test eax, eax
jne 0x4ea88e
mov edi, dword [ebp - 4]
test edi, edi
jne 0x4ea8ec
push ebx
mov edi, esi
call fcn.004b3430
mov edi, eax
add esp, 4
test edi, edi
je 0x4ea91b
mov ecx, dword [edi + 0x48]
cmp word [ecx + 0x1e], 1
je 0x4ea91b
push 0x56e494
push 0x11463
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d71b0
add esp, 0x14
mov ebx, 0xb
jmp 0x4ea929
push esi
push ebx
mov eax, edi
call fcn.004ea570
add esp, 8
mov ebx, eax
test edi, edi
je 0x4ea985
mov eax, dword [edi + 0x48]
test eax, eax
je 0x4ea985
test byte [eax + 0x1c], 0x20
je 0x4ea980
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov esi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov edi, dword [esi]
dec eax
push edx
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
push 0
push eax
call fcn.00484e00
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4ea985
call fcn.004b0660
test ebx, ebx
jne 0x4ea99e
mov esi, dword [ebp - 8]
cmp dword [ebp - 0xc], ebx
jne 0x4ea895
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x56e494
push 0x1144f
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004d71b0
add esp, 0x14
pop edi
pop esi
mov eax, 0xb
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ed8d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.004e9be0
cmp eax, 0x10
jne 0x4ed90a
mov dword [edi], 0
mov dword [edi + 4], 0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
test eax, eax
jne 0x4eda4b
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x110]
test edx, edx
jne 0x4eda4b
mov ecx, dword [esi + 0x74]
cmp byte [ecx + 8], dl
jne 0x4ed931
cmp byte [ecx + 2], dl
jne 0x4ed93c
movzx eax, word [ecx + 0x18]
cdq
add dword [ebp - 0xc], eax
adc dword [ebp - 8], edx
cmp byte [ecx + 8], 0
je 0x4ed9e9
jmp 0x4ed950
mov al, byte [esi + 0x44]
test al, al
je 0x4eda38
and byte [esi + 1], 0xf9
xor edx, edx
mov word [esi + 0x32], dx
movsx edx, al
mov dx, word [esi + edx*2 + 0x46]
dec al
mov byte [esi + 0x44], al
movsx eax, al
mov word [esi + 0x46], dx
mov edx, dword [esi + eax*4 + 0x78]
mov dword [esi + 0x74], edx
mov eax, dword [ecx + 0x48]
test byte [eax + 0x1c], 0x20
je 0x4ed9cf
mov ecx, dword [eax + 0x14]
dec dword [ecx + 0x78]
mov edx, dword [ecx + 0x88]
mov dword [eax + 0x10], edx
mov edi, dword [ecx + 0x3c]
mov dword [ecx + 0x88], eax
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x18]
mov ebx, dword [edi]
dec eax
push edx
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x98]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
push 0
push eax
call fcn.00484e00
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x4ed9d4
call fcn.004b0660
mov ecx, dword [esi + 0x74]
mov dx, word [esi + 0x46]
cmp dx, word [ecx + 0x18]
jae 0x4ed950
inc word [esi + 0x46]
movzx eax, word [esi + 0x46]
movzx edx, word [ecx + 0x18]
cmp eax, edx
jne 0x4eda02
movzx eax, byte [ecx + 9]
mov ecx, dword [ecx + 0x38]
mov eax, dword [eax + ecx + 8]
jmp 0x4eda1c
mov edx, dword [ecx + 0x40]
mov ax, word [edx + eax*2]
mov dh, al
mov dl, ah
movzx eax, dx
movzx edx, word [ecx + 0x1a]
mov ecx, dword [ecx + 0x38]
and eax, edx
mov eax, dword [eax + ecx]
bswap eax
push eax
mov eax, esi
call fcn.004e9b60
add esp, 4
test eax, eax
je 0x4ed913
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [eax], edx
mov dword [eax + 4], ecx
call fcn.004e9be0
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4edae0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, eax
mov esi, ecx
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], eax
test edi, edi
je 0x4edc76
cmp dword [esi + 0x10], 0
je 0x4edc76
push esi
mov eax, edi
call fcn.004d8e80
add esp, 4
test eax, eax
jne 0x4edc76
mov eax, dword [esi + 4]
mov edx, dword [eax + 0xcc]
dec dword [ebp + 0xc]
push 0
lea ecx, [ebp - 4]
push ecx
push edi
push eax
call edx
add esp, 0x10
test eax, eax
jne 0x4edc68
cmp dword [ebp + 8], 0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 4]
mov ecx, dword [esi]
mov dword [ebp - 0x14], ebx
je 0x4edbe0
cmp byte [ecx + 0x11], 0
mov edx, dword [ebx + 4]
bswap edx
mov dword [ebp - 8], edx
je 0x4edb76
push 0
push 2
mov eax, esi
call fcn.004eda60
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
add esp, 8
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x28]
shr ecx, 2
sub ecx, 2
cmp edx, ecx
jbe 0x4edb98
push edi
push str.freelist_leaf_count_too_big_on_page__d
call fcn.004d8df0
add esp, 8
dec dword [ebp + 0xc]
jmp 0x4edbfd
test edx, edx
jle 0x4edbdb
mov edx, dword [ebp - 8]
add ebx, 8
mov dword [ebp - 0xc], edx
mov eax, dword [esi]
cmp byte [eax + 0x11], 0
mov edi, dword [ebx]
bswap edi
je 0x4edbbf
push 0
push 2
mov eax, esi
call fcn.004eda60
add esp, 8
push esi
mov eax, edi
call fcn.004d8e80
add esp, 4
add ebx, 4
dec dword [ebp - 0xc]
jne 0x4edba5
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
sub dword [ebp + 0xc], edx
jmp 0x4edc00
cmp byte [ecx + 0x11], 0
je 0x4edc00
cmp dword [ebp + 0xc], 0
jbe 0x4edc00
push edi
mov edi, dword [ebx]
push 4
bswap edi
mov eax, esi
call fcn.004eda60
add esp, 8
mov eax, dword [ebp - 4]
mov edi, dword [ebx]
bswap edi
mov ecx, eax
test eax, eax
je 0x4edc5b
test byte [eax + 0x1c], 0x20
je 0x4edc56
mov eax, dword [eax + 0x14]
dec dword [eax + 0x78]
mov edx, dword [eax + 0x88]
mov dword [ecx + 0x10], edx
mov edx, dword [eax + 0x3c]
mov dword [eax + 0x88], ecx
mov ebx, dword [edx]
mov eax, dword [eax + 0x98]
mov dword [ebp - 0x14], edx
mov edx, dword [ecx + 4]
mov ecx, dword [ecx + 0x18]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.00484e00
push edx
mov edx, dword [ebp - 0x14]
push eax
mov eax, dword [ebx + 0x48]
push edx
call eax
add esp, 0x10
jmp 0x4edc5b
call fcn.004b0660
mov ebx, dword [ebp - 0x10]
test edi, edi
jne 0x4edb01
jmp 0x4edc76
push edi
push str.failed_to_get_page__d
call fcn.004d8df0
add esp, 8
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4edca7
mov edx, dword [ebp - 0x18]
cmp edx, dword [esi + 0x14]
jne 0x4edca7
cmp dword [ebp + 8], 0
mov eax, str.size
jne 0x4edc95
mov eax, str.overflow_list_length
push ebx
sub ebx, ecx
push ebx
push eax
push str._s_is__d_but_should_be__d
call fcn.004d8df0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f0940
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
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.004dbb80
add esp, 0x18
test edi, edi
jne 0x4f0975
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.004dbb80
add esp, 0x10
pop ebx
pop ebp
ret
Function at 0x1001b0c3
Capabilities:
Encode data using xor

Disassembly:
push 0x30
mov eax, 0x1005485a
call fcn.100269ae
mov ebx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], edx
mov edi, ebx
mov dword [ebp - 0x24], edx
xor eax, eax
xor ecx, ecx
inc ecx
mov esi, edx
mov dword [ebp - 4], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebx], edx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
xor eax, eax
mov dword [ebp - 0x38], ecx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
lea eax, [ebp - 0x1d]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 0x1d], dl
call fcn.10025490
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp + 0xc]
call fcn.100242fc
push ecx
mov ecx, esp
push eax
call fcn.100186e2
call fcn.1001b758
mov edx, dword [ebp - 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
mov eax, ecx
sub eax, edx
mov dword [ebp - 0x28], eax
je 0x1001b19a
and dword [ebp - 0x30], esi
lea eax, [ecx - 4]
mov byte [ebp - 0x24], 0
push dword [ebp - 0x24]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.10017c31
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.1001858c
push ecx
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.100187b4
call fcn.1001ad42
mov edx, dword [ebp - 0x1c]
add esp, 0xc
add eax, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
xor edi, edi
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
je 0x1001b1cd
mov al, byte [edx + edi]
mov ecx, ebx
xor al, byte [esi + str.DUYQWJPUCTNTXTCJVGVAPLABEMXWNM]
mov byte [ebp - 0x1d], al
lea eax, [ebp - 0x1d]
push eax
call fcn.10025490
mov edx, dword [ebp - 0x1c]
inc esi
xor eax, eax
cmp esi, 0x1e
cmovge esi, eax
inc edi
cmp edi, dword [ebp - 0x28]
jb 0x1001b1a4
lea eax, [ebp - 0x1d]
mov byte [ebp - 0x1d], 0
push eax
mov ecx, ebx
call fcn.10025490
lea ecx, [ebp - 0x34]
call fcn.10024142
lea ecx, [ebp - 0x1c]
call fcn.10024142
lea ecx, [ebp + 0xc]
call fcn.10024142
mov eax, ebx
call fcn.10026958
ret