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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
imul eax, dword [ebp + 0x14]
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov dword [ebp - 8], eax
test eax, eax
jle 0x470d06
nop
mov edi, dword [ebp + 8]
lea eax, [ebp + 0x17]
push dword [edi]
push 1
push 1
push eax
call fcn.00595b79
add esp, 0x10
cmp eax, 1
jne 0x470d10
mov al, byte [ebp + 0x17]
test al, al
movzx eax, al
jns 0x470cb5
push dword [edi]
and eax, 0x7f
inc eax
sub dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
call fcn.00597fff
mov dl, al
add esp, 4
mov eax, dword [ebp - 0xc]
xor edi, edi
mov byte [ebp - 1], dl
test eax, eax
jle 0x470cfc
mov ecx, dword [ebp + 0xc]
mov byte [esi + ecx], dl
inc esi
cmp esi, dword [ebp + 0x10]
jl 0x470cae
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 0x18]
call fcn.004585b0
movzx ebx, ax
add esp, 0x10
test bx, bx
jne 0x470cfc
mov eax, dword [ebp - 0xc]
xor esi, esi
mov ecx, dword [ebp + 0xc]
mov dl, byte [ebp - 1]
inc edi
cmp edi, eax
jl 0x470c81
jmp 0x470cfc
inc eax
xor edi, edi
sub dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
test eax, eax
jle 0x470cfc
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00597fff
mov ecx, dword [ebp + 0xc]
add esp, 4
mov byte [esi + ecx], al
inc esi
cmp esi, dword [ebp + 0x10]
jl 0x470cf6
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 0x18]
call fcn.004585b0
movzx ebx, ax
add esp, 0x10
test bx, bx
jne 0x470cfc
xor esi, esi
inc edi
cmp edi, dword [ebp - 0xc]
jl 0x470cc2
cmp dword [ebp - 8], 0
jg 0x470c30
pop edi
pop esi
mov ax, bx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x470f10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push dword [esi]
push 1
push 0x20
push edi
call fcn.00595b79
add esp, 0x10
cmp eax, 1
je 0x470f38
pop edi
mov eax, 4
pop esi
pop ebp
ret
push ebx
push esi
call fcn.0045d240
push esi
mov word [edi + 0x20], ax
call fcn.0045d240
push esi
mov word [edi + 0x22], ax
call fcn.0045d070
push esi
mov dword [edi + 0x24], eax
call fcn.0045d070
push esi
mov dword [edi + 0x28], eax
call fcn.0045d070
push esi
mov dword [edi + 0x2c], eax
call fcn.0045d070
push esi
mov dword [edi + 0x30], eax
call fcn.0045d070
push esi
mov dword [edi + 0x34], eax
call fcn.0045d070
mov dword [edi + 0x38], eax
lea ebx, [edi + 0x3c]
push dword [esi]
push 1
push 4
push ebx
call fcn.00595b79
add esp, 0x30
cmp eax, 1
jne 0x470fb8
cmp dword [ebx], 0x474d4976
jne 0x470fca
push dword [esi]
lea ebx, [edi + 0x40]
push eax
push 4
push ebx
call fcn.00595b79
add esp, 0x10
cmp eax, 1
je 0x470fc2
pop ebx
pop edi
mov eax, 4
pop esi
pop ebp
ret
cmp dword [ebx], 0x77656956
je 0x470fd4
pop ebx
pop edi
mov eax, 2
pop esi
pop ebp
ret
push esi
call fcn.0045d070
push esi
mov dword [edi + 0x44], eax
call fcn.0045d070
push esi
mov dword [edi + 0x48], eax
call fcn.0045d240
mov word [edi + 0x4c], ax
push dword [esi]
call fcn.00595867
add esp, 0x10
neg eax
sbb eax, eax
and eax, 4
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x471010
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push dword [esi]
push 1
push 0x20
push edi
call fcn.00595b79
add esp, 0x10
cmp eax, 1
je 0x471038
pop edi
mov eax, 4
pop esi
pop ebp
ret
push dword [esi]
call fcn.00597fff
mov byte [edi + 0x20], al
push dword [esi]
call fcn.00597fff
push esi
mov byte [edi + 0x21], al
call fcn.0045d070
push esi
mov dword [edi + 0x24], eax
call fcn.0045d070
push esi
mov dword [edi + 0x28], eax
call fcn.0045d240
push esi
mov word [edi + 0x2c], ax
call fcn.0045d240
push esi
mov word [edi + 0x2e], ax
call fcn.0045d070
push esi
mov dword [edi + 0x30], eax
call fcn.0045d240
push esi
mov word [edi + 0x34], ax
call fcn.0045d240
add esp, 0x24
mov word [edi + 0x36], ax
cmp byte [edi + 0x20], 0x18
jne 0x4710a3
push 0xc
push esi
call fcn.0045d3f0
add esp, 8
push esi
call fcn.0045d240
push esi
mov word [edi + 0x38], ax
call fcn.0045d240
mov word [edi + 0x3a], ax
push dword [esi]
call fcn.00595867
add esp, 0xc
neg eax
sbb eax, eax
and eax, 4
pop edi
pop esi
pop ebp
ret
Function at 0x471830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24], esi
push dword [edi]
push 1
push 5
push eax
call fcn.00595b79
add esp, 0x10
cmp eax, 1
jne 0x471970
lea eax, [ebp - 0x18]
cmp dword [eax], 0x50482525
jne 0x4718f2
cmp byte [eax + 4], 0x3a
jne 0x4718f2
xor esi, esi
lea ecx, [ecx]
push dword [edi]
call fcn.00597fff
add esp, 4
cmp eax, 0xffffffff
je 0x471970
cmp eax, 0x3b
je 0x47189e
inc esi
cmp esi, 0x14
jl 0x471880
cmp esi, 0x14
je 0x471970
push dword [edi]
call fcn.00597fff
add esp, 4
cmp eax, 0xd
jne 0x471970
push dword [edi]
call fcn.00597fff
add esp, 4
cmp eax, 0xa
je 0x4718d4
push dword [edi]
push eax
call fcn.00598414
add esp, 8
push dword [edi]
lea eax, [ebp - 0x18]
push 1
push 5
push eax
call fcn.00595b79
add esp, 0x10
cmp eax, 1
jne 0x471970
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
cmp dword [eax], 0x424f5247
jne 0x471970
cmp byte [eax + 4], 0x20
jne 0x471970
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.0045d270
add esp, 8
test eax, eax
je 0x471970
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.0045d270
add esp, 8
test eax, eax
je 0x471970
push dword [edi]
call fcn.00597fff
add esp, 4
cmp eax, 0xd
je 0x471939
cmp eax, 0x20
jne 0x471970
push dword [edi]
call fcn.00597fff
add esp, 4
cmp eax, 0xa
je 0x471953
push dword [edi]
push eax
call fcn.00598414
add esp, 8
mov eax, dword [ebp - 0x1c]
mov dword [ebx], eax
mov eax, dword [ebp - 0x20]
pop edi
mov dword [esi], eax
xor eax, eax
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 0x4725f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x13]
push dword [esi]
push 1
push 1
push eax
call fcn.00595b79
add esp, 0x10
cmp eax, 1
jne 0x472682
mov al, byte [ebp + 0x13]
dec edi
cmp al, 0xff
jg 0x47264b
movsx eax, al
mov esi, 2
sub esi, eax
mov eax, dword [ebp + 8]
push esi
push dword [eax]
call fcn.00597fff
add esp, 4
push eax
push ebx
call fcn.00595760
add esp, 0xc
dec edi
jmp 0x472667
movsx esi, al
mov eax, dword [ebp + 8]
inc esi
push dword [eax]
push 1
push esi
push ebx
call fcn.00595b79
add esp, 0x10
cmp eax, 1
jne 0x47267f
sub edi, esi
mov eax, dword [ebp - 4]
add ebx, esi
add eax, esi
mov dword [ebp - 4], eax
cmp eax, 0x7c60
jl 0x472604
mov esi, dword [ebp + 8]
xor ebx, ebx
jmp 0x472687
mov esi, dword [ebp + 8]
mov ebx, 4
test edi, edi
jle 0x472695
push dword [esi]
call fcn.00597fff
add esp, 4
pop edi
pop esi
mov ax, bx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x472b00
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
push 0xa0
push 0
push ebx
call fcn.00595760
invalid
Function at 0x472d30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 0x18]
push edi
push esi
call fcn.00593e38
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
test edi, edi
jne 0x472d56
lea eax, [edi + 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push dword [eax]
push 1
push esi
push edi
call fcn.00595b79
push 0x38
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x1c], 0x4c82e0
push 0x5d7d18
push eax
mov dword [ebp - 0x18], fcn.004f3030
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], esi
call fcn.00535880
add esp, 0x1c
test eax, eax
je 0x472d9e
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x1c]
xor esi, esi
xor edi, edi
cmp dword [edx + 0xc], esi
jle 0x472e4f
push ebx
mov ebx, dword [ebp + 0x10]
test si, si
jne 0x472e4e
mov eax, dword [edx]
mov ecx, dword [ebx + 0xc]
add eax, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 8]
cmp eax, dword [ebx + 0x10]
je 0x472de1
push dword [ebx + 0x20]
push 0
push ecx
call fcn.00595760
add esp, 0xc
lea eax, [ebp - 0x3c]
push 1
push eax
call fcn.00534050
add esp, 8
cmp eax, 1
je 0x472e15
cmp eax, 0xfffffffd
jne 0x472e05
lea eax, [ebp - 0x3c]
push eax
call fcn.00535a10
add esp, 4
test eax, eax
jne 0x472e10
cmp dword [ebp - 0x2c], eax
ja 0x472de1
jmp 0x472e15
mov esi, 4
cmp edi, dword [ebx + 0x14]
jge 0x472e34
push 1
push 0xffffffffffffffff
push dword [ebp + 0xc]
push dword [ebp + 0x20]
call fcn.004585b0
movzx esi, ax
add esp, 0x10
test si, si
jne 0x472e4e
cmp dword [ebp - 0x2c], 0
jne 0x472e49
mov edx, dword [ebp + 0x1c]
inc edi
cmp edi, dword [edx + 0xc]
jl 0x472db2
jmp 0x472e4e
mov esi, 4
pop ebx
push dword [ebp - 4]
call fcn.00592c4b
lea eax, [ebp - 0x3c]
push eax
call fcn.00535770
add esp, 8
mov ax, si
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x473670
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x18]
push esi
xor esi, esi
push edi
cmp dword [ebx + 4], esi
jle 0x47369b
push 1
push 0xffffffffffffffff
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
call fcn.004585b0
inc esi
add esp, 0x10
cmp esi, dword [ebx + 4]
jl 0x473683
mov eax, dword [ebp + 0x18]
xor edx, edx
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
mov esi, dword [eax]
mov ecx, dword [ebx + 0xc]
add esi, ecx
mov eax, dword [eax + 8]
cmp eax, dword [ebx + 0x10]
je 0x4736c9
push dword [ebx + 0x20]
push edi
push ecx
call fcn.00595760
add esp, 0xc
xor edx, edx
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0xc], edi
jle 0x4737f9
test dx, dx
jne 0x4737f9
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 1]
push 1
push 1
push eax
call fcn.00595b79
add esp, 0x10
cmp eax, 1
jne 0x473802
mov al, byte [ebp - 1]
cmp al, 0x80
movzx eax, al
jbe 0x473783
add eax, 0xffffff80
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00597fff
mov ecx, eax
add esp, 4
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
test eax, eax
jle 0x4737e7
lea esp, [esp]
mov byte [esi], cl
inc edi
inc esi
cmp edi, dword [ebp + 0x14]
jl 0x47377b
push 1
push 0xffffffffffffffff
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 0x1c]
call fcn.004585b0
mov ecx, dword [ebx + 0xc]
add esp, 0x10
inc dword [ebp - 8]
movzx eax, ax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov esi, dword [eax]
mov eax, dword [eax + 8]
add esi, ecx
cmp eax, dword [ebx + 0x10]
je 0x473775
push dword [ebx + 0x20]
push edi
push ecx
call fcn.00595760
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp + 0x10], eax
jne 0x473730
jmp 0x4737e7
mov dword [ebp + 0x10], eax
test eax, eax
jle 0x4737e7
lea ebx, [ebx]
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00597fff
mov byte [esi], al
inc edi
add esp, 4
inc esi
cmp edi, dword [ebp + 0x14]
jl 0x4737e2
push 1
push 0xffffffffffffffff
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp + 0x1c]
call fcn.004585b0
mov ecx, dword [ebx + 0xc]
add esp, 0x10
inc dword [ebp - 8]
movzx eax, ax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov esi, dword [eax]
mov eax, dword [eax + 8]
add esi, ecx
cmp eax, dword [ebx + 0x10]
je 0x4737e2
push dword [ebx + 0x20]
push edi
push ecx
call fcn.00595760
add esp, 0xc
dec dword [ebp + 0x10]
jne 0x473790
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp ecx, dword [eax + 0xc]
jl 0x4736d5
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 4
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x473810
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push dword [edi]
push 1
push 4
push esi
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x473883
cmp byte [esi], 0x7e
jne 0x473883
cmp byte [esi + 1], 0x42
jne 0x473883
cmp byte [esi + 2], 0x4b
jne 0x473883
cmp byte [esi + 3], 0
jne 0x473883
push edi
call fcn.0045d210
add esp, 4
mov word [esi + 4], ax
cmp word [ebp + 0x10], 4
jge 0x473865
push edi
call fcn.0045d030
add esp, 4
mov dword [esi + 8], eax
push edi
call fcn.0045d030
mov dword [esi + 0xc], eax
push dword [edi]
call fcn.00595867
add esp, 8
neg eax
sbb eax, eax
and eax, 4
pop edi
pop esi
pop ebp
ret
pop edi
mov eax, 4
pop esi
pop ebp
ret

Function at 0x4739b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
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 edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push dword [edi]
push 1
push 0x20
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x4739f9
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 - 0x24]
mov edx, str.Paint_Shop_Pro_Image_File_n
mov esi, 0x16
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x473a84
add ecx, 4
add edx, 4
sub esi, 4
jae 0x473a07
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x473a84
push edi
call fcn.0045d210
push edi
movzx esi, ax
call fcn.0045d210
add esp, 8
movzx eax, ax
cmp si, 3
jl 0x473a59
test ax, ax
jne 0x473a59
mov eax, dword [ebp - 0x28]
mov word [eax], si
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
movdqu xmm0, xmmword [str.PSP_:_Bad_Version__]
pop esi
pop edi
movdqu xmmword [ebx + 0x44], xmm0
mov eax, dword [0x5d7d14]
mov dword [ebx + 0x54], eax
mov eax, 9
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 0x474470
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x208], eax
test esi, esi
je 0x4744d8
push edi
lea esp, [esp]
push dword [ebx]
mov edi, 0x200
lea eax, [ebp - 0x204]
cmp esi, edi
push 1
cmovl edi, esi
push edi
push eax
call fcn.00595b79
push dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push 1
push edi
push eax
call fcn.0059628c
add esp, 0x20
sub esi, edi
jne 0x4744a0
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret

Function at 0x474d00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0045d030
mov edi, dword [ebp + 0xc]
add esp, 4
mov dword [edi], eax
cmp eax, 0x68464b2e
je 0x474d26
pop edi
mov eax, 2
pop esi
pop ebp
ret
push esi
call fcn.0045d210
mov ecx, 0x80
mov word [edi + 4], ax
add esp, 4
cmp ax, cx
jne 0x474d1d
push esi
call fcn.0045d210
push esi
mov word [edi + 6], ax
call fcn.0045d030
push esi
mov dword [edi + 8], eax
call fcn.0045d210
push esi
mov word [edi + 0xc], ax
call fcn.0045d210
push esi
mov word [edi + 0xe], ax
call fcn.0045d210
mov word [edi + 0x10], ax
push dword [esi]
call fcn.00597fff
mov byte [edi + 0x12], al
push dword [esi]
call fcn.00597fff
push esi
mov byte [edi + 0x13], al
call fcn.0045d210
push esi
mov word [edi + 0x14], ax
call fcn.0045d210
mov word [edi + 0x16], ax
push dword [esi]
call fcn.00597fff
mov byte [edi + 0x18], al
push dword [esi]
call fcn.00597fff
push esi
mov byte [edi + 0x19], al
call fcn.0045d210
mov word [edi + 0x1a], ax
lea eax, [edi + 0x1c]
push dword [esi]
push 1
push 0x14
push eax
call fcn.00595b79
add esp, 0x40
push esi
call fcn.0045d030
push esi
mov dword [edi + 0x30], eax
call fcn.0045d030
push esi
mov dword [edi + 0x34], eax
call fcn.0045d030
mov dword [edi + 0x38], eax
lea eax, [edi + 0x3c]
push dword [esi]
push 1
push 4
push eax
call fcn.00595b79
push esi
call fcn.0045d030
push esi
mov dword [edi + 0x40], eax
call fcn.0045d030
push esi
mov dword [edi + 0x44], eax
call fcn.0045d030
push esi
mov dword [edi + 0x48], eax
call fcn.0045d030
push esi
mov dword [edi + 0x4c], eax
call fcn.0045d030
push esi
mov dword [edi + 0x50], eax
call fcn.0045d030
push esi
mov dword [edi + 0x54], eax
call fcn.0045d030
push esi
mov dword [edi + 0x58], eax
call fcn.0045d030
mov dword [edi + 0x5c], eax
lea eax, [edi + 0x60]
push dword [esi]
push 1
push 0x20
push eax
call fcn.00595b79
add esp, 0x4c
push dword [esi]
call fcn.00595867
add esp, 4
neg eax
sbb eax, eax
and eax, 4
pop edi
pop esi
pop ebp
Function at 0x475bf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor eax, eax
cmp dword [edi + 0x230], 1
jne 0x475c70
cmp dword [edi + 0x238], eax
jne 0x475cda
xor esi, esi
cmp dword [edi + 0x20c], eax
jbe 0x475cda
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax]
push 1
push dword [edi + 0x208]
push dword [ebp + 0xc]
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x475c66
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.004585b0
movzx eax, ax
add esp, 0x10
test ax, ax
jne 0x475cda
inc esi
cmp esi, dword [edi + 0x20c]
jb 0x475c21
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 4
pop ebx
pop ebp
ret
cmp dword [edi + 0x238], eax
jne 0x475cda
xor ebx, ebx
lea ebx, [ebx]
test ax, ax
jne 0x475cda
xor esi, esi
cmp dword [edi + 0x20c], esi
jbe 0x475cd4
nop
mov eax, dword [ebp + 8]
push dword [eax]
push 1
push dword [edi + 0x208]
push dword [ebp + 0xc]
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x475ccf
push 1
push 0xffffffffffffffff
push ebx
push dword [ebp + 0x14]
call fcn.004585b0
movzx eax, ax
add esp, 0x10
test ax, ax
jne 0x475cd4
inc esi
cmp esi, dword [edi + 0x20c]
jb 0x475c90
jmp 0x475cd4
mov eax, 4
inc ebx
cmp ebx, 3
jl 0x475c80
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x475ce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x10]
xor eax, eax
cmp dword [edi + 0x238], eax
jne 0x475dc2
mov dword [ebp + 0x10], eax
cmp dword [edi + 0x20c], eax
jbe 0x475dc2
push ebx
mov ebx, dword [ebp + 0xc]
push esi
lea esp, [esp]
mov eax, dword [ebp + 8]
push dword [eax]
mov eax, dword [edi + 0x208]
push 1
add eax, eax
push eax
push ebx
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x475dbb
mov al, byte [edi + 4]
cmp al, 4
je 0x475d62
cmp al, 8
je 0x475d62
xor esi, esi
cmp dword [edi + 0x208], esi
jbe 0x475d8a
movzx eax, word [ebx + esi*2]
push eax
call fcn.0045c6e0
mov word [ebx + esi*2], ax
add esp, 4
inc esi
cmp esi, dword [edi + 0x208]
jb 0x475d46
jmp 0x475d8a
xor esi, esi
cmp dword [edi + 0x208], esi
jbe 0x475d8a
lea esp, [esp]
movzx eax, word [ebx + esi*2]
push eax
call fcn.0045c6f0
mov word [ebx + esi*2], ax
add esp, 4
inc esi
cmp esi, dword [edi + 0x208]
jb 0x475d70
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 0x14]
call fcn.004585b0
movzx eax, ax
add esp, 0x10
test ax, ax
jne 0x475dc0
mov esi, dword [ebp + 0x10]
inc esi
mov dword [ebp + 0x10], esi
cmp esi, dword [edi + 0x20c]
jb 0x475d10
pop esi
pop ebx
pop edi
pop ebp
ret
mov eax, 4
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x475dd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
xor ecx, ecx
cmp dword [eax + 0x238], ecx
jne 0x475e5c
push ebx
xor ebx, ebx
cmp dword [eax + 0x20c], ecx
jbe 0x475e56
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
push 1
push esi
push edi
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x475e4c
xor eax, eax
test esi, esi
jle 0x475e22
mov edi, edi
movzx ecx, byte [eax + edi]
mov cl, byte [ecx + 0x5d1f28]
mov byte [eax + edi], cl
inc eax
cmp eax, esi
jl 0x475e10
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 0x18]
call fcn.004585b0
movzx eax, ax
add esp, 0x10
test ax, ax
jne 0x475e47
mov ecx, dword [ebp + 0x14]
inc ebx
cmp ebx, dword [ecx + 0x20c]
jb 0x475df3
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 4
pop ebx
pop ebp
ret
mov ax, cx
pop ebx
pop ebp
ret
mov ax, cx
pop ebp
ret
Function at 0x475e70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movss xmm0, dword [0x5d7f80]
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
movss dword [ebp - 4], xmm0
movss xmm0, dword [0x5d7f84]
push esi
push edi
mov dword [ebp - 0xc], eax
movss dword [ebp - 8], xmm0
cmp dword [ebx + 0x238], eax
jne 0x47605e
mov esi, dword [ebx + 0x208]
mov eax, esi
imul eax, dword [ebx + 0x20c]
shl eax, 2
push eax
call fcn.00593e38
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x475ed5
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x20c], 0
mov dword [ebp + 0x10], 0
jbe 0x475fb3
lea esp, [esp]
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [esi*4]
push 1
push eax
push edi
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x475fac
mov al, byte [ebx + 4]
cmp al, 4
je 0x475f3e
cmp al, 8
je 0x475f3e
xor esi, esi
cmp dword [ebx + 0x208], esi
jbe 0x475f5f
push dword [edi + esi*4]
call fcn.0045c6d0
mov dword [edi + esi*4], eax
add esp, 4
inc esi
cmp esi, dword [ebx + 0x208]
jb 0x475f25
jmp 0x475f5f
xor esi, esi
cmp dword [ebx + 0x208], esi
jbe 0x475f5f
push dword [edi + esi*4]
call fcn.0045c6c0
mov dword [edi + esi*4], eax
add esp, 4
inc esi
cmp esi, dword [ebx + 0x208]
jb 0x475f48
mov esi, dword [ebx + 0x208]
xor eax, eax
test esi, esi
je 0x475f94
jmp 0x475f70
movss xmm0, dword [edi + eax*4]
comiss xmm0, dword [ebp - 8]
jbe 0x475f80
movss dword [ebp - 8], xmm0
movss xmm1, dword [ebp - 4]
comiss xmm1, xmm0
jbe 0x475f8f
movss dword [ebp - 4], xmm0
inc eax
cmp eax, esi
jb 0x475f70
mov eax, dword [ebp + 0x10]
lea edi, [edi + esi*4]
inc eax
mov dword [ebp + 0x10], eax
cmp eax, dword [ebx + 0x20c]
jb 0x475ef0
jmp 0x475fb3
mov dword [ebp - 0xc], 4
mov eax, dword [ebp - 0x10]
xor edi, edi
mov esi, eax
cmp dword [ebx + 0x20c], edi
jbe 0x476052
movsd xmm3, qword [0x5d4e80]
mov edi, edi
xor ecx, ecx
cmp dword [ebx + 0x208], ecx
jbe 0x476022
movss xmm2, dword [ebp - 8]
movss xmm1, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
subss xmm2, xmm1
jmp 0x475ff0
movss xmm0, dword [esi]
add esi, 4
subss xmm0, xmm1
cvtps2pd xmm1, xmm0
xorps xmm0, xmm0
mulsd xmm1, xmm3
cvtss2sd xmm0, xmm2
divsd xmm1, xmm0
cvttsd2si eax, xmm1
movss xmm1, dword [ebp - 4]
mov byte [ecx + edx], al
inc ecx
cmp ecx, dword [ebx + 0x208]
jb 0x475ff0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 0x14]
call fcn.004585b0
movzx eax, ax
add esp, 0x10
mov dword [ebp - 0xc], eax
test ax, ax
jne 0x47604f
movsd xmm3, qword [0x5d4e80]
inc edi
cmp edi, dword [ebx + 0x20c]
jb 0x475fd0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00592c4b
mov eax, dword [ebp - 0xc]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret