joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5736c0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x2bc
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x2b8], eax
push ebx
mov ebx, dword [esp + 0x2cc]
push esi
mov esi, dword [esp + 0x2c8]
push edi
mov edi, dword [esp + 0x2d0]
push 0x2b4
lea eax, [esp + 0x14]
push 0
push eax
mov dword [esp + 0x18], 0
call fcn.00585730
mov eax, dword [esp + 0x2e4]
add esp, 0xc
or eax, 0x1010
cmp dword [edi + 0x14], 8
jb 0x57371c
mov edi, dword [edi]
push eax
push 0x2b4
lea ecx, [esp + 0x18]
push ecx
push 0x10
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x573754
mov dword [esi], vtable.wxObject.0
mov edx, dword [0x68d94c]
mov eax, edx
mov dword [esi + 4], edx
test eax, eax
je 0x57374c
inc dword [eax + 4]
mov dword [esi], vtable.wxBitmap.0
jmp 0x573768
mov eax, dword [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
call fcn.00573590
add esp, 0x10
mov ecx, dword [esp + 0x2c4]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00585b7b
add esp, 0x2bc
ret
Function at 0x5759e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e7670
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
call fcn.004da850
mov edi, dword [esp + 0x40]
mov dword [esp + 0x38], 0
mov dword [esi], vtable.wxCheckListBoxItem.0
mov dword [esi + 0x3c], edi
mov byte [esi + 0x40], 0
call fcn.00543e20
mov edx, dword [eax]
mov edx, dword [edx + 0x2c]
push 0
push edi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call edx
mov eax, dword [esp + 0x14]
add eax, 4
mov dword [esp + 0x14], eax
mov dword [esi + 0x38], eax
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.0049ef20
mov edi, eax
lea ebp, [esi + 0x24]
mov byte [esp + 0x38], 1
cmp ebp, edi
je 0x575a70
push edi
mov ecx, ebp
call fcn.00423b20
mov ecx, dword [edi + 8]
mov dword [ebp + 8], ecx
movzx edx, byte [edi + 0xc]
mov byte [ebp + 0xc], dl
movzx eax, byte [edi + 0xd]
mov byte [ebp + 0xd], al
mov cl, byte [edi + 0xe]
mov byte [ebp + 0xe], cl
movzx edx, byte [edi + 0xf]
mov byte [ebp + 0xf], dl
movzx eax, byte [edi + 0x10]
mov byte [ebp + 0x10], al
lea ecx, [esp + 0x1c]
mov byte [esi + 4], 1
mov byte [esp + 0x38], 0
mov dword [esp + 0x1c], vtable.wxObject.0
call fcn.00423980
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret 4

Function at 0x5768c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5e7813
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.004e8210
xor eax, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov edi, dword [esp + 0x30]
lea ebp, [esi + 0x20]
push edi
mov ecx, ebp
mov dword [esp + 0x2c], eax
mov dword [esi], vtable.wxBufferedPaintDC.0
call fcn.004e8320
mov ebx, dword [esp + 0x34]
mov eax, dword [esi + 8]
mov byte [esp + 0x28], 1
mov dword [eax + 0xc], edi
test bl, 1
je 0x57693d
mov edx, dword [edi]
mov eax, dword [edx + 0x194]
push ebp
mov ecx, edi
call eax
push ebx
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00576430
mov dword [esi + 0xc], ebp
mov dword [esi + 0x14], ebx
mov edx, dword [eax + 4]
mov eax, dword [eax]
add esp, 0xc
push edx
push eax
mov ecx, esi
call fcn.00581320
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x579250
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e7d98
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
push eax
lea eax, [esp + 0xc]
push eax
mov esi, ecx
call fcn.004cd240
add esp, 8
cmp dword [esp + 0x1c], 8
mov ecx, dword [esp + 8]
mov dword [esp + 0x38], 0
jae 0x5792aa
lea ecx, [esp + 8]
mov eax, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx + 0x30]
push ecx
mov ecx, dword [esi + 8]
push ecx
push eax
call edx
mov eax, dword [esp + 0x24]
push eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x1c], 8
jb 0x5792db
mov ecx, dword [esp + 8]
push ecx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00585b7b
add esp, 0x34
ret 4
Function at 0x580e30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e8cc8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x4c]
xor ecx, ecx
mov eax, 0xe
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
test esi, esi
je 0x580ee1
push 0x642ccc
lea ecx, [esp + 0x18]
call fcn.00402c90
mov eax, dword [esi]
mov eax, dword [eax + 0x280]
push 0
push 0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, esi
mov dword [esp + 0x5c], 0
call eax
mov ecx, dword [esp + 0x30]
push ecx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x28], 8
jb 0x580f03
mov edx, dword [esp + 0x14]
push edx
call fcn.00584768
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
add esp, 4
lea eax, [ecx + eax + 6]
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00585b7b
add esp, 0x40
ret 4
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
lea eax, [eax + edx + 6]
jmp 0x580ee5
Function at 0x585b7b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x694114]
jne 0x585b85
repz ret
jmp fcn.00594c5c

Function at 0x5a0ef4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x694114]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00590b28
and dword [ebp - 0x14], 0
cmp dword [0x6c0bf4], 0
mov dword [ebp - 0x18], eax
jne 0x5a0fa7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5a104f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x647984
push ebx
call edi
test eax, eax
je 0x5a104f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x647974
push ebx
mov dword [0x6c0bf4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x6c0bf8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x6c0bfc], eax
call edi
push eax
call esi
mov dword [0x6c0c04], eax
test eax, eax
je 0x5a0fa7
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x6c0c00], eax
mov eax, dword [0x6c0c00]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5a1000
cmp dword [0x6c0c04], ecx
je 0x5a1000
push eax
call esi
push dword [0x6c0c04]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5a1000
test ebx, ebx
je 0x5a1000
call edi
test eax, eax
je 0x5a0ff7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5a0ff7
test byte [ebp - 8], 1
jne 0x5a1000
or dword [ebp + 0x10], 0x200000
jmp 0x5a1033
mov eax, dword [0x6c0bf8]
cmp eax, dword [ebp - 0x18]
je 0x5a1033
push eax
call esi
test eax, eax
je 0x5a1033
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5a1033
mov eax, dword [0x6c0bfc]
cmp eax, dword [ebp - 0x18]
je 0x5a1033
push eax
call esi
test eax, eax
je 0x5a1033
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x6c0bf4]
call esi
test eax, eax
je 0x5a104f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5a1051
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00585b7b
leave
ret
Function at 0x5a5bc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5e9250
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x48], eax
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x6c]
lea eax, [esp + 0x30]
push eax
call fcn.00406360
mov edi, eax
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x64], 0
call fcn.004071f0
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
mov byte [esp + 0x64], 1
call fcn.004205f0
mov edx, dword [esp + 0x28]
push edx
mov esi, eax
call fcn.005844d1
mov edi, 8
add esp, 4
cmp dword [esp + 0x20], edi
jb 0x5a5c4e
mov eax, dword [esp + 0xc]
push eax
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x44], edi
jb 0x5a5c6e
mov edx, dword [esp + 0x30]
push edx
call fcn.00584768
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00585b7b
add esp, 0x58
ret
Function at 0x5a5e60
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5e92f9
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x2f0]
mov dword fs:[0], eax
mov esi, ecx
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
xor ebx, ebx
cmp eax, 4
ja case.default.0x5a5eb1
jmp dword [eax*4 + 0x5a6008]
mov ebp, edi
jmp 0x5a5ee0
mov edi, 3
xor ebp, ebp
jmp 0x5a5ee0
mov edi, 7
lea ebp, [edi - 5]
jmp 0x5a5ee0
mov edi, 9
lea ebp, [edi - 5]
jmp 0x5a5ee0
xor edi, edi
mov ebp, 5
push 0x800
push 0x2b4
lea eax, [esp + 0x40]
push eax
push ebx
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp eax, ebx
je 0x5a5f13
mov eax, dword [esp + 0x40]
test eax, 0x40000
je 0x5a5f09
or edi, 4
test eax, 0x2000000
je 0x5a5f13
or edi, 2
cmp esi, ebx
jne 0x5a5f1c
mov esi, 0x5f64c4
xor ecx, ecx
mov eax, esi
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5a5f34
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00402710
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
test byte [0x6c0cac], 1
mov dword [esp + 0x2f8], ebx
jne 0x5a5fa8
or dword [0x6c0cac], 1
push 0x19
mov byte [esp + 0x2fc], 1
call fcn.00447710
push 4
push eax
mov dword [0x6c0ca0], eax
mov dword [0x6c0ca4], ebx
call fcn.00585c5e
push 0x5f4ec0
mov dword [0x6c0c9c], eax
call fcn.005852be
add esp, 0x10
mov byte [esp + 0x2f8], bl
lea edx, [esp + 0x14]
push edx
mov ecx, 0x6c0c9c
call fcn.005a5d10
mov dword [eax], edi
mov dword [eax + 4], ebp
mov eax, dword [esp + 0x30]
push eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x28], 8
jb 0x5a5fdd
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00584768
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x2f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.00585b7b
add esp, 0x2e8
ret
Function at 0x5a5ecf
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x5e92f9
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x2f0]
mov dword fs:[0], eax
mov esi, ecx
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
xor ebx, ebx
cmp eax, 4
ja case.default.0x5a5eb1
jmp dword [eax*4 + 0x5a6008]
mov ebp, edi
jmp 0x5a5ee0
mov edi, 3
xor ebp, ebp
jmp 0x5a5ee0
mov edi, 7
lea ebp, [edi - 5]
jmp 0x5a5ee0
mov edi, 9
lea ebp, [edi - 5]
jmp 0x5a5ee0
xor edi, edi
mov ebp, 5
push 0x800
push 0x2b4
lea eax, [esp + 0x40]
push eax
push ebx
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp eax, ebx
je 0x5a5f13
mov eax, dword [esp + 0x40]
test eax, 0x40000
je 0x5a5f09
or edi, 4
test eax, 0x2000000
je 0x5a5f13
or edi, 2
cmp esi, ebx
jne 0x5a5f1c
mov esi, 0x5f64c4
xor ecx, ecx
mov eax, esi
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5a5f34
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00402710
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
test byte [0x6c0cac], 1
mov dword [esp + 0x2f8], ebx
jne 0x5a5fa8
or dword [0x6c0cac], 1
push 0x19
mov byte [esp + 0x2fc], 1
call fcn.00447710
push 4
push eax
mov dword [0x6c0ca0], eax
mov dword [0x6c0ca4], ebx
call fcn.00585c5e
push 0x5f4ec0
mov dword [0x6c0c9c], eax
call fcn.005852be
add esp, 0x10
mov byte [esp + 0x2f8], bl
lea edx, [esp + 0x14]
push edx
mov ecx, 0x6c0c9c
call fcn.005a5d10
mov dword [eax], edi
mov dword [eax + 4], ebp
mov eax, dword [esp + 0x30]
push eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x28], 8
jb 0x5a5fdd
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00584768
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x2f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.00585b7b
add esp, 0x2e8
ret
Function at 0x5a5ed9
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x5e92f9
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x2f0]
mov dword fs:[0], eax
mov esi, ecx
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
xor ebx, ebx
cmp eax, 4
ja case.default.0x5a5eb1
jmp dword [eax*4 + 0x5a6008]
mov ebp, edi
jmp 0x5a5ee0
mov edi, 3
xor ebp, ebp
jmp 0x5a5ee0
mov edi, 7
lea ebp, [edi - 5]
jmp 0x5a5ee0
mov edi, 9
lea ebp, [edi - 5]
jmp 0x5a5ee0
xor edi, edi
mov ebp, 5
push 0x800
push 0x2b4
lea eax, [esp + 0x40]
push eax
push ebx
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp eax, ebx
je 0x5a5f13
mov eax, dword [esp + 0x40]
test eax, 0x40000
je 0x5a5f09
or edi, 4
test eax, 0x2000000
je 0x5a5f13
or edi, 2
cmp esi, ebx
jne 0x5a5f1c
mov esi, 0x5f64c4
xor ecx, ecx
mov eax, esi
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x5a5f34
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00402710
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
test byte [0x6c0cac], 1
mov dword [esp + 0x2f8], ebx
jne 0x5a5fa8
or dword [0x6c0cac], 1
push 0x19
mov byte [esp + 0x2fc], 1
call fcn.00447710
push 4
push eax
mov dword [0x6c0ca0], eax
mov dword [0x6c0ca4], ebx
call fcn.00585c5e
push 0x5f4ec0
mov dword [0x6c0c9c], eax
call fcn.005852be
add esp, 0x10
mov byte [esp + 0x2f8], bl
lea edx, [esp + 0x14]
push edx
mov ecx, 0x6c0c9c
call fcn.005a5d10
mov dword [eax], edi
mov dword [eax + 4], ebp
mov eax, dword [esp + 0x30]
push eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x28], 8
jb 0x5a5fdd
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00584768
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x2f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.00585b7b
add esp, 0x2e8
ret
Function at 0x5a9410
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
movzx ebp, byte [esi + 0x80]
movzx eax, byte [esi + 0x81]
movzx ecx, byte [esi + 0x82]
movzx edx, byte [esi + 0x83]
shl ebp, 8
add ebp, eax
shl ebp, 8
add ebp, ecx
shl ebp, 8
add ebp, edx
push edi
lea esi, [esi + 0x84]
mov dword [esp + 0x24], 0
je 0x5a94fa
jmp 0x5a9460
movzx edi, byte [esi]
movzx eax, byte [esi + 1]
movzx ecx, byte [esi + 2]
movzx edx, byte [esi + 3]
shl edi, 8
add edi, eax
movzx eax, byte [esi + 4]
shl edi, 8
add edi, ecx
movzx ecx, byte [esi + 5]
shl eax, 8
add eax, ecx
movzx ecx, byte [esi + 7]
shl edi, 8
add edi, edx
movzx edx, byte [esi + 6]
shl eax, 8
add eax, edx
shl eax, 8
add eax, ecx
mov ecx, dword [esp + 0x20]
cmp eax, ecx
ja 0x5a9504
movzx edx, byte [esi + 8]
movzx ebx, byte [esi + 9]
shl edx, 8
add edx, ebx
movzx ebx, byte [esi + 0xa]
shl edx, 8
add edx, ebx
movzx ebx, byte [esi + 0xb]
shl edx, 8
add edx, ebx
sub ecx, eax
cmp edx, ecx
ja 0x5a9504
test al, 3
je 0x5a94e6
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push str.ICC_profile_tag_start_not_a_multiple_of_4
push eax
xor ebx, ebx
call fcn.005a8f10
add esp, 8
mov eax, dword [esp + 0x24]
inc eax
add esi, 0xc
mov dword [esp + 0x24], eax
cmp eax, ebp
jb 0x5a9460
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
push str.ICC_profile_tag_outside_profile
push ecx
mov ecx, dword [esp + 0x24]
call fcn.005a8f10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x5b1590
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x5b15b1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x5b15b1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x5b15b1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x5b7f80
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push ebx
push esi
mov esi, dword [esp + 0x18]
cmp ecx, 3
jne 0x5b7ffb
push edi
mov edi, dword [esp + 0x28]
test edi, edi
jle 0x5b7fdb
movzx eax, word [esi + 0x140]
cmp edi, eax
jg 0x5b7fdb
push edx
mov ebx, 0x74524e53
mov eax, esi
call fcn.005b6bf0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00585b7b
add esp, 0xc
ret
push str.Invalid_number_of_transparent_colors_specified
push esi
call fcn.005b1850
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00585b7b
add esp, 0xc
ret
test ecx, ecx
jne 0x5b8060
mov cl, byte [esi + 0x150]
movzx eax, word [eax + 8]
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x5b8033
push str.Ignoring_attempt_to_write_tRNS_chunk_out_of_range_for_bit_depth
push esi
call fcn.005b1850
add esp, 8
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00585b7b
add esp, 0xc
ret
mov ecx, eax
shr ecx, 8
push 2
mov ebx, 0x74524e53
mov byte [esp + 0xc], cl
mov byte [esp + 0xd], al
call fcn.005b6ac0
push 2
lea edx, [esp + 0x10]
push edx
push esi
call fcn.005b1100
push 2
jmp 0x5b80e5
cmp ecx, 2
jne 0x5b810a
movzx ecx, word [eax + 2]
mov edx, ecx
mov byte [esp + 9], cl
movzx ecx, word [eax + 4]
movzx eax, word [eax + 6]
mov ebx, ecx
mov byte [esp + 0xb], cl
mov ecx, eax
shr edx, 8
shr ebx, 8
shr ecx, 8
cmp byte [esi + 0x150], 8
mov byte [esp + 8], dl
mov byte [esp + 0xa], bl
mov byte [esp + 0xc], cl
mov byte [esp + 0xd], al
jne 0x5b80ca
or cl, bl
or cl, dl
je 0x5b80ca
push str.Ignoring_attempt_to_write_16_bit_tRNS_chunk_when_bit_depth_is_8
push esi
call fcn.005b1850
add esp, 8
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00585b7b
add esp, 0xc
ret
push 6
mov ebx, 0x74524e53
call fcn.005b6ac0
push 6
lea edx, [esp + 0x10]
push edx
push esi
call fcn.005b1100
push 6
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.005a82e0
push esi
call fcn.005b6ba0
add esp, 0x20
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00585b7b
add esp, 0xc
ret
push str.Cant_write_tRNS_with_an_alpha_channel
push esi
call fcn.005b1850
mov ecx, dword [esp + 0x18]
add esp, 8
pop esi
pop ebx
xor ecx, esp
call fcn.00585b7b
add esp, 0xc
ret
Function at 0x5b8130
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x18]
cmp ecx, 3
jne 0x5b81b8
movzx ecx, word [esi + 0x140]
test cx, cx
jne 0x5b8166
test byte [esi + 0x254], 1
jne 0x5b818d
movzx edx, byte [eax]
cmp dx, cx
jb 0x5b818d
push str.Invalid_background_palette_index
push esi
call fcn.005b15e0
add esp, 8
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00585b7b
add esp, 0xc
ret
mov al, byte [eax]
push 1
mov ebx, 0x624b4744
mov byte [esp + 0xc], al
call fcn.005b6ac0
push 1
lea ecx, [esp + 0x10]
push ecx
push esi
call fcn.005b1100
push 1
lea edx, [esp + 0x1c]
push edx
jmp 0x5b829c
test cl, 2
je 0x5b823b
movzx ecx, word [eax + 2]
mov edx, ecx
mov byte [esp + 9], cl
movzx ecx, word [eax + 4]
movzx eax, word [eax + 6]
mov ebx, ecx
mov byte [esp + 0xb], cl
mov ecx, eax
shr edx, 8
shr ebx, 8
shr ecx, 8
cmp byte [esi + 0x150], 8
mov byte [esp + 8], dl
mov byte [esp + 0xa], bl
mov byte [esp + 0xc], cl
mov byte [esp + 0xd], al
jne 0x5b821e
or cl, bl
or cl, dl
je 0x5b821e
push str.Ignoring_attempt_to_write_16_bit_bKGD_chunk_when_bit_depth_is_8
push esi
call fcn.005b15e0
add esp, 8
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00585b7b
add esp, 0xc
ret
push 6
mov ebx, 0x624b4744
call fcn.005b6ac0
push 6
lea edx, [esp + 0x10]
push edx
push esi
call fcn.005b1100
push 6
jmp 0x5b8297
mov cl, byte [esi + 0x150]
movzx eax, word [eax + 8]
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x5b826f
push str.Ignoring_attempt_to_write_bKGD_chunk_out_of_range_for_bit_depth
push esi
call fcn.005b15e0
add esp, 8
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00585b7b
add esp, 0xc
ret
mov ecx, eax
shr ecx, 8
push 2
mov ebx, 0x624b4744
mov byte [esp + 0xc], cl
mov byte [esp + 0xd], al
call fcn.005b6ac0
push 2
lea edx, [esp + 0x10]
push edx
push esi
call fcn.005b1100
push 2
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.005a82e0
push esi
call fcn.005b6ba0
mov ecx, dword [esp + 0x30]
add esp, 0x20
pop esi
pop ebx
xor ecx, esp
call fcn.00585b7b
add esp, 0xc
ret
Function at 0x402080
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x218a8
call fcn.0044b860
mov eax, dword [0x1353b2c]
lea ecx, [esp]
push eax
push 1
push 4
push ecx
call sub.MSVCRT.dll_fread
add esp, 0x10
test eax, eax
jne 0x4020bd
mov edx, dword [0x1353b2c]
lea eax, [esp]
push edx
push 1
push 4
push eax
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp eax, 1
je 0x4020cb
xor eax, eax
add esp, 0x218a8
ret
mov ecx, dword [esp]
push ecx
call fcn.0043921e
add esp, 4
cmp eax, 2
mov dword [esp], eax
jne 0x4020ea
xor eax, eax
add esp, 0x218a8
ret
cmp eax, 1
jne 0x402112
mov edx, dword [0x1353b2c]
push edx
push 0x300
push 0x1353b38
call fcn.0042576e
add esp, 0xc
mov dword [0x1353e38], 0
mov eax, dword [0x1353b2c]
lea ecx, [esp + 4]
push eax
push 4
push ecx
call fcn.0042576e
mov eax, dword [esp + 0x10]
add esp, 0xc
cmp eax, 0x20000
ja 0x402137
cmp eax, 1
jge 0x40214a
push str.Bad_compressed_frame_size
push 1
call fcn.0042071a
mov eax, dword [esp + 0xc]
add esp, 8
mov edx, dword [0x1353b2c]
push ebx
push esi
push edi
push edx
push eax
lea eax, [esp + 0x18bc]
push eax
call fcn.0042576e
mov ebx, dword [0x1353b34]
mov edi, dword [0x1458f44]
mov eax, 0x92492493
lea ecx, [ebx + 1]
imul ecx, edi
imul edi, ebx
imul ecx
add edx, ecx
mov eax, 0x92492493
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, dword [0x1353b2c]
mov esi, edx
imul edi
add edx, edi
push ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [esp + 0x28]
sub esi, edx
mov edx, dword [0x1458f4c]
imul edx, dword [0x1458f48]
imul edx, esi
push edx
push eax
call fcn.0042576e
mov edx, dword [0x1458f4c]
mov eax, dword [0x1458f48]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [0x1458f44]
push edx
push eax
push ecx
push esi
call fcn.0043c280
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x18e0]
push ecx
push eax
call fcn.00401e70
mov ecx, dword [0x1353b34]
add esp, 0x34
inc ecx
mov dword [esp + 0x14], edx
pop edi
pop esi
mov dword [0x1353b34], ecx
pop ebx
add esp, 0x218a8
ret