joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7c2b5a06
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2f33a3d
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x43b900
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor edx, edx
cmp dword [0x82d5b4], 2
push edi
mov edi, ecx
jl 0x43b9bc
movaps xmm3, xmmword [0x79c5b0]
lea ecx, [edx + 0x1b]
movaps xmm4, xmmword [0x79c5d0]
mov eax, 1
movaps xmm6, xmmword [0x79c5e0]
mov edx, 0xd8
movaps xmm7, xmmword [0x79c4f0]
movd xmm5, eax
lea eax, [edi + 4]
lea eax, [eax + 0x20]
movups xmm2, xmmword [eax - 0x20]
movups xmm1, xmmword [eax - 0x24]
movaps xmm0, xmm2
pand xmm2, xmm7
pand xmm1, xmm4
pand xmm0, xmm3
por xmm1, xmm0
movups xmm0, xmmword [eax + 0x610]
psrld xmm1, xmm5
pmulld xmm2, xmm6
pxor xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [eax - 0x24], xmm1
movaps xmm1, xmm4
movups xmm0, xmmword [eax - 0x14]
movups xmm2, xmmword [eax - 0x10]
pand xmm1, xmm0
movaps xmm0, xmm2
pand xmm2, xmm7
pand xmm0, xmm3
por xmm1, xmm0
movups xmm0, xmmword [eax + 0x620]
psrld xmm1, xmm5
pmulld xmm2, xmm6
pxor xmm1, xmm2
pxor xmm1, xmm0
movups xmmword [eax - 0x14], xmm1
sub ecx, 1
jne 0x43b943
lea eax, [edi + 4]
mov esi, 0xde
lea eax, [eax + edx*4]
sub esi, edx
nop dword [eax]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
mov ecx, dword [eax - 4]
xor edx, ecx
and edx, 0x7ffffffe
and ecx, 1
xor edx, dword [eax - 8]
imul ecx, ecx, 0x9908b0df
shr edx, 1
xor edx, ecx
xor edx, dword [eax + 0x62c]
mov dword [eax - 8], edx
sub esi, 1
jne 0x43b9d0
mov esi, dword [edi + 0x37c]
mov eax, esi
mov ecx, dword [edi + 0x378]
and eax, 1
xor ecx, esi
mov edx, dword [edi + 0x380]
and ecx, 0x7ffffffe
imul eax, eax, 0x9908b0df
xor ecx, dword [edi + 0x378]
shr ecx, 1
xor ecx, eax
mov eax, edx
xor ecx, dword [edi + 0x9ac]
and eax, 1
mov dword [edi + 0x378], ecx
mov ecx, esi
xor ecx, edx
imul eax, eax, 0x9908b0df
and ecx, 0x7ffffffe
xor ecx, esi
mov esi, dword [edi + 0x384]
shr ecx, 1
xor ecx, eax
mov eax, esi
xor ecx, dword [edi + 0x9b0]
and eax, 1
mov dword [edi + 0x37c], ecx
mov ecx, esi
xor ecx, edx
imul eax, eax, 0x9908b0df
and ecx, 0x7ffffffe
xor ecx, edx
mov edx, dword [edi + 0x388]
shr ecx, 1
xor ecx, eax
mov eax, edx
xor ecx, dword [edi + 0x9b4]
and eax, 1
mov dword [edi + 0x380], ecx
mov ecx, edx
xor ecx, esi
imul eax, eax, 0x9908b0df
and ecx, 0x7ffffffe
xor ecx, esi
mov esi, 0x18c
shr ecx, 1
xor ecx, eax
mov eax, dword [edi + 0x38c]
xor ecx, dword [edi + 0x9b8]
mov dword [edi + 0x384], ecx
mov ecx, eax
xor ecx, edx
and eax, 1
and ecx, 0x7ffffffe
imul eax, eax, 0x9908b0df
xor ecx, edx
lea edx, [edi + 0x390]
shr ecx, 1
xor ecx, eax
xor ecx, dword [edi + 0x9bc]
mov dword [edi + 0x388], ecx
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
mov eax, dword [edx - 4]
xor ecx, eax
and ecx, 0x7ffffffe
and eax, 1
xor ecx, dword [edx - 8]
imul eax, eax, 0x9908b0df
shr ecx, 1
xor ecx, eax
xor ecx, dword [edx - 0x394]
mov dword [edx - 8], ecx
sub esi, 1
jne 0x43baf1
mov ecx, dword [edi + 0x9bc]
mov eax, dword [edi]
xor ecx, eax
and ecx, 0x7ffffffe
mov dword [edi + 0x9c0], esi
xor ecx, dword [edi + 0x9bc]
and eax, 1
imul eax, eax, 0x9908b0df
shr ecx, 1
xor ecx, eax
xor ecx, dword [edi + 0x630]
mov dword [edi + 0x9bc], ecx
pop edi
pop esi
ret
Function at 0x48d380
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72dbba
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x7cdffc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.006a9ecf
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x48d440
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.006e678e
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x7c7968
push eax
call fcn.006e701a
push edi
push esi
call fcn.006a9d83
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret 4
Function at 0x48e030
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x72dc48
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x7cdffc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x48e15e
cmp byte [ebx + 0x3d], 0
je 0x48e15e
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x48e089
xor al, al
jmp 0x48e160
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0048df40
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x48e0ef
sub eax, 1
je 0x48e0f3
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x48e146
xor bl, bl
jmp 0x48e148
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x48e128
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.006ee624
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x48e0eb
cmp byte [ebx + 0x3d], 0
je 0x48e146
test esi, esi
jne 0x48e0b1
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00409bf0
jmp 0x48e0ae
mov bl, 1
cmp ecx, 0x10
jb 0x48e15a
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00404b60
mov al, bl
jmp 0x48e160
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret

Function at 0x48f620
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [0x7cdffc]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], 0
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0
mov dword [esp + 8], 0x67452301
mov dword [esp + 0xc], 0xefcdab89
mov eax, dword [edi + 0xd4]
mov dword [esp + 0x10], 0x98badcfe
mov dword [esp + 0x14], 0x10325476
mov byte [eax + 1], 5
mov edx, dword [edi + 0xd4]
mov eax, dword [edi + 0xf0]
mov dword [edx + 2], eax
push dword [edi + 0xf0]
mov edx, dword [edi + 0xf4]
mov esi, dword [edi + 0xd4]
call fcn.0049b7b0
lea edx, [esp + 0xc]
lea ecx, [esi + 6]
call fcn.0049b880
push dword [edi + 0xf4]
mov dword [edi + 0xd8], 0x16
call fcn.004b3b30
mov ecx, dword [esp + 0x6c]
add esp, 8
mov dword [edi + 0xf4], 0
pop edi
pop esi
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret 8
Function at 0x497b80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
mov dword [ebp - 0x20], 0x310030
movzx ecx, byte [ebp + 8]
lea eax, [esi + 0x200]
shr ecx, 4
mov dword [ebp - 0x1c], 0x330032
mov dword [ebp - 0x18], 0x350034
mov dword [ebp - 0x14], 0x370036
mov dword [ebp - 0x10], 0x390038
mov dword [ebp - 0xc], 0x420041
mov dword [ebp - 8], 0x440043
mov dword [ebp - 4], 0x460045
movzx ecx, word [ebp + ecx*2 - 0x20]
mov word [eax], cx
movsx ecx, byte [ebp + 8]
and ecx, 0xf
movzx ecx, word [ebp + ecx*2 - 0x20]
mov word [esi + 0x202], cx
xor ecx, ecx
mov word [esi + 0x204], cx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x49c080
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x7cdffc]
xor eax, esp
mov dword [esp + 0x60], eax
push esi
mov esi, dword [ebp + 8]
push edx
mov edx, ecx
mov dword [esp + 0x20], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.0049b7b0
add esp, 4
lea edx, [esp + 8]
mov ecx, esi
call fcn.0049b880
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret
Function at 0x4b6aa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [edi], 0
cmp dword [0x81ea00], 0
je 0x4b6af7
mov eax, dword [0x8b2620]
test eax, eax
je 0x4b6ad0
push eax
call dword [0x81ea54]
add esp, 4
lea edx, [ebp - 4]
mov ecx, 0x14
call fcn.004b41f0
mov eax, dword [0x8b2620]
test eax, eax
je 0x4b6af2
push eax
call dword [0x81ea5c]
mov esi, dword [ebp - 4]
jmp 0x4b6b01
mov esi, dword [ebp - 4]
jmp 0x4b6b04
push 0x14
call dword [0x81ea24]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4b6b12
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x81ea04], 0
mov ebx, dword [ebp + 8]
je 0x4b6b45
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x4b6a70
push 0
push 0
mov dword [esi + 0xc], ebx
call fcn.006ee9d1
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x4b6b52
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x4b6b6b
call dword [0x7404a8]
push ebx
mov dword [esi + 4], eax
call dword [ebp - 8]
add esp, 4
mov dword [esi + 0x10], eax
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b89f0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
xor eax, eax
mov cl, byte [esi]
test cl, cl
je 0x4b8a1e
nop dword [eax + eax]
movzx ecx, cl
lea esi, [esi + 1]
movzx edx, byte [ecx + 0x78bf68]
lea ecx, [eax*8]
xor edx, ecx
mov cl, byte [esi]
xor eax, edx
test cl, cl
jne 0x4b8a00
pop esi
ret
Function at 0x4b8a90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [edx*8]
mov esi, ecx
push edi
cmp eax, 0x400
mov dword [ebp - 4], esi
mov edi, pe_nt_image_headers32
cmovbe edi, edx
cmp edi, dword [esi]
jne 0x4b8abf
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x8b2648]
test eax, eax
je 0x4b8aca
call eax
lea eax, [edi*8]
push 0
push eax
call fcn.004b42e0
mov ecx, dword [0x8b264c]
add esp, 8
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ecx, ecx
je 0x4b8aed
call ecx
test ebx, ebx
je 0x4b8ab6
push dword [esi + 0xc]
call fcn.004b4670
add esp, 4
mov dword [esi + 0xc], ebx
push ebx
call dword [0x81ea30]
shr eax, 3
add esp, 4
mov dword [ebp - 8], eax
mov dword [esi], eax
lea ecx, [eax*8]
push ecx
push 0
push ebx
call fcn.006e6ec0
mov ecx, dword [esi + 8]
add esp, 0xc
mov dword [esi + 8], 0
test ecx, ecx
je 0x4b8bd0
mov edi, dword [ecx + 0xc]
xor ebx, ebx
mov al, byte [edi]
test al, al
je 0x4b8b5f
movzx eax, al
lea edx, [ebx*8]
lea edi, [edi + 1]
movzx esi, byte [eax + 0x78bf68]
mov al, byte [edi]
xor esi, edx
xor ebx, esi
test al, al
jne 0x4b8b41
xor edx, edx
mov edi, dword [ecx]
mov eax, ebx
div dword [ebp - 8]
mov eax, dword [ebp - 0xc]
lea esi, [eax + edx*8]
test esi, esi
je 0x4b8baa
mov eax, dword [esi]
test eax, eax
je 0x4b8b7d
mov edx, dword [esi + 4]
jmp 0x4b8b7f
xor edx, edx
inc eax
mov dword [esi + 4], ecx
mov dword [esi], eax
test edx, edx
je 0x4b8baa
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x4b8b9f
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x4b8bc6
mov eax, dword [ebp - 4]
mov dword [eax + 8], ecx
mov dword [edx + 4], ecx
jmp 0x4b8bc6
mov esi, dword [ebp - 4]
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x4b8bbc
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [esi + 8], ecx
mov ecx, edi
test edi, edi
jne 0x4b8b36
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b8be0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
push ebx
push esi
push edi
mov ecx, dword [eax + 0xc]
mov ebx, edx
mov dword [ebp - 4], eax
test ecx, ecx
je 0x4b8c33
mov al, byte [ebx]
xor esi, esi
mov edi, ebx
test al, al
je 0x4b8c1e
nop
movzx eax, al
lea ecx, [esi*8]
lea edi, [edi + 1]
movzx edx, byte [eax + 0x78bf68]
mov al, byte [edi]
xor edx, ecx
xor esi, edx
test al, al
jne 0x4b8c00
mov ecx, dword [ebp - 4]
mov eax, esi
xor edx, edx
div dword [ecx]
mov edi, dword [ecx + 0xc]
mov esi, dword [edi + edx*8 + 4]
mov edi, dword [edi + edx*8]
jmp 0x4b8c3b
mov esi, dword [eax + 8]
xor edx, edx
mov edi, dword [eax + 4]
mov eax, dword [ebp + 8]
mov dword [eax], edx
test edi, edi
je 0x4b8c5b
push ebx
push dword [esi + 0xc]
dec edi
call fcn.004b7610
add esp, 8
test eax, eax
je 0x4b8c64
mov esi, dword [esi]
test edi, edi
jne 0x4b8c44
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cb990
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov dword [esp + 0x18], edx
mov edi, ecx
cmp dword [ebx], 0
mov dword [esp + 0x10], 0
jne 0x4cbb8d
cmp byte [edi + 1], 0
jne 0x4cbb39
mov esi, dword [ebp + 0xc]
movzx eax, word [edi + 0x10]
lea ecx, [esi + 2]
cmp ecx, eax
jg 0x4cbb39
mov ecx, dword [edi + 0x44]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x4cb9ed
call fcn.004c2570
jmp 0x4cb9f2
call fcn.004c2390
test eax, eax
je 0x4cb9ff
mov dword [ebx], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x38]
mov edx, esi
movzx ecx, word [edi + 0xe]
mov dword [esp + 0x14], eax
movzx eax, word [edi + 0x12]
lea eax, [ecx + eax*2]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
lea eax, [ecx + eax*2]
mov ecx, edi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
call fcn.004c68b0
add esp, 4
test eax, eax
jne 0x4cb9f6
mov ecx, dword [esp + 0x10]
mov eax, 0xfffe
mov edx, dword [esp + 0x14]
sub eax, esi
inc word [edi + 0x12]
add word [edi + 0x10], ax
push esi
push dword [ebp + 8]
lea esi, [edx + ecx]
push esi
call fcn.006e6940
mov ecx, dword [ebp + 0x14]
add esp, 0xc
test ecx, ecx
je 0x4cba7d
mov eax, ecx
mov byte [esi + 3], cl
shr eax, 0x18
mov byte [esi], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, ecx
shr eax, 8
mov byte [esi + 2], al
mov esi, dword [esp + 0x14]
add esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x18]
push eax
lea eax, [esi + 2]
push esi
push eax
call fcn.006e5e40
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov edx, dword [esp + 0x14]
mov eax, ecx
mov byte [esi + 1], cl
sar eax, 8
mov byte [esi], al
movzx ecx, byte [edi + 6]
movzx eax, byte [edi + 0x13]
mov byte [ecx + edx + 3], al
movzx ecx, byte [edi + 6]
movzx eax, byte [edi + 0x12]
mov byte [ecx + edx + 4], al
mov eax, dword [edi + 0x34]
cmp byte [eax + 0x11], 0
je 0x4cbb8d
cmp dword [ebx], 0
jne 0x4cbb8d
mov esi, dword [ebp + 8]
lea eax, [esp + 0x20]
push eax
mov edx, esi
mov ecx, edi
call fcn.004c6390
mov ax, word [esp + 0x36]
add esp, 4
test ax, ax
je 0x4cbb8d
movzx ecx, ax
movzx eax, byte [ecx + esi + 1]
add ecx, esi
push ebx
push dword [edi + 0x48]
movzx edx, byte [ecx]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 3]
mov ecx, dword [edi + 0x34]
shl edx, 8
push 3
or edx, eax
call fcn.004c6140
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4cbb55
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.006e6940
mov edx, dword [esp + 0x24]
add esp, 0xc
jmp 0x4cbb58
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4cbb79
mov eax, ecx
mov byte [esi + 3], cl
shr eax, 0x18
mov byte [esi], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, ecx
shr eax, 8
mov byte [esi + 2], al
mov al, byte [edi + 1]
movzx ecx, al
inc al
mov byte [edi + 1], al
mov dword [edi + ecx*4 + 0x20], esi
mov word [edi + ecx*2 + 0x16], dx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cdda0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x18], ebx
cmp edx, dword [ebx + 0x2c]
jbe 0x4cdddc
push 0x7961e4
push 0xecb9
push str.database_corruption_at_line__d_of___.10s_
push 0xb
call fcn.004b68a0
add esp, 0x10
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004c7090
add esp, 8
test eax, eax
jne 0x4cdf6d
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x14], ecx
movzx edi, byte [esi + 6]
mov dword [esp + 0x1c], edi
cmp ax, word [esi + 0x12]
jae 0x4cde9f
nop
mov eax, dword [esi + 0x40]
movzx edi, byte [eax + ecx*2]
movzx eax, byte [eax + ecx*2 + 1]
shl edi, 8
or edi, eax
movzx eax, word [esi + 0x14]
and edi, eax
add edi, dword [esi + 0x38]
cmp byte [esi + 5], 0
jne 0x4cde67
movzx edx, byte [edi]
mov ecx, ebx
movzx eax, byte [edi + 1]
push dword [ebp + 0xc]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 3]
shl edx, 8
or edx, eax
push 1
call fcn.004cdda0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4cdf3e
lea eax, [esp + 0x10]
mov edx, edi
push eax
mov ecx, esi
call fcn.004cb2b0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4cdf3e
mov ecx, dword [esp + 0x14]
movzx eax, word [esi + 0x12]
inc ecx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
cmp ecx, eax
jl 0x4cde10
mov edi, dword [esp + 0x1c]
cmp byte [esi + 5], 0
jne 0x4cdee0
mov ecx, dword [esi + 0x38]
push dword [ebp + 0xc]
add ecx, edi
push 1
movzx edx, byte [ecx + 8]
movzx eax, byte [ecx + 9]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xa]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 0xb]
shl edx, 8
mov ecx, ebx
or edx, eax
call fcn.004cdda0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4cdf3e
jmp 0x4cdeed
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4cdeed
movzx eax, word [esi + 0x12]
add dword [ecx], eax
cmp dword [ebp + 8], 0
je 0x4cdf07
push dword [esi + 0x48]
mov ecx, dword [esi + 0x34]
mov edx, esi
call fcn.004caee0
add esp, 4
mov ebx, eax
jmp 0x4cdf3e
mov ecx, dword [esi + 0x44]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x4cdf22
call fcn.004c2570
jmp 0x4cdf27
call fcn.004c2390
mov ebx, eax
test ebx, ebx
jne 0x4cdf3e
mov eax, dword [esi + 0x38]
mov ecx, esi
movzx edx, byte [eax + edi]
or edx, 8
call fcn.004c6f70
mov ecx, dword [esi + 0x44]
test byte [ecx + 0x18], 0x40
mov esi, dword [ecx + 0x10]
je 0x4cdf5f
call fcn.004c0a30
mov ecx, esi
call fcn.004c1cc0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004bcb30
mov ecx, esi
call fcn.004c1cc0
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5273a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x7cdffc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp byte [esi + 0xe5], 2
jne 0x52745f
push edi
push dword [esi + 0x14]
push dword [esi + 0x10]
push str.SELECT_1_FROM__Q.sqlite_master_WHERE_tbl_name_q_stat
call fcn.004b66e0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x52744a
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 8]
push ebx
push 0
push eax
push 0
push 1
push 0xffffffffffffffff
mov edx, edi
mov dword [ebp - 8], 0
call fcn.005038c0
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x52742e
push dword [ebp - 8]
call fcn.004d6c20
push dword [ebp - 8]
xor ecx, ecx
cmp eax, 0x64
sete cl
mov dword [ebp - 0xc], ecx
call fcn.004d5f90
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x52742e
mov eax, dword [ebp - 0xc]
mov byte [esi + 0xe5], al
push edi
call fcn.004b4670
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006a7b19
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.006a7b19
mov esp, ebp
pop ebp
ret