joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448660
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x18]
xor ebx, ebx
push esi
push edi
lea ebx, [ebx]
mov edx, dword [esp + 0x14]
mov edi, ebx
shr edi, 1
mov esi, ebx
shr esi, 2
mov eax, edi
and eax, 1
neg eax
shr eax, 4
movzx ecx, word [edx + esi*2 + 4]
and eax, 0x7f
shr ecx, 4
neg esi
xor ecx, eax
and esi, 0x7f0
movzx eax, word [edx + 2]
xor esi, eax
mov eax, dword [esp + 0x14]
shr esi, 4
mov edx, dword [ebp + ecx*4]
movzx ecx, word [eax + edi*2 + 8]
add edx, dword [ebp + esi*4]
mov eax, ecx
add edx, dword [esp + 0x18]
xor ecx, 0x7f0
mov esi, dword [esp + 0x1c]
shr eax, 4
shr ecx, 4
mov eax, dword [ebp + eax*4]
add eax, edx
mov dword [esi + ebx*4], eax
mov eax, dword [ebp + ecx*4]
add eax, edx
mov dword [esi + ebx*4 + 4], eax
add ebx, 2
cmp ebx, 8
jb 0x448670
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x44a430
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
xor edx, edx
push esi
mov dword [eax + 0x34], 0
lea esi, [eax + 0x60]
mov word [eax + 0x1e], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x468], 0xffffffff
mov dword [eax + 0x46c], 0xffffffff
mov dword [eax + 0x30], 0x20
mov byte [eax + 0x1d], 1
mov dword [eax + 0x48], 4
mov ecx, edx
lea esi, [esi + 4]
and ecx, 1
mov eax, edx
shr eax, 1
neg ecx
and ecx, 0xedb88320
inc edx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [esi - 4], eax
cmp edx, 0x100
jb 0x44a474
pop esi
ret
Function at 0x455320
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x18
cmp eax, 5
jae 0x455332
xor eax, eax
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov edx, dword [ecx + 0x4d08]
lea ebp, [eax - 4]
push esi
mov esi, dword [ecx + 0x4d0c]
mov ecx, dword [ecx + 0x4d10]
push edi
xor edi, edi
mov dword [esp + 0x34], ecx
add ebp, ebx
mov dword [esp + 0x20], ebp
nop
lea eax, [edi + ebx]
mov dword [esp + 0x10], eax
cmp eax, ebp
jae 0x455383
jmp 0x455370
mov cl, byte [eax]
and cl, 0xfe
cmp cl, 0xe8
je 0x45537f
inc eax
cmp eax, ebp
jb 0x455370
mov dword [esp + 0x10], eax
mov edi, eax
sub edi, ebx
cmp eax, ebp
jae 0x4554a4
mov ecx, edi
sub ecx, edx
cmp ecx, 3
jbe 0x4553bb
xor esi, esi
mov dword [esp + 0x14], esi
mov cl, byte [eax + 4]
mov edx, edi
mov dword [esp + 0x24], edx
test cl, cl
je 0x4553f7
cmp cl, 0xff
je 0x4553f7
and esi, 3
add esi, esi
or esi, 1
inc edi
jmp 0x455360
dec ecx
shl esi, cl
and esi, 7
mov dword [esp + 0x14], esi
je 0x45539e
movzx ecx, byte [esi + 0x567108]
mov edx, eax
sub edx, ecx
cmp byte [esi + 0x567100], 0
mov cl, byte [edx + 4]
je 0x4553e7
test cl, cl
je 0x4553e7
cmp cl, 0xff
jne 0x45539e
and esi, 3
mov edx, edi
add esi, esi
or esi, 1
inc edi
jmp 0x455360
movzx ebx, cl
movzx ecx, byte [eax + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 1]
shl ebx, 8
or ebx, ecx
sub ebx, dword [esp + 0x34]
sub ebx, edi
test esi, esi
je 0x455476
movzx ecx, byte [esi + 0x567108]
mov edx, 0x18
mov esi, dword [esp + 0x34]
shl ecx, 3
sub edx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov ebp, ecx
mov eax, edx
mov edx, ebx
mov ecx, eax
shr edx, cl
test dl, dl
je 0x45544f
cmp dl, 0xff
jne 0x455466
mov ecx, 0x20
mov edx, 1
sub ecx, ebp
shl edx, cl
dec edx
xor ebx, edx
sub ebx, esi
sub ebx, edi
jmp 0x455440
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, ebx
mov byte [eax + 1], bl
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [eax + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [eax + 3], cl
mov ecx, ebx
mov ebx, dword [esp + 0x30]
shr ecx, 8
add edi, 5
mov byte [eax + 2], cl
jmp 0x455360
mov eax, dword [esp + 0x2c]
add dword [eax + 0x4d10], edi
mov dword [eax + 0x4d0c], esi
mov dword [eax + 0x4d08], edx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x45a0b0
Capabilities:
Terminate process

Disassembly:
push esi
push 0x24
push str.Fatal_Internal_Error_in_libarchive:
push 2
call fcn.00461fc0
mov edx, dword [esp + 0x18]
add esp, 0xc
mov ecx, edx
lea esi, [ecx + 1]
jmp 0x45a0d0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45a0d0
sub ecx, esi
push ecx
push edx
push 2
call fcn.00461fc0
push 1
push 0x560b1c
push 2
call fcn.00461fc0
add esp, 0x18
push dword [esp + 8]
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
int3
Function at 0x45aa10
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 0x30]
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 4], 0
mov edi, dword [ebx + 4]
mov ebp, dword [ebx]
lea eax, [edi + 1]
push eax
push esi
call fcn.0045b880
add esp, 8
test eax, eax
je 0x45aa62
test edi, edi
je 0x45aa54
mov eax, dword [esi + 4]
add eax, dword [esi]
push edi
push ebp
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
add dword [esi + 4], edi
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov byte [ecx + eax], 0
jmp 0x45aa71
push str.Out_of_memory
push 1
call fcn.0045a0b0
add esp, 8
mov dword [esi + 0x10], 0
lea edi, [esi + 0xc]
mov eax, dword [ebx + 0xc]
mov ebp, dword [ebx + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
inc eax
add eax, ebp
push eax
push edi
call fcn.0045b880
add esp, 8
test eax, eax
je 0x45aabf
test ebp, ebp
je 0x45aab1
mov eax, dword [edi + 4]
add eax, dword [edi]
push ebp
push dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
add dword [edi + 4], ebp
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov byte [ecx + eax], 0
jmp 0x45aace
push str.Out_of_memory
push 1
call fcn.0045a0b0
add esp, 8
mov dword [esi + 0x1c], 0
add esi, 0x18
mov edi, dword [ebx + 0x1c]
mov ebx, dword [ebx + 0x18]
mov eax, dword [esi + 4]
inc eax
add eax, edi
add eax, eax
push eax
push esi
call fcn.0045b880
add esp, 8
test eax, eax
je 0x45ab22
test edi, edi
je 0x45ab0f
mov ecx, dword [esi + 4]
lea eax, [edi + edi]
push eax
mov eax, dword [esi]
push ebx
lea eax, [eax + ecx*2]
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
add dword [esi + 4], edi
xor edx, edx
mov ecx, dword [esi + 4]
mov eax, dword [esi]
pop edi
pop esi
pop ebp
mov word [eax + ecx*2], dx
pop ebx
ret
pop edi
pop esi
pop ebp
pop ebx
mov dword [esp + 8], str.Out_of_memory
mov dword [esp + 4], 1
jmp fcn.0045a0b0
Function at 0x461af0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll__errno]
test eax, 0xffff7fff
jne 0x461bd4
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x461b6d
call ebx
cmp eax, 3
jne 0x461b53
push ebp
call fcn.00461d90
mov esi, eax
add esp, 4
test esi, esi
jne 0x461b47
call edi
pop edi
pop esi
pop ebp
mov dword [eax], 0x16
or eax, 0xffffffff
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x461b6d
call ebx
push eax
call fcn.00461a30
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x461bc8
push 0
push 0x2000001
push 3
push 0
push 0
push 0
test esi, esi
je 0x461b8d
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x461b94
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp edi, 0xffffffff
jne 0x461bb7
call ebx
push eax
call fcn.00461a30
add esp, 4
or eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push 0
push edi
call dword [sym.imp.MSVCRT.dll__open_osfhandle]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret
test esi, esi
jne 0x461c6b
mov eax, dword [esp + 0x18]
push dword [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.MSVCRT.dll__open]
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x461cf9
call edi
cmp dword [eax], 0xd
jne 0x461c41
test dword [esp + 0x18], 0x100
je 0x461c41
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x461c1d
call ebx
push eax
call fcn.00461a30
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x461c31
call edi
pop edi
pop esi
pop ebp
mov dword [eax], 0x15
or eax, 0xffffffff
pop ebx
ret
call edi
pop edi
pop esi
pop ebp
mov dword [eax], 0xd
or eax, 0xffffffff
pop ebx
ret
call edi
cmp dword [eax], 2
jne 0x461cf9
push ebp
call fcn.00461d90
mov esi, eax
add esp, 4
test esi, esi
jne 0x461c6b
call edi
pop edi
pop esi
pop ebp
mov dword [eax], 0x16
or eax, 0xffffffff
pop ebx
ret
push dword [esp + 0x1c]
mov ebp, dword [esp + 0x1c]
push ebp
push esi
call dword [sym.imp.MSVCRT.dll__wopen]
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
jns 0x461ce6
call edi
cmp dword [eax], 0xd
jne 0x461ce6
test ebp, 0x100
je 0x461ce6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x461cbf
call ebx
push eax
call fcn.00461a30
add esp, 4
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x461cde
call edi
push esi
mov dword [eax], 0x15
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
call edi
mov dword [eax], 0xd
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x461d00
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x461d18
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
cmp dword [esp + 0xc], 0
jne 0x461d22
xor eax, eax
ret
push eax
call dword [sym.imp.MSVCRT.dll__get_osfhandle]
add esp, 4
lea ecx, [esp + 4]
push 0
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x461d8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x461d63
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0xb
or eax, 0xffffffff
ret
cmp eax, 0x6d
je 0x461d1f
cmp eax, 5
jne 0x461d7d
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
push eax
call fcn.00461a30
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret

Function at 0x461fc0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x461fd8
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
push 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll__get_osfhandle]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x462024
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x462017
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
push eax
call fcn.00461a30
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret

Function at 0x4705f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [eax + 0x38]
mov bl, byte [eax + 0x34]
test esi, esi
jle 0x47062b
mov edx, dword [eax + 0x260]
push edi
movzx edi, bl
lea ebx, [ebx]
mov ecx, edx
shl edx, 8
shr ecx, 0x18
xor ecx, edi
xor edx, dword [ecx*4 + 0x69a768]
mov dword [eax + 0x260], edx
dec esi
jne 0x470610
pop edi
mov ecx, dword [eax + 0x34]
mov byte [eax + ecx + 0x58], 1
mov edx, dword [eax + 0x38]
mov ecx, edx
dec ecx
je 0x4706b2
dec ecx
je 0x470697
dec ecx
je 0x47068b
mov byte [edx + eax + 0x54], 1
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov esi, dword [eax + 0x44]
mov dl, byte [eax + 0x38]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
inc dword [eax + 0x44]
pop esi
pop ebx
ret
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
Function at 0x47a430
Capabilities:
Query environment variable

Disassembly:
push ecx
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov dword [edi + 4], 0
call fcn.0047c550
push 0x54
push edi
mov dword [esp + 0x14], eax
call fcn.0047c520
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x47a477
push edi
call fcn.0047c560
mov ecx, dword [edi]
push edi
mov dword [ecx + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], esi
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 8
mov dword [esi], fcn.0047a0c0
mov dword [esi + 4], fcn.00479f50
mov dword [esi + 8], fcn.0047a020
mov dword [esi + 0xc], fcn.00479ea0
mov dword [esi + 0x10], 0x47a790
mov dword [esi + 0x14], 0x47a720
mov dword [esi + 0x18], 0x47a580
mov dword [esi + 0x1c], 0x479d50
mov dword [esi + 0x20], 0x479c00
mov dword [esi + 0x24], 0x47a330
mov dword [esi + 0x28], 0x47a800
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 8]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x47a55a
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], 0x78
push ecx
lea ecx, [esp + 0xc]
push ecx
push str._ld_c
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x47a55a
mov al, byte [esp + 0x10]
cmp al, 0x6d
je 0x47a549
cmp al, 0x4d
mov eax, dword [esp + 8]
jne 0x47a551
imul eax, dword [esp + 8], 0x3e8
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ecx
ret
Function at 0x4ac8b0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
movzx edx, byte [esi + 9]
mov ebx, dword [esi + 0x38]
mov eax, dword [esi + 0x34]
movzx ecx, byte [edx + ebx + 5]
mov ebp, dword [eax + 0x28]
movzx eax, byte [edx + ebx + 6]
movzx edi, byte [edx + ebx + 7]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x10], ebp
movzx eax, byte [esi + 0xa]
dec ecx
and ecx, 0xffff
add eax, edx
inc ecx
add ebp, 0xfffffffc
mov dword [esp + 0x14], ecx
movzx ecx, word [esi + 0x18]
movzx esi, byte [edx + ebx + 1]
shl esi, 8
lea eax, [eax + ecx*2]
add eax, 8
mov dword [esp + 0x18], eax
movzx eax, byte [edx + ebx + 2]
or esi, eax
mov eax, dword [esp + 0x14]
add edi, eax
test esi, esi
jle 0x4ac9a9
cmp esi, eax
jge 0x4ac933
push 0x57fe2c
push 0x10a25
jmp 0x4ac9d9
cmp esi, ebp
jg 0x4ac96e
jmp 0x4ac940
movzx eax, byte [esi + ebx]
movzx ecx, byte [ebx + esi + 1]
movzx edx, byte [ebx + esi + 2]
shl eax, 8
or eax, ecx
shl edx, 8
movzx ecx, byte [ebx + esi + 3]
or edx, ecx
lea ecx, [esi + 3]
add ecx, edx
add edi, edx
cmp eax, ecx
jbe 0x4ac97a
mov esi, eax
cmp eax, ebp
jle 0x4ac940
push 0x57fe2c
push 0x10a2a
jmp 0x4ac9d9
test eax, eax
je 0x4ac98a
push 0x57fe2c
push 0x10a34
jmp 0x4ac9d9
mov ecx, dword [esp + 0x10]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x4ac9ad
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
mov dword [esp + 4], 0x10a38
jmp fcn.004ef5d0
mov ecx, dword [esp + 0x10]
cmp edi, ecx
jg 0x4ac9cf
mov eax, dword [esp + 0x18]
cmp edi, eax
jl 0x4ac9cf
mov ecx, dword [esp + 0x20]
sub edi, eax
movzx eax, di
pop edi
pop esi
pop ebp
mov dword [ecx + 0x14], eax
xor eax, eax
pop ebx
add esp, 0xc
ret
push 0x57fe2c
push 0x10a44
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004a3470
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4e0740
Capabilities:
Reference sql statements

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
push dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
mov byte [edi + 0x10], 1
push ebx
push ebx
push str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
push edi
call fcn.00508150
add esp, 0x1c
cmp dword [esp + 0x14], 0
jne 0x4e0788
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebx
push str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
push edi
call fcn.00508150
add esp, 0x14
pop edi
pop ebx
ret
Function at 0x4f0af0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, dword [esp + 0x54]
push ebp
push esi
mov esi, dword [esp + 0x4c]
push edi
mov dword [esp + 0x10], 0
cmp word [esi + 0xcc], 0
mov ebp, dword [esi]
jle 0x4f0b2a
push str.parameters_are_not_allowed_in_views
push esi
call fcn.004f3220
mov edi, dword [esp + 0x6c]
add esp, 8
jmp 0x4f0c5e
push dword [esp + 0x6c]
mov edi, dword [esp + 0x60]
push 0
push 1
push dword [esp + 0x74]
push edi
push dword [esp + 0x6c]
push esi
call fcn.00515220
mov ebx, dword [esi + 0xec]
add esp, 0x1c
test ebx, ebx
je 0x4f0c56
cmp dword [esi + 0x24], 0
jne 0x4f0c56
or dword [ebx + 0x1c], 0x200
lea eax, [esp + 0x10]
push eax
push edi
push dword [esp + 0x60]
push esi
call fcn.005167f0
add esp, 0x10
push dword [esp + 0x10]
push str.view
push dword [ebx + 0x3c]
push ebp
call fcn.00511750
add esp, 8
push eax
lea eax, [esp + 0x24]
push esi
push eax
call fcn.004f9c60
mov edi, dword [esp + 0x78]
lea eax, [esp + 0x30]
push edi
push eax
call fcn.00528990
add esp, 0x1c
test eax, eax
jne 0x4f0c5a
or dword [edi + 4], 0x200000
cmp byte [esi + 0xd0], 2
jb 0x4f0bcc
mov dword [ebx + 0x2c], edi
xor edi, edi
jmp 0x4f0bdb
push 1
push edi
push ebp
call fcn.00513fd0
add esp, 0xc
mov dword [ebx + 0x2c], eax
push 1
push dword [esp + 0x64]
push ebp
call fcn.004f7ed0
add esp, 0xc
mov dword [ebx + 0x10], eax
mov byte [ebx + 0x2b], 2
cmp byte [ebp + 0x57], 0
jne 0x4f0c5a
mov ecx, dword [esi + 0xc4]
cmp byte [ecx], 0x3b
je 0x4f0c08
add ecx, dword [esi + 0xc8]
mov eax, dword [esp + 0x54]
mov edx, dword [eax]
sub ecx, edx
movzx eax, byte [edx + ecx - 1]
test byte [eax + 0x5727e0], 1
je 0x4f0c2f
mov edi, edi
movzx eax, byte [edx + ecx - 2]
dec ecx
test byte [eax + 0x5727e0], 1
jne 0x4f0c20
lea eax, [edx - 1]
mov dword [esp + 0x14], 1
add eax, ecx
push 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 0
push eax
push 0
push esi
call fcn.004f28f0
add esp, 0x14
jmp 0x4f0c5a
mov edi, dword [esp + 0x64]
mov ebx, dword [esp + 0x60]
test edi, edi
je 0x4f0c6e
push 1
push edi
push ebp
call fcn.004af4d0
add esp, 0xc
cmp byte [esi + 0xd0], 2
jb 0x4f0c81
push ebx
push esi
call fcn.0050fb50
add esp, 8
test ebx, ebx
je 0x4f0c8f
push ebx
push ebp
call fcn.004b85c0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
Function at 0x4f3fa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
push ebx
mov bh, byte [esp + 0x40]
mov edx, dword [ecx + 8]
mov bl, bh
and bl, 1
mov dword [esp + 4], edx
neg bl
push ebp
sbb bl, bl
push esi
mov esi, dword [eax]
add bl, 0x50
cmp byte [ecx + 0x17], 0
mov dword [esp + 0x3c], esi
jne 0x4f3fd4
and bh, 0xfd
add eax, 8
xor ebp, ebp
mov dword [esp + 0x10], eax
test esi, esi
jle 0x4f4159
mov esi, dword [esp + 0x40]
mov byte [esp + 0x48], bh
and byte [esp + 0x48], 4
push edi
cmp byte [esp + 0x4c], 0
mov edi, dword [eax]
je 0x4f4034
movzx eax, word [eax + 0x10]
test eax, eax
jle 0x4f4034
test bh, 8
je 0x4f4019
mov eax, dword [esp + 0x40]
dec ebp
dec esi
dec eax
mov dword [esp + 0x40], eax
jmp 0x4f413a
mov ecx, dword [esp + 0x48]
dec ecx
push esi
add eax, ecx
push eax
movzx eax, bl
push eax
push edx
call fcn.0051a3d0
add esp, 0x10
jmp 0x4f412e
test bh, 2
je 0x4f4089
mov dword [esp + 0x20], fcn.004b8870
mov eax, 2
mov word [esp + 0x30], ax
mov dword [esp + 0x24], 0x5144b0
mov dword [esp + 0x34], 0
test edi, edi
je 0x4f4079
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.0053a2d0
mov ecx, dword [esp + 0x44]
add esp, 8
cmp word [esp + 0x30], 0
je 0x4f4089
push esi
push edi
push ecx
call fcn.004f5460
add esp, 0xc
jmp 0x4f412e
push esi
push edi
push ecx
call fcn.004f55f0
mov edi, eax
add esp, 0xc
cmp edi, esi
je 0x4f412e
cmp bl, 0x4f
jne 0x4f40dd
push 0xffffffffffffffff
push dword [esp + 0x14]
call fcn.00522730
mov ecx, eax
add esp, 8
cmp byte [ecx], bl
jne 0x4f40dd
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 0xc]
inc eax
add eax, edx
cmp eax, edi
jne 0x4f40dd
mov eax, dword [ecx + 8]
inc eax
add eax, edx
cmp eax, esi
jne 0x4f40dd
cmp word [ecx + 2], 0
jne 0x4f40dd
lea eax, [edx + 1]
mov dword [ecx + 0xc], eax
jmp 0x4f412e
mov edx, dword [esp + 0x10]
movzx eax, bl
mov dword [esp + 0x18], eax
mov ecx, dword [edx + 0x74]
cmp dword [edx + 0x78], ecx
jg 0x4f4100
push 0
push esi
push edi
push eax
push edx
call fcn.004ceed0
add esp, 0x14
jmp 0x4f412e
lea eax, [ecx + 1]
mov dword [edx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x70]
mov edx, dword [esp + 0x18]
mov byte [eax + ecx*4], dl
xor edx, edx
mov word [eax + ecx*4 + 2], dx
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], edx
mov byte [eax + ecx*4 + 1], dl
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
add dword [esp + 0x14], 0x14
inc ebp
inc esi
cmp ebp, eax
mov eax, dword [esp + 0x14]
jl 0x4f3ff3
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x4f9270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebp
push esi
xor esi, esi
xor ebp, ebp
cmp dword [eax + 0x14], esi
jle 0x4f932d
mov edx, dword [esp + 0x1c]
push ebx
push edi
lea esp, [esp]
mov edi, esi
cmp esi, 2
jge 0x4f929a
xor edi, 1
mov eax, dword [eax + 0x10]
mov ecx, edi
add ecx, ecx
mov ebx, dword [eax + ecx*8 + 0xc]
mov dword [esp + 0x10], ebx
test edx, edx
je 0x4f92f4
mov eax, dword [eax + ecx*8]
mov ebx, edx
sub ebx, eax
movzx edx, byte [eax]
movzx ecx, byte [ebx + eax]
cmp edx, ecx
jne 0x4f92c6
test edx, edx
je 0x4f92f4
inc eax
jmp 0x4f92b4
movzx ecx, byte [ecx + 0x5726b0]
movzx edx, byte [edx + 0x5726b0]
sub edx, ecx
jne 0x4f92db
inc eax
jmp 0x4f92b4
test edi, edi
jne 0x4f9311
push dword [esp + 0x24]
push str.main
call fcn.00515ad0
add esp, 8
test eax, eax
jne 0x4f9311
mov eax, dword [esp + 0x10]
push 0
push dword [esp + 0x24]
add eax, 0x18
push eax
call fcn.004b98d0
add esp, 0xc
mov ebp, dword [eax + 8]
test ebp, ebp
jne 0x4f9323
mov eax, dword [esp + 0x1c]
inc esi
mov edx, dword [esp + 0x24]
cmp esi, dword [eax + 0x14]
jl 0x4f9290
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret
pop esi
mov eax, ebp
pop ebp
add esp, 8
ret