joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499cc0
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
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x499d11
mov edx, ecx
lea ebx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x499ce8
sub edx, ebx
cmp edx, 0xff
jae 0x499d11
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x499d00
push dword [edi]
sub ecx, edx
lea eax, [ecx + 1]
push eax
jmp 0x499d15
push dword [edi]
push 0
call fcn.005958b3
add esp, 8
push dword [edi]
push 0
call fcn.005958b3
add esp, 8
cmp word [esi + 0xac], 0
push dword [edi]
je 0x499d39
push 0xa
jmp 0x499d3b
push 2
call fcn.005958b3
add esp, 8
push edi
push 0
call fcn.0045d560
push edi
push 0
call fcn.0045d560
push dword [edi]
push 0
call fcn.005958b3
push edi
push 0
call fcn.0045d560
push edi
push 0
call fcn.0045d560
movzx eax, word [esi + 0x2c]
push edi
push eax
call fcn.0045d560
movzx eax, word [esi + 0x30]
push edi
push eax
call fcn.0045d560
push dword [edi]
push 0x18
call fcn.005958b3
add esp, 0x40
xor ecx, ecx
cmp byte [esi + 0xbf], cl
mov eax, 0x20
cmovne eax, ecx
push dword [edi]
push eax
call fcn.005958b3
mov edx, dword [esi + 0x4c]
add esp, 8
test edx, edx
je 0x499dea
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x499db5
sub ecx, ebx
cmp ecx, 0xff
jae 0x499dea
mov ecx, edx
lea ebx, [ecx + 1]
jmp 0x499dd0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x499dd0
push dword [edi]
sub ecx, ebx
push 1
lea eax, [ecx + 1]
push eax
push edx
call fcn.0059628c
add esp, 0x10
lea eax, [ebp - 0xa8]
push eax
call fcn.00458dd0
add esp, 4
lea edx, [ebp - 0x84]
cmp word [esi + 0xac], 0
mov ecx, str.Targa_RLE
mov eax, str.Targa
cmove ecx, eax
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x499e16
xor eax, eax
mov dword [ebp - 0xa8], 8
cmp byte [esi + 0xbf], al
mov ecx, 0x10
mov dword [ebp - 0x9c], 0x180001
cmovne eax, ecx
mov word [ebp - 0xa4], ax
mov eax, dword [esi + 0x2c]
lea eax, [eax + eax*2]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xa8]
push eax
push esi
call fcn.00457000
movzx eax, ax
add esp, 8
mov dword [ebp - 0xac], eax
test ax, ax
jne 0x499eef
xor ebx, ebx
cmp dword [esi + 0x30], ebx
jle 0x499edd
xor eax, eax
push 1
push eax
push esi
call fcn.00459620
add esp, 0xc
cmp word [esi + 0xac], 0
je 0x499eba
mov eax, dword [esi + 0x2c]
push 3
lea eax, [eax + eax*2]
push eax
push dword [ebp - 0xa0]
push edi
call fcn.004997f0
movzx eax, ax
add esp, 0x10
mov dword [ebp - 0xac], eax
jmp 0x499ed4
push dword [edi]
push 3
push dword [esi + 0x2c]
push dword [ebp - 0xa0]
call fcn.0059628c
add esp, 0x10
cmp eax, 3
jne 0x499f00
inc ebx
movsx eax, bx
cmp eax, dword [esi + 0x30]
jl 0x499e81
mov edi, dword [ebp - 0xac]
push esi
call fcn.00454fa0
add esp, 4
mov ax, di
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov edi, 6
jmp 0x499ee3
Function at 0x499f10
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
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x499f61
mov edx, ecx
lea ebx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x499f38
sub edx, ebx
cmp edx, 0xff
jae 0x499f61
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x499f50
push dword [edi]
sub ecx, edx
lea eax, [ecx + 1]
push eax
jmp 0x499f65
push dword [edi]
push 0
call fcn.005958b3
add esp, 8
push dword [edi]
push 0
call fcn.005958b3
add esp, 8
cmp word [esi + 0xac], 0
push dword [edi]
je 0x499f89
push 0xa
jmp 0x499f8b
push 2
call fcn.005958b3
add esp, 8
push edi
push 0
call fcn.0045d560
push edi
push 0
call fcn.0045d560
push dword [edi]
push 0
call fcn.005958b3
push edi
push 0
call fcn.0045d560
push edi
push 0
call fcn.0045d560
movzx eax, word [esi + 0x2c]
push edi
push eax
call fcn.0045d560
movzx eax, word [esi + 0x30]
push edi
push eax
call fcn.0045d560
push dword [edi]
push 0x20
call fcn.005958b3
add esp, 0x40
xor ecx, ecx
cmp byte [esi + 0xbf], cl
mov ebx, 0x20
mov eax, ebx
cmovne eax, ecx
push dword [edi]
push eax
call fcn.005958b3
mov edx, dword [esi + 0x4c]
add esp, 8
test edx, edx
je 0x49a03a
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49a007
sub ecx, ebx
cmp ecx, 0xff
jae 0x49a03a
mov ecx, edx
lea ebx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49a020
push dword [edi]
sub ecx, ebx
push 1
lea eax, [ecx + 1]
push eax
push edx
call fcn.0059628c
add esp, 0x10
lea eax, [ebp - 0xa8]
push eax
call fcn.00458dd0
add esp, 4
lea edx, [ebp - 0x84]
cmp word [esi + 0xac], 0
mov ecx, str.Targa_RLE
mov eax, str.Targa
cmove ecx, eax
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x49a066
mov eax, dword [esi + 0x2c]
mov ecx, 0x10
shl eax, 2
mov dword [ebp - 0x90], eax
xor eax, eax
cmp byte [esi + 0xbf], al
mov dword [ebp - 0xa8], 0x20
cmovne eax, ecx
mov dword [ebp - 0x9c], 0x200001
mov word [ebp - 0xa4], ax
lea eax, [ebp - 0xa8]
push eax
push esi
call fcn.00457000
movzx eax, ax
add esp, 8
mov dword [ebp - 0xac], eax
test ax, ax
jne 0x49a13f
xor ebx, ebx
cmp dword [esi + 0x30], ebx
jle 0x49a12d
xor eax, eax
push 1
push eax
push esi
call fcn.00459620
add esp, 0xc
cmp word [esi + 0xac], 0
je 0x49a10a
mov eax, dword [esi + 0x2c]
push 4
shl eax, 2
push eax
push dword [ebp - 0xa0]
push edi
call fcn.004997f0
movzx eax, ax
add esp, 0x10
mov dword [ebp - 0xac], eax
jmp 0x49a124
push dword [edi]
push 4
push dword [esi + 0x2c]
push dword [ebp - 0xa0]
call fcn.0059628c
add esp, 0x10
cmp eax, 4
jne 0x49a150
inc ebx
movsx eax, bx
cmp eax, dword [esi + 0x30]
jl 0x49a0d1
mov edi, dword [ebp - 0xac]
push esi
call fcn.00454fa0
add esp, 4
mov ax, di
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
mov edi, 6
jmp 0x49a133
Function at 0x49a960
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 8
push esi
call fcn.00595b79
add esp, 0x10
cmp eax, 1
jne 0x49a9c8
cmp dword [esi], 0x4d494644
jne 0x49a9c8
cmp dword [esi + 4], 0x30304741
jne 0x49a9c8
push edi
call fcn.0045d210
push edi
mov word [esi + 8], ax
call fcn.0045d210
mov word [esi + 0xa], ax
lea eax, [esi + 0xc]
push dword [edi]
push 1
push 0x14
push eax
call fcn.00595b79
push dword [edi]
call fcn.00595867
add esp, 0x1c
neg eax
sbb eax, eax
and eax, 4
pop edi
pop esi
pop ebp
ret
pop edi
mov eax, 2
pop esi
pop ebp
ret

Function at 0x49b320
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push dword [eax]
push dword [ebp + 0xc]
push 1
push dword [ecx + 4]
call fcn.00595b79
add esp, 0x10
pop ebp
ret 8

Function at 0x49c430
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0045d070
mov edi, dword [ebp + 0xc]
add esp, 4
mov dword [edi], eax
cmp eax, 0x45594553
je 0x49c456
pop edi
mov eax, 2
pop esi
pop ebp
ret
push esi
call fcn.0045d240
add esp, 4
mov word [edi + 4], ax
cmp ax, 2
ja 0x49c44d
push dword [esi]
lea eax, [edi + 6]
push 1
push 8
push eax
call fcn.00595b79
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x49c9b0
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
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x24]
push 1
push 0xe
push eax
call fcn.00595b79
add esp, 0x10
cmp eax, 1
jne 0x49cacb
push 0xb
lea eax, [ebp - 0x24]
push str.NJPL1I00PDS
push eax
call fcn.00596360
add esp, 0xc
test eax, eax
jne 0x49ca0b
mov word [esi], ax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push 0xb
lea eax, [ebp - 0x22]
push str.NJPL1I00PDS
push eax
call fcn.00596360
add esp, 0xc
test eax, eax
jne 0x49ca3b
mov eax, 1
mov word [esi], ax
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push 6
lea eax, [ebp - 0x24]
push str.CCSD3Z
push eax
call fcn.00596360
add esp, 0xc
test eax, eax
jne 0x49ca6b
mov eax, 2
mov word [esi], ax
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push 6
lea eax, [ebp - 0x22]
push str.CCSD3Z
push eax
call fcn.00596360
add esp, 0xc
test eax, eax
jne 0x49ca9b
mov eax, 3
mov word [esi], ax
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push 0xe
lea eax, [ebp - 0x24]
push str.PDS_VERSION_ID
push eax
call fcn.00596360
add esp, 0xc
test eax, eax
jne 0x49cacb
mov eax, 4
mov word [esi], ax
xor eax, eax
pop esi
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
xor ecx, ebp
pop esi
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x49d020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0xc], 0x1000
jl 0x49d04f
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [esi + 0x10]
push 1
push 0x1000
push eax
call fcn.0059628c
add esp, 0x10
mov dword [esi + 0xc], 0
mov ecx, dword [esi + 0xc]
mov al, byte [ebp + 8]
mov byte [esi + ecx + 0x10], al
inc dword [esi + 0xc]
pop esi
pop ebp
ret

Function at 0x49d1e0
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
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0xa8]
push edi
mov edi, dword [ebp + 0x10]
push esi
push eax
push edi
call fcn.0049d370
movzx eax, ax
add esp, 0xc
test ax, ax
jne 0x49d2a0
cmp word [esi + 0x32], ax
jne 0x49d271
mov eax, dword [esi + 0x34]
push 2
push 0
push dword [eax]
call fcn.00595cb4
mov eax, dword [esi + 0x34]
push dword [eax]
call fcn.005960c7
mov dword [ebp - 0xac], eax
mov eax, dword [esi + 0x34]
push 0
push dword [esi + 0x28]
push dword [eax]
call fcn.00595cb4
mov eax, dword [esi + 0x34]
push dword [eax]
lea eax, [ebp - 0xac]
push 4
push 1
push eax
call fcn.0059628c
mov eax, dword [esi + 0x34]
push 2
push 0
push dword [eax]
call fcn.00595cb4
add esp, 0x38
xor eax, eax
mov word [esi + 0x32], ax
mov eax, dword [esi + 0x34]
push dword [eax]
call fcn.005960c7
push eax
push esi
lea eax, [ebp - 0xa8]
push eax
push edi
push dword [esi + 0x34]
call fcn.0049d850
movzx eax, ax
add esp, 0x18
test ax, ax
jne 0x49d2a0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x49e270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x4949
push dword [esi]
push 1
push 2
push eax
call fcn.0059628c
push dword [esi]
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x2a
push 1
push 2
push eax
call fcn.0059628c
push dword [esi]
lea eax, [ebp - 8]
mov dword [ebp - 8], 8
push 1
push 4
push eax
call fcn.0059628c
add esp, 0x30
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x49e2d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0x1c]
xor eax, eax
push edi
mov edi, dword [ebp + 0x18]
push esi
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 0
mov dword [edi], 0
mov byte [esi + 8], 0
mov word [esi + 6], ax
call fcn.0049cfe0
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x100
push ebx
call fcn.0049df30
mov ecx, dword [ebp + 0x14]
add esp, 0x14
mov eax, 0xffff
mov dword [ebp + 0x1c], eax
test cx, cx
je 0x49e3e9
mov edx, dword [ebp + 0xc]
lea ecx, [ecx]
mov ebx, dword [ebp + 0x10]
mov edi, edx
mov dword [ebp - 8], ebx
test ebx, ebx
mov ebx, dword [ebp + 8]
je 0x49e3d3
movzx eax, byte [edi]
push esi
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.0049d160
add esp, 0xc
test ax, ax
je 0x49e3b4
push esi
push dword [ebp + 0x18]
push dword [ebp - 4]
push ebx
call fcn.0049df30
movzx eax, byte [edi]
push esi
push eax
push dword [ebp - 4]
call fcn.0049cc40
movzx eax, byte [edi]
mov ecx, 0xffd
add esp, 0x1c
mov dword [ebp + 0x1c], eax
cmp word [esi + 4], cx
jne 0x49e3b7
push esi
push dword [ebp + 0x18]
push eax
push ebx
call fcn.0049df30
push esi
push dword [ebp + 0x18]
push 0x100
push ebx
call fcn.0049df30
push esi
call fcn.0049cfe0
mov eax, 0xffff
add esp, 0x24
mov dword [ebp + 0x1c], eax
jmp 0x49e3b7
mov eax, dword [ebp + 0x1c]
movzx ecx, ax
inc edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 8]
dec ecx
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x49e343
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
add edx, dword [ebp + 0x10]
dec ecx
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0xc], edx
test cx, cx
jne 0x49e330
mov edi, dword [ebp + 0x18]
push esi
push edi
push eax
push ebx
call fcn.0049df30
inc word [esi + 4]
push esi
push edi
push 0x101
push ebx
call fcn.0049df30
add esp, 0x20
cmp word [esi + 6], 0
je 0x49e41a
push esi
push edi
push 0
push ebx
call fcn.0049df30
add esp, 0x10
mov eax, dword [esi + 0xc]
test eax, eax
je 0x49e432
push dword [ebx]
add esi, 0x10
push 1
push eax
push esi
call fcn.0059628c
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49f8e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
movzx eax, word [edi]
push eax
call fcn.0045d590
movzx eax, word [edi + 2]
push esi
push eax
call fcn.0045d590
movzx eax, word [edi + 4]
push esi
push eax
call fcn.0045d590
movzx eax, word [edi + 6]
push esi
push eax
call fcn.0045d590
movzx eax, word [edi + 8]
push esi
push eax
call fcn.0045d590
movzx eax, word [edi + 0xa]
push esi
push eax
call fcn.0045d590
push esi
push dword [edi + 0xc]
call fcn.0045d510
push esi
push dword [edi + 0x10]
call fcn.0045d510
add esp, 0x40
push esi
push dword [edi + 0x14]
call fcn.0045d510
push dword [esi]
lea eax, [edi + 0x18]
push 1
push 0x50
push eax
call fcn.0059628c
add esp, 0x18
cmp eax, 1
je 0x49f96a
pop edi
mov eax, 6
pop esi
pop ebp
push esi
push dword [edi + 0x68]
call fcn.0045d510
push esi
push 0
call fcn.0045d510
movzx eax, word [edi + 0x70]
push esi
push eax
call fcn.0045d590
movzx eax, word [edi + 0x72]
push esi
push eax
call fcn.0045d590
movzx eax, word [edi + 0x74]
push esi
push eax
call fcn.0045d590
movzx eax, word [edi + 0x76]
push esi
push eax
call fcn.0045d590
movzx eax, word [edi + 0x78]
push esi
push eax
call fcn.0045d590
movzx eax, word [edi + 0x7a]
push esi
push eax
call fcn.0045d590
add esp, 0x40
push esi
push 0
call fcn.0045d510
push esi
push 0
call fcn.0045d510
push esi
push 0
call fcn.0045d510
push esi
push dword [edi + 0x88]
call fcn.0045d510
push esi
push dword [edi + 0x8c]
call fcn.0045d510
push esi
push 0
call fcn.0045d510
push esi
push 0
call fcn.0045d510
push dword [esi]
lea eax, [edi + 0x98]
push 1
push 0x168
push eax
call fcn.0059628c
add esp, 0x48
cmp eax, 1
jne 0x49f961
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x49fa30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, 0xff00
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
test word [edi + 2], ax
jne 0x49faaf
movzx ebx, word [edi + 6]
mov esi, dword [edi + 0x84]
test ebx, ebx
je 0x49fa7d
mov edi, dword [ebp + 0x10]
jmp 0x49fa60
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [esi], al
lea esi, [esi + 1]
movzx eax, al
cmp eax, edx
cmova edx, eax
cmp eax, ecx
cmovb ecx, eax
dec ebx
jne 0x49fa60
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movzx esi, word [edi + 6]
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], edx
push dword [eax]
push esi
push 1
push dword [edi + 0x84]
call fcn.0059628c
add esp, 0x10
cmp eax, esi
je 0x49fb60
pop edi
pop esi
mov eax, 6
pop ebx
pop ebp
ret
movzx esi, word [edi + 6]
mov eax, dword [ebp + 0x10]
mov ebx, eax
test esi, esi
je 0x49fad6
lea esp, [esp]
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
cmp eax, edx
cmova edx, eax
cmp eax, ecx
cmovb ecx, eax
dec esi
jne 0x49fac0
mov eax, dword [ebp + 0x10]
mov dword [edi + 0xc], ecx
movzx ecx, word [edi + 6]
push ecx
push dword [edi + 0x84]
mov dword [edi + 0x10], edx
push eax
call fcn.0049f6a0
mov esi, dword [edi + 0x94]
add esp, 0xc
cmp word [edi + 4], 2
mov ebx, eax
mov eax, dword [edi + 0x8c]
jne 0x49fb11
mov ecx, dword [ebp + 0x14]
lea edx, [ecx*4]
jmp 0x49fb1f
movzx edx, word [edi + 8]
imul edx, dword [ebp + 0x18]
add edx, dword [ebp + 0x14]
shl edx, 2
mov ecx, dword [edi + 0x90]
add esi, edx
mov dword [edx + ecx], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x49fb34
add dword [edi + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esi], ebx
add dword [edi + 0x8c], ebx
push dword [eax]
push ebx
push 1
push dword [edi + 0x84]
call fcn.0059628c
add esp, 0x10
cmp eax, ebx
je 0x49fb60
pop edi
pop esi
mov eax, 6
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4a0110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
push edi
xor edi, edi
test eax, eax
jle 0x4a0252
lea edx, [eax - 1]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], edx
lea ecx, [ecx]
mov al, byte [esi]
lea ecx, [esi + 1]
xor ebx, ebx
cmp al, byte [ecx]
jne 0x4a0183
jmp 0x4a0140
cmp edi, edx
jge 0x4a0159
cmp ebx, 0xfe
jge 0x4a0159
mov esi, ecx
inc ebx
lea ecx, [esi + 1]
inc edi
mov al, byte [esi]
cmp al, byte [ecx]
je 0x4a0140
test ebx, ebx
je 0x4a0183
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebx + 1]
push eax
call fcn.005958b3
mov eax, dword [ebp + 8]
push dword [eax]
movzx eax, byte [esi]
push eax
call fcn.005958b3
add esp, 0x10
inc esi
inc edi
jmp 0x4a0245
cmp edi, edx
jne 0x4a018a
inc edi
jmp 0x4a01b1
mov al, byte [esi]
lea ecx, [esi + 1]
cmp al, byte [ecx]
je 0x4a0205
cmp edi, edx
jge 0x4a01ac
cmp ebx, 0xfe
jge 0x4a01ac
mov esi, ecx
inc ebx
lea ecx, [esi + 1]
inc edi
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x4a0193
cmp ebx, 1
jne 0x4a01ce
mov ebx, dword [ebp + 8]
push dword [ebx]
push 1
call fcn.005958b3
push dword [ebx]
movzx eax, byte [esi - 1]
push eax
call fcn.005958b3
add esp, 0x10
jmp 0x4a0245
cmp ebx, 2
jne 0x4a0205
mov ebx, dword [ebp + 8]
push dword [ebx]
push 1
call fcn.005958b3
push dword [ebx]
movzx eax, byte [esi - 2]
push eax
call fcn.005958b3
push dword [ebx]
push 1
call fcn.005958b3
push dword [ebx]
movzx eax, byte [esi - 1]
push eax
call fcn.005958b3
add esp, 0x20
jmp 0x4a0245
mov eax, dword [ebp + 8]
push dword [eax]
push 0
call fcn.005958b3
mov eax, dword [ebp + 8]
sub esi, ebx
push dword [eax]
push ebx
call fcn.005958b3
mov eax, dword [ebp + 8]
push dword [eax]
push 1
push ebx
push esi
call fcn.0059628c
add esp, 0x20
add esi, ebx
test bl, 1
je 0x4a0245
mov eax, dword [ebp + 8]
push dword [eax]
push 0
call fcn.005958b3
add esp, 8
mov edx, dword [ebp - 4]
cmp edi, dword [ebp + 0x10]
jl 0x4a0130
pop esi
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0
call fcn.005958b3
push dword [ebx]
push 0
call fcn.005958b3
add esp, 0x10
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a07f0
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
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0xa8]
push edi
mov edi, dword [ebp + 8]
push eax
call fcn.00458dd0
add esp, 4
cmp word [ebp + 0x10], 0
je 0x4a0833
mov eax, dword [0x5d2da8]
movq xmm0, qword [str.OS_2_Bitmap]
mov dword [ebp - 0x7c], eax
jmp 0x4a0855
mov eax, dword [0x5d2d64]
movq xmm0, qword [str.Windows_Bitmap]
mov dword [ebp - 0x7c], eax
mov ax, word [0x5d2d68]
mov word [ebp - 0x78], ax
mov al, byte [0x5d2d6a]
mov byte [ebp - 0x76], al
movzx ecx, word [ebx + 0x28]
mov edx, 0x20
cmp cx, dx
mov word [ebp - 0x9a], cx
mov eax, 8
movq qword [ebp - 0x84], xmm0
cmove eax, edx
mov dword [ebp - 0xa8], eax
mov eax, 0x10
mov word [ebp - 0xa4], ax
mov eax, 1
mov word [ebp - 0x9c], ax
xor eax, eax
cmp cx, 0x18
mov ecx, dword [ebx + 0x2c]
setne al
add eax, 3
movzx eax, ax
cwde
imul ecx, eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0x90], ecx
lea eax, [ecx + 3]
and eax, 0xfffffffc
sub eax, ecx
movzx eax, ax
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xa8]
push eax
push ebx
call fcn.00457000
movzx eax, ax
add esp, 8
mov dword [ebp - 0xac], eax
test ax, ax
jne 0x4a0977
push esi
xor esi, esi
mov dword [ebp - 0xb0], esi
cmp dword [ebx + 0x30], esi
jle 0x4a0964
xor eax, eax
jmp 0x4a0900
push 1
push eax
push ebx
call fcn.00459620
push dword [edi]
push dword [ebp - 0xb4]
push dword [ebx + 0x2c]
push dword [ebp - 0xa0]
call fcn.0059628c
add esp, 0x1c
cmp eax, dword [ebp - 0xb4]
jne 0x4a0987
mov eax, dword [ebp - 0xb8]
xor ecx, ecx
cmp cx, ax
jge 0x4a0955
movzx esi, ax
lea ebx, [ebx]
push dword [edi]
push 0
call fcn.005958b3
add esp, 8
dec esi
jne 0x4a0940
mov esi, dword [ebp - 0xb0]
inc esi
movsx eax, si
mov dword [ebp - 0xb0], esi
cmp eax, dword [ebx + 0x30]
jl 0x4a0900
mov esi, dword [ebp - 0xac]
push ebx
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
mov esi, 6
jmp 0x4a096a
Function at 0x4a0aa0
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
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xa8]
push esi
mov esi, dword [ebp + 0xc]
push eax
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 [esi + 0x2c]
mov dword [ebp - 0x9c], 0x180001
lea eax, [eax + eax*2]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xa8]
push eax
push esi
call fcn.00457000
movzx ebx, ax
add esp, 0xc
test bx, bx
jne 0x4a0b69
push edi
xor edi, edi
cmp dword [esi + 0x30], edi
jle 0x4a0b5f
xor eax, eax
push 1
push eax
push esi
call fcn.00459620
mov eax, dword [ebp - 0xac]
push dword [eax]
push 3
push dword [esi + 0x2c]
push dword [ebp - 0xa0]
call fcn.0059628c
add esp, 0x1c
cmp eax, 3
jne 0x4a0b5a
inc edi
movsx eax, di
cmp eax, dword [esi + 0x30]
jl 0x4a0b26
jmp 0x4a0b5f
mov ebx, 6
push esi
call fcn.00454fa0
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
mov ax, bx
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret

Function at 0x4a0b80
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
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xa8]
push edi
mov edi, dword [ebp + 0xc]
push eax
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]
shl eax, 2
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xa8]
push eax
push edi
mov dword [ebp - 0x9c], 0x200001
call fcn.00457000
movzx ebx, ax
add esp, 0xc
test bx, bx
jne 0x4a0c49
push esi
xor esi, esi
cmp dword [edi + 0x30], esi
jle 0x4a0c3f
xor eax, eax
push 1
push eax
push edi
call fcn.00459620
mov eax, dword [ebp - 0xac]
push dword [eax]
push 4
push dword [edi + 0x2c]
push dword [ebp - 0xa0]
call fcn.0059628c
add esp, 0x1c
cmp eax, 4
jne 0x4a0c3a
inc esi
movsx eax, si
cmp eax, dword [edi + 0x30]
jl 0x4a0c06
jmp 0x4a0c3f
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