joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b3e50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebx + 8], eax
jbe 0x4b3f1c
push esi
push edi
lea ebx, [ebx]
movzx eax, word [ebx + 2]
cmp ax, 4
jg 0x4b3f54
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebx + 4]
cwde
mov edi, eax
push dword [esi]
imul edi, ecx
push eax
push ecx
push dword [ebp + 8]
call fcn.00595b79
mov eax, dword [ebp + 0x18]
add esp, 0x10
cmp dword [eax + 4], 0x45d240
jne 0x4b3ee0
mov eax, dword [ebp + 0x1c]
cmp word [eax + 0x140], 0
je 0x4b3f21
mov eax, edi
xor esi, esi
cdq
and edx, 3
lea edi, [edx + eax]
sar edi, 2
test edi, edi
jle 0x4b3edd
mov ebx, dword [ebp + 8]
push dword [ebx + esi*4]
call fcn.0045c6d0
mov dword [ebx + esi*4], eax
add esp, 4
inc esi
cmp esi, edi
jl 0x4b3ec7
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4b3ef1
push edi
push esi
call fcn.0045d3f0
add esp, 8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 0x1c]
call fcn.004585b0
movzx eax, ax
add esp, 0x10
test ax, ax
jne 0x4b3f1a
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, dword [ebx + 8]
jb 0x4b3e70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [ebx + 2], 3
jne 0x4b3ee0
test edi, edi
jle 0x4b3ee0
mov esi, dword [ebp + 8]
lea ecx, [edi - 1]
mov eax, 0xaaaaaaab
add esi, 2
mul ecx
shr edx, 1
inc edx
nop
mov cl, byte [esi - 2]
lea esi, [esi + 3]
mov al, byte [esi - 3]
mov byte [esi - 5], al
mov byte [esi - 3], cl
dec edx
jne 0x4b3f40
jmp 0x4b3edd
cmp dword [ebx + 4], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
jbe 0x4b3edd
xor eax, eax
xor esi, esi
cmp ax, word [ebx + 2]
jge 0x4b3f90
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.00597fff
add esp, 4
cmp esi, 4
jg 0x4b3f87
mov byte [edi], al
inc edi
movsx eax, word [ebx + 2]
inc esi
cmp esi, eax
jl 0x4b3f72
mov esi, dword [ebp + 0xc]
push dword [esi]
call fcn.00595867
add esp, 4
test eax, eax
jne 0x4b3ee0
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebx + 4]
jb 0x4b3f68
jmp 0x4b3ee0
Function at 0x4b5420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0045d070
mov esi, dword [ebp + 0xc]
add esp, 4
mov dword [esi + 0xc], eax
cmp eax, 0x53445058
je 0x4b5464
cmp eax, 0x58504453
je 0x4b544e
pop edi
mov eax, 2
pop esi
pop ebp
ret
mov dword [esi + 4], fcn.0045d210
mov dword [esi], fcn.0045d030
mov dword [esi + 8], fcn.0045cef0
jmp 0x4b5478
mov dword [esi + 4], fcn.0045d240
mov dword [esi], fcn.0045d070
mov dword [esi + 8], fcn.0045cf30
mov eax, dword [esi]
push edi
call eax
add esp, 4
mov dword [esi + 0x10], eax
cmp eax, dword [edi + 4]
jae 0x4b5445
push dword [edi]
lea eax, [esi + 0x14]
push 1
push 8
push eax
call fcn.00595b79
mov eax, dword [esi]
push edi
call eax
mov dword [esi + 0x1c], eax
mov eax, dword [esi]
push edi
call eax
mov dword [esi + 0x20], eax
mov eax, dword [esi]
push edi
call eax
mov dword [esi + 0x24], eax
mov eax, dword [esi]
push edi
call eax
mov dword [esi + 0x28], eax
mov eax, dword [esi]
push edi
call eax
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x30]
push dword [edi]
push 1
push 0x64
push eax
call fcn.00595b79
push dword [edi]
lea eax, [esi + 0x94]
push 1
push 0x18
push eax
call fcn.00595b79
add esp, 0x44
lea eax, [esi + 0xac]
push dword [edi]
push 1
push 0x64
push eax
call fcn.00595b79
push dword [edi]
lea eax, [esi + 0x110]
push 1
push 0xc8
push eax
call fcn.00595b79
push dword [edi]
lea eax, [esi + 0x1d8]
push 1
push 0xc8
push eax
call fcn.00595b79
mov eax, dword [esi]
push edi
call eax
mov dword [esi + 0x2a0], eax
lea eax, [esi + 0x2a4]
push dword [edi]
push 1
push 0x68
push eax
call fcn.00595b79
add esp, 0x44
push dword [edi]
call fcn.00595867
add esp, 4
neg eax
sbb eax, eax
and eax, 4
pop edi
pop esi
pop ebp
ret
Function at 0x4b5560
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
mov eax, dword [edi + 4]
call eax
mov ebx, dword [ebp + 0x10]
push esi
mov word [ebx], ax
mov eax, dword [edi + 4]
call eax
mov word [ebx + 2], ax
mov eax, dword [edi]
push esi
call eax
mov dword [ebx + 4], eax
mov eax, dword [edi]
push esi
call eax
add esp, 0x10
mov dword [ebx + 8], eax
add ebx, 0x10
mov dword [ebp + 0xc], 8
mov eax, dword [edi]
push esi
call eax
mov dword [ebx - 4], eax
mov eax, dword [edi]
push esi
call eax
mov dword [ebx], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [edi + 8]
push esi
call eax
movsd xmm0, qword [ebp - 8]
cvtpd2ps xmm0, xmm0
push esi
movss dword [ebx + 4], xmm0
mov eax, dword [edi]
call eax
mov dword [ebx + 8], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [edi + 8]
push esi
call eax
movsd xmm0, qword [ebp - 8]
cvtpd2ps xmm0, xmm0
movss dword [ebx + 0xc], xmm0
push dword [esi]
call fcn.00597fff
mov byte [ebx + 0x10], al
push dword [esi]
call fcn.00597fff
mov byte [ebx + 0x11], al
push dword [esi]
call fcn.00597fff
mov byte [ebx + 0x12], al
push dword [esi]
call fcn.00597fff
mov byte [ebx + 0x13], al
mov eax, dword [edi + 4]
push esi
call eax
mov word [ebx + 0x14], ax
mov eax, dword [edi + 4]
push esi
call eax
mov word [ebx + 0x16], ax
mov eax, dword [edi]
push esi
call eax
mov dword [ebx + 0x18], eax
mov eax, dword [edi]
push esi
call eax
mov dword [ebx + 0x1c], eax
mov eax, dword [edi]
push esi
call eax
add esp, 0x40
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
push dword [esi]
push 1
push 0x20
push eax
call fcn.00595b79
add esp, 0x10
lea ebx, [ebx + 0x48]
dec dword [ebp + 0xc]
jne 0x4b55a2
push dword [esi]
mov eax, dword [ebp + 0x10]
push 1
add eax, 0x24c
push 0x34
push eax
call fcn.00595b79
push dword [esi]
call fcn.00595867
add esp, 0x14
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b5690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx]
push edi
call eax
mov esi, dword [ebp + 0x10]
push edi
mov dword [esi], eax
mov eax, dword [ebx]
call eax
mov dword [esi + 4], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx + 8]
push edi
call eax
movsd xmm0, qword [ebp - 8]
lea eax, [ebp - 8]
cvtpd2ps xmm0, xmm0
push eax
push edi
movss dword [esi + 8], xmm0
mov eax, dword [ebx + 8]
call eax
movsd xmm0, qword [ebp - 8]
cvtpd2ps xmm0, xmm0
push edi
movss dword [esi + 0xc], xmm0
mov eax, dword [ebx]
call eax
mov dword [esi + 0x10], eax
mov eax, dword [ebx]
push edi
call eax
mov dword [esi + 0x14], eax
lea eax, [esi + 0x18]
push dword [edi]
push 1
push 0x64
push eax
call fcn.00595b79
push dword [edi]
lea eax, [esi + 0x7c]
push 1
push 0x18
push eax
call fcn.00595b79
add esp, 0x40
lea eax, [esi + 0x94]
push dword [edi]
push 1
push 0x20
push eax
call fcn.00595b79
push dword [edi]
lea eax, [esi + 0xb4]
push 1
push 0x20
push eax
call fcn.00595b79
add esp, 0x20
mov dword [ebp + 8], 4
add esi, 0xd4
mov eax, dword [ebx + 4]
push edi
call eax
add esp, 4
mov word [esi], ax
dec dword [ebp + 8]
lea esi, [esi + 2]
jne 0x4b5746
mov esi, dword [ebp + 0x10]
mov ebx, 2
add esi, 0xdc
mov eax, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi], eax
lea esi, [esi + 4]
dec ebx
jne 0x4b5768
push dword [edi]
mov eax, dword [ebp + 0x10]
push 1
add eax, 0xe4
push 0x1c
push eax
call fcn.00595b79
push dword [edi]
call fcn.00595867
add esp, 0x14
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b57b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
push dword [ebx]
push 1
push 2
push edi
call fcn.00595b79
push dword [ebx]
lea eax, [edi + 2]
push 1
push 2
push eax
call fcn.00595b79
push dword [ebx]
lea eax, [edi + 4]
push 1
push 2
push eax
call fcn.00595b79
push dword [ebx]
lea eax, [edi + 6]
push 1
push 6
push eax
call fcn.00595b79
add esp, 0x40
lea eax, [edi + 0xc]
push dword [ebx]
push 1
push 4
push eax
call fcn.00595b79
push dword [ebx]
lea eax, [edi + 0x10]
push 1
push 0x20
push eax
call fcn.00595b79
mov esi, dword [ebp + 0xc]
push ebx
mov eax, dword [esi]
call eax
mov dword [edi + 0x30], eax
mov eax, dword [esi]
push ebx
call eax
mov dword [edi + 0x34], eax
mov eax, dword [esi]
push ebx
call eax
mov dword [edi + 0x38], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 8]
push ebx
call eax
movsd xmm0, qword [ebp - 8]
lea eax, [ebp - 8]
cvtpd2ps xmm0, xmm0
push eax
push ebx
movss dword [edi + 0x3c], xmm0
mov eax, dword [esi + 8]
call eax
movsd xmm0, qword [ebp - 8]
lea eax, [edi + 0x44]
cvtpd2ps xmm0, xmm0
movss dword [edi + 0x40], xmm0
push dword [ebx]
push 1
push 0x20
push eax
call fcn.00595b79
add esp, 0x4c
lea eax, [edi + 0x64]
push dword [ebx]
push 1
push 0x64
push eax
call fcn.00595b79
push dword [ebx]
lea eax, [edi + 0xc8]
push 1
push 0x38
push eax
call fcn.00595b79
push dword [ebx]
call fcn.00595867
add esp, 0x24
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b58b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push ebx
mov eax, dword [esi]
call eax
mov edi, dword [ebp + 0x10]
push ebx
mov dword [edi], eax
mov eax, dword [esi]
call eax
mov dword [edi + 4], eax
push dword [ebx]
call fcn.00597fff
mov byte [edi + 8], al
push dword [ebx]
call fcn.00597fff
mov byte [edi + 9], al
push dword [ebx]
call fcn.00597fff
mov byte [edi + 0xa], al
push dword [ebx]
call fcn.00597fff
mov byte [edi + 0xb], al
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 8]
push ebx
call eax
movsd xmm0, qword [ebp - 8]
lea eax, [ebp - 8]
cvtpd2ps xmm0, xmm0
push eax
push ebx
movss dword [edi + 0xc], xmm0
mov eax, dword [esi + 8]
call eax
movsd xmm0, qword [ebp - 8]
lea eax, [ebp - 8]
cvtpd2ps xmm0, xmm0
push eax
push ebx
movss dword [edi + 0x10], xmm0
mov eax, dword [esi + 8]
call eax
movsd xmm0, qword [ebp - 8]
lea eax, [ebp - 8]
cvtpd2ps xmm0, xmm0
push eax
push ebx
movss dword [edi + 0x14], xmm0
mov eax, dword [esi + 8]
call eax
movsd xmm0, qword [ebp - 8]
lea eax, [ebp - 8]
cvtpd2ps xmm0, xmm0
push eax
push ebx
movss dword [edi + 0x18], xmm0
mov eax, dword [esi + 8]
call eax
movsd xmm0, qword [ebp - 8]
lea eax, [ebp - 8]
cvtpd2ps xmm0, xmm0
add esp, 0x40
push eax
push ebx
movss dword [edi + 0x1c], xmm0
mov eax, dword [esi + 8]
call eax
movsd xmm0, qword [ebp - 8]
lea eax, [ebp - 8]
cvtpd2ps xmm0, xmm0
push eax
push ebx
movss dword [edi + 0x20], xmm0
mov eax, dword [esi + 8]
call eax
movsd xmm0, qword [ebp - 8]
cvtpd2ps xmm0, xmm0
lea eax, [ebp - 8]
push eax
push ebx
movss dword [edi + 0x24], xmm0
mov eax, dword [esi + 8]
call eax
movsd xmm0, qword [ebp - 8]
lea eax, [ebp - 8]
cvtpd2ps xmm0, xmm0
push eax
push ebx
movss dword [edi + 0x28], xmm0
mov eax, dword [esi + 8]
call eax
movsd xmm0, qword [ebp - 8]
lea eax, [ebp - 8]
cvtpd2ps xmm0, xmm0
push eax
push ebx
movss dword [edi + 0x2c], xmm0
mov eax, dword [esi + 8]
call eax
movsd xmm0, qword [ebp - 8]
lea eax, [edi + 0x34]
cvtpd2ps xmm0, xmm0
movss dword [edi + 0x30], xmm0
push dword [ebx]
push 1
push 0x4c
push eax
call fcn.00595b79
push dword [ebx]
call fcn.00595867
add esp, 0x3c
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b65c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x124]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x24], xmm0
mov ecx, dword [esi + 0x84]
sub edx, ecx
movdqu xmmword [ebp - 0x14], xmm0
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4b65f2
cmp byte [ebp - 0x124], al
jne 0x4b661c
push 0x1f
lea eax, [ebp - 0x24]
push str.none
push eax
call fcn.00593bc0
add esp, 0xc
jmp 0x4b6689
lea ecx, [ebp - 0x124]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b6625
sub ecx, edx
lea eax, [ecx - 1]
test eax, eax
jle 0x4b6658
jmp 0x4b6640
mov cl, byte [ebp + eax - 0x124]
cmp cl, 0x5c
je 0x4b6656
cmp cl, 0x2f
je 0x4b6656
dec eax
test eax, eax
jg 0x4b6640
test eax, eax
je 0x4b665b
inc eax
mov cl, byte [ebp + eax - 0x124]
test cl, cl
je 0x4b6689
lea edx, [ebp - 0x24]
sub edx, eax
jmp 0x4b6670
cmp cl, 0x2e
je 0x4b6689
cmp eax, 0x1f
jge 0x4b6689
mov byte [edx + eax], cl
inc eax
mov cl, byte [ebp + eax - 0x124]
test cl, cl
jne 0x4b6670
push dword [esi]
lea eax, [ebp - 0x24]
push 1
push 0x20
push eax
call fcn.0059628c
push esi
push 1
call fcn.0045d590
push esi
push 1
call fcn.0045d590
add esp, 0x20
push esi
push 0
call fcn.00594354
add esp, 4
add eax, 0x7c25b080
push eax
call fcn.0045d510
push esi
push 0
call fcn.0045d510
push esi
push 0
call fcn.0045d510
push esi
push 0
call fcn.0045d510
push esi
push 0
call fcn.0045d510
push esi
push 0
call fcn.0045d510
push esi
push 0x494d5653
call fcn.0045d510
push esi
push 0x494d5653
call fcn.0045d510
add esp, 0x40
push esi
push 0
call fcn.0045d510
push esi
push 0
call fcn.0045d510
push esi
push dword [ebp + 0xc]
call fcn.0045d590
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
xor eax, eax
pop esi
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4b6d60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x108]
push eax
call fcn.00462ec0
lea ecx, [ebp - 0x108]
add esp, 4
dec ecx
jmp 0x4b6da0
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4b6da0
mov eax, dword [str.ldf.dll]
mov dword [ecx], eax
mov eax, dword [0x5db41c]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x108]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
jne 0x4b6ddf
lea eax, [edi + 2]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ILD_Compress_EndProcess
push edi
call esi
push str.ILD_Compress_Compress
push edi
mov dword [0x6451ec], eax
call esi
push str.ILD_Compress_SetCallback
push edi
mov dword [0x6451f0], eax
call esi
push str.ILD_Compress_SetProp
push edi
mov dword [0x6451f4], eax
call esi
push str.ILD_Compress_StartProcess
push edi
mov dword [0x6451f8], eax
call esi
push str.ILD_Compress_AppendPage
push edi
mov dword [0x6451fc], eax
call esi
cmp dword [0x6451ec], 0
mov dword [0x645200], eax
je 0x4b6f24
cmp dword [0x6451f0], 0
je 0x4b6f24
cmp dword [0x6451f4], 0
je 0x4b6f24
cmp dword [0x6451f8], 0
je 0x4b6f24
cmp dword [0x6451fc], 0
je 0x4b6f24
test eax, eax
je 0x4b6f24
push 0x498
push 1
call fcn.00592c0b
mov esi, eax
add esp, 8
test esi, esi
jne 0x4b6eac
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esi + 1]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push ebx
lea ebx, [esi + 4]
push ebx
call fcn.004b6a50
push 0x1b
push dword [ebp - 0x110]
call fcn.0045cb00
add esp, 0xc
mov dword [esi], eax
test eax, eax
jne 0x4b6ef2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call fcn.00592c4b
add esp, 4
mov eax, 5
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push eax
push ebx
mov dword [esi + 0x490], edi
call fcn.004b7030
mov eax, dword [ebp - 0x10c]
add esp, 8
mov byte [esi + 0x494], 1
pop ebx
mov dword [eax], esi
xor eax, eax
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push str.Cant_get_address_of_function__n
call fcn.005927a9
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, 2
pop esi
xor ecx, ebp
pop edi
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4b76b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x3b8
push 1
call fcn.00592c0b
mov edi, eax
add esp, 8
mov dword [esi], edi
test edi, edi
jne 0x4b76f2
lea eax, [edi + 1]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
push eax
call fcn.00462ec0
lea eax, [ebp - 0x108]
add esp, 4
dec eax
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x4b7708
mov ecx, dword [0x5dc3c8]
mov dword [eax], ecx
mov ecx, dword [0x5dc3cc]
mov dword [eax + 4], ecx
mov ecx, dword [0x5dc3d0]
mov dword [eax + 8], ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi + 0x380], eax
test eax, eax
je 0x4b7874
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.JPM_Compress_Start
push eax
call esi
push str.JPM_Compress_Set_License
push dword [edi + 0x380]
mov dword [edi + 0x394], eax
call esi
push str.JPM_Compress_Set_Property
push dword [edi + 0x380]
mov dword [edi + 0x398], eax
call esi
push str.JPM_Compress_Set_Resolution
push dword [edi + 0x380]
mov dword [edi + 0x39c], eax
call esi
push str.JPM_Compress_Page
push dword [edi + 0x380]
mov dword [edi + 0x3a0], eax
call esi
push str.JPM_Compress_End
push dword [edi + 0x380]
mov dword [edi + 0x3a4], eax
call esi
push str.JPM_Document_Add_External_Page_As_Copy
push dword [edi + 0x380]
mov dword [edi + 0x3a8], eax
call esi
push str.JPM_Document_End
push dword [edi + 0x380]
mov dword [edi + 0x3ac], eax
call esi
push str.JPM_Document_Export_Document
push dword [edi + 0x380]
mov dword [edi + 0x3b0], eax
call esi
cmp dword [edi + 0x394], 0
mov dword [edi + 0x3b4], eax
je 0x4b785b
cmp dword [edi + 0x398], 0
je 0x4b785b
cmp dword [edi + 0x39c], 0
je 0x4b785b
cmp dword [edi + 0x3a0], 0
je 0x4b785b
cmp dword [edi + 0x3a4], 0
je 0x4b785b
cmp dword [edi + 0x3a8], 0
je 0x4b785b
cmp dword [edi + 0x3ac], 0
je 0x4b785b
cmp dword [edi + 0x3b0], 0
je 0x4b785b
test eax, eax
je 0x4b785b
mov dword [edi + 0x388], 0
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push str.Cant_get_address_of_function__n
call fcn.005927a9
add esp, 4
push dword [edi + 0x380]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call fcn.00592c4b
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 2
pop edi
pop esi
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4b84b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c0
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x1b0], eax
lea eax, [ebp - 0x108]
push edi
mov edi, dword [ebp + 0xc]
push eax
call fcn.00462ec0
lea ecx, [ebp - 0x108]
add esp, 4
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4b84e7
mov eax, dword [0x5dc4e8]
mov dword [ecx], eax
mov eax, dword [0x5dc4ec]
mov dword [ecx + 4], eax
mov eax, dword [0x5dc4f0]
mov dword [ecx + 8], eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x4b852e
pop edi
lea eax, [ebx + 2]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.JP2_Compress_Start
push ebx
call esi
push str.JP2_Compress_SetLicense
push ebx
mov dword [0x645204], eax
call esi
push str.JP2_Compress_SetProp
push ebx
mov dword [0x645208], eax
call esi
push str.JP2_Compress_Image
push ebx
mov dword [0x64520c], eax
call esi
push str.JP2_Compress_End
push ebx
mov dword [0x645210], eax
call esi
cmp dword [0x645204], 0
mov dword [0x645214], eax
je 0x4b86d0
cmp dword [0x645208], 0
je 0x4b86d0
cmp dword [0x64520c], 0
je 0x4b86d0
cmp dword [0x645210], 0
je 0x4b86d0
test eax, eax
je 0x4b86d0
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c0]
push edi
push eax
push dword [ebp - 0x1b0]
call fcn.004b8700
movzx esi, ax
add esp, 0x10
test si, si
jne 0x4b86a1
lea eax, [ebp - 0x1ac]
push eax
call fcn.00458dd0
mov ax, word [0x5d39dc]
add esp, 4
movdqu xmm0, xmmword [str.LuraWave_JPEG_2000_Format]
mov word [ebp - 0x170], ax
mov eax, 8
mov word [ebp - 0x19e], ax
mov eax, 0x7f0
movdqu xmmword [ebp - 0x188], xmm0
movq xmm0, qword [0x5d39d4]
movq qword [ebp - 0x178], xmm0
cmp word [edi + 0x24], ax
jne 0x4b8639
movsx eax, word [edi + 0x28]
cdq
and edx, 7
add eax, edx
sar eax, 3
jmp 0x4b863e
mov eax, 1
mov word [ebp - 0x1a0], ax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x194], eax
lea eax, [ebp - 0x1ac]
push eax
push edi
call fcn.00457000
movzx esi, ax
add esp, 8
test si, si
jne 0x4b86a1
push dword [ebp - 0x1c0]
lea eax, [ebp - 0x1ac]
mov dword [ebp - 0x1bc], edi
mov dword [ebp - 0x1b8], eax
mov dword [ebp - 0x1b4], 0xffffffff
call dword [0x645210]
test eax, eax
mov ecx, 6
push edi
cmovne esi, ecx
call fcn.00454fa0
add esp, 8
mov eax, dword [ebp - 0x1c0]
test eax, eax
je 0x4b86b5
push eax
call dword [0x645214]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ax, si
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push str.Cant_get_address_of_function__n
call fcn.005927a9
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, 2
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4b95d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
push ebx
push 0x53445058
mov eax, dword [edi + 8]
call eax
mov esi, dword [ebp + 0xc]
mov eax, dword [edi + 8]
push ebx
push dword [esi]
call eax
push dword [ebx]
lea eax, [esi + 4]
push 1
push 8
push eax
call fcn.0059628c
mov eax, dword [edi + 8]
push ebx
push dword [esi + 0xc]
call eax
mov eax, dword [edi + 8]
push ebx
push dword [esi + 0x10]
call eax
mov eax, dword [edi + 8]
push ebx
push dword [esi + 0x14]
call eax
mov eax, dword [edi + 8]
push ebx
push dword [esi + 0x18]
call eax
mov eax, dword [edi + 8]
add esp, 0x40
push ebx
push dword [esi + 0x1c]
call eax
push dword [ebx]
lea eax, [esi + 0x20]
push 1
push 0x64
push eax
call fcn.0059628c
push dword [ebx]
lea eax, [esi + 0x84]
push 1
push 0x18
push eax
call fcn.0059628c
push dword [ebx]
lea eax, [esi + 0x9c]
push 1
push 0x64
push eax
call fcn.0059628c
push dword [ebx]
lea eax, [esi + 0x100]
push 1
push 0xc8
push eax
call fcn.0059628c
add esp, 0x48
lea eax, [esi + 0x1c8]
push dword [ebx]
push 1
push 0xc8
push eax
call fcn.0059628c
mov eax, dword [edi + 8]
push ebx
push dword [esi + 0x290]
call eax
push dword [ebx]
lea eax, [esi + 0x294]
push 1
push 0x68
push eax
call fcn.0059628c
add esp, 0x28
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret