joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004b480
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x1004b4cf
lea edx, [esi + 8]
mov edi, eax
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x1004b492
mov eax, dword [esi]
jmp 0x1004b5b8
cmp eax, 0x4e0
jb 0x1004b5b8
push ebx
mov ebx, dword [esi + 0x9c4]
lea edi, [esi + 0x9c4]
push ebp
mov ebp, 0xe3
nop dword [eax]
lea edx, [edi]
mov eax, ebx
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub ebp, 1
jne 0x1004b4f0
mov ebx, dword [esi + 0xd50]
lea edi, [esi + 0xd50]
mov ebp, 0x18c
nop dword [eax]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub ebp, 1
jne 0x1004b540
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop ebp
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
pop ebx
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
ret
Function at 0x10051050
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov edi, dword [esp + 0x28]
push edi
mov dword [ebx + 0xc], 0
call fcn.1011dd10
push 2
push 0
push edi
mov esi, eax
call fcn.1011765c
push edi
call fcn.1011dd10
push 0
mov ebp, eax
mov dword [esp + 0x28], eax
push esi
push edi
sub ebp, esi
call fcn.1011765c
push ebp
call fcn.10115a2f
mov esi, eax
add esp, 0x24
test esi, esi
je 0x10051158
push edi
push 1
push ebp
push esi
call fcn.101171c3
add esp, 0x10
cmp eax, 1
jne 0x10051175
cmp dword [esi + 0x38], 1
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x14], eax
lea ecx, [eax - 0x40]
mov dword [esp + 0x28], ecx
jne 0x1005119b
push eax
call fcn.10115a2f
mov ecx, eax
add esp, 4
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], ecx
test ecx, ecx
je 0x100511c1
push dword [esp + 0x28]
lea eax, [ebp - 0x40]
push eax
lea eax, [ecx + 0x40]
push eax
lea eax, [esi + 0x40]
push eax
call fcn.10184da0
add esp, 0x10
push esi
cmp eax, dword [esp + 0x2c]
jne 0x100511e7
mov eax, dword [ebx + 0xc]
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [esi + 0x30]
movups xmmword [eax + 0x30], xmm0
call fcn.10115694
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebp
je 0x10051147
push 0
push eax
push edi
call fcn.1011765c
add esp, 0xc
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword [ebx + 0x40], eax
pop ebx
add esp, 0x14
ret 4
push str.Error_allocating_file_buffer_space
lea ecx, [esp + 0x1c]
call fcn.10048ab0
push 0x102db008
lea eax, [esp + 0x1c]
push eax
call fcn.1010ef67
push esi
call fcn.10115694
add esp, 4
lea ecx, [esp + 0x18]
push str.Invalid_index_file__cannot_read_from_disk__compressed_
call fcn.10048ab0
push 0x102db008
lea eax, [esp + 0x1c]
push eax
call fcn.1010ef67
push esi
call fcn.10115694
add esp, 4
lea ecx, [esp + 0x18]
push str.Compression_type_not_supported
call fcn.10048ab0
push 0x102db008
lea eax, [esp + 0x1c]
push eax
call fcn.1010ef67
push esi
call fcn.10115694
add esp, 4
lea ecx, [esp + 0x18]
push str.Error__re_allocating_decompression_buffer
call fcn.10048ab0
push 0x102db008
lea eax, [esp + 0x1c]
push eax
call fcn.1010ef67
call fcn.10115694
add esp, 4
lea ecx, [esp + 0x18]
push str.Unexpected_decompression_size
call fcn.10048ab0
push 0x102db008
lea eax, [esp + 0x1c]
push eax
call fcn.1010ef67
int3
Function at 0x10054200
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ecx
cmp edi, 0x10111
jae 0x10054251
push dword [esp + 0x20]
push 1
push edi
push dword [esi + 0x18]
call fcn.101171c3
add esp, 0x10
cmp eax, 1
jne 0x1005426e
push 0x10000
push edi
push dword [esp + 0x20]
push dword [esi + 0x18]
push dword [esi + 0x3c]
call fcn.101853a0
add esp, 0x14
test eax, eax
jle 0x1005428b
pop edi
mov dword [esi + 0x40], eax
pop esi
add esp, 0xc
ret 0xc
push str.Requested_block_size_too_large
lea ecx, [esp + 0xc]
call fcn.10048ab0
push 0x102db008
lea eax, [esp + 0xc]
push eax
call fcn.1010ef67
push str.Invalid_index_file__cannot_read_from_disk__block_
lea ecx, [esp + 0xc]
call fcn.10048ab0
push 0x102db008
lea eax, [esp + 0xc]
push eax
call fcn.1010ef67
push str.Invalid_index_file__cannot_decompress_block
lea ecx, [esp + 0xc]
call fcn.10048ab0
push 0x102db008
lea eax, [esp + 0xc]
push eax
call fcn.1010ef67
int3
Function at 0x10056310
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
add edx, ecx
add eax, dword [esp + 0x14]
cmp eax, edx
jbe 0x10056375
mov eax, dword [esi + 0x14]
cmp ecx, eax
jne 0x10056335
add eax, 0x10000
push dword [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esp + 0x18]
push 1
push 4
push eax
mov dword [esp + 0x24], 0
call fcn.101171c3
mov ecx, dword [esp + 0x24]
add esp, 0x10
test ecx, ecx
je 0x1005637c
cmp eax, 1
jne 0x1005637c
push dword [esi + 4]
push ecx
push dword [esi + 0xc]
mov ecx, esi
call fcn.10054200
mov eax, dword [esi + 0xc]
mov dword [esi + 0x10], eax
pop esi
add esp, 0xc
ret 4
push str.Requested_to_read_next_block_past_end_of_file
lea ecx, [esp + 8]
call fcn.10048ab0
push 0x102db008
lea eax, [esp + 8]
push eax
call fcn.1010ef67
int3
Function at 0x10060350
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x158]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x108]
test eax, eax
je 0x100603a8
cmp eax, 2
jne 0x10060379
push 0x3a
push str.RtApiWasapi::startStream__:_the_stream_is_already_running_
jmp 0x1006038a
cmp eax, 1
je 0x10060383
cmp eax, 0xffffffce
jne 0x10060395
push 0x3d
push str.RtApiWasapi::startStream__:_the_stream_is_stopping_or_closed_
lea ecx, [esi + 0xa0]
call fcn.10006700
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 1
mov ecx, esi
call sym.project.dll_protected:_enum_RtAudioErrorType___thiscall_RtApi::error_enum_RtAudioErrorType_
pop edi
pop esi
ret
push 0
push 4
push esi
push 0x1005fd80
push 0
push 0
mov dword [esi + 0x108], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x174], eax
test eax, eax
jne 0x100603f5
push 0x40
push str.RtApiWasapi::startStream:_Unable_to_instantiate_callback_thread.
lea ecx, [esi + 0xa0]
call fcn.10006700
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0xb
mov ecx, esi
call sym.project.dll_protected:_enum_RtAudioErrorType___thiscall_RtApi::error_enum_RtAudioErrorType_
pop edi
pop esi
ret
push dword [esi + 0x188]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 0x174]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
ret
Function at 0x10062990
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f088d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x102e5cc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov esi, dword [ebp + 8]
lea ecx, [edi + 0xc]
mov dword [edi], vtable.MidiApi.0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
movzx eax, byte [esi + 8]
mov byte [edi + 8], al
lea eax, [esi + 0xc]
push eax
call fcn.10005adc
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
movzx eax, byte [esi + 0x28]
mov byte [edi + 0x28], al
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x2c], eax
mov dword [edi], vtable.MidiInApi.0
lea ecx, [edi + 0x30]
movups xmm0, xmmword [esi + 0x30]
lea edi, [ecx + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], ecx
movups xmmword [ecx], xmm0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, dword [esi + 0x44]
mov dword [ebp - 0x10], edi
sub eax, dword [esi + 0x40]
je 0x10062a64
cmp eax, 0x7fffffff
ja 0x10062ac5
push eax
mov ecx, edi
call fcn.10008c1c
mov eax, dword [esi + 0x40]
mov esi, dword [esi + 0x44]
mov edi, dword [edi]
sub esi, eax
push esi
push eax
push edi
call fcn.1010efe0
mov ecx, dword [ebp - 0x14]
lea eax, [esi + edi]
mov edi, dword [ebp - 0x10]
add esp, 0xc
mov esi, dword [ebp + 8]
mov dword [edi + 4], eax
movsd xmm0, qword [esi + 0x50]
movsd qword [edi + 0x10], xmm0
movzx eax, byte [esi + 0x58]
mov byte [ecx + 0x28], al
movzx eax, byte [esi + 0x59]
mov byte [ecx + 0x29], al
movzx eax, byte [esi + 0x5a]
mov byte [ecx + 0x2a], al
mov eax, dword [esi + 0x5c]
mov dword [ecx + 0x2c], eax
movzx eax, byte [esi + 0x60]
mov byte [ecx + 0x30], al
mov eax, dword [esi + 0x64]
mov dword [ecx + 0x34], eax
mov eax, dword [esi + 0x68]
mov dword [ecx + 0x38], eax
movzx eax, byte [esi + 0x6c]
mov byte [ecx + 0x3c], al
mov eax, dword [esi + 0x70]
mov dword [ecx + 0x40], eax
mov eax, dword [esi + 0x74]
mov dword [ecx + 0x44], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.10008bf0
int3
Function at 0x10062ad0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f08f7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x102e5cc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
xorps xmm0, xmm0
mov byte [esi + 8], 0
movups xmmword [esi + 0xc], xmm0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0xf
mov byte [esi + 0xc], 0
mov dword [esi + 0x24], 0
mov byte [esi + 0x28], 0
mov dword [esi + 0x2c], 0
lea ecx, [esi + 0x30]
mov dword [esi], vtable.MidiInApi.0
mov dword [ebp - 0x14], ecx
lea eax, [ecx + 0x10]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
movsd qword [eax + 0x10], xmm0
mov dword [ebp - 4], 0
mov word [ecx + 0x28], 7
mov byte [ecx + 0x2a], 1
mov dword [ecx + 0x2c], 0
mov byte [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
mov byte [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0x400
mov dword [ecx + 0x44], 4
mov edi, dword [ebp + 8]
mov byte [ebp - 4], 1
mov dword [esi + 0x38], edi
test edi, edi
je 0x10062c19
xor ecx, ecx
mov dword [ebp - 0x14], edi
mov eax, edi
mov edx, 0x18
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.1010d49b
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x10062c14
push 0x10021c20
push 0x10062c30
push dword [ebp + 8]
mov dword [eax], edi
lea edi, [eax + 4]
push 0x18
push edi
call fcn.1010de3c
jmp 0x10062c16
xor edi, edi
mov dword [esi + 0x3c], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1006b440
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
xorps xmm0, xmm0
push esi
push edi
push dword [esp + 0x2c]
movlpd qword [esp + 0x14], xmm0
push dword [esp + 0x2c]
push ebp
push dword [esp + 0x2c]
call fcn.1010dc10
mov edi, dword [esp + 0x30]
mov esi, eax
mov ebx, edx
cmp dword [edi + 0x1e2c], 0
je 0x1006b4a3
push dword [edi + 0x1e44]
mov eax, dword [edi + 0x1e38]
push ebx
push esi
push dword [esp + 0x28]
call eax
mov esi, dword [esp + 0x30]
add esp, 0x10
push ebp
push esi
push edx
push eax
call fcn.1010d510
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
test ebx, ebx
jg 0x1006b4b9
jl 0x1006b4ad
test esi, esi
jne 0x1006b4b9
pop edi
pop esi
pop ebp
xor eax, eax
xor edx, edx
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x30], eax
test ebx, ebx
jne 0x1006b4d3
mov eax, esi
cmp esi, 0x40000000
jbe 0x1006b4d8
mov eax, 0x40000000
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esp + 0x28]
add eax, ebp
push eax
push dword [edi + 0x900]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006b51c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
test eax, eax
je 0x1006b530
cdq
add ebp, eax
adc ecx, edx
sub esi, eax
mov dword [esp + 0x30], ecx
sbb ebx, edx
test ebx, ebx
jg 0x1006b4d3
jl 0x1006b530
test esi, esi
jne 0x1006b4c5
jmp 0x1006b530
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.1006ba00
mov ecx, dword [esp + 0x38]
add esp, 8
cmp dword [edi + 0x1cfc], 0
je 0x1006b545
add dword [edi + 0x1d00], ebp
adc dword [edi + 0x1d04], ecx
push dword [esp + 0x24]
mov esi, dword [esp + 0x24]
push esi
push ecx
push ebp
call fcn.1010d510
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x1006b6c0
Capabilities:
Clear file content

Disassembly:
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push esi
xor esi, esi
test ecx, ecx
jg 0x1006b6dc
jl 0x1006b6d5
test eax, eax
jae 0x1006b6dc
mov eax, 1
pop esi
ret
push edi
mov edi, dword [esp + 0xc]
push 0
push 0
push ecx
push eax
push dword [edi + 0x900]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1006b713
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1006b713
push eax
push edi
or esi, 0xffffffff
call fcn.1006ba00
add esp, 8
mov eax, esi
pop edi
pop esi
ret
push dword [edi + 0x900]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1006b736
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.1006ba00
add esp, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x1006b740
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
xorps xmm0, xmm0
push esi
push edi
push dword [esp + 0x2c]
movlpd qword [esp + 0x14], xmm0
push dword [esp + 0x2c]
push ebp
push dword [esp + 0x2c]
call fcn.1010dc10
mov edi, dword [esp + 0x30]
mov esi, eax
mov ebx, edx
cmp dword [edi + 0x1e2c], 0
je 0x1006b7a3
push dword [edi + 0x1e44]
mov eax, dword [edi + 0x1e3c]
push ebx
push esi
push dword [esp + 0x28]
call eax
mov esi, dword [esp + 0x30]
add esp, 0x10
push ebp
push esi
push edx
push eax
call fcn.1010d510
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
test ebx, ebx
jg 0x1006b7b9
jl 0x1006b7ad
test esi, esi
jne 0x1006b7b9
pop edi
pop esi
pop ebp
xor eax, eax
xor edx, edx
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x30], eax
test ebx, ebx
jne 0x1006b7d3
mov eax, esi
cmp esi, 0x40000000
jbe 0x1006b7d8
mov eax, 0x40000000
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esp + 0x28]
add eax, ebp
push eax
push dword [edi + 0x900]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1006b81c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
test eax, eax
je 0x1006b830
cdq
add ebp, eax
adc ecx, edx
sub esi, eax
mov dword [esp + 0x30], ecx
sbb ebx, edx
test ebx, ebx
jg 0x1006b7d3
jl 0x1006b830
test esi, esi
jne 0x1006b7c5
jmp 0x1006b830
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.1006ba00
mov ecx, dword [esp + 0x38]
add esp, 8
cmp dword [edi + 0x1cfc], 0
je 0x1006b845
add dword [edi + 0x1d00], ebp
adc dword [edi + 0x1d04], ecx
push dword [esp + 0x24]
mov esi, dword [esp + 0x24]
push esi
push ecx
push ebp
call fcn.1010d510
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x1006b860
Capabilities:
Get file size

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
cmp dword [esi + 0x1e2c], 0
je 0x1006b887
push dword [esi + 0x1e44]
mov eax, dword [esi + 0x1e30]
call eax
add esp, 4
pop esi
add esp, 8
ret
lea eax, [esp + 4]
push eax
push dword [esi + 0x900]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1006b8a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1006b8b7
mov ecx, dword [esp + 4]
mov eax, ecx
mov edx, dword [esp + 8]
and eax, edx
cmp eax, 0xffffffff
jne 0x1006b8d1
call fcn.10117d97
push dword [eax]
push esi
call fcn.1006ba00
add esp, 8
or eax, 0xffffffff
or edx, eax
pop esi
add esp, 8
ret
cmp ecx, 0xfffffff1
jne 0x1006b8ee
cmp edx, 0xffffffff
jne 0x1006b8ee
mov dword [esi + 0x1ce4], 0xf
or eax, edx
or edx, edx
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x90c]
cmp eax, 0x10
je 0x1006b922
cmp eax, 0x20
je 0x1006b90f
cmp eax, 0x30
je 0x1006b950
or ecx, 0xffffffff
or edx, ecx
mov eax, ecx
pop esi
add esp, 8
ret
sub ecx, dword [esi + 0x1d58]
mov eax, ecx
sbb edx, dword [esi + 0x1d5c]
pop esi
add esp, 8
ret
cmp dword [esi + 0x1d5c], 0
jl 0x1006b950
jg 0x1006b936
cmp dword [esi + 0x1d58], 0
jbe 0x1006b950
mov eax, dword [esi + 0x1d50]
mov esi, dword [esi + 0x1d54]
test esi, esi
jl 0x1006b950
jg 0x1006b94c
test eax, eax
je 0x1006b950
mov ecx, eax
mov edx, esi
mov eax, ecx
pop esi
add esp, 8
ret
Function at 0x1006b960
Capabilities:
Get file size

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1006b988
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1006b988
or eax, 0xffffffff
or edx, eax
add esp, 8
ret
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 8
ret

Function at 0x1006bb20
Capabilities:
Get file size

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
cmp dword [esi + 0x1210], 0xffffffff
je 0x1006bb38
xor eax, eax
pop esi
add esp, 8
ret
push edi
push esi
push str._s_rsrc
lea edi, [esi + 0x910]
push 0x400
push edi
call fcn.10067f00
push edi
mov dword [esi + 0x1ce4], 0
call fcn.1006ba60
add esp, 0x14
mov dword [esi + 0x1210], eax
cmp eax, 0xffffffff
je 0x1006bbbd
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1006bba1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1006bba1
or eax, 0xffffffff
or ecx, eax
mov dword [esi + 0x1d60], eax
pop edi
mov dword [esi + 0x1d64], ecx
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x1d60], eax
xor eax, eax
pop edi
mov dword [esi + 0x1d64], ecx
pop esi
add esp, 8
ret
push ebx
push ebp
lea ebx, [esi + 0x800]
push ebx
lea ebp, [esi + 0x400]
push ebp
push str._s.__s
push 0x400
push edi
call fcn.10067f00
push edi
mov dword [esi + 0x1ce4], 0
call fcn.1006ba60
add esp, 0x18
mov dword [esi + 0x1210], eax
cmp eax, 0xffffffff
jne 0x1006bc2b
push ebx
push ebp
push str._s.AppleDouble__s
push 0x400
push edi
call fcn.10067f00
push edi
mov dword [esi + 0x1ce4], 0
call fcn.1006ba60
add esp, 0x18
mov dword [esi + 0x1210], eax
cmp eax, 0xffffffff
je 0x1006bc4a
push eax
call fcn.1006b960
add esp, 4
mov dword [esi + 0x1d60], eax
mov dword [esi + 0x1d64], edx
xor eax, eax
pop ebp
pop ebx
pop edi
pop esi
add esp, 8
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
call fcn.1006ba00
mov eax, dword [esi + 0x1ce4]
add esp, 8
pop ebp
pop ebx
pop edi
pop esi
add esp, 8
ret
Function at 0x10076300
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov ecx, dword [esi]
lea eax, [ecx - 8]
cmp eax, 0x14
ja 0x10076513
cmp ecx, 0xe
jge 0x1007632b
mov dword [esi + 8], 0x3c
mov eax, 0x10075c60
mov ecx, 0x10075b40
jmp 0x10076354
cmp ecx, 0x15
jge 0x10076343
mov dword [esi + 8], 0x28
mov eax, 0x10075eb0
mov ecx, 0x10075d70
jmp 0x10076354
mov dword [esi + 8], 0x1e
mov eax, 0x10076110
mov ecx, 0x10075fd0
push edi
mov edi, dword [esp + 0xc]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x90c]
cmp eax, 0x10
je 0x10076373
cmp eax, 0x30
jne 0x100764d6
mov dword [edi + 0x1df0], 0x10077010
mov dword [edi + 0x1df4], 0x10076fe0
mov dword [edi + 0x1df8], 0x10076990
mov dword [edi + 0x1dfc], 0x100766e0
mov eax, dword [esi + 0x10]
cmp eax, 0x10075fd0
jne 0x100764cf
mov ecx, dword [esi + 8]
mov eax, ecx
inc dword [esi + 0x18]
imul eax, dword [esi + 0x18]
mov dword [esi + 0x1c], 0
cmp eax, dword [esi + 4]
jle 0x100763df
lea eax, [ecx*4]
push eax
lea eax, [esi + 0xa0]
push 0
push eax
call fcn.1010f560
add esp, 0xc
jmp 0x100764d6
push ebx
push edi
push 0
push 0x7f
push 0
lea ebx, [esi + 0x20]
push 1
push ebx
call fcn.1006b440
add esp, 0x18
cmp eax, 0x7f
je 0x1007640b
push 0x7f
push eax
push str._Warning_:_short_read___d____d_._n
push edi
call fcn.10069fd0
add esp, 0x10
mov al, byte [ebx]
cmp al, 0xf0
je 0x10076422
movzx eax, al
push eax
push str.Error_A_:__02X_n
call fcn.10014c70
add esp, 8
mov bl, byte [esi + 0x21]
cmp bl, 0x7e
je 0x1007643b
movzx eax, bl
push eax
push str.Error_1_:__02X_n
call fcn.10014c70
add esp, 8
lea ecx, [esi + 0x23]
mov edx, 0x29
mov al, byte [ecx - 1]
lea ecx, [ecx + 3]
xor al, byte [ecx - 2]
xor bl, al
xor bl, byte [ecx - 3]
sub edx, 1
jne 0x10076443
mov al, byte [esi + 0x9d]
and bl, 0x7f
cmp bl, al
je 0x1007647e
movzx eax, al
push eax
movzx eax, bl
push eax
movzx eax, byte [esi + 0x24]
push eax
push str.Block__d_:_checksum_is__02X_should_be__02X_n
push edi
call fcn.10069fd0
add esp, 0x14
mov ebx, 0xffffffd9
lea edx, [esi + 0x27]
sub ebx, esi
nop dword [eax + eax]
movzx ecx, byte [edx - 2]
movzx eax, byte [edx - 1]
sub ecx, 0x40
shl ecx, 7
add ecx, eax
movzx eax, byte [edx]
shl ecx, 7
add ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 7
add ecx, eax
lea eax, [edx + ebx]
shr eax, 2
lea edx, [edx + 4]
shl ecx, 4
mov dword [esi + eax*4 + 0xa0], ecx
lea eax, [edx + ebx]
cmp eax, 0x78
jl 0x10076490
pop ebx
jmp 0x100764d6
push esi
push edi
call eax
add esp, 8
mov eax, dword [edi + 0x90c]
cmp eax, 0x20
je 0x100764e6
cmp eax, 0x30
jne 0x1007650e
mov dword [edi + 0x1e00], 0x10077a70
mov dword [edi + 0x1e04], 0x10077a40
mov dword [edi + 0x1e08], 0x10077640
mov dword [edi + 0x1e0c], 0x10077450
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [esp + 8]
pop esi
mov dword [eax + 0x1ce4], 0x93
mov eax, 0x93
ret