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

Disassembly:
sub esp, 0x10
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x20]
push eax
push 0x10
lea ecx, [esp + 0x14]
push ecx
push ebp
call esi
test eax, eax
jne 0x4c8511
pop esi
mov eax, 0x8004e008
pop ebp
add esp, 0x10
ret 0xc
cmp dword [esp + 0x1c], 0x10
jne 0x4c8504
push ebx
mov ebx, dword [esp + 0x28]
push 0
lea edx, [esp + 0x24]
push edx
push 8
push ebx
push ebp
call esi
test eax, eax
jne 0x4c853c
pop ebx
pop esi
mov eax, 0x8004e008
pop ebp
add esp, 0x10
ret 0xc
cmp dword [esp + 0x20], 8
jne 0x4c852e
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
add edx, 0xffffffe8
mov eax, 0xffffffff
adc ecx, eax
push edi
mov dword [ebx], edx
mov dword [ebx + 4], ecx
mov ecx, 4
lea edi, [esp + 0x10]
mov esi, str.list_
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
pop edi
je 0x4c857b
pop ebx
pop esi
mov eax, 0x8004e081
pop ebp
add esp, 0x10
ret 0xc
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
add edx, 0xfffffff0
adc ecx, eax
push 0
lea eax, [esp + 0x24]
push eax
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x2c]
push 0x10
push ecx
push ebp
mov dword [ebx], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c852e
mov esi, dword [esp + 0x20]
xor eax, eax
cmp esi, 0x10
sete al
pop ebx
pop esi
pop ebp
dec eax
and eax, 0x8004e008
add esp, 0x10
ret 0xc

Function at 0x4c85c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x20]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x10]
push ecx
push ebx
call sym.vidcap60.exe__riff64_ReadChunkHeader_12
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4c85f3
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
sub edx, 0x10
sbb ecx, 0
mov dword [eax], edx
mov dword [eax + 4], ecx
push esi
push edi
mov ecx, 4
mov edi, 0x5eab2c
lea esi, [esp + 0x14]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
pop edi
pop esi
je 0x4c8617
mov eax, 0x8004e080
pop ebx
add esp, 0x18
ret 0xc
push 0
lea eax, [esp + 0x24]
push eax
push 0x10
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c8637
cmp dword [esp + 0x20], 0x10
je 0x4c8643
mov eax, 0x8004e008
pop ebx
add esp, 0x18
ret 0xc
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4c8666
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [eax], edx
mov edx, dword [esp + 0x14]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
xor eax, eax
pop ebx
add esp, 0x18
ret 0xc
Function at 0x4c8690
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov byte [esp + 0x20], 0
mov byte [esp + 0x21], 0
mov byte [esp + 0x22], 0
mov byte [esp + 0x23], 0
mov byte [esp + 0x24], 0
mov byte [esp + 0x25], 0
mov byte [esp + 0x26], 0
mov byte [esp + 0x27], 0
je 0x4c86d6
mov dword [esi], edi
mov dword [esi + 4], edi
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
cmp eax, edi
je 0x4c8820
mov edx, dword [ecx + 4]
mov dword [esp + 0x18], edi
jbe 0x4c880f
lea eax, [edx + 8]
mov dword [esp + 0x10], eax
cmp dword [eax], edi
je 0x4c87f5
mov ebx, dword [eax - 4]
cmp ebx, edi
je 0x4c87f5
xor eax, eax
mov esi, ebx
add esi, 4
adc eax, edi
mov edi, esi
and edi, 7
mov ebp, eax
jbe 0x4c872b
mov eax, 8
sub eax, edi
mov edi, eax
add esi, edi
adc ebp, 0
mov edx, dword [0x5eab4c]
mov eax, dword [0x5eab50]
push ebp
push esi
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [0x5eab54]
mov dword [ecx + 4], eax
mov eax, dword [0x5eab58]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x4c]
push ecx
call sym.vidcap60.exe__riff64_WriteChunkHeader_28
add esi, 0x18
adc ebp, 0
test eax, eax
mov dword [esp + 0x1c], eax
jl 0x4c8822
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
push 0
lea edx, [esp + 0x18]
push edx
push 4
add eax, 0xfffffff8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c882c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x18]
push edx
push ebx
mov ebx, dword [esp + 0x40]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c882c
test edi, edi
jbe 0x4c87d3
push 0
lea edx, [esp + 0x18]
push edx
push edi
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c883b
cmp edi, dword [esp + 0x14]
jne 0x4c883b
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
add ecx, esi
mov esi, dword [esp + 0x3c]
adc eax, ebp
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
xor edi, edi
mov edx, dword [esp + 0x18]
mov ebx, dword [ecx]
inc edx
add eax, 0xc
cmp edx, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
jb 0x4c86f8
cmp esi, edi
je 0x4c8820
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esi], ecx
mov dword [esi + 4], edx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
mov eax, 0x8004e009
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
Function at 0x4c8910
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
mov esi, dword [esp + 0x1c]
push edi
push 1
lea eax, [esp + 0x14]
push eax
push 0
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call ebx
push 0
push 0
push 0x10
push esi
mov edi, eax
call ebx
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add edx, 0x18
adc ecx, 0
push 0
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x2c], edx
push 8
lea edx, [esp + 0x30]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push 0
mov dword [esp + 0x18], edi
jne 0x4c899b
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push edi
push esi
mov dword [esp + 0x28], eax
call ebx
pop edi
pop esi
mov eax, 0x8004e009
pop ebx
add esp, 0x10
ret 0xc
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push edi
push esi
mov dword [esp + 0x28], edx
call ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc

Function at 0x4c89c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
xor eax, eax
lea ecx, [esp + 0x24]
push ecx
push eax
push esi
mov ebp, 0x8004e009
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call edi
push 0
push 0
push 0x10
push esi
mov ebx, eax
call edi
push 0
lea edx, [esp + 0x2c]
push edx
push 8
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4c8a16
mov ebp, 0x8004e008
jmp 0x4c8a5b
cmp dword [esp + 0x28], 8
jne 0x4c8a0f
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
add edx, ecx
push 0
push 0
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x38]
push 0x10
adc eax, edx
push esi
mov dword [esp + 0x28], eax
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 8
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4c8a7e
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x34]
push eax
push ebx
push esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edx
call edi
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x14
ret 0xc
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push esi
call sym.vidcap60.exe__riff64_RestoreLocation_12
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 0xc
Function at 0x4c8ae0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
push 1
lea eax, [esp + 0x1c]
xor ebp, ebp
push eax
push ebp
push edi
mov byte [esp + 0x23], 0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esp + 0x24]
and eax, 7
je 0x4c8b3d
mov esi, 8
sub esi, eax
cmp esi, ebp
jle 0x4c8b3d
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x24]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push edi
call ebx
test eax, eax
je 0x4c8b49
inc ebp
cmp ebp, esi
jl 0x4c8b23
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0x8004e009
pop ebx
add esp, 0xc
ret 0xc

Function at 0x4c8bd0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x2c]
push edi
push ebx
push esi
call sym.vidcap60.exe__riff64_Pad_12
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
xor eax, eax
lea ecx, [esp + 0x30]
push ecx
push eax
push esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call ebp
mov edx, dword [esp + 0x2c]
sub eax, ebx
push 1
sbb edx, edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], eax
xor eax, eax
push ecx
push eax
push esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call ebp
push 0
lea edx, [esp + 0x18]
add ebx, 0x10
push edx
push ebx
adc edi, 0
push esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
call ebp
push 0
lea eax, [esp + 0x28]
push eax
push 8
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x18]
push ecx
test eax, eax
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
push esi
jne 0x4c8c8b
call ebp
pop edi
pop esi
pop ebp
mov eax, 0x8004e009
pop ebx
add esp, 0x10
ret 0xc
call ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
Function at 0x4c8f00
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [str.list_]
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x40]
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
push ebx
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x5eab40]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [0x5eab44]
mov dword [ecx + 4], eax
mov eax, dword [0x5eab48]
mov dword [ecx + 8], edx
push esi
mov dword [ecx + 0xc], eax
call sym.vidcap60.exe__riff64_FindChunkHeader_28
test eax, eax
jl 0x4c90d1
lea esp, [esp]
test ebx, ebx
je 0x4c8f6a
mov eax, dword [ebx + 4]
test eax, eax
jl 0x4c9096
jg 0x4c8f6a
cmp dword [ebx], 8
jb 0x4c9096
push 0
lea ecx, [esp + 0x50]
push ecx
push 0x10
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c90a5
cmp dword [esp + 0x4c], 0x10
jne 0x4c90a5
test ebx, ebx
je 0x4c8fa6
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
add ecx, 0xfffffff0
adc eax, 0xffffffff
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov ecx, 4
lea edi, [esp + 0x38]
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x4c90b4
mov edi, dword [esp + 0x10]
mov eax, edi
and eax, 7
xor ecx, ecx
mov edx, eax
or edx, ecx
je 0x4c8fe9
mov edx, 8
sub edx, eax
mov eax, ecx
sbb eax, ecx
mov ecx, dword [esp + 0x14]
add edi, edx
adc ecx, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
mov eax, edi
sub eax, 0x10
sbb edx, 0
mov ecx, eax
and ecx, 7
xor esi, esi
mov ebp, ecx
or ebp, esi
je 0x4c9011
mov ebp, 8
sub ebp, ecx
mov ecx, esi
sbb ecx, esi
add eax, ebp
adc edx, ecx
mov esi, dword [esp + 0x34]
push 1
mov dword [esp + 0x20], edx
lea edx, [esp + 0x20]
push edx
push eax
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test ebx, ebx
je 0x4c9050
mov edx, dword [ebx]
mov eax, 0x10
sub eax, edi
mov edi, dword [esp + 0x14]
mov ecx, 0
sbb ecx, edi
add edx, eax
mov eax, dword [ebx + 4]
adc eax, ecx
mov dword [ebx], edx
mov dword [ebx + 4], eax
mov ecx, dword [str.list_]
push ebx
lea edx, [esp + 0x14]
push edx
mov edx, dword [0x5eab40]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x5eab44]
mov dword [eax + 4], edx
mov edx, dword [0x5eab48]
mov dword [eax + 8], ecx
push esi
mov dword [eax + 0xc], edx
call sym.vidcap60.exe__riff64_FindChunkHeader_28
test eax, eax
jge 0x4c8f50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x1c
mov eax, 0x8004e00a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x1c
mov eax, 0x8004e008
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x1c
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4c90cf
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub ecx, 0x10
sbb edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x1c
Function at 0x4c9910
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x28]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [ecx + 8], edx
push esi
mov dword [ecx + 0xc], eax
call sym.vidcap60.exe__riff64_PrepareChunk_24
test eax, eax
jl 0x4c9983
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4c9969
mov eax, 0x8004e009
pop esi
ret 0x20
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
push esi
call sym.vidcap60.exe__riff64_CompleteChunk_12
xor ecx, ecx
test eax, eax
setge cl
dec ecx
and eax, ecx
pop esi
ret 0x20

Function at 0x4c9a30
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
push 0
lea eax, [esp + 0x18]
push eax
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c9a58
cmp ebx, dword [esp + 0x14]
je 0x4c9a62
pop esi
mov eax, 0x8004e008
pop ebx
ret 0xc
test bl, 1
je 0x4c9a74
push 1
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x4c9a80
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp eax, ecx
push ebx
push esi
push edi
mov esi, ecx
ja 0x4c9a93
mov esi, eax
sub eax, esi
test cl, 1
mov edi, eax
je 0x4c9a9d
inc edi
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c9abf
cmp esi, dword [esp + 0x18]
je 0x4c9aca
pop edi
pop esi
mov eax, 0x8004e008
pop ebx
ret 0x10
test edi, edi
je 0x4c9ada
push 1
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10

Function at 0x4c9b80
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
call edi
push 0
push 0
push 4
push esi
mov ebx, eax
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push 0
push 0
push ebx
push esi
jne 0x4c9bcd
call edi
pop edi
pop esi
mov eax, 0x8004e009
pop ebx
ret 8
call edi
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x4c9be0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
mov ebp, 0x8004e009
call edi
push 0
push 0
push 4
push esi
mov ebx, eax
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4c9c3c
push 0
push 0
push ebx
push esi
mov ebp, 0x8004e008
call edi
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 8
cmp dword [esp + 0x10], 4
jne 0x4c9c23
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 0
push 0
push 4
add eax, edx
push esi
mov dword [esp + 0x2c], eax
call edi
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4c9c85
push eax
push eax
push ebx
push esi
call edi
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 8
push 0
push 0
push ebx
push esi
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8

Function at 0x4c9ca0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x10]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call edi
test eax, eax
jne 0x4c9ccb
pop edi
mov eax, 0x8004e009
pop esi
ret 0xc
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x20]
push eax
push esi
call edi
neg eax
sbb eax, eax
and eax, 0x7ffb1ff7
pop edi
add eax, 0x8004e009
pop esi
ret 0xc

Function at 0x4c9cf0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 4
lea edx, [esp + 0x28]
push edx
push esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], eax
call edi
test eax, eax
je 0x4c9d6d
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push esi
call edi
test eax, eax
je 0x4c9d6d
mov eax, dword [esp + 0x20]
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push eax
push esi
call edi
test eax, eax
je 0x4c9d6d
test bl, 1
je 0x4c9d7c
push 0
lea ecx, [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0x30]
push edx
push esi
mov byte [esp + 0x38], 0
call edi
test eax, eax
jne 0x4c9d7b
pop edi
pop esi
mov eax, 0x8004e009
pop ebx
add esp, 8
ret 0x14
inc ebx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4c9d89
add ebx, 8
mov dword [eax], ebx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x14
Function at 0x4c9da0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x28]
push edx
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], 0x5453494c
call edi
test eax, eax
je 0x4c9de9
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x4c9df6
pop edi
mov eax, 0x8004e009
pop esi
add esp, 8
ret 0xc
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push esi
call edi
neg eax
sbb eax, eax
and eax, 0x7ffb1ff7
pop edi
add eax, 0x8004e009
pop esi
add esp, 8
ret 0xc

Function at 0x4c9e20
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x28]
push edx
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], 0x46464952
call edi
test eax, eax
je 0x4c9e65
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x24]
push eax
push esi
call edi
neg eax
sbb eax, eax
and eax, 0x7ffb1ff7
pop edi
add eax, 0x8004e009
pop esi
add esp, 8
ret 0xc

Function at 0x4c9ef0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov edi, dword [esp + 0x10]
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x14]
push ecx
push edi
call ebx
test eax, eax
jne 0x4c9f1d
pop edi
mov eax, 0x8004e008
pop ebx
pop ecx
ret 0xc
cmp dword [esp + 0x10], 4
jne 0x4c9f12
push esi
mov esi, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x18]
push edx
push 4
push esi
push edi
call ebx
test eax, eax
jne 0x4c9f46
pop esi
pop edi
mov eax, 0x8004e008
pop ebx
pop ecx
ret 0xc
cmp dword [esp + 0x14], 4
jne 0x4c9f3a
cmp dword [esp + 0xc], 0x5453494c
je 0x4c9f63
pop esi
pop edi
mov eax, 0x8004e081
pop ebx
pop ecx
ret 0xc
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
add eax, 0xfffffffc
push 0
mov dword [esi], eax
lea eax, [esp + 0x18]
push eax
push 4
push ecx
push edi
call ebx
test eax, eax
je 0x4c9f3a
mov esi, dword [esp + 0x14]
xor eax, eax
cmp esi, 4
sete al
pop esi
pop edi
pop ebx
dec eax
and eax, 0x8004e008
pop ecx
ret 0xc
Function at 0x4c9fa0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
call sym.vidcap60.exe__riff_ReadChunkHeader_12
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4c9fc9
mov edx, dword [esp + 4]
add edx, 0xfffffffc
mov dword [eax], edx
cmp dword [esp + 0x10], 0x46464952
je 0x4c9fdf
mov eax, 0x8004e080
pop esi
add esp, 8
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c9fff
cmp dword [esp + 8], 4
je 0x4ca00b
mov eax, 0x8004e008
pop esi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4ca019
mov edx, dword [esp + 0x10]
mov dword [eax], edx
xor eax, eax
pop esi
add esp, 8
ret 0xc

Function at 0x4ca050
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 8
push ebx
push ebp
push esi
xor ebx, ebx
test eax, eax
push edi
je 0x4ca063
mov ebx, dword [eax]
mov edi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ecx]
test eax, eax
je 0x4ca079
cmp ebx, 8
jl 0x4ca0e6
push 0
lea eax, [esp + 0x20]
push eax
mov esi, 4
push esi
lea ecx, [esp + 0x20]
push ecx
push edi
call ebp
test eax, eax
je 0x4ca0f7
cmp dword [esp + 0x1c], esi
jne 0x4ca0f7
push 0
lea edx, [esp + 0x20]
push edx
push esi
lea eax, [esp + 0x1c]
push eax
push edi
call ebp
test eax, eax
je 0x4ca0f7
cmp dword [esp + 0x1c], esi
jne 0x4ca0f7
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
sub ebx, 8
cmp eax, ecx
je 0x4ca106
mov eax, dword [esp + 0x10]
test al, 1
mov esi, eax
je 0x4ca0ce
lea esi, [eax + 1]
push 1
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], esi
sub ebx, esi
jmp 0x4ca070
pop edi
pop esi
mov dword [eax], ebx
pop ebp
mov eax, 0x8004e00a
pop ebx
add esp, 8
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 0x8004e008
pop ebx
add esp, 8
ret 0x10
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4ca114
mov edx, dword [esp + 0x10]
mov dword [eax], edx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4ca11e
mov dword [eax], ebx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x10