joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e380
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1005c300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1000e533
push 0
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1000e525
mov ecx, dword [ebp - 0x104]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
test ecx, ecx
je 0x1000e43b
push 0
lea eax, [ebp - 0x108]
push eax
mov eax, 0xfa
cmp ecx, eax
cmovb eax, ecx
push eax
lea eax, [ebp - 0x100]
push eax
push dword [esi + 0x4c]
call edi
test eax, eax
je 0x1000e4f5
mov eax, dword [ebp - 0x108]
cmp eax, 0xfb
jae 0x1000e546
mov byte [ebp + eax - 0x100], 0
lea eax, [ebp - 0x100]
push eax
push 0x10049278
call dword [0x1005c004]
mov ecx, dword [ebp - 0x104]
add esp, 8
sub ecx, dword [ebp - 0x108]
mov dword [ebp - 0x104], ecx
jne 0x1000e3d1
push 0
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x1000e51e
mov ecx, dword [ebp - 0x104]
test ecx, ecx
je 0x1000e4cf
push 0
lea eax, [ebp - 0x108]
push eax
mov eax, 0xfa
cmp ecx, eax
cmovb eax, ecx
push eax
lea eax, [ebp - 0x100]
push eax
push dword [esi + 0x44]
call edi
test eax, eax
je 0x1000e517
mov eax, dword [ebp - 0x108]
cmp eax, 0xfb
jae 0x1000e546
mov byte [ebp + eax - 0x100], 0
lea eax, [ebp - 0x100]
push eax
push 0x10049278
call dword [section..data]
mov ecx, dword [ebp - 0x104]
add esp, 8
sub ecx, dword [ebp - 0x108]
mov dword [ebp - 0x104], ecx
jne 0x1000e465
push dword [ebp + 8]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10043872
mov esp, ebp
pop ebp
ret 4
push str.AFXERROR:_COutFFMPEGVideoStream::HandleOutAndErr:_StdErr_ReadFile._n
call dword [0x1005c004]
add esp, 4
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10043872
mov esp, ebp
pop ebp
ret 4
push str.AFXERROR:_COutFFMPEGVideoStream::HandleOutAndErr:_StdOut_ReadFile._n
jmp 0x1000e4fa
push str.AFXERROR:_COutFFMPEGVideoStream::HandleOutAndErr:_StdOut_PeekNamedPipe._n
jmp 0x1000e4fa
push str.AFXERROR:_COutFFMPEGVideoStream::HandleOutAndErr:_StdErr_PeekNamedPipe._n
call dword [0x1005c004]
add esp, 4
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.10043872
mov esp, ebp
pop ebp
ret 4
call fcn.100439d3
int3
Function at 0x1000e550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x38], 1
je 0x1000e566
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi + 0xc]
dec eax
push edi
mov edi, dword [esi + 0x1c]
cmp eax, 3
ja case.default.0x1000e573
jmp dword [eax*4 + 0x1000e644]
mov eax, 3
jmp 0x1000e591
mov eax, 4
jmp 0x1000e591
mov eax, 1
jmp 0x1000e591
xor eax, eax
push ebx
mov ebx, dword [esi + 0x10]
imul ebx, eax
cmp ebx, dword [esi + 0x18]
jne 0x1000e5a1
imul ebx, dword [esi + 0x14]
test edi, edi
je 0x1000e639
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 0x54]
nop
push ecx
push 0
push ebx
push eax
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000e624
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1000e5f6
nop
push 0
mov ecx, esi
call fcn.1000e380
test al, al
je 0x1000e5f6
push 0x3e8
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1000e608
cmp eax, 0x102
je 0x1000e5d0
mov ecx, esi
call fcn.1000e2b0
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x54]
push eax
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1000e5f6
cmp dword [ebp - 4], edi
jne 0x1000e5f6
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 0x54]
sub edi, ebx
add eax, ebx
mov dword [ebp + 0x10], eax
test edi, edi
jne 0x1000e5b0
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10018ba0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1005c300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10018c5c
cmp byte [esi + 0x3d], 0
je 0x10018c5c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10018c4a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10018c11
sub eax, 1
je 0x10018c15
sub eax, 2
jne 0x10018c4a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10043872
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10018c33
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10018c4a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10043872
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10043872
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10043872
mov esp, ebp
pop ebp
ret
Function at 0x1001a160
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x1001a181
jl 0x1001a177
test esi, esi
jne 0x1001a181
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1001a198
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
pop ebp
ret 0xc
push edi
mov edi, esi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
test eax, eax
je 0x1001a1d4
cmp eax, dword [ebp + 0xc]
mov ecx, ebx
cmovb esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
mov edi, dword [ebp + 8]
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add edi, esi
add esp, 0xc
mov dword [ebp + 8], edi
mov ecx, ebx
mov edi, dword [ebp + 0xc]
sub edi, esi
push esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x1001a248
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const]
lea ecx, [ebx + 0x3c]
cmp eax, ecx
jne 0x1001a1fc
push dword [ebx + 0x54]
mov eax, dword [ebx + 0x50]
mov ecx, ebx
push eax
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, edi
cmp edi, 0xfff
jbe 0x1001a236
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x1001a248
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1001a210
test ecx, ecx
je 0x1001a248
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
pop ebp
ret 0xc
Function at 0x1001a260
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1001a285
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x1001a2f0
jg 0x1001a2ab
test esi, esi
je 0x1001a2f0
test ecx, ecx
jl 0x1001a32a
jg 0x1001a2b5
test eax, eax
je 0x1001a32a
cmp edi, ecx
jg 0x1001a2c5
jl 0x1001a2bf
cmp esi, eax
jae 0x1001a2c5
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add dword [ebp + 8], ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
mov eax, dword [ebp + 8]
test edi, edi
jl 0x1001a317
jg 0x1001a2fd
test esi, esi
je 0x1001a317
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x1001a317
push ecx
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
jmp 0x1001a2fd
Function at 0x1001bb20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
test edi, edi
je 0x1001bb9c
lea eax, [edi + edi]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x1001bb9c
push 0
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
inc eax
cmp edi, eax
jne 0x1001bb9c
mov bl, byte [ebp + 0x10]
xor eax, eax
xor edi, edi
test eax, eax
je 0x1001bb6f
xor ecx, ecx
inc edi
mov word [eax], cx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1001bbaf
test bl, bl
je 0x1001bb8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1001bbaf
push 0x5c
push esi
call sub.VCRUNTIME140.dll_wcsrchr
add esp, 8
test eax, eax
jne 0x1001bb69
xor bl, bl
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
pop ebp
ret
mov bl, 1
test edi, edi
je 0x1001bbeb
mov eax, esi
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001bbc0
sub eax, edx
mov ecx, 0x5c
sar eax, 1
dec edi
push 0
push esi
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x1001bbb1
test bl, bl
je 0x1001bb9e
mov ecx, dword [ebp + 0xc]
push esi
call fcn.1001be40
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10025ba0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1005c300]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0x1c]
mov cl, byte [ebp + 0x18]
add al, 2
mov edx, dword [ebp + 0xc]
mov byte [ebp - 0x16], al
mov eax, dword [ebp + 0x10]
mov byte [ebp - 0xc], al
shr eax, 8
mov byte [ebp - 0xb], al
mov eax, dword [ebp + 0x14]
push ebx
mov byte [ebp - 0xa], al
mov bh, cl
shr eax, 8
mov bl, cl
mov byte [ebp - 9], al
and bh, 7
mov al, byte [ebp + 0x28]
mov byte [ebp - 8], cl
mov cl, byte [ebp + 0x24]
push esi
mov esi, dword [ebp + 8]
and cl, 0xf
shl al, 5
or cl, al
shr bl, 3
push 0x10048ac8
push edx
lea eax, [ebp - 0x1c]
mov word [ebp - 0x18], 0
push eax
mov dword [ebp - 0x15], 0
mov dword [ebp - 0x11], 0
mov byte [ebp - 0xd], 0
mov byte [ebp - 7], cl
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov eax, dword [ebp - 0x1c]
add esp, 0xc
test eax, eax
je 0x10025ce7
push edi
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push eax
push 0xc
lea eax, [ebp - 0x18]
push 1
push eax
call edi
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push 6
push 1
push eax
call edi
lea eax, [ebx + 1]
add esp, 0x20
movzx ecx, al
test bh, bh
movzx eax, bl
cmove ecx, eax
mov eax, dword [ebp + 0x10]
movzx eax, ax
movzx ebx, cl
imul ebx, eax
mov eax, dword [ebp + 0x14]
cmp ebx, dword [ebp + 0x20]
jne 0x10025ca4
push dword [ebp - 0x1c]
movzx eax, ax
imul eax, ebx
push eax
push 1
push esi
call edi
add esp, 0x10
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10043872
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp cx, ax
jae 0x10025cc8
movzx edi, ax
nop
push dword [ebp - 0x1c]
push ebx
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esi, dword [ebp + 0x20]
add esp, 0x10
sub edi, 1
jne 0x10025cb0
push dword [ebp - 0x1c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10043872
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.10043872
mov esp, ebp
pop ebp
ret
Function at 0x10025d00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x10025dc8
nop dword [eax]
cmp edi, dword [0x1005c014]
jb 0x10025d48
cmp edi, dword [0x1005c018]
ja 0x10025d48
sub edi, 0x8000000
jmp 0x10025dc0
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
je 0x10025dc8
cmp dword [ebp - 0xc], 0x10000
jne 0x10025dab
cmp dword [ebp - 0x10], 0x10000
jb 0x10025dab
push 0x40
push 0x3000
push 0x10000
push edi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x10025e7a
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x10025dc8
sub edi, 0x10000
jmp 0x10025dc0
mov ecx, dword [ebp - 0x18]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x10025d30
movzx eax, si
test eax, eax
je 0x10025dd7
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 0x10]
cmp esi, edi
jae 0x10025e78
cmp esi, dword [0x1005c014]
jb 0x10025dfa
cmp esi, dword [0x1005c018]
ja 0x10025dfa
add esi, 0x8000000
jmp 0x10025e70
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
je 0x10025e78
cmp dword [ebp - 0xc], 0x10000
mov ecx, dword [ebp - 0x10]
jne 0x10025e5b
cmp ecx, 0x10000
jb 0x10025e5b
push 0x40
push 0x3000
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x10025e7a
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x10025e78
add esi, 0x10000
jmp 0x10025e70
mov esi, dword [ebp - 0x1c]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x10025e70
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x10025de2
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10026190
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10057eb0
push 0x10043adb
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1005c300]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_VirtualQuery
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x10026241
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x10026241
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x10026241
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x10026241
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10026750
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x1005d680], 0
jne 0x100267c7
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
mov edx, 0x1005d680
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x100267c7
push esi
mov esi, dword [0x1005d670]
mov dword [0x1005d690], eax
mov dword [0x1005d68c], eax
mov dword [0x1005d688], eax
test esi, esi
je 0x100267ac
nop dword [eax]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x100267b8
mov esi, dword [esi + 4]
test esi, esi
jne 0x10026790
xor eax, eax
mov dword [0x1005d684], eax
pop esi
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [0x1005d684], eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
Function at 0x10026c80
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1005d684]
test eax, eax
jne 0x10026cff
push edi
call sub.KERNEL32.dll_GetCurrentThread
mov edi, dword [ebp + 8]
cmp edi, eax
jne 0x10026ca0
xor eax, eax
pop edi
pop ebp
ret 4
push esi
push 8
call fcn.10043834
mov esi, eax
add esp, 4
test esi, esi
jne 0x10026cb6
lea edi, [eax + 8]
jmp 0x10026cd3
push edi
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x10026ceb
call sub.KERNEL32.dll_GetLastError
mov edi, eax
push 8
push esi
call fcn.10043864
add esp, 8
pop esi
mov dword [0x1005d684], edi
mov eax, edi
mov dword [0x1005d688], 0
pop edi
pop ebp
ret 4
mov eax, dword [0x1005d68c]
mov dword [esi + 4], edi
mov dword [esi], eax
xor eax, eax
mov dword [0x1005d68c], esi
pop esi
pop edi
pop ebp
ret 4

Function at 0x10028140
Capabilities:
Decompress data using quicklz

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esi + 0x100000]
cmp eax, 0x1fffff
ja 0x100281a4
mov ecx, esi
mov eax, esi
shr ecx, 1
mov edx, esi
xor ecx, dword [ebp + 8]
and ecx, 0x7ff
shl eax, 4
xor ecx, dword [ebp + 8]
xor eax, ecx
shl edx, 6
and eax, 0x3f0000
xor eax, ecx
mov ecx, esi
xor edx, eax
shr ecx, 5
and edx, 0x4000000
shr esi, 8
xor edx, eax
xor ecx, edx
and ecx, 0x2000
xor ecx, edx
xor esi, ecx
and esi, 0x800
xor esi, ecx
mov eax, esi
pop esi
pop ebp
ret 8
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x10029180
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10057ef0
push 0x10043adb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1005c300]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edx, dword [ebp + 8]
test edx, edx
jne 0x100291c5
push edx
call sub.KERNEL32.dll_GetModuleHandleW
mov edx, eax
mov dword [ebp + 8], edx
mov dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [edx], ax
je 0x100291e0
push 0xc1
jmp 0x10029337
mov eax, dword [edx + 0x3c]
cmp dword [eax + edx], 0x4550
je 0x100291f6
push 0xbf
jmp 0x10029337
cmp word [eax + edx + 0x14], 0
je 0x10029332
mov eax, dword [eax + edx + 0x80]
test eax, eax
je 0x10029212
lea edi, [eax + edx]
jmp 0x10029214
xor edi, edi
mov dword [ebp - 0x20], edi
test edi, edi
je 0x10029332
mov ebx, dword [ebp + 0x14]
mov ecx, dword [edi]
test ecx, ecx
je 0x100292e4
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10029332
lea esi, [eax + edx]
test esi, esi
je 0x10029332
lea eax, [ecx + edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10029253
add eax, edx
jmp 0x10029255
xor eax, eax
mov dword [ebp + 0x14], eax
push dword [eax]
call fcn.10029360
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10029272
push esi
push eax
mov esi, dword [ebp + 0xc]
push esi
call ecx
test eax, eax
je 0x100292e7
xor esi, esi
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100292d6
nop
mov eax, dword [eax + esi*4]
test eax, eax
je 0x100292c7
xor ecx, ecx
mov dword [ebp - 0x24], ecx
xor edx, edx
test eax, eax
jns 0x1002929a
movzx ecx, ax
mov dword [ebp - 0x24], ecx
jmp 0x100292a8
add eax, 2
je 0x100292a6
mov edx, dword [ebp + 8]
add edx, eax
jmp 0x100292a8
xor edx, edx
test ebx, ebx
je 0x100292be
mov eax, dword [ebp + 0x14]
lea eax, [eax + esi*4]
push eax
push edx
push ecx
push dword [ebp + 0xc]
call ebx
test eax, eax
je 0x100292c7
inc esi
mov dword [ebp - 0x28], esi
mov eax, dword [ebp - 0x1c]
jmp 0x10029280
test ebx, ebx
je 0x100292d6
push 0
push 0
push 0
push dword [ebp + 0xc]
call ebx
add edi, 0x14
mov dword [ebp - 0x20], edi
mov edx, dword [ebp + 8]
jmp 0x10029222
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100292f5
push 0
push 0
push esi
call eax
push 0
call sub.KERNEL32.dll_SetLastError
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0xc0
call sub.KERNEL32.dll_SetLastError
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1002f540
Capabilities:
Write file on windows

Disassembly:
cmp byte [0x10061a95], 0
push edi
mov edi, ecx
je 0x1002f697
mov eax, dword [0x10062158]
push ebx
push esi
mov dword [0x10061a98], 1
push dword [eax]
call fcn.1002f830
mov ebx, dword [edi]
add esp, 4
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
test ebx, ebx
je 0x1002f5cd
push dword [ebx]
call esi
push 0
push 0
push dword [ebx]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
movzx ecx, word [ebx + 0x26]
lea eax, [esi - 4]
push dword [ebx]
mov dword [ebx + 8], eax
movzx eax, word [ebx + 0x1a]
shr ecx, 3
imul ecx, eax
lea eax, [ebx + 4]
push 1
push 0x2c
push eax
imul ecx, dword [ebx + 0x30]
mov dword [ebx + 0x2c], ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [ebx]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push 0x34
push ebx
call fcn.10043864
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 0x2c
mov eax, dword [edi + 4]
mov dword [edi], 0
test eax, eax
je 0x1002f667
movsd xmm0, qword [edi + 8]
mov dword [edi], eax
mov dword [edi + 4], 0
addsd xmm0, qword [0x10061a80]
mov eax, dword [0x10062158]
movsd qword [0x10061a80], xmm0
push dword [eax]
call fcn.1002f830
mov ebx, dword [edi]
add esp, 4
test ebx, ebx
je 0x1002f661
push dword [ebx]
call esi
push 0
push 0
push dword [ebx]
mov esi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
movzx ecx, word [ebx + 0x26]
lea eax, [esi - 4]
push dword [ebx]
mov dword [ebx + 8], eax
movzx eax, word [ebx + 0x1a]
shr ecx, 3
imul ecx, eax
lea eax, [ebx + 4]
push 1
push 0x2c
push eax
imul ecx, dword [ebx + 0x30]
mov dword [ebx + 0x2c], ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [ebx]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push 0x34
push ebx
call fcn.10043864
add esp, 0x2c
mov dword [edi], 0
mov eax, dword [0x10062ad8]
mov byte [0x10061a95], 0
push str.Sound_system_finished_stopping__almost_:_._n
mov eax, dword [eax + 0xa0]
call eax
mov eax, dword [0x10062158]
add esp, 4
pop esi
pop ebx
mov dword [eax], 0x40000001
pop edi
jmp dword [0x100620b0]
pop edi
ret