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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
movsx edx, word [esi + 0x40]
test edx, edx
jle 0x4c0478
lea esp, [esp]
add ecx, dword [ebx + eax*4]
inc eax
cmp eax, edx
jl 0x4c0470
mov edi, dword [ebp + 8]
lea eax, [edx + 0xe]
lea eax, [edx + eax*2]
lea eax, [ecx + eax*2]
push edi
push 0
mov dword [ebp - 4], eax
call fcn.0045d510
push edi
push 0
call fcn.0045d510
push edi
push dword [esi + 0x30]
call fcn.0045d510
push edi
push dword [esi + 0x2c]
call fcn.0045d510
movzx eax, word [esi + 0x40]
push edi
push eax
call fcn.0045d590
mov eax, dword [ebp + 0xc]
xor ecx, ecx
add esp, 0x28
xor esi, esi
cmp cx, word [eax + 0x40]
jge 0x4c04f2
push edi
cmp esi, 3
jne 0x4c04d1
push 0xfffe
jmp 0x4c04d2
push esi
call fcn.0045d590
add esp, 8
push edi
push dword [ebx + esi*4]
call fcn.0045d510
mov eax, dword [ebp + 0xc]
inc esi
add esp, 8
movsx eax, word [eax + 0x40]
cmp esi, eax
jl 0x4c04c4
push dword [edi]
push 1
push 4
push 0x5d753c
call fcn.0059628c
push dword [edi]
push 1
push 4
push str.norm
call fcn.0059628c
push dword [edi]
push 0xff
call fcn.005958b3
push dword [edi]
push 0
call fcn.005958b3
push dword [edi]
push 0
call fcn.005958b3
push dword [edi]
push 0
call fcn.005958b3
add esp, 0x40
push edi
push 0x14
call fcn.0045d510
push edi
push 0
call fcn.0045d510
push edi
push 0
call fcn.0045d510
push str.Background
push edi
call fcn.004c0570
mov eax, dword [ebp - 4]
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c0570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
lea ecx, [ebx + 1]
jmp 0x4c0580
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4c0580
mov esi, dword [ebp + 8]
sub ebx, ecx
push dword [esi]
push ebx
call fcn.005958b3
push dword [esi]
push 1
push ebx
push dword [ebp + 0xc]
call fcn.0059628c
add esp, 0x18
test bl, 1
jne 0x4c05b5
push dword [esi]
push 0
call fcn.005958b3
add esp, 8
pop esi
pop ebx
pop ebp
ret
Function at 0x4c0b00
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
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xa8]
push edi
mov edi, dword [ebp + 0xc]
push eax
call fcn.00458dd0
mov al, byte [0x5d47ac]
mov byte [ebp - 0x74], al
mov eax, 1
movdqu xmm0, xmmword [str.Kolor_Raw_Format]
mov word [ebp - 0x9c], ax
mov ax, word [edi + 0x28]
mov word [ebp - 0x9a], ax
movsx eax, word [edi + 0x3e]
imul eax, dword [edi + 0x2c]
movdqu xmmword [ebp - 0x84], xmm0
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ebp - 0x90], eax
xor eax, eax
mov word [ebp - 0x8c], ax
lea eax, [ebp - 0xa8]
push eax
push edi
call fcn.00457000
movzx eax, ax
add esp, 0xc
mov dword [ebp - 0xac], eax
test ax, ax
jne 0x4c0c3a
push esi
push dword [ebx]
push 0x4b
call fcn.005958b3
push dword [ebx]
push 0x52
call fcn.005958b3
push dword [ebx]
push 0x4f
call fcn.005958b3
push dword [ebx]
push 1
call fcn.005958b3
push ebx
push dword [edi + 0x2c]
call fcn.0045d510
push ebx
push dword [edi + 0x30]
call fcn.0045d510
push ebx
push 8
call fcn.0045d510
movsx eax, word [edi + 0x28]
cdq
and edx, 7
add eax, edx
sar eax, 3
push ebx
push eax
call fcn.0045d510
xor esi, esi
add esp, 0x40
cmp dword [edi + 0x30], esi
jle 0x4c0c27
push 1
push esi
push edi
call fcn.00459620
movsx eax, word [edi + 0x40]
push dword [ebx]
imul eax, dword [ebp - 0x90]
push 1
push eax
push dword [ebp - 0xa0]
call fcn.0059628c
add esp, 0x1c
cmp eax, 1
jne 0x4c0c4a
inc esi
cmp esi, dword [edi + 0x30]
jl 0x4c0bf5
mov esi, dword [ebp - 0xac]
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
mov esi, 6
jmp 0x4c0c2d
Function at 0x4c0fc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebx + 0x2c]
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x10c], ebx
call fcn.004c0f40
push dword [ebx + 0x30]
mov edi, eax
mov dword [ebp - 0x100], edi
call fcn.004c0f40
movsx ecx, word [ebx + 0xac]
push ecx
push eax
push edi
push esi
mov dword [ebp - 0xf8], eax
call fcn.004c1230
lea eax, [ebp - 0xe8]
push eax
call fcn.00458dd0
movzx ecx, word [ebx + 0x40]
mov eax, 1
mov word [ebp - 0xdc], ax
mov dword [ebp - 0xc4], 0x534444
mov dword [ebp - 0xe4], 0x40000
lea eax, [ecx*8]
mov word [ebp - 0xda], ax
movsx eax, cx
imul eax, dword [ebx + 0x2c]
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0xe8]
push eax
push ebx
call fcn.00457000
movzx eax, ax
add esp, 0x24
mov dword [ebp - 0x104], eax
test ax, ax
jne 0x4c1214
mov esi, edi
shl esi, 4
push esi
call fcn.00593e38
xor ecx, ecx
mov dword [ebp - 0xec], eax
add esp, 4
cmp dword [ebp - 0xf8], ecx
jle 0x4c11fe
mov eax, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x108], eax
jmp 0x4c10c0
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xf4], eax
lea eax, [ecx + 4]
mov dword [ebp - 0x110], eax
cmp eax, dword [ebx + 0x30]
jle 0x4c10f3
mov eax, dword [ebp - 0xd0]
shl eax, 2
push eax
push 0
push dword [ebp - 0xe0]
call fcn.00595760
jmp 0x4c10fc
push 4
push ecx
push ebx
call fcn.00459620
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xf0], eax
test edi, edi
jle 0x4c11c8
nop
movzx ebx, word [ebx + 0x40]
xor edx, edx
movsx edi, bx
imul edi, eax
mov dword [ebp - 0xfc], 4
add edi, dword [ebp - 0xe0]
lea esp, [esp]
mov eax, edi
mov esi, 4
jmp 0x4c1140
movzx ecx, byte [eax]
mov byte [ebp + edx*4 - 0x44], cl
movzx ecx, byte [eax + 1]
mov byte [ebp + edx*4 - 0x43], cl
movzx ecx, byte [eax + 2]
add eax, 3
mov byte [ebp + edx*4 - 0x42], cl
cmp bx, 4
jne 0x4c1166
movzx ecx, byte [eax]
inc eax
jmp 0x4c116b
mov ecx, 0xff
mov byte [ebp + edx*4 - 0x41], cl
inc edx
dec esi
jne 0x4c1140
add edi, dword [ebp - 0xd0]
dec dword [ebp - 0xfc]
jne 0x4c1130
mov ebx, dword [ebp - 0x10c]
mov esi, dword [ebp - 0xf4]
movsx eax, word [ebx + 0xac]
push eax
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.00548380
mov eax, dword [ebp - 0xf0]
add esi, 0x10
mov edi, dword [ebp - 0x100]
add eax, 4
add esp, 0xc
mov dword [ebp - 0xf4], esi
mov dword [ebp - 0xf0], eax
cmp eax, edi
jl 0x4c1110
mov eax, dword [ebp - 0x114]
push dword [eax]
push 1
push dword [ebp - 0x108]
push dword [ebp - 0xec]
call fcn.0059628c
mov ecx, dword [ebp - 0x110]
add esp, 0x10
cmp ecx, dword [ebp - 0xf8]
jl 0x4c10c0
mov eax, dword [ebp - 0xec]
push eax
call fcn.00592c4b
push ebx
call fcn.00454fa0
mov ax, word [ebp - 0x104]
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4c1230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
push 1
push 4
push str.DDS
call fcn.0059628c
push esi
push 0x7c
call fcn.0045d4e0
push esi
push 0x1007
call fcn.0045d4e0
push esi
push dword [ebp + 0x10]
call fcn.0045d4e0
mov edi, dword [ebp + 0xc]
push esi
push edi
call fcn.0045d4e0
imul edi, dword [ebp + 0x10]
push esi
mov eax, edi
cdq
and edx, 0xf
add eax, edx
sar eax, 4
shl eax, 3
push eax
call fcn.0045d4e0
push esi
push 0
call fcn.0045d4e0
add esp, 0x40
push esi
push 1
call fcn.0045d4e0
push esi
push 0
call fcn.0045d4e0
add esp, 0x10
mov edi, 0xa
lea ebx, [ebx]
push esi
push 0
call fcn.0045d4e0
add esp, 8
dec edi
jne 0x4c12b0
push esi
push 0x20
call fcn.0045d4e0
push esi
push 4
call fcn.0045d4e0
push esi
push 0x35545844
call fcn.0045d4e0
add esp, 0x18
mov edi, 5
push esi
push 0
call fcn.0045d4e0
add esp, 8
dec edi
jne 0x4c12e1
push esi
push 0x1000
call fcn.0045d4e0
add esp, 8
mov edi, 4
push esi
push 0
call fcn.0045d4e0
add esp, 8
dec edi
jne 0x4c1302
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4c1e50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
mov byte [ebp - 2], 0
push edi
xor edi, edi
mov dword [ebp - 8], ebx
xor esi, esi
mov dword [ebp - 0xc], edi
mov byte [ebp - 1], bl
cmp dword [ebp + 0xc], ebx
jle 0x4c1f89
test di, di
jne 0x4c1f89
test ebx, ebx
jg 0x4c1eac
mov ebx, dword [ebp + 8]
push ebx
call fcn.0045d240
mov ecx, 0xff08
cmp ax, cx
mov eax, 4
push ebx
cmovne edi, eax
mov dword [ebp - 0xc], edi
call fcn.0045d240
movzx ebx, ax
add esp, 8
add ebx, ebx
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 3]
push 1
push 1
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4c1f93
mov al, byte [ebp - 3]
dec ebx
mov dword [ebp - 0x10], ebx
test al, al
js 0x4c1f02
mov dl, al
mov byte [ebp - 2], dl
test ebx, ebx
je 0x4c1efb
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 1]
push 1
push 1
push eax
call fcn.00595b79
mov al, byte [ebp - 1]
add esp, 0x10
dec ebx
mov dword [ebp - 0x10], ebx
jmp 0x4c1f05
mov al, 0x80
mov byte [ebp - 1], al
jmp 0x4c1f08
mov byte [ebp - 1], al
mov dl, byte [ebp - 2]
test al, al
jns 0x4c1f3b
and al, 0x7f
movzx eax, al
inc ax
movzx eax, ax
test ax, ax
je 0x4c1f57
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
cmp esi, ecx
jge 0x4c1f29
mov byte [esi + ebx], dl
inc esi
add eax, 0xffff
test ax, ax
jne 0x4c1f21
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
jmp 0x4c1f57
mov eax, dword [ebp + 8]
push 1
push 0xffffffffffffffff
push dword [eax]
call fcn.00595cb4
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov al, byte [ebp - 3]
inc ebx
mov byte [esi + ecx], al
inc esi
cmp esi, dword [ebp + 0x10]
jl 0x4c1f7d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 0x18]
call fcn.004585b0
movzx edi, ax
add esp, 0x10
mov dword [ebp - 0xc], edi
test di, di
jne 0x4c1f89
inc dword [ebp - 8]
xor esi, esi
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
jl 0x4c1e75
mov ax, di
pop edi
pop esi
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 0x4c3d20
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
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]
push 1
push str.libflif
mov dword [ebp - 0xb8], eax
call fcn.00452200
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4c3d69
pop edi
lea eax, [ebx + 2]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.flif_create_encoder
push ebx
call esi
push str.flif_destroy_encoder
push ebx
mov dword [ebp - 0xac], eax
call esi
push str.flif_encoder_encode_file
push ebx
mov dword [ebp - 0xb0], eax
call esi
push str.flif_destroy_image
push ebx
mov dword [ebp - 0xbc], eax
call esi
push str.flif_encoder_add_image
push ebx
mov dword [ebp - 0xc4], eax
call esi
push str.flif_create_image
push ebx
mov dword [ebp - 0xc0], eax
call esi
push str.flif_image_write_row_RGBA8
push ebx
mov dword [ebp - 0xc8], eax
call esi
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xac]
test eax, eax
je 0x4c3e79
call eax
mov esi, eax
mov dword [ebp - 0xb4], esi
test esi, esi
je 0x4c3e79
lea eax, [ebp - 0xa8]
push eax
call fcn.00458dd0
mov eax, dword [str.FLIF]
mov dword [ebp - 0x84], eax
mov al, byte [0x5d47f4]
mov byte [ebp - 0x80], al
mov eax, dword [edi + 0x2c]
shl eax, 2
mov dword [ebp - 0x90], eax
xor eax, eax
mov word [ebp - 0x8c], ax
lea eax, [ebp - 0xa8]
push eax
push edi
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0x9c], 0x200001
call fcn.00457000
movzx eax, ax
add esp, 0xc
test ax, ax
jne 0x4c3f32
push dword [edi + 0x30]
push dword [edi + 0x2c]
call dword [ebp - 0xc8]
add esp, 8
mov dword [ebp - 0xac], eax
test eax, eax
jne 0x4c3e96
push esi
call dword [ebp - 0xb0]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
pop edi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
xor esi, esi
cmp dword [edi + 0x30], esi
jle 0x4c3ef2
mov ebx, eax
nop
push 1
push esi
push edi
call fcn.00459620
mov ecx, dword [ebp - 0x90]
add esp, 0xc
cmp word [edi + 0x28], 0x20
je 0x4c3ed8
xor eax, eax
test ecx, ecx
jle 0x4c3ed8
nop
mov ecx, dword [ebp - 0xa0]
mov byte [ecx + eax + 3], 0xff
add eax, 4
mov ecx, dword [ebp - 0x90]
cmp eax, ecx
jl 0x4c3ec0
push ecx
push dword [ebp - 0xa0]
push esi
push ebx
call dword [ebp - 0xcc]
inc esi
add esp, 0x10
cmp esi, dword [edi + 0x30]
jl 0x4c3ea0
mov eax, ebx
mov esi, dword [ebp - 0xb4]
push eax
push esi
call dword [ebp - 0xc0]
mov eax, dword [ebp - 0xb8]
push dword [eax + 0x84]
push esi
call dword [ebp - 0xbc]
mov ebx, dword [ebp - 0xac]
push ebx
call dword [ebp - 0xc4]
push esi
call dword [ebp - 0xb0]
push edi
call fcn.00454fa0
add esp, 0x1c
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4c4d30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
xor esi, esi
cmp dword [ebp + 0xc], ebx
jle 0x4c4e3e
jmp 0x4c4d50
test bx, bx
jne 0x4c4e3e
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 1]
push 1
push 1
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4c4e48
mov al, byte [ebp - 1]
test al, al
jns 0x4c4de3
and al, 0x7f
movzx eax, al
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00597fff
mov dl, al
add esp, 4
mov eax, dword [ebp - 8]
mov byte [ebp - 2], dl
test ax, ax
je 0x4c4e35
mov ecx, dword [ebp + 0x14]
mov byte [esi + ecx], dl
inc esi
cmp esi, dword [ebp + 0x10]
jl 0x4c4dd4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 0x18]
call fcn.004585b0
movzx ebx, ax
add esp, 0x10
test bx, bx
jne 0x4c4e35
mov eax, dword [ebp - 8]
inc edi
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov dl, byte [ebp - 2]
add eax, 0xffff
mov dword [ebp - 8], eax
test ax, ax
jne 0x4c4da6
jmp 0x4c4e35
movzx eax, al
mov dword [ebp - 8], eax
test ax, ax
je 0x4c4e35
mov edi, edi
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00597fff
mov ecx, dword [ebp + 0x14]
add esp, 4
mov byte [esi + ecx], al
inc esi
cmp esi, dword [ebp + 0x10]
jl 0x4c4e25
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 0x18]
call fcn.004585b0
movzx ebx, ax
add esp, 0x10
test bx, bx
jne 0x4c4e35
inc edi
xor esi, esi
mov eax, dword [ebp - 8]
add eax, 0xffff
mov dword [ebp - 8], eax
test ax, ax
jne 0x4c4df0
cmp edi, dword [ebp + 0xc]
jl 0x4c4d50
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 0x4c5c50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push esi
push edi
push eax
call fcn.00462ec0
add esp, 4
mov esi, ebx
lea ebx, [ebx]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4c5c80
lea edi, [ebp - 0x108]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4c5c90
mov ecx, ebx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
setne cl
mov ax, cx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4c5e70
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x108]
push eax
call fcn.00462ec0
lea ecx, [ebp - 0x108]
add esp, 4
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4c5eb4
mov eax, dword [str.CADImage.DLL]
mov dword [ecx], eax
mov eax, dword [0x5de510]
mov dword [ecx + 4], eax
mov eax, dword [0x5de514]
mov dword [ecx + 8], eax
mov al, byte [0x5de518]
mov byte [ecx + 0xc], al
lea eax, [ebp - 0x108]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x4c5f03
lea eax, [ebx + 2]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.DrawCADtoDIB
push ebx
call esi
push str.CreateCAD
push ebx
mov edi, eax
call esi
push str.CloseCAD
push ebx
call esi
push str.SetBMSize
push ebx
call esi
push str.GetBoxCAD
push ebx
mov dword [ebp - 0x20c], eax
call esi
push str.ReadCAD
push ebx
call esi
mov dword [ebp - 0x210], eax
test edi, edi
jne 0x4c5f6a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
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
mov esi, dword [ebp - 0x21c]
test dword [esi + 0x8c], 0x800
je 0x4c5f83
push 0xb8
jmp 0x4c5f85
push 0xffffffffffffffff
call dword [ebp - 0x20c]
add esp, 4
lea eax, [ebp - 0x208]
push eax
mov eax, dword [ebp - 0x214]
push dword [eax + 0x84]
call dword [ebp - 0x210]
add esp, 8
test eax, eax
je 0x4c5f54
push dword [ebp - 0x218]
push esi
push eax
call fcn.004c5a60
add esp, 0xc
movzx esi, ax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov ax, si
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
Function at 0x4c6f10
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 + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push dword [eax]
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push 1
push 0xd
push eax
call fcn.00595b79
add esp, 0x10
cmp eax, 1
je 0x4c6f57
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x14], 0x50
jne 0x4c6f42
cmp byte [ebp - 0x13], 0x52
jne 0x4c6f42
cmp byte [ebp - 0x12], 0x46
jne 0x4c6f42
cmp byte [ebp - 0x11], 0x31
jne 0x4c6f42
movzx ecx, byte [ebp - 0x10]
movzx eax, byte [ebp - 0xf]
movzx edx, byte [ebp - 0xc]
shl ecx, 8
or ecx, eax
shl edx, 8
movzx eax, byte [ebp - 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 0xb]
or edx, eax
mov dword [ebx], ecx
movzx eax, byte [ebp - 0xa]
shl edx, 8
or edx, eax
movzx eax, byte [ebp - 9]
shl edx, 8
or edx, eax
movzx eax, byte [ebp - 8]
push edi
mov edi, eax
mov dword [ebx + 4], edx
and edi, 0x1f
shr eax, 5
inc edi
inc eax
mov dword [ebx + 8], edi
mov dword [ebx + 0xc], eax
test ecx, ecx
jle 0x4c706c
test edx, edx
jle 0x4c706c
cmp edi, 8
jle 0x4c701e
movdqu xmm0, xmmword [str.PRF:_pixel_size_incompatible_]
movdqu xmmword [esi + 0x44], xmm0
movq xmm0, qword [0x5de79c]
movq qword [esi + 0x54], xmm0
mov eax, dword [0x5de7a4]
mov dword [esi + 0x5c], eax
mov ax, word [0x5de7a8]
mov word [esi + 0x60], ax
pop edi
pop esi
mov eax, 9
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret
cmp eax, 3
je 0x4c7059
movdqu xmm0, xmmword [str.PRF:_plane_count_incompatible_]
movdqu xmmword [esi + 0x44], xmm0
movq xmm0, qword [0x5de7bc]
movq qword [esi + 0x54], xmm0
mov eax, dword [0x5de7c4]
mov dword [esi + 0x5c], eax
mov ax, word [0x5de7c8]
mov word [esi + 0x60], ax
mov al, byte [0x5de7ca]
mov byte [esi + 0x62], al
jmp 0x4c7008
pop edi
pop esi
xor eax, eax
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 0x4c7480
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 8
push 1
push esi
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x4c74a7
pop edi
mov eax, 4
pop esi
pop ebp
ret
push str.Willy_7
push esi
call fcn.00596550
add esp, 8
test eax, eax
je 0x4c74c2
pop edi
mov eax, 2
pop esi
pop ebp
ret
push edi
call fcn.0045d030
add esp, 4
mov dword [esi + 8], eax
cmp eax, 0x104
je 0x4c74da
cmp eax, 0x32
jne 0x4c74b9
push edi
call fcn.0045d030
push edi
mov dword [esi + 0xc], eax
call fcn.0045d030
push edi
mov dword [esi + 0x10], eax
call fcn.0045d030
push edi
mov dword [esi + 0x14], eax
call fcn.0045d030
push edi
mov dword [esi + 0x18], eax
call fcn.0045d030
push edi
mov dword [esi + 0x1c], eax
call fcn.0045d030
push edi
mov dword [esi + 0x20], eax
call fcn.0045d030
push edi
mov dword [esi + 0x24], eax
call fcn.0045d030
add esp, 0x20
mov dword [esi + 0x28], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x4c7910
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 0x20
push 1
push edi
call fcn.00595b79
add esp, 0x10
test eax, eax
jne 0x4c7937
pop edi
mov eax, 4
pop esi
pop ebp
ret
push esi
call fcn.0045d030
push esi
mov dword [edi + 0x20], eax
call fcn.0045d030
push esi
mov dword [edi + 0x24], eax
call fcn.0045d030
push esi
mov dword [edi + 0x28], eax
call fcn.0045d030
push esi
mov dword [edi + 0x2c], eax
call fcn.0045d030
push esi
mov dword [edi + 0x30], eax
call fcn.0045d030
mov dword [edi + 0x34], eax
lea eax, [edi + 0x38]
push dword [esi]
push 0x20
push 1
push eax
call fcn.00595b79
add esp, 0x28
test eax, eax
je 0x4c792e
push esi
call fcn.0045d030
push esi
mov dword [edi + 0x58], eax
call fcn.0045d030
push esi
mov dword [edi + 0x5c], eax
call fcn.0045d030
add esp, 0xc
mov dword [edi + 0x60], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x4c8660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, edx
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0x20c], eax
lea esi, [ecx + 1]
xor bl, bl
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c8690
sub ecx, esi
lea esi, [ebp - 0x204]
inc ecx
sub esi, edx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], al
test al, al
jne 0x4c86a2
nop
dec ecx
cmp byte [ebp + ecx - 0x204], 0x2e
jne 0x4c86b0
cmp ecx, 0x200
jae 0x4c87f4
mov byte [ebp + ecx - 0x204], 0
lea ecx, [ebp - 0x204]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4c86d6
mov eax, dword [str..kcf]
mov dword [ecx], eax
mov al, byte [0x5de800]
mov byte [ecx + 4], al
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0045cae0
lea eax, [ebp - 0x218]
push 0x11
push eax
call fcn.0045cb00
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4c87e0
push dword [edi]
lea eax, [ebp - 0x210]
push 1
push 4
push eax
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4c87d7
lea eax, [ebp - 0x210]
cmp dword [eax], 0x5353694b
jne 0x4c87d7
push dword [edi]
call fcn.00597fff
push dword [edi]
call fcn.00597fff
push 1
push 0x1a
push dword [edi]
mov esi, eax
call fcn.00595cb4
add esp, 0x14
cmp esi, 0xc
jne 0x4c87bf
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jle 0x4c87d5
mov esi, dword [ebp - 0x20c]
add esi, 2
nop
push dword [edi]
lea eax, [ebp - 0x208]
push 1
push 2
push eax
call fcn.00595b79
mov ax, word [ebp - 0x208]
lea esi, [esi + 3]
mov cl, al
add esp, 0x10
and cl, 0xf0
and al, 0xf
mov byte [esi - 5], cl
mov cl, ah
and cl, 0xf
shl al, 4
shl cl, 4
mov byte [esi - 4], cl
mov byte [esi - 3], al
dec ebx
jne 0x4c8780
jmp 0x4c87d5
push dword [edi]
mov eax, dword [ebp - 0x20c]
push 3
push dword [ebp + 0xc]
push eax
call fcn.00595b79
add esp, 0x10
mov bl, 1
push edi
call fcn.0045ca10
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
movzx eax, bl
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret
call fcn.00592dbb
int3