joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403880
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx]
lea eax, [eax*8 + 8]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sub.cygwin1.dll_realloc
mov dword [ebx + 4], eax
mov esi, eax
mov dword [esp], edi
call sub.cygwin1.dll_strlen
cmp eax, 2
jne 0x40390a
movsx eax, byte [edi]
mov dword [esp], eax
call sub.cygwin1.dll_tolower
mov edx, dword [ebx]
mov byte [esi + edx*8], al
movsx eax, byte [edi + 1]
mov dword [esp], eax
call sub.cygwin1.dll_tolower
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov byte [edx + ecx*8 + 1], al
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov byte [eax + edx*8 + 2], 0
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0x10]
add dword [ebx], 1
mov dword [eax + edx*8 + 4], ecx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sub.cygwin1.dll___getreent
mov dword [esp + 8], edi
mov dword [esp + 4], str.ERR:__Menu_language__s_is_not_two_letters._n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
lea esi, [esi]
lea edi, [edi]

Function at 0x403940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, eax
mov dword [ebp - 4], esi
mov eax, dword [0x41f028]
mov esi, edx
test eax, eax
je 0x40395f
mov eax, dword [ebx]
test eax, eax
je 0x403970
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x48
mov dword [esp + 4], 1
mov dword [esp], str.WARN:_The_use_of_jumppad_requires_a_menu__creating_a_dummy_ENGLISH_menu_n
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
mov dword [esp], esi
call fcn.00401f00
mov dword [esp], ebx
mov dword [esp + 4], 0x417f01
mov dword [esp + 8], eax
call fcn.00403880
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4044b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xc], ebx
cmp esi, 1
jbe 0x4046b0
test esi, esi
sete bl
je 0x404568
cmp esi, 2
je 0x404568
cmp esi, 3
je 0x40459a
cmp esi, 5
nop
je 0x4045ee
test bl, bl
je 0x4046a0
mov ecx, dword [ebp + 0xc]
mov edx, edi
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x4170a8
mov dword [esp], str.sampling_rate
add ecx, 0x18
add eax, 0x18
call fcn.004031c0
test eax, eax
jne 0x404618
test bl, bl
jne 0x404630
cmp esi, 4
je 0x404630
lea esi, [esi]
call sub.cygwin1.dll___getreent
mov dword [esp + 8], edi
mov dword [esp + 4], str.ERR:__Cannot_parse_audio_option__s_n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
mov ecx, dword [ebp + 0xc]
mov edx, edi
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x417050
mov dword [esp], str.audio_quantization
add ecx, 4
add eax, 4
call fcn.004031c0
test eax, eax
jne 0x404618
test bl, bl
je 0x4044e2
mov ecx, dword [ebp + 0xc]
mov edx, edi
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x417068
mov dword [esp], 0x4179e8
add ecx, 8
add eax, 8
call fcn.004031c0
test eax, eax
jne 0x404618
test bl, bl
je 0x4044eb
mov ecx, dword [ebp + 0xc]
mov edx, edi
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x417100
mov dword [esp], str.audio_language
add ecx, 0x10
add eax, 0x10
call fcn.004031c0
test eax, eax
jne 0x404618
mov ecx, dword [ebp + 0xc]
mov edx, edi
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x417080
mov dword [esp], str.number_of_channels
add ecx, 0xc
add eax, 0xc
call fcn.004031c0
test eax, eax
je 0x4044f6
lea ebx, [eax - 1]
mov eax, ebx
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], edi
call sub.cygwin1.dll_strlen
cmp eax, 2
jne 0x404539
mov ecx, dword [ebp + 0xc]
mov edx, 2
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x417100
mov dword [esp], str.audio_language
add ecx, 0x10
add eax, 0x10
call fcn.00401cf0
mov ebx, eax
mov eax, dword [ebp + 8]
cmp word [eax + 0x1c], 0
mov eax, 1
cmovne ebx, eax
movsx eax, byte [edi]
mov dword [esp], eax
call sub.cygwin1.dll_tolower
mov edx, dword [ebp + 8]
mov byte [edx + 0x1c], al
movsx eax, byte [edi + 1]
mov dword [esp], eax
call sub.cygwin1.dll_tolower
mov edx, dword [ebp + 8]
mov byte [edx + 0x1d], al
jmp 0x40461b
cmp esi, 6
jne 0x404530
jmp 0x4044fe
mov ecx, dword [ebp + 0xc]
mov edx, edi
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x4170e8
mov dword [esp], str.audio_format
call fcn.004031c0
test eax, eax
je 0x4044ce
jmp 0x404618
Function at 0x4046e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 4], esi
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [eax + 8]
cmp edx, dword [ecx]
jl 0x404705
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, edx
shl eax, 5
lea edx, [ecx + eax + 0x150]
lea eax, [ecx + eax + 0x50]
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x10], esi
mov dword [ebp + 0xc], edx
mov dword [ebp + 8], eax
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov esp, ebp
pop ebp
jmp fcn.004044b0

Function at 0x404730
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 4], esi
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [eax + 0x14]
cmp edx, dword [ecx]
jl 0x404755
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, edx
shl eax, 5
lea edx, [ecx + eax + 0x150]
lea eax, [ecx + eax + 0x50]
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x10], esi
mov dword [ebp + 0xc], edx
mov dword [ebp + 8], eax
mov ebx, dword [esp]
mov esi, dword [esp + 4]
mov esp, ebp
pop ebp
jmp fcn.004044b0

Function at 0x404780
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov eax, dword [ebx + 4]
cmp eax, 0x24
je 0x404839
lea eax, [eax + eax*8 + 9]
shl eax, 4
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x20]
mov dword [esp], eax
call sub.cygwin1.dll_realloc
mov ecx, dword [ebx + 4]
lea edx, [ecx + ecx*8]
add ecx, 1
shl edx, 4
lea edx, [eax + edx]
mov dword [ebx + 0x20], eax
mov edi, edx
xor eax, eax
mov dword [ebx + 4], ecx
test esi, esi
mov ecx, 0x24
mov dword [ebp - 0x20], edx
rep stosd dword es:[edi], eax
je 0x404810
mov dword [esp], esi
call sub.cygwin1.dll_strdup
mov edx, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.00404dd0
mov edx, dword [ebp - 0x20]
mov dword [edx + 4], eax
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 4]
lea ebx, [ebp - 0x16]
mov dword [esp + 4], 0x418185
mov dword [esp], ebx
mov dword [esp + 8], eax
call sub.cygwin1.dll_sprintf
mov dword [esp], ebx
call sub.cygwin1.dll_strdup
mov edi, dword [ebp - 0x20]
mov dword [edi], eax
jmp 0x4047eb
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x20
mov dword [esp + 4], 1
mov dword [esp], str.ERR:__Limit_of_up_to_36_buttons_n
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
mov dword [esp], 1
call sub.cygwin1.dll_exit
lea esi, [esi]
Function at 0x404d00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004049d0

Function at 0x404d20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004049d0

Function at 0x404dd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
test edx, edx
je 0x404e40
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cygwin1.dll_strdup
mov esi, eax
mov dword [esp], eax
call fcn.00407bf0
mov dword [0x4550d0], 0
mov ebx, eax
call fcn.00408f60
test eax, eax
jne 0x404e62
mov eax, dword [0x4550d0]
test eax, eax
je 0x404e8d
mov dword [esp], ebx
call fcn.004076b0
mov dword [esp], esi
call sub.cygwin1.dll_free
mov edx, dword [0x4550d0]
mov ebx, dword [ebp - 0xc]
mov eax, edx
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], 0x2c
call sub.cygwin1.dll_malloc
mov ecx, 0xb
mov edx, eax
mov edi, eax
mov eax, dword [ebp + 8]
rep stosd dword es:[edi], eax
mov dword [edx], 0
jmp 0x404e2f
call sub.cygwin1.dll___getreent
mov edx, dword [ebp + 8]
mov dword [esp + 4], str.ERR:__Parser_failed_on_code__s._n
mov dword [esp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
call sub.cygwin1.dll___getreent
mov edi, dword [ebp + 8]
mov dword [esp + 4], str.ERR:__Nothing_parsed_from__s_n
mov dword [esp + 8], edi
jmp 0x404e76

Function at 0x404eb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], edi
mov edi, ecx
mov ecx, dword [ebp + 8]
cmp edi, 0xf
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
je 0x404f60
test ecx, ecx
js 0x404f80
movzx esi, ch
movzx edx, dl
mov dword [ebp - 0x10], 0x70
movzx eax, cl
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], esi
mov dword [esp + 4], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], ebx
call fcn.00401380
lea eax, [edi - 7]
cmp eax, 0x12
jbe switch.0x00404f52
call sub.cygwin1.dll___getreent
mov dword [esp + 8], edi
mov dword [esp + 4], str.ERR:__Unknown_op_in_compileop:__d_n
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 1
call sub.cygwin1.dll_exit
jmp dword [eax*4 + 0x418610]
lea eax, [ecx + 0x100]
cmp eax, edx
jne 0x404ecf
nop
mov eax, ebx
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
movzx edx, dl
xor esi, esi
mov dword [ebp - 0x10], 0x60
jmp 0x404ee4
or byte [ebx], 8
add ebx, 8
jmp 0x404f70
or byte [ebx], 1
jmp 0x404f94
or byte [ebx], 0xb
jmp 0x404f94
or byte [ebx], 0xa
jmp 0x404f94
or byte [ebx], 9
jmp 0x404f94
or byte [ebx], 7
jmp 0x404f94
or byte [ebx], 6
jmp 0x404f94
or byte [ebx], 5
jmp 0x404f94
or byte [ebx], 4
jmp 0x404f94
or byte [ebx], 3
jmp 0x404f94
Function at 0x404ff0
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [0x41f02c]
test ecx, ecx
jne 0x40500d
cmp eax, 0xc
jle 0x405044
add eax, 1
cmp eax, 0xf
jle 0x405049
lea esi, [esi]
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x3a
mov dword [esp + 4], 1
mov dword [esp], str.ERR:__Expression_is_too_complicated__ran_out_of_registers_n
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
mov dword [esp], 1
call sub.cygwin1.dll_exit
mov eax, 0xd
leave
ret
Function at 0x407870
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x14
call sub.cygwin1.dll___getreent
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x418c80
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fprintf
mov dword [esp], 2
call sub.cygwin1.dll_exit
jmp fcn.004078b0

Function at 0x409c70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x2c
mov dword [esp + 8], 0x8000
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [esp + 4], 0
mov dword [esp], 0x443e10
call sub.cygwin1.dll_memset
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x20b48]
test edx, edx
jle 0x409ddb
mov edi, eax
add edi, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 1
nop
lea esi, [esi]
mov eax, dword [edi]
test eax, eax
jle 0x409d33
movzx eax, byte [ebp - 0x10]
xor esi, esi
mov ebx, dword [ebp - 0x1c]
mov byte [ebp - 0x11], al
add ebx, 0x443e12
mov byte [ebx - 2], 0x3c
mov byte [ebx - 1], 1
mov eax, dword [edi + 4]
mov eax, dword [eax + esi*4]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004013f0
movzx ecx, byte [ebp - 0x11]
lea eax, [esi + 1]
mov byte [ebx + 5], al
add esi, 1
mov byte [ebx + 4], cl
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
lea eax, [ebx + 6]
add ebx, 0xc
mov dword [esp], eax
call fcn.004013c0
add dword [ebp - 0x18], 1
add dword [ebp - 0x1c], 0xc
cmp dword [edi], esi
jg 0x409ce8
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov edx, dword [edi + 8]
add edi, 0x314
add dword [ebp - 0x10], 1
cmp dword [ecx + 0x20b48], eax
jle 0x409d56
add dword [ebp - 0x20], edx
jmp 0x409cd0
mov ecx, dword [ebp - 0x18]
mov dword [esp], 0x443e10
mov dword [esp + 4], ecx
call fcn.004013f0
mov eax, dword [ebp - 0x1c]
mov dword [esp], 0x443e14
sub eax, 1
mov dword [esp + 4], eax
call fcn.004013c0
cmp dword [ebp - 0x1c], 0x8000
jg 0x409e0f
mov edx, dword [ebp - 0x1c]
add edx, 0x7ff
and edx, 0xfffff800
test edx, edx
mov ebx, edx
lea eax, [edx + 0x7ff]
cmovs ebx, eax
sar ebx, 0xb
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x409dd1
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov dword [esp], 0x443e10
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0
mov ebx, 1
mov dword [esp], 0x443e10
call fcn.004013f0
mov dword [esp + 4], 7
mov dword [esp], 0x443e14
call fcn.004013c0
mov edx, 0x800
jmp 0x409dab
mov dword [esp + 0xc], str.p_BIGWRITEBUFLEN
mov dword [esp + 8], str.Create_TT_SRPT
mov dword [esp + 4], 0x14c
mov dword [esp], str.dvdifo.c
call sub.cygwin1.dll___assert_func
lea esi, [esi]
lea edi, [edi]
Function at 0x409e40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [esp + 8], 0x8000
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [esp + 4], 0
mov dword [esp], 0x443e10
call sub.cygwin1.dll_memset
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax + 8]
test esi, esi
jle 0x409ffb
mov dword [ebp - 0x10], 8
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x14]
mov edx, dword [ebp - 0x14]
mov esi, dword [eax + edx*4]
mov ebx, dword [esi + 4]
test ebx, ebx
jle 0x409fee
mov edx, dword [esi + 0x18]
xor edi, edi
xor ebx, ebx
test edi, edi
je 0x409ed7
lea ecx, [edx + ebx - 0x90]
mov eax, dword [edx + ebx + 0x10]
cmp eax, dword [ecx + 0x10]
je 0x409f1e
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
add eax, 0x443e18
mov dword [esp], eax
call fcn.004013c0
mov edx, dword [esi + 0x18]
add dword [ebp - 0x10], 0xc
mov eax, dword [edx + ebx + 0x10]
sar eax, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
add eax, 0x443e10
mov dword [esp], eax
call fcn.004013f0
mov eax, dword [esi + 0x18]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + ebx + 0x10]
mov byte [edx + 0x443e12], al
mov eax, dword [esi + 0x18]
mov eax, dword [eax + ebx]
mov dword [esp + 4], eax
mov eax, edx
add eax, 0x443e14
mov dword [esp], eax
call fcn.004013c0
mov edx, dword [esi + 0x18]
add edi, 1
add ebx, 0x90
cmp dword [esi + 4], edi
jg 0x409ea5
lea eax, [edi + edi*8 - 9]
shl eax, 4
mov eax, dword [edx + eax + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
add eax, 0x443e18
mov dword [esp], eax
call fcn.004013c0
mov edx, dword [ebp - 0x1c]
add dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], 0xc
cmp dword [edx + 8], eax
jg 0x409e87
mov eax, dword [ebp - 0x10]
mov dword [esp], 0x443e14
sub eax, 1
mov dword [esp + 4], eax
call fcn.004013c0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
mov dword [esp], 0x443e10
mov dword [esp + 4], eax
call fcn.004013f0
cmp dword [ebp - 0x10], 0x8000
jg 0x40a031
mov edx, dword [ebp - 0x10]
add edx, 0x7ff
and edx, 0xfffff800
test edx, edx
mov ebx, edx
lea eax, [edx + 0x7ff]
cmovs ebx, eax
sar ebx, 0xb
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x409fe4
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov dword [esp], 0x443e10
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffff70
mov edx, dword [esi + 0x18]
jmp 0x409f37
mov dword [esp + 4], 7
mov ebx, 1
mov dword [esp], 0x443e14
call fcn.004013c0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
mov dword [esp], 0x443e10
mov dword [esp + 4], eax
call fcn.004013f0
mov edx, 0x800
jmp 0x409fbe
mov dword [esp + 0xc], str.p_BIGWRITEBUFLEN
mov dword [esp + 8], str.CreateCallAdr
mov dword [esp + 4], 0xe4
mov dword [esp], str.dvdifo.c
call sub.cygwin1.dll___assert_func
lea esi, [esi]
lea edi, [edi]
Function at 0x40a060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [edx + 8]
mov dword [ebp - 0x28], eax
mov eax, 3
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x20], 0
test ebx, ebx
jle 0x40a0ab
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x20], 0
mov ecx, dword [eax + 0x14]
mov eax, dword [ecx + edx*4]
add edx, 1
mov esi, dword [eax + 4]
add dword [ebp - 0x20], esi
cmp edx, ebx
jl 0x40a091
mov edx, dword [ebp - 0x20]
lea eax, [edx*4 + 3]
lea esi, [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004013c0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40a0e0
mov eax, dword [ebp - 0x28]
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], esi
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
mov esi, dword [ebp - 0x2c]
mov eax, dword [esi + 8]
test eax, eax
jle 0x40a163
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x24]
mov eax, dword [edx + 0x14]
mov edi, dword [eax + esi*4]
mov eax, dword [edi + 4]
test eax, eax
jle 0x40a154
xor esi, esi
xor ebx, ebx
mov eax, dword [edi + 0x18]
mov eax, dword [eax + ebx]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call fcn.004013c0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40a146
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
mov dword [esp + 0xc], edx
call sub.cygwin1.dll_fwrite
add esi, 1
add ebx, 0x90
cmp dword [edi + 4], esi
jg 0x40a108
mov esi, dword [ebp - 0x2c]
add dword [ebp - 0x24], 1
mov edx, dword [ebp - 0x24]
cmp dword [esi + 8], edx
jg 0x40a0f1
not dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
shl eax, 2
mov esi, eax
and esi, 0x7ff
jne 0x40a17e
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp esi, 0xf
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
jle 0x40a1d7
mov ebx, esi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40a1ca
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x1c]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x10
mov dword [esp], edx
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
sub ebx, 0x10
cmp ebx, 0xf
jg 0x40a1a1
and esi, 0xf
je 0x40a176
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x40a176
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x1c]
mov dword [esp + 4], esi
mov dword [esp + 8], 1
mov dword [esp], edx
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40aa60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 8], 0x8000
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
mov dword [esp + 4], 0
mov dword [esp], 0x443e10
call sub.cygwin1.dll_memset
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
mov dword [esp], 0x443e10
mov dword [esp + 4], eax
call fcn.004013f0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
lea edx, [eax*4 + 8]
cmp edx, 0x800
mov dword [ebp - 0x1c], edx
jg 0x40ac4e
test eax, eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 0
jle 0x40ac12
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 4]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, edx
add eax, 0x443e18
mov dword [esp], eax
call fcn.004013c0
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx]
test ecx, ecx
jle 0x40ab8f
mov esi, dword [edx + 0x1c]
mov edi, 1
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
xor ebx, ebx
xor ecx, ecx
mov edx, dword [ebp - 0x20]
shl eax, 2
mov dword [ebp - 0x24], eax
mov eax, dword [esi + edx*4]
mov edx, dword [eax + 4]
test edx, edx
jg 0x40ab46
jmp 0x40ab81
cmp eax, 2
je 0x40ab7c
mov edx, dword [ebp - 0x24]
add ebx, 1
add ecx, 0x28
mov eax, dword [esi + edx]
cmp dword [eax + 4], ebx
jle 0x40ab81
mov edx, ecx
add edx, dword [eax + 8]
mov eax, dword [edx + 0x18]
cmp eax, dword [edx + 0x1c]
je 0x40ab35
mov eax, dword [edx + 0x10]
cmp eax, 1
jne 0x40ab30
mov edx, dword [ebp - 0x1c]
movzx eax, byte [ebp - 0x14]
mov byte [edx + 0x443e11], al
mov eax, edi
mov byte [edx + 0x443e13], al
add edx, 4
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x18]
mov esi, dword [edx + 0x1c]
add edi, 1
jmp 0x40ab35
mov edx, dword [ebp - 0x18]
add dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x20]
cmp dword [edx], eax
jg 0x40ab14
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], 4
add dword [ebp - 0x14], 1
cmp dword [edx + 8], eax
jg 0x40aad3
mov eax, dword [ebp - 0x1c]
mov dword [esp], 0x443e14
sub eax, 1
mov dword [esp + 4], eax
call fcn.004013c0
cmp dword [ebp - 0x1c], 0x8000
jg 0x40ac2a
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x28]
add ebx, 0x7ff
and ebx, 0xfffff800
test esi, esi
je 0x40abfa
mov eax, dword [ebp - 0x28]
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], 0x443e10
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
test ebx, ebx
lea eax, [ebx + 0x7ff]
cmovs ebx, eax
add esp, 0x3c
sar ebx, 0xb
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov dword [esp], 0x443e14
sub eax, 1
mov dword [esp + 4], eax
call fcn.004013c0
jmp 0x40abc5
mov dword [esp + 0xc], str.p_BIGWRITEBUFLEN
mov dword [esp + 8], str.Create_PTT_SRPT
mov dword [esp + 4], 0x129
mov dword [esp], str.dvdifo.c
call sub.cygwin1.dll___assert_func
mov dword [esp + 0xc], str.p_2048
mov dword [esp + 8], str.Create_PTT_SRPT
mov dword [esp + 4], 0x112
mov dword [esp], str.dvdifo.c
call sub.cygwin1.dll___assert_func
lea esi, [esi]
lea edi, [edi]