joyce8/EMBER2024-capa huggingface dataset:
Function at 0x562960
Capabilities:
Terminate process

Disassembly:
sub esp, 0x18
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x14], eax
cmp dword [esp + 0x20], 2
push esi
mov esi, ecx
mov byte [esp + 0x10], 0x70
mov byte [esp + 0x11], 0x48
mov byte [esp + 0x12], 0x59
mov byte [esp + 0x13], 0x73
mov byte [esp + 0x14], 0
jl 0x56299b
mov ecx, str.Unrecognized_unit_type_for_pHYs_chunk
call fcn.0054c4a0
mov eax, dword [esp + 0x20]
mov ecx, eax
shr ecx, 0x18
mov edx, eax
shr edx, 0x10
mov byte [esp + 4], cl
mov ecx, eax
mov byte [esp + 5], dl
shr ecx, 8
mov edx, ebx
shr edx, 0x18
mov byte [esp + 6], cl
mov byte [esp + 7], al
mov eax, ebx
mov ecx, ebx
mov byte [esp + 8], dl
mov dl, byte [esp + 0x24]
shr eax, 0x10
shr ecx, 8
test esi, esi
mov byte [esp + 9], al
mov byte [esp + 0xa], cl
mov byte [esp + 0xb], bl
mov byte [esp + 0xc], dl
je 0x562a20
push 9
lea ecx, [esp + 0x14]
call fcn.00560210
mov eax, dword [esi + 0x50]
add esp, 4
test eax, eax
je 0x562a30
push 9
lea ecx, [esp + 8]
push ecx
push esi
call eax
add esp, 0xc
mov edx, 9
lea ecx, [esp + 4]
call fcn.0054afb0
mov eax, esi
call fcn.00560320
mov ecx, dword [esp + 0x18]
pop esi
xor ecx, esp
call fcn.005d28b3
add esp, 0x18
ret
push edi
mov edi, str.Call_to_NULL_write_function
mov eax, esi
jmp fcn.0054c480

Function at 0x562a40
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov dl, byte [eax + 2]
cmp dl, 0xc
push esi
mov esi, ecx
mov byte [esp + 8], 0x74
mov byte [esp + 9], 0x49
mov byte [esp + 0xa], 0x4d
mov byte [esp + 0xb], 0x45
mov byte [esp + 0xc], 0
ja 0x562af4
cmp dl, 1
jb 0x562af4
mov cl, byte [eax + 3]
cmp cl, 0x1f
ja 0x562af4
cmp cl, 1
jb 0x562af4
cmp byte [eax + 4], 0x17
ja 0x562af4
mov cl, byte [eax + 6]
cmp cl, 0x3c
mov byte [esp + 7], cl
ja 0x562af4
movzx ecx, word [eax]
push ebx
mov ebx, ecx
mov byte [esp + 0x15], cl
mov cl, byte [eax + 3]
mov byte [esp + 0x17], cl
mov cl, byte [eax + 4]
mov al, byte [eax + 5]
mov byte [esp + 0x18], cl
movzx ecx, byte [esp + 0xb]
shr ebx, 8
mov byte [esp + 0x14], bl
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], cl
push esi
mov eax, 7
lea ebx, [esp + 0x18]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1a], dl
call fcn.005601c0
add esp, 4
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.005d28b3
add esp, 0x18
ret
mov ecx, str.Invalid_time_specified_for_tIME_chunk
call fcn.0054c4a0
mov ecx, dword [esp + 0x18]
pop esi
xor ecx, esp
call fcn.005d28b3
add esp, 0x18
ret
Function at 0x562b10
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push esi
mov esi, edx
test byte [esi + 0x268], 1
mov byte [esp + 4], 0x61
mov byte [esp + 5], 0x63
mov byte [esp + 6], 0x54
mov byte [esp + 7], 0x4c
mov byte [esp + 8], 0
mov dword [esi + 0x284], eax
je 0x562b50
sub eax, 1
mov edx, eax
shr edx, 0x18
mov byte [esp + 0xc], dl
mov edx, eax
shr edx, 0x10
mov byte [esp + 0xd], dl
mov edx, eax
mov byte [esp + 0xf], al
mov eax, ecx
shr edx, 8
shr eax, 0x18
mov byte [esp + 0xe], dl
mov byte [esp + 0x10], al
mov edx, ecx
mov eax, ecx
shr edx, 0x10
shr eax, 8
mov byte [esp + 0x13], cl
push 8
lea ecx, [esp + 8]
mov byte [esp + 0x15], dl
mov byte [esp + 0x16], al
call fcn.00560210
mov eax, dword [esi + 0x50]
add esp, 4
test eax, eax
je 0x562bd5
push 8
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
add esp, 0xc
mov edx, 8
lea ecx, [esp + 0xc]
call fcn.0054afb0
mov eax, esi
call fcn.00560320
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.005d28b3
add esp, 0x1c
ret
push edi
mov edi, str.Call_to_NULL_write_function
mov eax, esi
jmp fcn.0054c480
Function at 0x562bf0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x28
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
mov ebp, dword [esp + 0x34]
mov eax, dword [ebp + 0x288]
test eax, eax
push edi
mov bl, cl
mov byte [esp + 0xc], 0x66
mov byte [esp + 0xd], 0x63
mov byte [esp + 0xe], 0x54
mov byte [esp + 0xf], 0x4c
mov byte [esp + 0x10], 0
jne 0x562c6a
cmp dword [esp + 0x44], eax
jne 0x562c36
cmp dword [esp + 0x48], eax
je 0x562c42
mov edi, str.x_and_or_y_offset_for_the_first_frame_arent_0
mov eax, ebp
jmp fcn.0054c480
test eax, eax
jne 0x562c6a
mov eax, dword [esp + 0x3c]
cmp eax, dword [ebp + 0x270]
jne 0x562c5e
mov ecx, dword [esp + 0x40]
cmp ecx, dword [ebp + 0x274]
je 0x562c6a
mov edi, str.width_and_or_height_in_the_first_frames_fcTL_dont_match_the_ones_in_IHDR
mov eax, ebp
jmp fcn.0054c480
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x4c]
push eax
push ebp
call fcn.0054d9c0
mov eax, dword [ebp + 0x26c]
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0x24], cl
mov edx, eax
shr edx, 0x10
mov byte [esp + 0x25], dl
mov ecx, eax
shr ecx, 8
mov byte [esp + 0x26], cl
mov byte [esp + 0x27], al
mov eax, dword [esp + 0x4c]
mov edx, eax
shr edx, 0x18
mov byte [esp + 0x28], dl
mov ecx, eax
shr ecx, 0x10
mov byte [esp + 0x29], cl
mov edx, eax
shr edx, 8
mov byte [esp + 0x2a], dl
mov byte [esp + 0x2b], al
mov eax, esi
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0x2c], cl
mov edx, eax
shr edx, 0x10
mov byte [esp + 0x2d], dl
mov ecx, eax
shr ecx, 8
mov byte [esp + 0x2e], cl
mov byte [esp + 0x2f], al
mov eax, dword [esp + 0x54]
mov edx, eax
shr edx, 0x18
mov byte [esp + 0x30], dl
mov ecx, eax
shr ecx, 0x10
mov byte [esp + 0x31], cl
mov edx, eax
mov byte [esp + 0x33], al
mov eax, dword [esp + 0x58]
shr edx, 8
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0x32], dl
mov byte [esp + 0x34], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
mov byte [esp + 0x37], al
movzx eax, word [esp + 0x5c]
mov byte [esp + 0x35], dl
shr ecx, 8
mov edx, eax
mov byte [esp + 0x39], al
movzx eax, word [esp + 0x60]
mov byte [esp + 0x36], cl
shr edx, 8
mov ecx, eax
shr ecx, 8
mov byte [esp + 0x38], dl
mov dl, byte [esp + 0x64]
mov byte [esp + 0x3a], cl
mov byte [esp + 0x3b], al
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], dl
push 0x1a
lea ecx, [esp + 0x20]
mov esi, ebp
call fcn.00560210
mov eax, dword [ebp + 0x50]
add esp, 0x10
test eax, eax
je 0x562db9
push 0x1a
lea ecx, [esp + 0x1c]
push ecx
push ebp
call eax
add esp, 0xc
mov edx, 0x1a
lea ecx, [esp + 0x18]
call fcn.0054afb0
mov eax, ebp
call fcn.00560320
add dword [ebp + 0x26c], 1
mov ecx, dword [esp + 0x34]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.005d28b3
add esp, 0x28
ret
mov edi, str.Call_to_NULL_write_function
mov eax, ebp
jmp fcn.0054c480
Function at 0x562dd0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, eax
movzx ecx, byte [esi + 0x12b]
movzx eax, byte [esi + 0x128]
imul ecx, eax
cmp ecx, 8
push edi
jl 0x562df8
shr ecx, 3
imul ecx, dword [esi + 0xcc]
mov eax, ecx
jmp 0x562e07
mov eax, dword [esi + 0xcc]
imul eax, ecx
add eax, 7
shr eax, 3
lea edi, [eax + 1]
test edi, edi
je 0x562e42
mov eax, dword [esi + 0x23c]
test eax, eax
push edi
je 0x562e21
push esi
call eax
add esp, 8
jmp 0x562e29
call fcn.005d3435
add esp, 4
test eax, eax
jne 0x562e44
test dword [esi + 0x70], 0x100000
jne 0x562e44
mov edi, str.Out_of_Memory
mov eax, esi
jmp fcn.0054c480
xor eax, eax
mov dword [esi + 0xec], eax
mov byte [eax], 0
test byte [esi + 0x125], 0x10
je 0x562ea0
mov eax, dword [esi + 0xdc]
add eax, 1
je 0x562e95
mov ecx, dword [esi + 0x23c]
test ecx, ecx
push eax
je 0x562e74
push esi
call ecx
add esp, 8
jmp 0x562e7c
call fcn.005d3435
add esp, 4
test eax, eax
jne 0x562e97
test dword [esi + 0x70], 0x100000
jne 0x562e97
mov edi, str.Out_of_Memory
mov eax, esi
jmp fcn.0054c480
xor eax, eax
mov dword [esi + 0xf0], eax
mov byte [eax], 1
test byte [esi + 0x125], 0xe0
je 0x562f18
mov eax, edi
mov ecx, esi
call fcn.00560000
test byte [esi + 0x125], 0x20
mov dword [esi + 0xe8], eax
je 0x562ed8
mov ecx, dword [esi + 0xdc]
add ecx, 1
call fcn.00560060
mov dword [esi + 0xf4], eax
mov byte [eax], 2
test byte [esi + 0x125], 0x40
je 0x562ef8
mov ecx, dword [esi + 0xdc]
add ecx, 1
call fcn.00560060
mov dword [esi + 0xf8], eax
mov byte [eax], 3
test byte [esi + 0x125], 0x80
je 0x562f18
mov ecx, dword [esi + 0xdc]
add ecx, 1
call fcn.00560060
mov dword [esi + 0xfc], eax
mov byte [eax], 4
cmp byte [esi + 0x123], 0
je 0x562f67
test byte [esi + 0x74], 2
jne 0x562f4d
mov ecx, dword [esi + 0xd0]
mov edx, dword [esi + 0xcc]
add ecx, 7
shr ecx, 3
add edx, 7
shr edx, 3
mov dword [esi + 0xd4], ecx
mov dword [esi + 0xd8], edx
jmp 0x562f7f
mov eax, dword [esi + 0xd0]
mov ecx, dword [esi + 0xcc]
mov dword [esi + 0xd4], eax
mov dword [esi + 0xd8], ecx
jmp 0x562f7f
mov edx, dword [esi + 0xd0]
mov eax, dword [esi + 0xcc]
mov dword [esi + 0xd4], edx
mov dword [esi + 0xd8], eax
mov ecx, dword [esi + 0xb4]
mov edx, dword [esi + 0xb0]
pop edi
mov dword [esi + 0x88], ecx
mov dword [esi + 0x84], edx
pop esi
ret
Function at 0x562fa0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x70
push ebp
xor ebp, ebp
mov ecx, 1
push esi
mov esi, eax
add dword [esi + 0xe4], ecx
mov eax, 2
mov edx, 8
mov dword [esp + 0x38], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x74], ecx
mov ecx, dword [esi + 0xe4]
cmp ecx, dword [esi + 0xd4]
push edi
mov edi, 4
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ebp
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
jb 0x5631ea
cmp byte [esi + 0x123], 0
push ebx
je 0x563147
test byte [esi + 0x74], al
mov dword [esi + 0xe4], ebp
je 0x563072
add byte [esi + 0x124], 1
mov bl, byte [esi + 0x124]
jmp 0x5630d8
xor ebp, ebp
add byte [esi + 0x124], 1
mov bl, byte [esi + 0x124]
cmp bl, 7
jae 0x563147
mov eax, dword [esi + 0xcc]
movzx ecx, bl
add ecx, ecx
add ecx, ecx
sub eax, dword [esp + ecx + 0x2c]
mov edi, dword [esp + ecx + 0x10]
xor edx, edx
lea eax, [eax + edi - 1]
div edi
mov edx, dword [esi + 0xd0]
sub edx, dword [esp + ecx + 0x64]
mov ebp, dword [esp + ecx + 0x48]
mov edi, eax
lea eax, [edx + ebp - 1]
xor edx, edx
div ebp
test edi, edi
mov dword [esi + 0xd8], edi
mov dword [esi + 0xd4], eax
je 0x563070
test eax, eax
je 0x563070
mov edx, 8
xor ebp, ebp
cmp bl, 7
jae 0x563147
mov ecx, dword [esi + 0xe8]
cmp ecx, ebp
je 0x5631e9
movzx eax, byte [esi + 0x12b]
movzx edi, byte [esi + 0x128]
imul eax, edi
cmp eax, edx
jl 0x563122
shr eax, 3
imul eax, dword [esi + 0xcc]
mov esi, eax
add esi, 1
push esi
push ebp
push ecx
call fcn.005da970
add esp, 0xc
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x70
ret
mov esi, dword [esi + 0xcc]
imul esi, eax
add esi, 7
shr esi, 3
add esi, 1
push esi
push ebp
push ecx
call fcn.005da970
add esp, 0xc
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x70
ret
lea edi, [esi + 0x78]
lea ebx, [ebx]
push 4
call fcn.005644f0
add esp, 4
cmp eax, ebp
jne 0x563198
cmp dword [esi + 0x88], ebp
jne 0x563150
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0xb0]
push eax
push ecx
mov ecx, esi
call fcn.00560d70
mov edx, dword [esi + 0xb0]
mov eax, dword [esi + 0xb4]
add esp, 8
mov dword [esi + 0x84], edx
mov dword [esi + 0x88], eax
jmp 0x563150
cmp eax, 1
je 0x5631b8
mov edi, dword [esi + 0x90]
cmp edi, ebp
mov eax, esi
je 0x5631ae
jmp fcn.0054c480
mov edi, str.zlib_error
jmp fcn.0054c480
mov ecx, dword [esi + 0x88]
mov eax, dword [esi + 0xb4]
cmp ecx, eax
jae 0x5631dc
sub eax, ecx
mov ecx, dword [esi + 0xb0]
push eax
push ecx
mov ecx, esi
call fcn.00560d70
add esp, 8
mov eax, edi
call fcn.005643f0
mov dword [esi + 0xa4], ebp
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x70
ret
Function at 0x564060
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 0x104]
push edi
lea edi, [esi + 0x78]
mov dword [edi], eax
mov dword [esi + 0x7c], 0
add ebx, 1
lea ebx, [ebx]
cmp dword [esi + 0x7c], 0
jne 0x56409c
cmp ebx, 0xffffffff
jbe 0x564097
mov dword [esi + 0x7c], 0xffffffff
add ebx, 1
jmp 0x56409c
mov dword [esi + 0x7c], ebx
xor ebx, ebx
push 0
call fcn.005644f0
add esp, 4
test eax, eax
jne 0x564137
cmp dword [esi + 0x88], eax
jne 0x5640e6
mov ecx, dword [esi + 0xb4]
mov edx, dword [esi + 0xb0]
push ecx
push edx
mov ecx, esi
call fcn.00560d70
mov eax, dword [esi + 0xb0]
mov ecx, dword [esi + 0xb4]
add esp, 8
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], ecx
test ebx, ebx
ja 0x564080
cmp dword [esi + 0x7c], 0
ja 0x56409c
mov eax, dword [esi + 0xe8]
test eax, eax
je 0x56410c
mov edx, dword [esi + 0xec]
mov dword [esi + 0xe8], edx
mov dword [esi + 0xec], eax
mov eax, esi
call fcn.00562fa0
add dword [esi + 0x154], 1
mov eax, dword [esi + 0x150]
test eax, eax
mov ecx, dword [esi + 0x154]
jbe 0x564133
cmp ecx, eax
jb 0x564133
call fcn.0054a960
pop edi
pop esi
pop ebx
ret
mov edi, dword [esi + 0x90]
test edi, edi
mov eax, esi
je 0x564148
jmp fcn.0054c480
mov edi, str.zlib_error
jmp fcn.0054c480

Function at 0x564160
Capabilities:
Terminate process

Disassembly:
cmp dword [ebx + 0x288], 0
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, eax
mov esi, ecx
jne 0x564190
cmp edi, dword [ebx + 0x270]
jne 0x564184
cmp ebp, dword [ebx + 0x274]
je 0x564190
mov edi, str.width_and_or_height_in_the_first_frames_fcTL_dont_match_the_ones_in_IHDR
mov eax, ebx
jmp fcn.0054c480
cmp edi, dword [ebx + 0x270]
ja 0x56420b
cmp ebp, dword [ebx + 0x274]
ja 0x56420b
movzx eax, byte [esi + 0x1b]
movzx ecx, byte [esi + 0x1a]
movzx edx, byte [esi + 0x1c]
push eax
movzx eax, byte [esi + 0x19]
push ecx
movzx ecx, byte [esi + 0x18]
push edx
push eax
push ecx
push ebp
push ebx
call fcn.0054cd70
mov al, byte [ebx + 0x129]
add esp, 0x1c
cmp al, 8
mov dword [ebx + 0xcc], edi
mov dword [ebx + 0xd0], ebp
movzx eax, al
jb 0x5641f2
shr eax, 3
imul eax, edi
mov dword [ebx + 0xd8], edi
pop edi
pop esi
mov dword [ebx + 0xdc], eax
pop ebp
ret
imul eax, edi
mov dword [ebx + 0xd8], edi
pop edi
add eax, 7
shr eax, 3
pop esi
mov dword [ebx + 0xdc], eax
pop ebp
ret
mov edi, str.width_and_or_height_for_a_frame_greater_thanthe_ones_in_IHDR
mov eax, ebx
jmp fcn.0054c480

Function at 0x566300
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x566307
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.00566310
Function at 0x566310
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x566342
lea esp, [esp]
test cl, 3
je 0x566342
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x61aa40]
add ecx, 1
sub esi, 1
jne 0x566320
cmp esi, 0x20
push ebx
push edi
jb 0x56652c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x61ae40]
xor edx, dword [ebx*4 + 0x61b240]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x61aa40]
add ecx, 4
xor edx, dword [eax*4 + 0x61b640]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x61ae40]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x61b240]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x61aa40]
add ecx, 4
xor eax, dword [edx*4 + 0x61b640]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x61ae40]
xor edx, dword [ebx*4 + 0x61b240]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x61aa40]
xor edx, dword [eax*4 + 0x61b640]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x61ae40]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x61b240]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x61aa40]
xor eax, dword [edx*4 + 0x61b640]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x61ae40]
xor edx, dword [ebx*4 + 0x61b240]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x61aa40]
xor edx, dword [eax*4 + 0x61b640]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x61ae40]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x61b240]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x61aa40]
and edx, 0xff
xor eax, dword [edx*4 + 0x61b640]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x61ae40]
xor edx, dword [ebx*4 + 0x61b240]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x61aa40]
add ecx, 4
xor edx, dword [eax*4 + 0x61b640]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x61ae40]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x61b240]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x61aa40]
and edx, 0xff
xor eax, dword [edx*4 + 0x61b640]
sub edi, 1
jne 0x566352
cmp esi, 4
jb 0x566579
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x61ae40]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x61b240]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x61aa40]
and eax, 0xff
xor edi, dword [eax*4 + 0x61b640]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x566536
test esi, esi
pop edi
pop ebx
je 0x56659d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x61aa40]
add ecx, 1
sub esi, 1
jne 0x566580
not eax
pop esi
ret
Function at 0x571350
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
lea eax, [esp + 0x20]
mov esi, edx
push eax
mov ebx, ecx
xor edi, edi
push esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x571491
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
push edx
mov eax, esi
call fcn.005714b0
add esp, 8
test eax, eax
je 0x571491
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, ecx
je 0x571491
mov edx, dword [esp + 0xc]
cmp edx, ecx
jbe 0x571491
cmp dword [ebp + 8], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0xc]
lea edi, [esp + 0x10]
push ecx
je 0x571400
mov esi, edx
mov ebx, eax
call fcn.005711f0
mov ebx, dword [esp + 0x1c]
jmp 0x571407
mov esi, eax
call fcn.005712e0
mov esi, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x57146b
test esi, esi
je 0x571478
cmp dword [esp + 0xc], 0
jbe 0x57146b
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea edx, [esp + 0x20]
push edx
push ebx
call edi
cmp eax, 0xffffffff
je 0x57143e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x20]
push eax
push ebx
call edi
cmp eax, 0xffffffff
je 0x571454
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x57146b
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x1c]
push ecx
mov ebx, esi
call fcn.00571570
add esp, 4
mov dword [esp + 0x14], eax
test esi, esi
je 0x571478
push esi
call fcn.005d2367
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.005d28b3
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x274]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005d28b3
mov esp, ebp
pop ebp
ret
Function at 0x5714b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5714d7
xor eax, eax
pop esi
pop ecx
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5714f5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
pop ecx
ret
push ebx
push edi
call fcn.005d2776
add esp, 4
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
mov ebx, eax
push ebx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
jne 0x57152b
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, dword [esp + 0xc]
jne 0x57154d
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edx], ebx
pop ebx
mov dword [eax], edi
pop edi
mov eax, 1
pop esi
pop ecx
ret
test ebx, ebx
je 0x57155a
push ebx
call fcn.005d2367
add esp, 4
pop ebx
pop edi
xor eax, eax
pop esi
pop ecx
ret

Function at 0x571570
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x260
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebp
xor ebp, ebp
cmp ebx, ebp
push esi
je 0x571650
cmp dword [esp + 0x26c], ebp
jbe 0x571650
cmp edi, ebp
je 0x571650
mov eax, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x5715b0
sub eax, edx
sar eax, 1
je 0x571650
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x571650
mov ecx, dword [esp + 0x26c]
push ebp
lea eax, [esp + 0x10]
push eax
push ecx
push ebx
push esi
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x57162d
xor eax, eax
pop esi
pop ebp
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.005d28b3
add esp, 0x260
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop esi
pop ebp
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.005d28b3
add esp, 0x260
ret
mov ecx, dword [esp + 0x264]
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.005d28b3
add esp, 0x260
ret

Function at 0x571bb5
Capabilities:
Clear file content

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, ecx
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
lea ecx, [esp + 4]
push ecx
push 0
push edx
mov ecx, esi
mov dword [esp + 0x10], 0
call eax
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop esi
pop ecx
ret 4
Function at 0x571bf0
Capabilities:
Get file size

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x571c08
mov eax, 0x80070057
pop esi
add esp, 8
ret 4
mov ecx, dword [ecx + 8]
lea eax, [esp + 4]
push eax
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x571c39
mov dword [esi], eax
mov eax, 0x80004005
pop esi
add esp, 8
ret 4
cmp dword [esp + 8], 0
ja 0x571c49
mov eax, dword [esp + 4]
cmp eax, 0xffffffff
jbe 0x571c5b
mov dword [esi], 0xffffffff
mov eax, 0x80004005
pop esi
add esp, 8
ret 4
mov dword [esi], eax
xor eax, eax
pop esi
add esp, 8
ret 4

Function at 0x571dd0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [ecx + 8]
cmp edx, 0xffffffff
je 0x571e1e
mov eax, dword [esp + 4]
test eax, eax
je 0x571e1e
mov ecx, dword [eax]
push esi
mov esi, dword [eax + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x571e0b
mov eax, 0x80004005
pop esi
ret 4
mov eax, dword [esp + 8]
sub eax, esi
neg eax
sbb eax, eax
and eax, 0x80004005
pop esi
ret 4
mov eax, 0x80070057
ret 4

Function at 0x571ee3
Capabilities:
Clear file content

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov edx, dword [esi]
mov edx, dword [edx + 0x3c]
xor eax, eax
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x14]
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call edx
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop esi
add esp, 8
ret 8