joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b96c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
movzx eax, word [ebx]
push esi
push eax
mov eax, dword [edi + 4]
call eax
movzx eax, word [ebx + 2]
push esi
push eax
mov eax, dword [edi + 4]
call eax
mov eax, dword [edi + 8]
push esi
push dword [ebx + 4]
call eax
mov eax, dword [edi + 8]
push esi
push dword [ebx + 8]
call eax
add esp, 0x20
mov dword [ebp + 0x10], 8
add ebx, 0x10
mov eax, dword [edi + 8]
push esi
push dword [ebx - 4]
call eax
mov eax, dword [edi + 8]
push esi
push dword [ebx]
call eax
movss xmm0, dword [ebx + 4]
add esp, 8
mov eax, dword [edi + 0xc]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push esi
call eax
mov eax, dword [edi + 8]
push esi
push dword [ebx + 8]
call eax
movss xmm0, dword [ebx + 0xc]
add esp, 0xc
mov eax, dword [edi + 0xc]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push esi
call eax
push dword [esi]
movzx eax, byte [ebx + 0x10]
push eax
call fcn.005958b3
push dword [esi]
movzx eax, byte [ebx + 0x11]
push eax
call fcn.005958b3
push dword [esi]
movzx eax, byte [ebx + 0x12]
push eax
call fcn.005958b3
push dword [esi]
movzx eax, byte [ebx + 0x13]
push eax
call fcn.005958b3
movzx eax, word [ebx + 0x14]
push esi
push eax
mov eax, dword [edi + 4]
call eax
movzx eax, word [ebx + 0x16]
push esi
push eax
mov eax, dword [edi + 4]
call eax
mov eax, dword [edi + 8]
push esi
push dword [ebx + 0x18]
call eax
mov eax, dword [edi + 8]
add esp, 0x44
push esi
push dword [ebx + 0x1c]
call eax
mov eax, dword [edi + 8]
push esi
push dword [ebx + 0x20]
call eax
push dword [esi]
lea eax, [ebx + 0x24]
push 1
push 0x20
push eax
call fcn.0059628c
add esp, 0x20
lea ebx, [ebx + 0x48]
dec dword [ebp + 0x10]
jne 0x4b9703
push dword [esi]
mov eax, dword [ebp + 0xc]
push 1
add eax, 0x24c
push 0x34
push eax
call fcn.0059628c
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4b97f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 8]
push edi
push dword [esi]
call eax
mov eax, dword [ebx + 8]
push edi
push dword [esi + 4]
call eax
movss xmm0, dword [esi + 8]
add esp, 8
mov eax, dword [ebx + 0xc]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push edi
call eax
movss xmm0, dword [esi + 0xc]
add esp, 4
mov eax, dword [ebx + 0xc]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push edi
call eax
mov eax, dword [ebx + 8]
push edi
push dword [esi + 0x10]
call eax
mov eax, dword [ebx + 8]
push edi
push dword [esi + 0x14]
call eax
push dword [edi]
lea eax, [esi + 0x18]
push 1
push 0x64
push eax
call fcn.0059628c
push dword [edi]
lea eax, [esi + 0x7c]
push 1
push 0x18
push eax
call fcn.0059628c
push dword [edi]
lea eax, [esi + 0x94]
push 1
push 0x20
push eax
call fcn.0059628c
add esp, 0x4c
lea eax, [esi + 0xb4]
push dword [edi]
push 1
push 0x20
push eax
call fcn.0059628c
add esp, 0x10
mov dword [ebp + 8], 4
add esi, 0xd4
movzx eax, word [esi]
push edi
push eax
mov eax, dword [ebx + 4]
call eax
add esp, 8
lea esi, [esi + 2]
dec dword [ebp + 8]
jne 0x4b98a3
mov esi, dword [ebp + 0xc]
mov ebx, 2
add esi, 0xdc
mov eax, dword [ebp + 0x10]
push edi
push dword [esi]
mov eax, dword [eax + 8]
call eax
add esp, 8
lea esi, [esi + 4]
dec ebx
jne 0x4b98c6
push dword [edi]
mov eax, dword [ebp + 0xc]
push 1
add eax, 0xe4
push 0x1c
push eax
call fcn.0059628c
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4b9bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xac], eax
push dword [edi + 0x30]
push dword [edi + 0x2c]
push eax
call fcn.004b9cb0
lea eax, [ebp - 0xa8]
push eax
call fcn.00458dd0
movdqu xmm0, xmmword [str.Flexible_Image_Transport_System]
mov eax, 0x10
mov dword [ebp - 0x9c], 0x80001
mov word [ebp - 0xa4], ax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xa8]
movdqu xmmword [ebp - 0x84], xmm0
push eax
movdqu xmm0, xmmword [0x5cb728]
push edi
movdqu xmmword [ebp - 0x74], xmm0
call fcn.00457000
movzx ebx, ax
add esp, 0x18
test bx, bx
jne 0x4b9c97
push esi
xor esi, esi
cmp dword [edi + 0x30], esi
jle 0x4b9c8d
push 1
push esi
push edi
call fcn.00459620
mov eax, dword [ebp - 0xac]
push dword [eax]
push 1
push dword [ebp - 0x90]
push dword [ebp - 0xa0]
call fcn.0059628c
add esp, 0x1c
test eax, eax
je 0x4b9c88
inc esi
cmp esi, dword [edi + 0x30]
jl 0x4b9c55
jmp 0x4b9c8d
mov ebx, 6
push edi
call fcn.00454fa0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
mov ax, bx
pop edi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4b9cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x54]
push 0x5dc590
push str.SIMPLE____22s
push eax
call fcn.005933b1
lea ecx, [ebp - 0x54]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b9ce1
push dword [edi]
sub ecx, edx
lea eax, [ebp - 0x54]
push 1
push ecx
push eax
call fcn.0059628c
lea ecx, [ebp - 0x54]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b9d01
sub ecx, edx
push ecx
push edi
call fcn.004b9ed0
push 0x5c2af4
lea eax, [ebp - 0x54]
push str.BITPIX____22s
push eax
call fcn.005933b1
lea ecx, [ebp - 0x54]
add esp, 0x14
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b9d30
push dword [edi]
sub ecx, edx
lea eax, [ebp - 0x54]
push 1
push ecx
push eax
call fcn.0059628c
lea ecx, [ebp - 0x54]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b9d50
sub ecx, edx
push ecx
push edi
call fcn.004b9ed0
push 0x5c2b30
lea eax, [ebp - 0x54]
push str.NAXIS_____22s
push eax
call fcn.005933b1
lea ecx, [ebp - 0x54]
add esp, 0x14
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b9d80
push dword [edi]
sub ecx, edx
lea eax, [ebp - 0x54]
push 1
push ecx
push eax
call fcn.0059628c
lea ecx, [ebp - 0x54]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b9da0
sub ecx, edx
push ecx
push edi
call fcn.004b9ed0
push dword [ebp + 0xc]
lea eax, [ebp - 0x54]
push str.NAXIS1____d
push eax
call fcn.005933b1
lea ecx, [ebp - 0x54]
add esp, 0x14
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b9dd0
push dword [edi]
sub ecx, edx
lea eax, [ebp - 0x54]
push 1
push ecx
push eax
call fcn.0059628c
lea ecx, [ebp - 0x54]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b9df0
sub ecx, edx
push ecx
push edi
call fcn.004b9ed0
push dword [ebp + 0x10]
lea eax, [ebp - 0x54]
push str.NAXIS2____d
push eax
call fcn.005933b1
lea ecx, [ebp - 0x54]
add esp, 0x14
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b9e20
push dword [edi]
sub ecx, edx
lea eax, [ebp - 0x54]
push 1
push ecx
push eax
call fcn.0059628c
lea ecx, [ebp - 0x54]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b9e40
sub ecx, edx
push ecx
push edi
call fcn.004b9ed0
lea eax, [ebp - 0x54]
push 0x5dc5e4
push eax
call fcn.005933b1
lea ecx, [ebp - 0x54]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b9e67
push dword [edi]
sub ecx, edx
lea eax, [ebp - 0x54]
push 1
push ecx
push eax
call fcn.0059628c
lea ecx, [ebp - 0x54]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b9e87
sub ecx, edx
push ecx
push edi
call fcn.004b9ed0
add esp, 8
mov esi, 0x960
nop
push dword [edi]
push 0x20
call fcn.005958b3
add esp, 8
dec esi
jne 0x4b9ea0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4ba0b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
push dword [esi]
mov eax, dword [ebp + 0x1c]
push 1
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push 6
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x4ba104
pop edi
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
cmp dword [eax], 0x44414548
jne 0x4ba1f2
cmp word [eax + 4], 0x5245
jne 0x4ba1f2
push esi
call fcn.0045d240
add esp, 4
test ax, ax
jne 0x4ba1f2
push esi
call fcn.0045d240
add esp, 4
cmp ax, 1
jne 0x4ba1f2
push esi
call fcn.0045d240
add esp, 4
test ax, ax
jne 0x4ba1f2
push esi
call fcn.0045d240
mov ecx, 0xd00
add esp, 4
cmp ax, cx
jne 0x4ba1f2
push esi
call fcn.0045d210
movzx eax, ax
push esi
mov dword [edi], eax
call fcn.0045d240
add esp, 8
test ax, ax
jne 0x4ba1f2
push esi
call fcn.0045d240
mov ecx, 0x100
add esp, 4
cmp ax, cx
jne 0x4ba1f2
push esi
call fcn.0045d210
movzx eax, ax
push esi
mov dword [ebx], eax
call fcn.0045d210
mov ecx, dword [ebp - 0x14]
movzx eax, ax
push 0x15
push esi
mov dword [ecx], eax
call fcn.0045d3f0
push dword [esi]
push 1
push 0x63
push dword [ebp - 0x10]
call fcn.00595b79
push 0x70
push esi
call fcn.0045d3f0
push dword [esi]
call fcn.00595867
add esp, 0x2c
neg eax
sbb eax, eax
and eax, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4bacc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
push dword [edi]
mov eax, dword [ebp + 0x18]
push 1
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x10]
push 9
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4bae3d
cmp byte [ebp - 0x10], 0x5a
jne 0x4bae9f
lea eax, [ebp - 0xf]
push eax
call fcn.004ba860
add esp, 4
lea esi, [eax - 8]
lea eax, [ebp - 0xd]
cmp word [eax], 0xeed3
jne 0x4bad32
cmp byte [eax + 2], 0xee
je 0x4bae19
lea ecx, [ebp - 0xd]
cmp word [ecx], 0xa8d3
jne 0x4bad46
cmp byte [ecx + 2], 0x5f
je 0x4bae19
lea ecx, [ebp - 0xd]
cmp word [ecx], 0xa8d3
jne 0x4bad5a
cmp byte [ecx + 2], 0x7b
je 0x4bae19
lea ecx, [ebp - 0xd]
cmp word [ecx], 0xa7d3
jne 0x4bad6e
cmp byte [ecx + 2], 0x7b
je 0x4bae19
lea ecx, [ebp - 0xd]
movzx eax, byte [ecx]
cmp al, 0xd3
jne 0x4bad88
cmp byte [ecx + 1], 0xa6
jne 0x4bad88
cmp byte [ecx + 2], 0x7b
jne 0x4bad88
xor eax, eax
jmp 0x4bad8d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4bae53
push dword [edi]
lea eax, [ebp - 0x34]
push 1
push 0x24
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4bae3d
lea eax, [ebp - 0x22]
sub esi, 0x24
push eax
call fcn.004ba860
mov dword [ebx], eax
lea eax, [ebp - 0x20]
push eax
call fcn.004ba860
mov ecx, dword [ebp - 0x3c]
add esp, 8
mov dword [ecx], eax
test byte [ebx], 7
jne 0x4bae9f
lea eax, [ebp - 0x18]
push eax
call fcn.004ba860
mov edx, dword [ebp - 0x40]
mov dword [edx], eax
lea eax, [ebp - 0x16]
push eax
call fcn.004ba860
mov ecx, dword [ebp - 0x38]
add esp, 8
mov dword [ecx], eax
mov ecx, dword [edx]
test ecx, ecx
jne 0x4bae10
test eax, eax
jne 0x4bae10
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x38]
mov dword [edx], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
mov dword [ecx], eax
jmp 0x4bae19
test cl, 7
jne 0x4bae9f
push 1
push esi
push dword [edi]
call fcn.00595cb4
push dword [edi]
lea eax, [ebp - 0x10]
push 1
push 9
push eax
call fcn.00595b79
add esp, 0x1c
test eax, eax
jne 0x4bad05
pop edi
pop esi
mov eax, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xd]
cmp word [ecx], 0xeed3
jne 0x4bae63
cmp byte [ecx + 2], 0x7b
je 0x4bae73
lea ecx, [ebp - 0xd]
cmp word [ecx], 0xacd3
jne 0x4bae9f
cmp byte [ecx + 2], 0x7b
jne 0x4bae9f
push 1
push 0xfffffffffffffff7
push dword [edi]
call fcn.00595cb4
add esp, 0xc
xor ecx, ecx
cmp dword [ebx], 0xffffffff
mov eax, 2
cmovne eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 2
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4bc2c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [esi + 8]
test eax, eax
jle 0x4bc311
mov byte [eax + esi + 0xc], 0
mov eax, dword [esi + 8]
mov byte [esi + eax + 0xd], 0
mov eax, dword [esi + 8]
mov byte [esi + eax + 0xe], 0
lea eax, [esi + 0x16]
push eax
lea eax, [esi + 0xc]
push eax
call fcn.004bc370
push dword [edi]
mov ecx, dword [esi + 8]
inc ecx
cmp byte [eax], 0x7a
push 1
push ecx
mov ecx, 0x5dd5cc
cmovne ecx, eax
push ecx
call fcn.0059628c
add esp, 0x18
push dword [edi]
push 0x7e
call fcn.005958b3
push dword [edi]
push 0x3e
call fcn.005958b3
push dword [edi]
push 0xa
call fcn.005958b3
add esp, 0x18
pop edi
pop esi
pop ebp
ret

Function at 0x4bd9d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, esi
push edi
mov edi, dword [ebp + 0x14]
imul eax, edi
mov dword [ebp - 4], eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x62d480]
mulsd xmm0, qword [0x5ddb38]
addsd xmm0, qword [0x5db6b0]
call fcn.00597301
push eax
mov dword [ebp - 0x10], eax
call fcn.00593e38
mov ebx, eax
add esp, 4
mov dword [ebp - 0xc], ebx
test ebx, ebx
jne 0x4bda2f
pop edi
pop esi
lea eax, [ebx + 1]
pop ebx
mov esp, ebp
pop ebp
ret
push 0x38
push 0x5d7d18
lea eax, [ebp - 0x48]
mov dword [ebp - 0x28], 0x4c82e0
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x24], fcn.004f3030
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.00547960
add esp, 0x10
test eax, eax
jne 0x4bdb1c
push dword [ebp - 4]
call fcn.00593e38
add esp, 4
mov dword [ebp - 8], eax
xor ebx, ebx
test esi, esi
jle 0x4bdac8
mov esi, dword [ebp + 0x18]
mov dword [ebp + 0x14], eax
push 1
push ebx
push dword [ebp + 0xc]
call fcn.00459620
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp word [eax + 0x24], 1
jne 0x4bdaaf
xor ecx, ecx
test edi, edi
jle 0x4bdaaf
mov al, byte [ecx + esi]
neg al
sbb al, al
mov byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x4bdaa0
push edi
push esi
push dword [ebp + 0x14]
call fcn.00592150
add dword [ebp + 0x14], edi
inc ebx
add esp, 0xc
cmp ebx, dword [ebp + 0x10]
jl 0x4bda82
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push 4
push eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], 0
call fcn.00546de0
add esp, 8
cmp eax, 1
lea eax, [ebp - 0x48]
push eax
call fcn.00547660
mov eax, dword [ebp + 8]
add esp, 4
push dword [eax]
push 1
push dword [ebp - 0x34]
push ebx
call fcn.0059628c
push dword [ebp - 8]
call fcn.00592c4b
add esp, 0x14
push ebx
call fcn.00592c4b
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4be0e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
push dword [edi]
mov eax, dword [ebp + 0x14]
push 1
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
push 0x1c
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x4be135
pop edi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x20]
mov edx, str.CAD_camera_image_1.0
mov esi, 0x11
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4be1d6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4be143
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4be1d6
push edi
call fcn.0045d240
mov ecx, dword [ebp - 0x2c]
movzx eax, ax
push edi
mov dword [ecx], eax
call fcn.0045d240
mov ecx, dword [ebp - 0x24]
movzx eax, ax
push edi
mov dword [ecx], eax
call fcn.0045d240
push dword [edi]
call fcn.00597fff
push dword [edi]
call fcn.00597fff
mov ecx, dword [ebp - 0x28]
add esp, 0x14
mov word [ecx], ax
cmp ax, 1
je 0x4be1a3
cmp ax, 2
jne 0x4be1d6
push dword [edi]
call fcn.00597fff
push dword [edi]
call fcn.00597fff
mov word [ebx], ax
push dword [edi]
call fcn.00595867
add esp, 0xc
neg eax
sbb eax, eax
and eax, 4
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
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 0x4be1f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp + 0xb]
push esi
push edi
push dword [ebx]
push 1
push 1
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4be2ef
mov edi, dword [ebp + 0xc]
mov al, byte [ebp + 0xb]
xor esi, esi
mov cl, al
shr cl, 6
cmp cl, 1
jne 0x4be23f
movzx esi, al
and esi, 0x3f
push esi
push 0xff
push edi
call fcn.00595760
add esp, 0xc
jmp 0x4be2d3
cmp cl, 2
jne 0x4be258
movzx esi, al
and esi, 0x3f
push esi
push 0
push edi
call fcn.00595760
add esp, 0xc
jmp 0x4be2d3
cmp cl, 3
jne 0x4be273
push dword [ebx]
movzx esi, al
push 1
and esi, 0x3f
push esi
push edi
call fcn.00595b79
add esp, 0x10
jmp 0x4be2d3
and al, 0x3f
cmp al, 1
jne 0x4be293
push ebx
call fcn.0045d240
movzx esi, ax
push esi
push 0xff
push edi
call fcn.00595760
add esp, 0x10
jmp 0x4be2d3
cmp al, 2
jne 0x4be2ae
push ebx
call fcn.0045d240
movzx esi, ax
push esi
push 0
push edi
call fcn.00595760
add esp, 0x10
jmp 0x4be2d3
cmp al, 3
jne 0x4be2cb
push ebx
call fcn.0045d240
push dword [ebx]
movzx esi, ax
push 1
push esi
push edi
call fcn.00595b79
add esp, 0x14
jmp 0x4be2d3
cmp al, 4
je 0x4be2f9
cmp al, 5
je 0x4be2f9
push dword [ebx]
lea eax, [ebp + 0xb]
add edi, esi
push 1
push 1
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x4be216
pop edi
pop esi
mov eax, 4
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4beaa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
imul eax, esi
push edi
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x10], eax
imul eax, edi
mov dword [ebp - 0x20], eax
add eax, 0x400
push eax
call fcn.00593e38
mov ebx, eax
add esp, 4
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x4beaf2
push dword [ebp - 0x10]
call fcn.00593e38
mov edx, eax
add esp, 4
mov dword [ebp + 0x20], edx
test edx, edx
jne 0x4beafe
push ebx
call fcn.00592c4b
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
test edi, edi
jle 0x4bebb3
mov ecx, dword [ebp + 0x14]
lea eax, [ecx + esi]
mov dword [ebp + 0x1c], eax
mov esi, edx
cmp ecx, eax
jge 0x4beb7a
mov ecx, dword [ebp + 0x10]
mov ebx, edi
imul ebx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x18]
add edx, ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp + 0x14]
imul ebx, dword [ebp + 0x24]
add ebx, ecx
imul ebx, edi
add ebx, dword [ebp - 4]
add ebx, dword [ebp + 0xc]
sub eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
lea esp, [esp]
cmp ecx, edx
jge 0x4beb6b
mov eax, ebx
sub edx, ecx
mov cl, byte [eax]
add eax, edi
mov byte [esi], cl
inc esi
dec edx
jne 0x4beb58
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
add ebx, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0xc], eax
jne 0x4beb50
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x20]
sub eax, ebx
push eax
mov eax, dword [ebp - 8]
add eax, ebx
push eax
push dword [ebp - 0x10]
push edx
call fcn.004be7c0
add esp, 0x10
test eax, eax
je 0x4bebde
mov ecx, dword [ebp - 4]
add ebx, eax
mov eax, dword [ebp + 0x1c]
inc ecx
mov edx, dword [ebp + 0x20]
cmp ecx, edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x14], ebx
jl 0x4beb17
mov eax, dword [ebp + 8]
push dword [eax]
push 1
push ebx
mov ebx, dword [ebp - 8]
push ebx
call fcn.0059628c
push dword [ebp + 0x20]
call fcn.00592c4b
push ebx
call fcn.00592c4b
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
cmp ecx, eax
jge 0x4bec1b
mov esi, ecx
mov ebx, edi
imul esi, dword [ebp + 0x24]
imul ebx, dword [ebp + 0x24]
add esi, dword [ebp + 0x10]
imul esi, edi
add esi, dword [ebp + 0xc]
sub eax, ecx
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 8]
push dword [eax]
push edi
push dword [ebp + 0x18]
push esi
call fcn.0059628c
add esp, 0x10
add esi, ebx
dec dword [ebp + 0x1c]
jne 0x4bec02
push dword [ebp + 0x20]
call fcn.00592c4b
push dword [ebp - 8]
call fcn.00592c4b
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bf100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push edi
push 4
push ebx
call fcn.0045d3f0
push ebx
call fcn.0045d030
push eax
mov dword [ebp - 8], eax
call fcn.00593e38
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4bf153
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
imul eax, ebx
push eax
mov dword [ebp - 0xc], eax
call fcn.00593e38
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x4bf15e
push edi
call fcn.00592c4b
add esp, 4
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push dword [eax]
push 1
push dword [ebp - 8]
push edi
call fcn.00595b79
push dword [ebp - 4]
push dword [ebp - 0xc]
push edi
push dword [ebp - 8]
call fcn.00495d80
add esp, 0x20
xor edi, edi
cmp dword [ebp + 0x10], esi
jle 0x4bf1c1
mov esi, dword [ebp - 4]
lea ecx, [ecx]
push ebx
push esi
push dword [ebp + 0xc]
call fcn.00592150
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 0x18]
call fcn.004585b0
movzx eax, ax
add esp, 0x1c
mov dword [ebp - 0xc], eax
test ax, ax
jne 0x4bf1be
inc edi
add esi, ebx
cmp edi, dword [ebp + 0x10]
jl 0x4bf190
mov esi, dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00592c4b
push dword [ebp - 0x10]
call fcn.00592c4b
add esp, 8
mov ax, si
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c00c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push dword [edi]
push 1
push 4
push str.8BPS
call fcn.0059628c
push edi
push 1
call fcn.0045d590
push dword [edi]
xor eax, eax
push 1
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xc]
push 6
push eax
call fcn.0059628c
movzx eax, word [esi + 0x40]
push edi
push eax
call fcn.0045d590
push edi
push dword [esi + 0x30]
call fcn.0045d510
push edi
push dword [esi + 0x2c]
call fcn.0045d510
movzx eax, word [esi + 0x3e]
add esp, 0x40
push edi
push eax
call fcn.0045d590
movzx eax, word [esi + 0x24]
add esp, 8
push edi
cmp ax, 1
jne 0x4c0145
push 0
jmp 0x4c015b
cmp ax, 2
jne 0x4c014f
push 1
jmp 0x4c015b
cmp ax, 4
jne 0x4c0159
push 2
jmp 0x4c015b
push 3
call fcn.0045d590
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.005920c1
mov esp, ebp
pop ebp
ret