joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c8a0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x68
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x6c]
push esi
mov esi, ecx
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.004af110
push esi
lea esi, [esp + 0x10]
call fcn.004af1b0
mov ecx, dword [esp + 0x6c]
add esp, 8
pop esi
xor ecx, esp
call fcn.0065865c
add esp, 0x68
ret

Function at 0x45f190
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
sub esp, 0x414
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x410], eax
cmp byte [0x9f5e90], 0
jne 0x45f26c
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x104
lea eax, [esp + 0x14]
push eax
mov byte [0x9f5e90], 1
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.ktmw32.dll
lea ecx, [esp + 0x14]
push ecx
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea edx, [esp + 0x10]
push edx
call ebp
mov esi, eax
push 0x104
lea eax, [esp + 0x21c]
push eax
call edi
push str.kernel32.dll
lea ecx, [esp + 0x21c]
push ecx
call ebx
lea edx, [esp + 0x218]
push edx
call ebp
mov ebx, eax
test esi, esi
je 0x45f268
test ebx, ebx
je 0x45f268
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateTransaction
push esi
call edi
push str.CommitTransaction
push esi
mov dword [0x9f4f24], eax
call edi
push str.RollbackTransaction
push esi
mov dword [0x9f4f28], eax
call edi
push str.CreateFileTransactedW
push ebx
mov dword [0x9f4f2c], eax
call edi
push str.DeleteFileTransactedW
push ebx
mov dword [0x9f4f30], eax
call edi
mov dword [0x9f4f34], eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.0065865c
add esp, 0x414
ret

Function at 0x45f300
Capabilities:
Write file on windows

Disassembly:
cmp dword [eax], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov ebx, edx
jne 0x45f321
push ebp
mov edi, ebx
mov eax, ecx
call fcn.00455af0
add esp, 4
pop edi
pop ebp
pop ebx
ret 4
push esi
mov edi, ecx
call fcn.0045f290
mov esi, eax
cmp esi, 0xffffffff
jne 0x45f340
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebp
xor al, al
pop ebx
ret 4
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45f36c
cmp ebx, dword [esp + 0x14]
jne 0x45f36c
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebp
mov al, bl
pop ebx
ret 4
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebp
mov al, bl
pop ebx
ret 4
Function at 0x474a80
Capabilities:
Delete file
Write file on windows

Disassembly:
mov eax, 0x3010
call fcn.0065b730
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x300c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x301c]
push esi
push edi
mov esi, 0x98a0e4
call fcn.00455720
mov ebx, eax
test ebx, ebx
je 0x474ac0
push ebx
call fcn.00661039
add esp, 4
mov edi, eax
jmp 0x474ac2
xor edi, edi
mov dword [esp + 0x14], edi
test ebx, ebx
jne 0x474aef
test edi, edi
je 0x474adf
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x474adf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call fcn.00658a01
add esp, 4
push 0
jmp 0x474bcf
push 0x92503c
push ebp
call fcn.00606a80
mov esi, eax
add esp, 8
test esi, esi
je 0x474bb0
push 0x98a260
lea eax, [esp + 0x14]
push ebx
push eax
mov dword [esp + 0x1c], 0
call fcn.0065c2b6
add esp, 0xc
test eax, eax
jne 0x474ba7
cmp dword [esp + 0x10], eax
je 0x474ba7
push 0x3000
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.006063b0
add esp, 0xc
test eax, eax
jle 0x474b70
mov edx, dword [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x20]
push 1
push eax
call fcn.0065bc82
push 0x3000
lea ecx, [esp + 0x2c]
push ecx
push esi
call fcn.006063b0
add esp, 0x1c
test eax, eax
jg 0x474b47
mov edx, dword [esp + 0x10]
push edx
call fcn.0065a7dd
add esp, 4
push esi
call fcn.00607120
add esp, 4
push ebx
call fcn.00474780
add esp, 4
lea esi, [esp + 0x14]
mov edi, eax
call fcn.00474630
push ebx
call fcn.00658a01
add esp, 4
mov eax, edi
jmp 0x474bd9
push esi
call fcn.00607120
add esp, 4
test edi, edi
je 0x474bc5
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x474bc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call fcn.00658a01
add esp, 4
push ebx
call fcn.00658a01
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x301c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0065865c
add esp, 0x3010
ret
Function at 0x475b20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x9c48d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x68], edi
call fcn.004b3520
test eax, eax
je 0x475bbe
mov ecx, dword [ebx]
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax]
mov edx, ecx
shl edx, 4
add edx, ecx
lea eax, [eax + edx*4 + 8]
push edi
push eax
call fcn.0065e2c0
mov ebx, dword [ebp - 0x6c]
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ecx]
mov esi, edx
shl esi, 4
add esi, edx
add esp, 8
mov dword [ecx + esi*4 + 4], eax
test eax, eax
jne 0x475bb8
lea eax, [edi + 2]
xor ecx, ecx
mov esi, ebx
call fcn.004b6b00
mov edi, dword [ebx + 0x1c]
sub edi, dword [ebx + 0x20]
xor eax, eax
add edi, dword [ebx + 0x10]
xor ecx, ecx
call fcn.004b6b00
push 0
push edi
push ebx
call fcn.004b6910
mov edi, eax
add esp, 0xc
mov dword [ebp - 0x68], edi
jmp 0x475bbb
mov edi, dword [ebp - 0x68]
mov esi, dword [ebp - 0x64]
mov edx, dword [ebx]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, ecx
shl edx, 4
add edx, ecx
mov edx, dword [eax + edx*4 + 4]
dec ecx
mov dword [eax], ecx
cmp edx, 1
jle 0x475c10
mov eax, dword [ebx]
push str.couldnt_read_stream_data__using_a_NULL_fingerprint_instead
push 0xec
push str.._srcPdfEngine.cpp
push eax
call fcn.004b3370
add esp, 0x10
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0065865c
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 4]
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], eax
mov eax, dword [edi + 0xc]
push ecx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
call fcn.004af110
add esp, 4
push esi
lea esi, [ebp - 0x60]
call fcn.004af1b0
mov eax, dword [ebx]
add esp, 4
call fcn.004d18b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0065865c
mov esp, ebp
pop ebp
ret
Function at 0x48c480
Capabilities:
Encode data using base64

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ebx, [edi + eax]
lea eax, [eax + eax*2]
shr eax, 2
push 1
push eax
call fcn.00658a3b
mov dword [esp + 0x18], eax
mov esi, eax
add esp, 8
xor al, al
xor ebp, ebp
cmp edi, ebx
jae 0x48c578
nop
mov dl, byte [edi]
cmp dl, 0x3d
je 0x48c578
lea ecx, [edx - 0x41]
cmp cl, 0x19
jbe 0x48c4ce
lea ecx, [edx - 0x61]
cmp cl, 0x19
ja 0x48c4ff
lea ecx, [edx - 0x47]
cmp cl, 0xff
jne 0x48c513
cmp dl, 0x20
je case.default.0x48c528
sub dl, 9
cmp dl, 4
jbe case.default.0x48c528
mov eax, dword [esp + 0x10]
push eax
call fcn.00658a01
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
lea ecx, [edx - 0x30]
cmp cl, 9
ja 0x48c50c
lea ecx, [edx + 4]
jmp 0x48c4ce
cmp dl, 0x2b
jne 0x48c52f
mov cl, 0x3e
mov edx, ebp
and edx, 0x80000003
jns 0x48c522
dec edx
or edx, 0xfffffffc
inc edx
inc ebp
cmp edx, 3
ja case.default.0x48c528
jmp dword [edx*4 + 0x48c594]
cmp dl, 0x2f
jne 0x48c4d3
mov cl, 0x3f
jmp 0x48c513
mov al, cl
jmp case.default.0x48c528
add al, al
mov dl, cl
add al, al
sar dl, 4
or dl, al
mov byte [esi], dl
inc esi
and cl, 0xf
mov al, cl
jmp case.default.0x48c528
mov dl, cl
shl al, 4
sar dl, 2
or dl, al
mov byte [esi], dl
inc esi
and cl, 3
mov al, cl
jmp case.default.0x48c528
mov dl, al
shl dl, 6
or dl, cl
mov byte [esi], dl
inc esi
inc edi
cmp edi, ebx
jb 0x48c4b0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x48c586
sub esi, dword [esp + 0x10]
mov dword [eax], esi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x491d70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
lea edi, [eax + ebp]
mov esi, ecx
mov dword [esp + 0x18], edi
cmp ebp, edi
jae 0x491e2f
lea ebx, [ebx]
mov bl, byte [ebp]
inc ebp
lea ecx, [ebx - 1]
cmp cl, 7
ja 0x491ddd
movzx eax, bl
lea ebx, [eax + ebp]
cmp ebx, edi
ja 0x491eab
cmp eax, 0xffffffff
jne 0x491dd0
test ebp, ebp
je 0x491dce
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x491db8
sub eax, edx
push eax
push ebp
mov eax, esi
call fcn.00412b60
mov ebp, ebx
jmp 0x491e27
xor eax, eax
push eax
push ebp
mov eax, esi
call fcn.00412b60
mov ebp, ebx
jmp 0x491e27
cmp bl, 0x80
jae 0x491e37
mov edx, dword [esi]
lea edi, [edx + 1]
mov ecx, edi
mov dword [esp + 0x10], edx
call fcn.00412da0
test al, al
jne 0x491dfa
xor eax, eax
mov byte [eax], al
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
add ecx, edx
mov dword [esp + 0x10], ecx
cmp eax, edx
jbe 0x491e1f
sub eax, edx
push eax
push ecx
inc ecx
push ecx
call fcn.006586a0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi], edi
mov byte [ecx], bl
mov edi, dword [esp + 0x18]
cmp ebp, edi
jb 0x491d90
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
cmp bl, 0xc0
jae 0x491e8f
lea ecx, [ebp + 1]
cmp ecx, edi
ja 0x491eab
movzx eax, byte [ebp]
movzx edx, bl
shl dx, 8
or dx, ax
movzx eax, dx
mov ebp, ecx
mov ecx, eax
shr ecx, 3
and ecx, 0x7ff
mov edi, ecx
cmp edi, dword [esi]
ja 0x491eab
xor edx, edx
cmp dx, cx
je 0x491eab
and al, 7
add al, 3
mov bl, al
je 0x491e23
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
sub ecx, edi
movzx edx, byte [ecx + eax]
push edx
mov eax, esi
call fcn.0045f0a0
dec bl
jne 0x491e76
jmp 0x491e23
push 0x20
mov eax, esi
call fcn.0045f0a0
xor bl, 0x80
movzx eax, bl
push eax
mov eax, esi
call fcn.0045f0a0
jmp 0x491e27
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
Function at 0x4a2e00
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi]
sub esp, 0x10
push ebx
push ebp
push edi
cmp eax, 0xffffffff
jne 0x4a2e18
xor eax, eax
xor edx, edx
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
lea edx, [esp + 0x14]
xor ebp, ebp
push edx
push ebp
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ecx
call edi
mov ecx, dword [esp + 0x24]
mov edx, dword [esi]
push ebp
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push ecx
push edx
call edi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
push ebp
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x4a2e73
mov ebx, dword [esp + 0xc]
jmp 0x4a2e75
xor ebx, ebx
mov edx, dword [esp + 0x18]
mov eax, dword [esi]
push ebp
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call edi
pop edi
mov edx, ebp
pop ebp
mov eax, ebx
pop ebx
add esp, 0x10
ret
Function at 0x4a6140
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x1f4
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x1f0], eax
mov eax, dword [esp + 0x1fc]
lea edx, [esp + 4]
push edx
xor ecx, ecx
push 0xf6
mov dword [esi + 0x208], eax
mov word [esi], cx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [esp], eax
test eax, eax
je 0x4a61db
cmp eax, 0xf6
jae 0x4a61db
push esi
push 0
push 0x98c824
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4a61db
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a61d3
mov edx, dword [esp + 0x1fc]
push 0
lea ecx, [esp + 8]
push ecx
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [esp + 0x1f0]
xor ecx, esp
mov eax, esi
call fcn.0065865c
add esp, 0x1f4
ret 8
Function at 0x4ae5a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4ae5f3
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push 0x1c
push 1
push esi
call ecx
mov dword [esi + 0x190], eax
mov dword [eax], 0x50a780
mov dword [eax + 4], 0x50a8e0
mov byte [eax + 8], 0
add esp, 0xc
mov eax, esi
call fcn.0050a5d0
cmp byte [esi + 0x40], 0
je 0x4ae5ec
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4ae674
mov edx, dword [esi + 0x1a0]
cmp byte [edx + 0x10], 0
je 0x4ae664
lea esp, [esp]
mov eax, dword [esi + 8]
test eax, eax
je 0x4ae61f
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov ecx, dword [esi + 0x1a0]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
test eax, eax
je 0x4ae660
cmp eax, 2
je 0x4ae664
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4ae610
cmp eax, 3
je 0x4ae647
cmp eax, 1
jne 0x4ae610
inc dword [ecx + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 8]
cmp ecx, dword [eax + 8]
jl 0x4ae610
mov ecx, dword [esi + 0x120]
add dword [eax + 8], ecx
jmp 0x4ae610
xor al, al
pop esi
ret
mov edx, dword [esi + 0x7c]
mov dword [esi + 0x84], edx
call fcn.004ae6a0
pop esi
ret
cmp eax, 0xcc
je 0x4ae696
mov eax, dword [esi]
mov dword [eax + 0x14], 0x15
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [esi]
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
call fcn.004ae6a0
pop esi
ret
Function at 0x4cdd90
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x57c
mov eax, dword [0x9c48d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x578]
push ecx
lea edx, [ebp - 0x318]
push edx
push 0x104
push eax
mov dword [ebp - 0x574], esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea eax, [ebp - 0x568]
push eax
lea ecx, [ebp - 0x318]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x56c], edi
cmp edi, 0xffffffff
jne 0x4cde18
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 2
je 0x4cdf7e
call edi
push eax
push str.extend_system_font_list:_unknown_error__d
push 1
push 0x27d
push str..mupdf_sourcepdfpdf_fontfile.c
push esi
call fcn.004b35a0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edi, edi
test byte [ebp - 0x568], 0x10
jne 0x4cdf61
mov eax, dword [ebp - 0x578]
lea edx, [ebp - 0x110]
sub edx, eax
sar edx, 1
push edx
lea ecx, [ebp - 0x53c]
push ecx
push eax
call ebx
push 0
push 0
push 0x104
lea edx, [ebp - 0x110]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x318]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4cde96
lea ecx, [ebp - 0x318]
push ecx
push str.WideCharToMultiByte_failed_for__S
push 0x289
push str..mupdf_sourcepdfpdf_fontfile.c
push esi
call fcn.004b3370
add esp, 0x14
jmp 0x4cdf61
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4cdea0
sub eax, edx
lea edx, [ebp + eax - 0x114]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x570], edx
call fcn.004b3520
test eax, eax
je 0x4cdf56
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov edx, ecx
shl edx, 4
add edx, ecx
lea eax, [eax + edx*4 + 8]
push 0
push eax
call fcn.0065e2c0
mov esi, dword [ebp - 0x574]
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
mov edi, edx
shl edi, 4
add edi, edx
add esp, 8
mov dword [ecx + edi*4 + 4], eax
test eax, eax
jne 0x4cdf56
mov edi, dword [ebp - 0x570]
push str..ttc
push edi
call fcn.00660044
add esp, 8
test eax, eax
jne 0x4cdf22
lea ecx, [ebp - 0x110]
push ecx
push esi
call fcn.004cda70
jmp 0x4cdf53
push str..ttf
push edi
call fcn.00660044
add esp, 8
test eax, eax
je 0x4cdf46
push str..otf
push edi
call fcn.00660044
add esp, 8
test eax, eax
jne 0x4cdf56
lea edx, [ebp - 0x110]
push edx
push esi
call fcn.004cd960
add esp, 8
mov eax, dword [esi + 0xc]
dec dword [eax]
mov edi, dword [ebp - 0x56c]
lea eax, [ebp - 0x568]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4cde20
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0065865c
mov esp, ebp
pop ebp
ret
Function at 0x4cdfb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x420
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x41c], eax
push 0xf8
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0xf6
ja 0x4ce007
push str.Fonts._t_
lea ecx, [esp + 0xc]
push 0x104
push ecx
call fcn.006623ac
add esp, 0xc
lea edx, [esp + 8]
push edx
push esi
call fcn.004cdd90
add esp, 8
cmp dword [0x9f55e4], 0
jne 0x4ce028
push str.couldnt_find_any_usable_system_fonts
push 0x2b6
push str..mupdf_sourcepdfpdf_fontfile.c
push esi
call fcn.004b3370
add esp, 0x10
push 0x104
lea ecx, [esp + 0xc]
push ecx
xor eax, eax
push 0x400000
mov word [esp + 0x21c], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 4]
push eax
xor edx, edx
lea ecx, [esp + 0x214]
push ecx
mov word [esp + 0x216], dx
push 0x104
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [esp + 4]
lea ecx, [esp + 0x418]
sub ecx, eax
sar ecx, 1
push ecx
push str.DroidSansFallback.ttf
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea edx, [esp + 0x210]
push edx
push esi
call fcn.004cdd90
mov eax, dword [0x9f55e4]
mov ecx, dword [0x9f55e0]
push fcn.00660044
push 0x188
push eax
push ecx
call fcn.00658b10
push 0x4cdf90
call fcn.00659050
mov ecx, dword [esp + 0x438]
add esp, 0x1c
xor ecx, esp
call fcn.0065865c
mov esp, ebp
pop ebp
ret
Function at 0x4db9d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x34]
mov edx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x20]
mov eax, dword [eax + ebx*4]
mov ecx, dword [ecx + ebx*4]
push ebp
push edi
mov edi, dword [edx + 0x48]
push ecx
push eax
mov eax, dword [esp + 0x34]
push eax
push edx
mov eax, ebx
mov dword [esp + 0x20], edi
call fcn.004ee320
mov ecx, dword [esp + 0x34]
push ecx
mov ebp, eax
call fcn.004bb8b0
add esp, 0x14
cmp dword [esi + 8], 0
mov ebx, eax
mov dword [esp + 0xc], ebx
je 0x4dbaf6
mov eax, ebp
call fcn.004db590
test eax, eax
je 0x4dbaf6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 4]
mov ecx, edi
call fcn.004db5d0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov edi, ebp
call fcn.004d18b0
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
push ebx
push edi
call fcn.004db680
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0x48]
add esp, 8
mov ebx, 0x1c
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
call fcn.004d1410
mov edi, eax
xor eax, eax
cmp edi, eax
jne 0x4dba95
mov eax, dword [esp + 0x14]
push ebx
push str.malloc_of__d_bytes_failed
push 1
push 0x40
push str..mupdf_source_fitzmemory.c
push eax
call fcn.004b35a0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push edi
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x10]
push str.Length
push eax
mov dword [edi + 8], ecx
mov dword [edi], 1
mov word [edi + 4], 0x69
mov dword [edi + 0x10], edx
call fcn.004bbf20
add esp, 0xc
dec dword [edi]
jne 0x4dbaf2
mov al, byte [edi + 4]
cmp al, 0x61
jne 0x4dbad7
call fcn.004bc7b0
jmp 0x4dbaf2
cmp al, 0x64
jne 0x4dbae2
call fcn.004bc830
jmp 0x4dbaf2
mov ecx, dword [edi + 8]
mov edx, dword [ecx + 0x48]
push edi
push edx
call fcn.004d1660
add esp, 8
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esi]
push eax
push ecx
push str._d__d_obj_n
push edx
call fcn.0065a664
mov ecx, dword [esi]
xor eax, eax
cmp dword [esi + 0xc], eax
sete al
push eax
push ecx
mov ecx, ebx
call fcn.004bd910
mov edx, dword [esi]
push str.stream_n
push edx
call fcn.0065a664
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 4]
push eax
push ecx
push 1
push edx
call fcn.0065bc82
mov eax, dword [esi]
push str.endstream_nendobj_n_n
push eax
call fcn.0065a664
mov eax, dword [esp + 0x48]
add esp, 0x38
mov edi, ebp
call fcn.004d18b0
test ebx, ebx
je 0x4dbb99
dec dword [ebx]
jne 0x4dbb99
mov al, byte [ebx + 4]
cmp al, 0x61
jne 0x4dbb77
mov edi, ebx
call fcn.004bc7b0
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
cmp al, 0x64
jne 0x4dbb89
mov edi, ebx
call fcn.004bc830
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [ebx + 8]
mov edx, dword [ecx + 0x48]
push ebx
push edx
call fcn.004d1660
add esp, 8
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4dbba0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x34]
mov edx, dword [edx + ecx*4]
push ebx
mov ebx, dword [esp + 0x20]
mov eax, dword [ebx + 0x48]
push ebp
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x38]
mov ebp, dword [eax + ecx*4]
mov eax, dword [esi + 0x2c]
push edi
neg eax
sbb eax, eax
lea edi, [esp + 0x14]
and eax, edi
push eax
push 0
push ebp
push edx
mov edx, dword [esp + 0x44]
push edx
push ecx
push ebx
mov dword [esp + 0x30], 0
call fcn.004ee5e0
add esp, 0x1c
cmp dword [esp + 0x14], 0
mov ebp, eax
je 0x4dbbfe
cmp dword [esi + 0x30], 0
je 0x4dbbfe
mov eax, dword [esi + 0x30]
inc dword [eax]
mov eax, dword [esp + 0x2c]
push eax
call fcn.004bb8b0
add esp, 4
mov edi, eax
push str.Filter
mov dword [esp + 0x1c], edi
call fcn.004bc650
add esp, 4
push str.DecodeParms
mov eax, edi
call fcn.004bc650
add esp, 4
cmp dword [esi + 8], 0
je 0x4dbc6e
mov eax, ebp
call fcn.004db590
test eax, eax
je 0x4dbc6e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
call fcn.004db5d0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov edi, ebp
call fcn.004d18b0
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
push ecx
push ebx
call fcn.004db680
add esp, 8
mov eax, dword [ebx + 0x48]
mov edx, dword [ebp + 0xc]
mov ebx, 0x1c
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
call fcn.004d1410
mov edi, eax
test edi, edi
jne 0x4dbca5
mov eax, dword [esp + 0x1c]
push ebx
push str.malloc_of__d_bytes_failed
push 1
push 0x40
push str..mupdf_source_fitzmemory.c
push eax
call fcn.004b35a0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
push edi
push str.Length
push ebx
mov dword [edi + 8], ecx
mov dword [edi], 1
mov word [edi + 4], 0x69
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], edx
call fcn.004bbf20
add esp, 0xc
dec dword [edi]
jne 0x4dbd06
mov al, byte [edi + 4]
cmp al, 0x61
jne 0x4dbceb
call fcn.004bc7b0
jmp 0x4dbd06
cmp al, 0x64
jne 0x4dbcf6
call fcn.004bc830
jmp 0x4dbd06
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x48]
push edi
push ecx
call fcn.004d1660
add esp, 8
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esi]
push edx
push eax
push str._d__d_obj_n
push ecx
call fcn.0065a664
mov eax, dword [esi]
xor edx, edx
cmp dword [esi + 0xc], edx
mov ecx, ebx
sete dl
push edx
push eax
call fcn.004bd910
mov ecx, dword [esi]
push str.stream_n
push ecx
call fcn.0065a664
mov edx, dword [esi]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 4]
push edx
push eax
push 1
push ecx
call fcn.0065bc82
mov edx, dword [esi]
push str.endstream_nendobj_n_n
push edx
call fcn.0065a664
mov eax, dword [esp + 0x48]
add esp, 0x38
mov edi, ebp
call fcn.004d18b0
test ebx, ebx
je 0x4dbda9
dec dword [ebx]
jne 0x4dbda9
mov al, byte [ebx + 4]
cmp al, 0x61
jne 0x4dbd87
mov edi, ebx
call fcn.004bc7b0
pop edi
pop ebp
pop ebx
add esp, 0x18
ret
cmp al, 0x64
jne 0x4dbd99
mov edi, ebx
call fcn.004bc830
pop edi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x48]
push ebx
push ecx
call fcn.004d1660
add esp, 8
pop edi
pop ebp
pop ebx
add esp, 0x18
ret