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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xa8]
push edi
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0xb8], edi
call fcn.00458dd0
mov eax, dword [str.Vista]
mov dword [ebp - 0x84], eax
mov ax, word [0x5d3ca8]
mov word [ebp - 0x80], ax
mov eax, 0x10
mov word [ebp - 0xa4], ax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xa8]
push eax
push edi
mov dword [ebp - 0x9c], 0x80001
mov dword [ebp - 0x8c], 0x80100
call fcn.00457000
movzx eax, ax
add esp, 0xc
mov dword [ebp - 0xb0], eax
test ax, ax
jne 0x4a0d98
mov edi, dword [ebp - 0xb4]
push ebx
push esi
mov esi, dword [ebp - 0x88]
mov ebx, 0x100
movzx eax, byte [esi]
lea esi, [esi + 3]
push dword [edi]
mov byte [ebp - 0xac], al
movzx eax, byte [esi - 2]
mov byte [ebp - 0xab], al
movzx eax, byte [esi - 1]
push 1
mov byte [ebp - 0xaa], al
lea eax, [ebp - 0xac]
push 3
push eax
mov byte [ebp - 0xa9], 0
call fcn.0059628c
add esp, 0x10
dec ebx
jne 0x4a0d05
mov edi, dword [ebp - 0xb8]
xor esi, esi
cmp dword [edi + 0x30], esi
jle 0x4a0d84
xor eax, eax
push 1
push eax
push edi
call fcn.00459620
mov eax, dword [ebp - 0xb4]
push dword [eax]
push 1
push dword [edi + 0x2c]
push dword [ebp - 0xa0]
call fcn.0059628c
add esp, 0x1c
test eax, eax
je 0x4a0da7
inc esi
movsx eax, si
cmp eax, dword [edi + 0x30]
jl 0x4a0d53
mov esi, dword [ebp - 0xb0]
push edi
call fcn.00454fa0
add esp, 4
mov ax, si
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov esi, 6
jmp 0x4a0d8a
Function at 0x4a1280
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0045d210
mov ebx, dword [ebp + 0xc]
mov ecx, 0x908
add esp, 4
mov word [ebx], ax
cmp ax, cx
je 0x4a12aa
pop esi
mov eax, 2
pop ebx
pop ebp
ret
push esi
call fcn.0045d210
mov ecx, 0xfe
mov word [ebx + 2], ax
add esp, 4
cmp ax, cx
jl 0x4a12a1
push edi
push esi
call fcn.0045d210
push esi
mov word [ebx + 4], ax
call fcn.0045d210
mov word [ebx + 6], ax
lea eax, [ebx + 8]
push dword [esi]
push 1
push 8
push eax
call fcn.00595b79
push dword [esi]
lea eax, [ebx + 0x10]
push 1
push 8
push eax
call fcn.00595b79
push dword [esi]
lea eax, [ebx + 0x18]
push 1
push 8
push eax
call fcn.00595b79
push dword [esi]
lea eax, [ebx + 0x20]
push 1
push 8
push eax
call fcn.00595b79
add esp, 0x48
lea eax, [ebx + 0x28]
push dword [esi]
push 1
push 8
push eax
call fcn.00595b79
push dword [esi]
lea eax, [ebx + 0x30]
push 1
push 8
push eax
call fcn.00595b79
lea edi, [ebx + 0x38]
add esp, 0x20
mov ebx, 0x10
mov edi, edi
push dword [esi]
push 1
push 8
push edi
call fcn.00595b79
add esp, 0x10
add edi, 8
dec ebx
jne 0x4a1340
push esi
call fcn.0045d030
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebx + 0xb8], eax
call fcn.0045d030
push esi
mov dword [ebx + 0xbc], eax
call fcn.0045d210
mov word [ebx + 0xc0], ax
push dword [esi]
call fcn.00597fff
mov byte [ebx + 0xc2], al
push dword [esi]
call fcn.00597fff
mov byte [ebx + 0xc3], al
lea eax, [ebx + 0xc8]
push dword [esi]
push 1
push 8
push eax
call fcn.00595b79
push dword [esi]
lea eax, [ebx + 0xd0]
push 1
push 8
push eax
call fcn.00595b79
push esi
call fcn.0045d210
mov word [ebx + 0xd8], ax
lea eax, [ebx + 0xda]
push dword [esi]
push 1
push 0x42
push eax
call fcn.00595b79
add esp, 0x48
lea eax, [ebx + 0x11c]
push dword [esi]
push 1
push 0x42
push eax
call fcn.00595b79
push dword [esi]
lea eax, [ebx + 0x15e]
push 1
push 0x42
push eax
call fcn.00595b79
push dword [esi]
lea eax, [ebx + 0x1a0]
push 1
push 0x50
push eax
call fcn.00595b79
push dword [esi]
lea eax, [ebx + 0x1f0]
push 1
push 8
push eax
call fcn.00595b79
add esp, 0x40
lea eax, [ebx + 0x1f8]
push dword [esi]
push 1
push 8
push eax
call fcn.00595b79
push dword [esi]
lea eax, [ebx + 0x200]
push 1
push 3
push eax
call fcn.00595b79
push dword [esi]
call fcn.00597fff
mov byte [ebx + 0x203], al
push dword [esi]
call fcn.00595867
add esp, 0x28
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 4
pop ebx
pop ebp
ret
Function at 0x4a1470
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push dword [edi]
call fcn.00597fff
mov esi, dword [ebp + 0xc]
mov byte [esi], al
push dword [edi]
call fcn.00597fff
mov byte [esi + 1], al
push dword [edi]
call fcn.00597fff
mov byte [esi + 2], al
push dword [edi]
call fcn.00597fff
mov byte [esi + 3], al
push dword [edi]
call fcn.00597fff
mov byte [esi + 4], al
push dword [edi]
call fcn.00597fff
push edi
mov byte [esi + 5], al
call fcn.0045d210
mov word [esi + 6], ax
lea eax, [esi + 8]
push dword [edi]
push 1
push 8
push eax
call fcn.00595b79
push edi
call fcn.0045d030
push edi
mov dword [esi + 0x10], eax
call fcn.0045d210
push edi
mov word [esi + 0x14], ax
call fcn.0045d210
push edi
mov word [esi + 0x16], ax
call fcn.0045d030
push edi
mov dword [esi + 0x18], eax
call fcn.0045d030
add esp, 0x40
mov dword [esi + 0x1c], eax
push edi
call fcn.0045d030
push 1
mov dword [esi + 0x20], eax
push 0x1dc
push dword [edi]
call fcn.00595cb4
push dword [edi]
call fcn.00595867
add esp, 0x14
neg eax
sbb eax, eax
and eax, 4
pop edi
pop esi
pop ebp
ret

Function at 0x4a15a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x1c]
push edi
push ebx
push 0
push esi
call fcn.00595760
xor eax, eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], eax
add esp, 0xc
mov eax, 0x55555556
imul ebx
mov edi, edx
shr edi, 0x1f
add edi, edx
mov dword [ebp - 0x10], edi
test edi, edi
jle 0x4a1665
mov ebx, dword [ebp + 0x18]
nop
mov al, byte [ebx + 2]
mov cl, byte [ebx + 1]
mov dl, byte [ebx]
add ebx, 3
movzx esi, al
shl esi, 8
movzx eax, cl
xor ecx, ecx
or esi, eax
mov dword [ebp + 0x18], ebx
shl esi, 8
mov ebx, 1
movzx eax, dl
or esi, eax
xor edx, edx
mov dword [ebp - 0xc], edx
lea ecx, [ecx]
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
mov edx, ebx
add edi, dword [ebp - 8]
and edx, esi
shr edx, cl
add ebx, ebx
inc ecx
mov al, byte [edi]
add al, al
or dl, al
mov byte [edi], dl
mov edx, dword [ebp - 0xc]
add edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
cmp ecx, 0x18
jl 0x4a1610
mov edi, dword [ebp - 4]
mov ebx, dword [ebp + 0x18]
inc edi
mov dword [ebp - 4], edi
cmp edi, 8
jne 0x4a165a
xor eax, eax
inc dword [ebp - 8]
mov dword [ebp - 4], eax
dec dword [ebp - 0x10]
jne 0x4a15e0
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x1c]
cmp word [ebp + 0x14], 0
je 0x4a1684
lea eax, [ebp + 0x14]
push eax
push ebx
push esi
push dword [ebp + 8]
call fcn.0051d8d0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push dword [eax]
push ebx
push 1
push esi
call fcn.0059628c
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a2350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov bx, word [ebp + 0x10]
xor eax, eax
push esi
xor ecx, ecx
xor esi, esi
cmp ax, bx
jge 0x4a23a9
push edi
mov edi, dword [ebp + 0x14]
push 1
movsx eax, si
push eax
push dword [ebp + 0xc]
call fcn.00459620
mov eax, dword [ebp + 8]
push dword [eax]
movsx eax, word [edi + 0xc]
push eax
push dword [edi + 0x18]
push dword [edi + 8]
call fcn.0059628c
movsx ecx, word [edi + 0xc]
add esp, 0x1c
cmp eax, ecx
jne 0x4a23a3
inc esi
cmp si, bx
jl 0x4a2368
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov eax, 6
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4a56f0
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
jne 0x4a5717
pop edi
mov eax, 4
pop esi
pop ebp
ret
push 4
push str.TBMP
push esi
call fcn.00596360
add esp, 0xc
test eax, eax
je 0x4a574d
push 4
push str.PMAP
push esi
call fcn.00596360
add esp, 0xc
test eax, eax
je 0x4a574d
push edi
call fcn.0045d070
add esp, 4
mov dword [esi + 4], eax
jmp 0x4a5754
mov dword [esi + 4], 0
push dword [edi]
call fcn.005960c7
mov ecx, dword [esi + 4]
add ecx, 3
add eax, ecx
and eax, 0xfffffffc
mov dword [esi + 8], 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

Function at 0x4a5a90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jle 0x4a5b12
push edi
mov edi, dword [ebp + 0xc]
push esi
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00597fff
mov cl, al
add esp, 4
and cl, 0x7f
inc cl
movzx esi, cl
cmp esi, ebx
jg 0x4a5b0b
test al, al
mov eax, dword [ebp + 8]
push dword [eax]
jns 0x4a5af1
call fcn.00597fff
add esp, 4
test esi, esi
jle 0x4a5b02
movzx eax, al
mov ecx, esi
mov ebx, ecx
imul eax, eax, 0x1010101
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
mov ebx, dword [ebp + 0x10]
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 0xc]
jmp 0x4a5afd
push 1
push esi
push edi
call fcn.00595b79
add esp, 0x10
add edi, esi
mov dword [ebp + 0xc], edi
sub ebx, esi
mov dword [ebp + 0x10], ebx
test ebx, ebx
jg 0x4a5aa0
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4a5f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
movzx eax, word [0x5db9f0]
movdqu xmm0, xmmword [str.Created_by_Xnview]
push esi
mov esi, dword [ebp + 8]
mov word [ebp - 0x54], ax
movzx eax, word [ecx + 0x2c]
mov word [ebp - 0x10], ax
push dword [esi]
movzx eax, word [ecx + 0x30]
push 4
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x6c]
push 1
push eax
mov dword [ebp - 0x6c], 0x34f68053
mov dword [ebp - 0x68], 0x40200000
movdqu xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x14], 0x54434950
mov dword [ebp - 0xc], 0x3f800000
mov dword [ebp - 8], 3
call fcn.0059628c
movss xmm0, dword [ebp - 0x68]
add esp, 8
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push esi
call fcn.0045d490
add esp, 0xc
test ax, ax
je 0x4a5fc0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push dword [esi]
lea eax, [ebp - 0x64]
push 0x50
push 1
push eax
call fcn.0059628c
push dword [esi]
lea eax, [ebp - 0x14]
push 4
push 1
push eax
call fcn.0059628c
push esi
push dword [ebp - 0x10]
call fcn.0045d590
push esi
push dword [ebp - 0xe]
call fcn.0045d590
movss xmm0, dword [ebp - 0xc]
add esp, 0x28
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push esi
call fcn.0045d490
add esp, 0xc
test ax, ax
jne 0x4a5faf
push esi
push dword [ebp - 8]
call fcn.0045d590
push dword [esi]
lea eax, [ebp - 6]
push 2
push 1
push eax
call fcn.0059628c
xor ecx, ecx
add esp, 0x18
cmp eax, 2
sete cl
mov ax, cx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005920c1
mov esp, ebp
pop ebp
ret

Function at 0x4a6050
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp word [ebp + 0x10], 0
lea eax, [ebp - 4]
push ebx
mov ebx, dword [ebp + 0xc]
setne byte [ebp - 4]
push edi
mov edi, dword [ebp + 8]
neg bx
mov byte [ebp - 3], 8
sbb bl, bl
mov byte [ebp - 1], 0xe0
and bl, 2
push dword [edi]
mov byte [ebp - 2], bl
push 1
push 4
push eax
call fcn.0059628c
add esp, 0x10
cmp eax, 1
je 0x4a6097
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0x10], 0
je 0x4a60c2
push dword [edi]
lea eax, [ebp - 4]
mov word [ebp - 4], 0x800
push 1
push 4
push eax
mov byte [ebp - 2], bl
mov byte [ebp - 1], 0x10
call fcn.0059628c
add esp, 0x10
cmp eax, 1
jne 0x4a608f
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a7410
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
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
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push dword [esi]
push 1
push 0x10
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x4a745e
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
push 8
lea eax, [ebp - 0x14]
push str.MICROTEK
push eax
call fcn.00596360
add esp, 0xc
test eax, eax
je 0x4a748b
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push 5
push esi
call fcn.0045d3f0
push dword [esi]
lea eax, [ebp - 0x14]
push 1
push 3
push eax
call fcn.00595b79
add esp, 0x18
test eax, eax
je 0x4a7448
lea eax, [ebp - 0x14]
mov byte [ebp - 0x11], 0
push eax
call fcn.00593e1b
mov dword [edi], eax
push dword [esi]
call fcn.00597fff
add esp, 8
cmp al, 1
jne 0x4a7475
push esi
call fcn.0045d210
mov ecx, dword [ebp - 0x18]
movzx eax, ax
push esi
mov dword [ecx], eax
call fcn.0045d210
movzx eax, ax
mov dword [ebx], eax
push dword [esi]
call fcn.005960c7
mov ecx, 0x100
sub ecx, eax
push ecx
push esi
call fcn.0045d3f0
push dword [esi]
call fcn.00595867
mov ecx, dword [ebp - 4]
add esp, 0x18
neg eax
sbb eax, eax
xor ecx, ebp
pop edi
pop esi
and eax, 4
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret

Function at 0x4a7680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
push 0x20
call fcn.0045d510
push esi
push 1
call fcn.0045d510
push esi
push dword [ebp + 0xc]
call fcn.0045d510
push esi
push dword [ebp + 0x10]
call fcn.0045d510
push esi
push dword [ebp + 0x14]
call fcn.0045d510
push esi
push 0x47504154
call fcn.0045d510
push dword [esi]
push 1
push 8
push str.Pattern
call fcn.0059628c
add esp, 0x40
mov eax, 1
pop esi
pop ebp
ret

Function at 0x4a8010
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x10]
xor eax, eax
test edi, edi
jle 0x4a8074
push esi
mov esi, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call fcn.0045d210
movzx ebx, ax
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp + 0x10]
push 1
push 2
push eax
call fcn.00595b79
add esp, 0x14
test eax, eax
je 0x4a806d
mov edx, ebx
test edx, edx
jle 0x4a805d
mov ax, word [ebp + 0x10]
mov ecx, edx
mov byte [esi], al
mov byte [esi + 1], ah
add esi, 2
dec ecx
jne 0x4a8052
neg edx
lea edi, [edi + edx*2]
test edi, edi
jg 0x4a8022
pop ebx
pop esi
xor eax, eax
pop edi
pop ebp
ret
pop ebx
mov eax, 4
pop esi
pop edi
pop ebp
ret
Function at 0x4a8990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ac
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x2a8]
push edi
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x2ac], ebx
call fcn.00458dd0
mov eax, dword [0x5dbb1c]
add esp, 4
movzx ecx, word [edi + 0x24]
mov edx, 0x10000
movdqu xmm0, xmmword [str.Palm_Pilot_Bitmap_file]
mov dword [ebp - 0x274], eax
mov ax, word [0x5dbb20]
mov word [ebp - 0x270], ax
mov al, byte [0x5dbb22]
mov byte [ebp - 0x26e], al
xor eax, eax
cmp cx, 2
movdqu xmmword [ebp - 0x284], xmm0
cmove eax, edx
mov edx, 1
mov dword [ebp - 0x2a8], eax
jne 0x4a8a25
xor eax, eax
cmp word [edi + 0x34], 4
setg al
lea eax, [eax*2 + 2]
jmp 0x4a8a28
mov ax, dx
mov ecx, dword [ebx + 0x84]
mov word [ebp - 0x29a], ax
cwde
imul eax, dword [edi + 0x2c]
mov word [ebp - 0x29c], dx
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x290], eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
test al, al
jne 0x4a8a53
lea eax, [ebp - 0x204]
push eax
push ebx
call fcn.004a8b80
movzx eax, ax
add esp, 8
test ax, ax
jne 0x4a8b66
push ebx
call fcn.004a8dd0
movzx eax, ax
add esp, 4
test ax, ax
jne 0x4a8b66
lea eax, [ebp - 0x204]
push eax
push 0
push dword [ebp - 0x29a]
push dword [edi + 0x30]
push dword [edi + 0x2c]
push ebx
call fcn.004a8ca0
movzx eax, ax
add esp, 0x18
test ax, ax
jne 0x4a8b66
push esi
lea eax, [ebp - 0x2a8]
push eax
push edi
call fcn.00457000
movzx esi, ax
add esp, 8
test si, si
jne 0x4a8b62
xor ebx, ebx
cmp word [edi + 0x24], 2
jne 0x4a8b1c
cmp dword [edi + 0x30], ebx
jle 0x4a8b59
push 1
push ebx
push edi
call fcn.00459620
mov eax, dword [ebp - 0x2ac]
push dword [eax]
push 1
push dword [ebp - 0x290]
push dword [ebp - 0x2a0]
call fcn.0059628c
add esp, 0x1c
cmp eax, 1
mov eax, 4
cmovne esi, eax
inc ebx
cmp ebx, dword [edi + 0x30]
jl 0x4a8ae2
jmp 0x4a8b59
cmp dword [edi + 0x30], ebx
jle 0x4a8b59
push 1
push ebx
push edi
call fcn.00459620
mov eax, dword [ebp - 0x2ac]
push dword [eax]
push 1
push dword [ebp - 0x290]
push dword [ebp - 0x2a0]
call fcn.0059628c
add esp, 0x1c
cmp eax, 1
mov eax, 4
cmovne esi, eax
inc ebx
cmp ebx, dword [edi + 0x30]
jl 0x4a8b21
push edi
call fcn.00454fa0
add esp, 4
mov ax, si
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4a8b80
Capabilities:
Write 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 esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push 0x1f
push str.test.pdb
push eax
call fcn.00593bc0
push dword [esi]
lea eax, [ebp - 0x24]
mov byte [ebp - 5], 0
push 1
push 0x20
push eax
call fcn.0059628c
add esp, 0x1c
cmp eax, 1
je 0x4a8bd3
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push esi
push 0
call fcn.0045d590
push esi
push 0
call fcn.0045d590
add esp, 0x10
push esi
push 0
call fcn.00594354
add esp, 4
add eax, 0x7c25b080
push eax
call fcn.0045d510
add esp, 8
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 dword [esi]
push 1
push 4
push str.vIMG
call fcn.0059628c
add esp, 0x38
cmp eax, 1
jne 0x4a8bbf
push dword [esi]
push eax
push 4
push str.View
call fcn.0059628c
add esp, 0x10
cmp eax, 1
jne 0x4a8bbf
push esi
push 0
call fcn.0045d510
push esi
push 0
call fcn.0045d510
push esi
push 1
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 0x4a8ca0
Capabilities:
Write 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 esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push 0x1f
push str.test.pdb
push eax
call fcn.00593bc0
push dword [esi]
lea eax, [ebp - 0x24]
mov byte [ebp - 5], 0
push 1
push 0x20
push eax
call fcn.0059628c
add esp, 0x1c
cmp eax, 1
je 0x4a8cf3
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push edi
mov di, word [ebp + 0x14]
xor eax, eax
push dword [esi]
cmp di, 4
jne 0x4a8d8d
cmp word [ebp + 0x18], ax
setne al
add eax, 8
push eax
call fcn.005958b3
add esp, 8
push dword [esi]
push 2
call fcn.005958b3
add esp, 8
push esi
push 0
call fcn.0045d510
push esi
push 0
call fcn.0045d510
push esi
push 0
call fcn.0045d590
push esi
push 0
call fcn.0045d590
push esi
push 0
call fcn.0045d510
push esi
push 0xffff
call fcn.0045d590
push esi
push 0xffff
call fcn.0045d590
push esi
push dword [ebp + 0xc]
call fcn.0045d590
add esp, 0x40
push esi
push dword [ebp + 0x10]
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
cmp word [ebp + 0x18], ax
setne al
push eax
call fcn.005958b3
add esp, 8
cmp di, 1
jne 0x4a8daf
push dword [esi]
push 0xff
jmp 0x4a8d1d
cmp di, 2
jne 0x4a8d19
push dword [esi]
push 0
jmp 0x4a8d1d
Function at 0x4a9080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0045d210
mov edi, dword [ebp + 0xc]
mov ecx, 0xdcdc
add esp, 4
mov word [edi], ax
cmp ax, cx
je 0x4a90aa
pop edi
mov eax, 2
pop esi
pop ebp
ret
push esi
call fcn.0045d210
push esi
mov word [edi + 2], ax
call fcn.0045d210
push esi
mov word [edi + 4], ax
call fcn.0045d210
push esi
mov word [edi + 6], ax
call fcn.0045d210
push esi
mov word [edi + 8], ax
call fcn.0045d210
mov word [edi + 0xa], ax
push dword [esi]
call fcn.00597fff
mov byte [edi + 0xc], al
push dword [esi]
call fcn.00597fff
push esi
mov byte [edi + 0xd], al
call fcn.0045d210
push esi
mov word [edi + 0xe], ax
call fcn.0045d210
push esi
mov word [edi + 0x10], ax
call fcn.0045d210
push esi
mov word [edi + 0x12], ax
call fcn.0045d210
push esi
mov word [edi + 0x14], ax
call fcn.0045d210
push esi
mov word [edi + 0x14], ax
call fcn.0045d210
push esi
mov word [edi + 0x18], ax
call fcn.0045d210
push esi
mov word [edi + 0x1a], ax
call fcn.0045d030
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x20]
push dword [esi]
push 1
push 0x1e0
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
ret
Function at 0x4a99c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push esi
push dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
push str.HPHP_d_E
push eax
mov dword [ebp - 0x14], ebx
call fcn.005933b1
push dword [ebx]
lea eax, [ebp - 0x10]
push 1
push 8
push eax
call fcn.0059628c
add esp, 0x1c
cmp eax, 1
je 0x4a9a18
pop esi
mov eax, 6
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
cdq
mov ecx, edi
and edx, 3
add eax, edx
sar eax, 2
mov dword [esi], eax
and ecx, 0x80000003
jns 0x4a9a38
dec ecx
or ecx, 0xfffffffc
inc ecx
je 0x4a9a3d
inc eax
mov dword [esi], eax
mov eax, dword [esi]
test al, 1
je 0x4a9a46
inc eax
mov dword [esi], eax
mov esi, dword [esi]
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp + 0x10]
imul esi, ebx
push dword [eax]
push 0x1e
add esi, 0xf
call fcn.005958b3
mov eax, dword [ebp - 0x14]
push dword [eax]
push 0x2b
call fcn.005958b3
mov eax, dword [ebp - 0x14]
push dword [eax]
mov eax, esi
and eax, 0xf
shl eax, 4
push eax
call fcn.005958b3
mov eax, dword [ebp - 0x14]
push dword [eax]
mov eax, esi
sar eax, 4
and eax, 0xff
push eax
call fcn.005958b3
mov eax, dword [ebp - 0x14]
sar esi, 0xc
and esi, 0xff
push dword [eax]
push esi
call fcn.005958b3
mov esi, dword [ebp - 0x14]
movzx eax, bl
push dword [esi]
push eax
call fcn.005958b3
push dword [esi]
mov eax, ebx
sar eax, 8
and eax, 0xff
push eax
call fcn.005958b3
push dword [esi]
mov eax, edi
sar ebx, 0xc
shl eax, 4
or eax, ebx
and eax, 0xf0
push eax
call fcn.005958b3
add esp, 0x40
mov eax, edi
sar eax, 4
and eax, 0xff
push dword [esi]
push eax
call fcn.005958b3
push dword [esi]
sar edi, 0xc
and edi, 0xff
push edi
call fcn.005958b3
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret