joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406027
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x4226e0], 0x4c554e
mov edi, 0x400
mov ebp, 0x4226e0
je 0x406073
push 1
push 0
push esi
call fcn.00405f51
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406192
cmp eax, edi
jg 0x406192
mov esi, 0x422ae0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406192
cmp eax, edi
jg 0x406192
push esi
push ebp
push str._s_s_r_n
push 0x4222e0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x424350]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406451
push 4
push 0xc0000000
push esi
call fcn.00405f51
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406192
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40618b
push edi
push esi
push ebp
call fcn.00405fc9
test eax, eax
je 0x40618b
push str._Rename__r_n
push esi
call fcn.00405eb6
test eax, eax
jne 0x406129
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40615e
add eax, 0xa
push 0x40a3f0
push eax
call fcn.00405eb6
mov ebp, eax
test ebp, ebp
je 0x40615a
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40614b
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406145
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406160
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4222e0
push eax
call fcn.00405f0c
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405ff8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406197
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x4061ba
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406027
pop ecx
pop ecx
inc dword [0x4243d0]
ret 8

Function at 0x4062a5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406244
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406314
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x406314
cmp dword [ebp + 0xc], 1
je 0x406317
cmp dword [ebp + 0xc], 2
je 0x406317
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x406778
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40679c
xor eax, eax
test eax, eax
je 0x4067ae
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4067ae
xor ecx, ecx
jmp 0x4067b1
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x40689d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422ee4], 0
push esi
jne 0x4068d4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4068ae
mov dword [ecx*4 + 0x422ee0], eax
inc ecx
cmp ecx, 0x100
jl 0x4068a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406905
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ee0]
xor eax, esi
inc ecx
dec edx
jne 0x4068e7
pop edi
not eax
pop esi
ret 0xc
Function at 0x107220b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.10722200
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x107220d6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x107220c2
add dl, dl
jne 0x107220e1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10722134
xor eax, eax
add dl, dl
jne 0x107220ee
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x107221d5
add dl, dl
jne 0x107220fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10722108
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10722113
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1072211e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1072212a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x107220cd
mov eax, 1
add dl, dl
jne 0x10722142
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1072214d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10722139
sub eax, ebx
mov ebx, 1
jne 0x10722180
mov ecx, 1
add dl, dl
jne 0x10722166
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10722171
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1072215d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x107220cd
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10722197
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x107221a2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1072218e
cmp eax, 0x7d00
jae 0x107221c5
cmp eax, 0x500
jb 0x107221c0
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x107220cd
cmp eax, 0x7f
ja 0x107221c8
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x107220cd
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x107221f6
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x107220cd
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x404af1
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x404b40
push dword [esp + 0x10]
push 0x404a6f
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x40e4dc]
cmp esi, ebx
je 0x404b94
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x404b38
cmp byte [esi + 0x10], bl
je 0x404b38
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x404b15
jmp 0x404b94
mov esi, dword [0x40e4dc]
cmp esi, ebx
je 0x404b94
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x404b8d
cmp byte [esi + 0x11], bl
je 0x404b6a
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x404b80
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x40e4dc
call fcn.0040a87d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x404b4b
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x407391
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x40740d
push 9
call esi
test bl, al
je 0x40740d
push 0x11
call esi
test bl, al
jne 0x40740d
push 0x10
call esi
test bl, al
jne 0x40740d
push 0x12
call esi
test bl, al
jne 0x40740d
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40740d
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40740d
xor eax, eax
jmp 0x40748f
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x407436
push 0x11
call esi
test bl, al
jne 0x40742e
push 0x10
call esi
test bl, al
jne 0x40742e
push 0x12
call esi
test bl, al
je 0x407436
push 1
push ebp
call fcn.0040734a
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40744c
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40748c
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40748c
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40748c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40748c
dec esi
push esi
push dword [0x40e820]
call fcn.0040a1aa
test eax, eax
je 0x40748c
mov eax, dword [eax + 8]
jmp 0x40748e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x4081ba
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x40822a
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x40820c
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x40820b
cmp dl, 0x5c
je 0x40820b
cmp dl, 0x2f
jne 0x408216
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x4081f9
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40822c
xor eax, eax
leave
ret 4

Function at 0x408300
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x408335
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4
Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4055b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push ebp
mov ebp, ecx
test eax, eax
jne 0x4055c7
xor al, al
pop ebp
add esp, 0xc
ret 4
push ebx
push esi
push edi
xor edi, edi
cmp byte [eax], 0
je 0x4055d8
inc edi
cmp byte [edi + eax], 0
jne 0x4055d1
add edi, 1
mov edx, eax
mov ecx, edi
mov ebx, 0xffffffff
je 0x405600
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x4aa840]
sub ecx, 1
jne 0x4055e6
mov esi, dword [ebp + 4]
not ebx
mov eax, dword [ebp + 8]
xor edx, edx
sub eax, esi
sar eax, 2
imul ecx, eax, 0xaaaaaaab
mov eax, ebx
div ecx
xor ecx, ecx
mov dword [esp + 0x10], ecx
lea eax, [edx + edx*2]
mov ebp, dword [esi + eax*4 + 4]
mov edx, dword [esi + eax*4]
mov eax, ebp
sub eax, edx
mov dword [esp + 0x18], ebp
sar eax, 2
imul eax, eax, 0xcccccccd
mov dword [esp + 0x14], edx
test eax, eax
je 0x4056a2
lea ebp, [edx + 4]
cmp dword [ebp - 4], ebx
jne 0x405687
mov eax, dword [ebp + 4]
mov esi, dword [ebp]
sub eax, esi
cmp edi, eax
jne 0x405687
test edi, edi
je 0x405673
xor edx, edx
test edi, edi
je 0x405673
mov eax, dword [esp + 0x20]
sub esi, eax
mov cl, byte [eax]
cmp cl, byte [esi + eax]
jne 0x40567f
inc edx
inc eax
cmp edx, edi
jb 0x405666
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
add esp, 0xc
ret 4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ecx
sub eax, edx
mov dword [esp + 0x10], ecx
sar eax, 2
add ebp, 0x14
imul eax, eax, 0xcccccccd
cmp ecx, eax
jb 0x405645
pop edi
pop esi
pop ebx
xor al, al
pop ebp
add esp, 0xc
ret 4
Function at 0x4056b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49262d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4b9068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov edi, dword [ebp + 0xc]
or ebx, 0xffffffff
mov esi, dword [ebp + 8]
mov edx, edi
test edi, edi
je 0x40570a
nop word [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x4aa840]
sub edx, 1
jne 0x4056f0
mov esi, dword [ecx + 4]
not ebx
mov eax, dword [ecx + 8]
xor edx, edx
sub eax, esi
sar eax, 2
imul ecx, eax, 0xaaaaaaab
mov eax, ebx
div ecx
xor eax, eax
mov dword [ebp + 0xc], eax
lea eax, [edx + edx*2]
shl eax, 2
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax + esi]
mov eax, dword [eax + esi + 4]
sub eax, ecx
mov dword [ebp - 0x14], ecx
sar eax, 2
imul eax, eax, 0xcccccccd
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4057b3
mov edx, dword [ebp - 0x10]
xor eax, eax
cmp dword [ecx], ebx
jne 0x4057a5
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 4]
sub eax, esi
cmp edi, eax
jne 0x4057a2
test edi, edi
je 0x40577e
xor edx, edx
test edi, edi
je 0x40577e
mov eax, dword [ebp + 8]
sub esi, eax
mov cl, byte [eax]
cmp cl, byte [esi + eax]
jne 0x40579c
inc edx
inc eax
cmp edx, edi
jb 0x405771
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x18]
lea edx, [eax + eax*4]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + eax]
mov eax, dword [ebp + 0x10]
mov dword [ecx + edx*4 + 0x10], eax
jmp 0x405871
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
inc eax
add ecx, 0x14
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x14], ecx
cmp eax, edx
jb 0x405752
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], ebx
test edi, edi
je 0x405804
push ecx
push edi
lea ecx, [ebp - 0x2c]
call fcn.00463450
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
sub eax, ecx
mov dword [ebp + 8], eax
nop dword [eax + eax]
mov al, byte [ecx + eax]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
mov eax, dword [ebp + 8]
sub edi, 1
jne 0x4057f0
mov ebx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov esi, dword [esi + 4]
add esi, dword [ebp - 0x1c]
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
je 0x405835
lea eax, [ebp - 0x2c]
mov dword [edi], ebx
push eax
lea ecx, [edi + 4]
call fcn.00453650
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x10], eax
add dword [esi + 4], 0x14
jmp 0x405841
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
push edi
call fcn.00462fd0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x405871
mov edx, dword [ebp - 0x24]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x405867
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405887
push edx
push ecx
call fcn.0046b5ea
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.0047bdf3
int3
Function at 0x4058c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push ebp
mov ebp, ecx
test eax, eax
jne 0x4058d5
pop ebp
add esp, 0xc
ret 4
push ebx
push esi
push edi
xor edi, edi
cmp byte [eax], 0
je 0x4058e7
nop
inc edi
cmp byte [edi + eax], 0
jne 0x4058e0
add edi, 1
mov edx, eax
mov ecx, edi
mov ebx, 0xffffffff
je 0x40590f
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x4aa840]
sub ecx, 1
jne 0x4058f5
mov esi, dword [ebp + 4]
not ebx
mov eax, dword [ebp + 8]
xor edx, edx
sub eax, esi
sar eax, 2
imul ecx, eax, 0xaaaaaaab
mov eax, ebx
div ecx
xor ecx, ecx
mov dword [esp + 0x10], ecx
lea eax, [edx + edx*2]
mov edx, dword [esi + eax*4 + 4]
mov ebp, dword [esi + eax*4]
mov eax, edx
sub eax, ebp
mov dword [esp + 0x18], edx
sar eax, 2
imul eax, eax, 0xcccccccd
mov dword [esp + 0x14], ebp
test eax, eax
je 0x4059c9
mov edx, dword [esp + 0x14]
add ebp, 4
cmp dword [ebp - 4], ebx
jne 0x4059ae
mov eax, dword [ebp + 4]
mov esi, dword [ebp]
sub eax, esi
cmp edi, eax
jne 0x4059ae
test edi, edi
je 0x405991
xor edx, edx
test edi, edi
je 0x405991
mov eax, dword [esp + 0x20]
sub esi, eax
nop dword [eax]
mov cl, byte [eax]
cmp cl, byte [esi + eax]
jne 0x4059a6
inc edx
inc eax
cmp edx, edi
jb 0x405980
mov ecx, dword [esp + 0x10]
pop edi
lea eax, [ecx + ecx*4]
mov ecx, dword [esp + 0x10]
pop esi
pop ebx
pop ebp
mov eax, dword [ecx + eax*4 + 0x10]
add esp, 0xc
ret 4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ecx
sub eax, edx
mov dword [esp + 0x10], ecx
sar eax, 2
add ebp, 0x14
imul eax, eax, 0xcccccccd
cmp ecx, eax
jb 0x405958
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0xc
ret 4
Function at 0x40ccf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
xor edi, edi
mov dword [esp + 0xc], edx
movss xmm1, dword [eax]
mov esi, ecx
comiss xmm1, xmm0
mov dword [esp + 8], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], edi
jbe 0x40cd6e
mov edi, dword [edx + 0x1c]
mov eax, 0x100
mov esi, dword [edx + 4]
cwde
movzx ecx, byte [edi + esi + 6]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 7]
add cx, ax
mov eax, 0x100
movsx edx, cx
movzx ecx, byte [edi + esi + 4]
cwde
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edi + esi + 5]
mov esi, dword [esp + 8]
add cx, ax
movsx eax, cx
sub eax, edx
xor edi, edi
movd xmm0, eax
jmp 0x40cd92
mov eax, dword [esp + 0xc]
mov edx, dword [edx + 0x14]
xorps xmm1, xmmword [0x4af6a0]
mov eax, dword [eax + 4]
movzx ecx, byte [edx + eax + 0x13]
movzx eax, byte [edx + eax + 0x12]
shl eax, 8
add ecx, eax
movd xmm0, ecx
mov ecx, dword [ebp + 8]
cvtdq2ps xmm0, xmm0
movzx eax, byte [esi + 0x1c]
mov byte [ecx + 0x14], al
movzx eax, byte [esi + 0x20]
xor esi, esi
mov byte [ecx + 0x15], al
divss xmm1, xmm0
movss dword [esp + 0x14], xmm1
cmp dword [ecx + 0xc], esi
jle 0x40cedb
mov edi, dword [ebp + 0x10]
add edi, 8
mov edx, dword [ecx + 8]
test edx, edx
jne 0x40cdcf
mov edx, dword [ecx + 4]
add edx, esi
jmp 0x40cdd2
mov edx, dword [edx + esi*4]
mov ecx, dword [esp + 0xc]
call fcn.004071c0
mov edx, dword [esp + 8]
mov ecx, eax
mov dword [esp + 0x2c], ecx
test ecx, ecx
jne 0x40ce06
cmp dword [edx + 0x18], eax
jne 0x40cdf4
cmp dword [esp + 0x10], eax
je 0x40ce06
mov dword [edi], 0
mov dword [edi - 4], 0
jmp 0x40cebc
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [edx + 0x20]
sub esp, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [esp + 4], 0
mov dword [esp], 0
addsd xmm0, qword [eax*8 + 0x4af670]
mov eax, dword [edx + 0x1c]
mov edx, ecx
mov ecx, dword [esp + 0x24]
cvtpd2ps xmm3, xmm0
movd xmm0, eax
mulss xmm3, dword [esp + 0x2c]
shr eax, 0x1f
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x4af670]
cvtpd2ps xmm2, xmm0
mulss xmm2, dword [esp + 0x2c]
call fcn.0040a540
mov edx, dword [esp + 0x20]
add esp, 0x18
mov eax, dword [esp + 0x20]
dec eax
mov ecx, dword [edx + 0x1c]
sub ecx, dword [esp + 0x1c]
add ecx, dword [edx + 0x14]
add eax, ecx
mov dword [edi - 4], eax
mov ecx, dword [edx + 0x20]
sub ecx, dword [esp + 0x24]
add ecx, dword [edx + 0x14]
mov eax, dword [esp + 0x28]
dec eax
add eax, ecx
cmp dword [esp + 0x2c], 0
mov dword [edi], eax
mov ecx, 1
mov eax, dword [esp + 0x10]
cmove eax, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 8]
inc esi
mov eax, dword [esp + 0x18]
add edi, 0x18
inc eax
mov dword [esp + 0x18], eax
cmp esi, dword [ecx + 0xc]
jl 0x40cdc1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e8a0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push edi
push 0x4a38a8
push ecx
mov dword [0x4fb1a4], ecx
call fcn.00470b50
mov esi, eax
add esp, 8
test esi, esi
je 0x40e934
push 2
push 0
push esi
call fcn.00474957
add esp, 0xc
push esi
call fcn.00470454
add esp, 4
mov ebx, eax
push 0
push 0
push esi
call fcn.00474957
add esp, 0xc
lea ecx, [ebx + 1]
push ecx
call fcn.0047be44
add esp, 4
mov edi, eax
push esi
push 1
push ebx
push edi
call fcn.0047b3a2
push esi
mov byte [ebx + edi], 0
call fcn.004745ea
add esp, 0x14
test edi, edi
je 0x40e934
push 0
mov edx, ebx
mov ecx, edi
call fcn.0040e970
add esp, 4
mov esi, eax
push edi
call fcn.0047af8e
add esp, 4
mov dword [0x4fb1a4], 0
mov eax, esi
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x4fb1a4]
mov ecx, str.MEMORY
test eax, eax
mov dword [0x4fb1a8], 0x35d
cmovne ecx, eax
push ecx
push str.Unable_to_find_map_file.
push 0x35d
push str.WARNING__cute_aseprite.h:_i_:__s___s__n
call fcn.004012d0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
ret