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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x1000ea0c
jl 0x1000ea00
test esi, esi
jne 0x1000ea0c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1000ea25
push eax
push esi
push ecx
mov ecx, ebx
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
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov edx, dword [eax]
test edx, edx
je 0x1000ea5f
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x1000ea5f
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 0x4c], 0
mov edx, edi
je 0x1000eae0
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1000ea88
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, edi
mov ecx, dword [ebp - 4]
cmp edi, 0xfff
jbe 0x1000eacc
nop word [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x1000eaf3
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1000eaa0
test edx, edx
je 0x1000eae0
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, edi
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000ee50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1000ee80
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1000eeb0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1000eeb0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1000ef86
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1000eed9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1000eee5
movsx eax, bl
jmp 0x1000ef1d
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1000ef47
sub eax, 1
je 0x1000ef47
sub eax, 2
jne 0x1000ef86
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000ef65
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 0x1000ef86
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x1000ef86
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007fac0
mov esp, ebp
pop ebp
ret 4
Function at 0x1000f400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1000f4bc
cmp byte [esi + 0x3d], 0
je 0x1000f4bc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000f4aa
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 0x1000f471
sub eax, 1
je 0x1000f475
sub eax, 2
jne 0x1000f4aa
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000f493
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 0x1000f4aa
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1007fac0
mov esp, ebp
pop ebp
ret

Function at 0x100102d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008b3b0
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100b400c]
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 + 0x14], 0
lea ecx, [esi + 0x4c]
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], ax
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov dword [esi], eax
mov dword [esi + 4], 1
movups xmmword [esi + 8], xmm0
push eax
movups xmmword [esi + 0x18], xmm0
push 0x10091b60
movups xmmword [esi + 0x28], xmm0
mov dword [esi + 0x48], 0x64
movaps xmm0, xmmword [0x100a6720]
movups xmmword [esi + 0x38], xmm0
call fcn.100052a0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
mov dword [esi + 0x64], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10015470
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp dword [ebx + 0x25c], 0
je 0x100154db
cmp dword [ebx + 0x400], 0
je 0x100154db
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001549f
mov ecx, edi
call fcn.100049e0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100154a4
sub ecx, edx
lea esi, [ebx + 0x390]
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.100052a0
cmp dword [esi + 0x14], 8
mov ecx, dword [ebx + 0x400]
jb 0x100154d0
mov esi, dword [esi]
push dword [ebp + 0xc]
mov eax, dword [ecx]
push esi
call dword [eax + 0x48]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10016790
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x100167fc
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x100167b4
mov eax, dword [esi]
push 0x180
push 0x40
push 0
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wsopen_s]
mov eax, dword [ebp - 8]
add esp, 0x14
cmp eax, 0xffffffff
je 0x100167ee
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
add esp, 4
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x100167e7
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x10091b60
mov ecx, esi
call fcn.100052a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1007fac0
mov esp, ebp
pop ebp
ret 4

Function at 0x10016810
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x2c8], 0
je 0x100168dc
cmp dword [ecx + 0x2cc], 8
push esi
lea esi, [ecx + 0x2b8]
mov eax, esi
jb 0x10016841
mov eax, dword [esi]
push 0x180
push 0x40
push 0
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wsopen_s]
mov eax, dword [ebp - 8]
add esp, 0x14
cmp eax, 0xffffffff
je 0x1001687b
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
add esp, 4
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10016874
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 7
push str..mbtree
mov ecx, esi
call fcn.10016cc0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10016893
mov eax, dword [esi]
push 0x180
push 0x40
push 0
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wsopen_s]
mov eax, dword [ebp - 8]
add esp, 0x14
cmp eax, 0xffffffff
je 0x100168cd
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
add esp, 4
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x100168c6
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x10091b60
mov ecx, esi
call fcn.100052a0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret
Function at 0x10017cf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add ecx, 8
pop ebp
jmp fcn.10015470

Function at 0x10017d00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea ecx, [esi + 8]
call fcn.10015760
test eax, eax
je 0x10017d54
mov eax, dword [ebp + 8]
test eax, eax
je 0x10017d54
mov dword [esi + 0x414], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c0], eax
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x1000dbc0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1007fac0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10017d70
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008bf7f
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [edi + 0x290]
push eax
lea ecx, [ebp - 0x40]
call fcn.10007640
mov dword [ebp - 4], 0
cmp dword [ebp - 0x30], 0
je 0x10017dc1
lea eax, [ebp - 0x40]
push eax
call fcn.10016790
lea ecx, [edi + 8]
call fcn.10016810
mov eax, dword [0x100b64c8]
test eax, eax
jne 0x10017e01
push 0x2f4
call fcn.1007faf4
mov esi, eax
mov dword [ebp - 0x14], esi
push 0x2f4
push 0
push esi
mov byte [ebp - 4], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
call fcn.10076a20
mov dword [0x100b64c8], eax
cmp dword [eax + 0x130], 0
je 0x10017eb0
cmp dword [edi + 0x1d8], 8
lea eax, [edi + 0x1c4]
jb 0x10017e1f
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10017eb0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x10017ea5
test esi, esi
je 0x10017e61
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0x2ec], 8
lea eax, [edi + 0x2d8]
jb 0x10017e72
mov eax, dword [eax]
push 0
push 0x40000080
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10017eb0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test esi, esi
je 0x10017eb0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x10017eec
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10017ee2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10017ee2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007face
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret
Function at 0x10018bd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 8]
mov eax, dword [eax]
push esi
mov esi, dword [edx]
push edi
mov edi, dword [ecx]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], eax
nop word [eax + eax]
push 0
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x10]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], 0
mov dl, byte [ebp + 0x14]
jne 0x10018c34
add esi, 4
sub edi, 4
je 0x10018c34
test dl, dl
je 0x10018c00
movzx eax, byte [ebp - 9]
mov cl, byte [ebp - 0xc]
mov byte [ebp - 0xc], al
movzx eax, byte [ebp - 0xa]
mov byte [ebp - 9], cl
mov cl, byte [ebp - 0xb]
mov byte [ebp - 0xb], al
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 8], eax
mov byte [ebp - 0xa], cl
mov eax, dword [ebp - 0xc]
je 0x10018c7a
add esi, eax
cmp edi, eax
jbe 0x10018c7f
sub edi, eax
je 0x10018c7f
test dl, dl
je 0x10018c00
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret
cmp eax, 8
ja 0x10018c92
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0x10], 0
jne 0x10018ca8
mov ecx, dword [ebp - 0x18]
add esi, 8
add eax, 0xfffffff8
mov dword [ecx], esi
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007fac0
mov esp, ebp
pop ebp
ret
Function at 0x1001d3f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
push str.FFMPEG_DATADIR
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x110], edi
mov dword [ebp - 0x114], eax
call esi
push str.HOME
mov dword [ebp - 0x120], eax
call esi
add esp, 8
mov dword [ebp - 0x11c], eax
cmp dword [ebp + 0xc], 0
je 0x1001d476
push 0x3e8
push edi
push ebx
call dword [sym.imp.avutil_56.dll_av_strlcpy]
push 0x10097db4
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret
push 0x103
lea eax, [ebp - 0x108]
mov dword [ebp - 0x118], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1001d54a
lea edx, [ebp - 0x108]
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001d4b0
sub ecx, esi
lea eax, [ebp - 0x108]
add eax, ecx
lea ecx, [ebp - 0x108]
cmp ecx, eax
jae 0x1001d4f6
nop dword [eax + eax]
cmp byte [edx], 0x5c
jne 0x1001d4d8
mov byte [edx], 0x2f
lea eax, [ebp - 0x108]
inc edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001d4e2
sub eax, esi
lea eax, [ebp + eax - 0x108]
cmp edx, eax
jb 0x1001d4d0
lea eax, [ebp - 0x108]
push 0x2f
push eax
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
add esp, 8
test eax, eax
je 0x1001d54a
lea ecx, [ebp - 0x108]
mov byte [eax], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001d518
sub ecx, edx
mov eax, 0x103
sub eax, ecx
push eax
lea eax, [ebp - 0x108]
push str._ffpresets
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
lea eax, [ebp - 0x108]
add esp, 0xc
mov dword [ebp - 0x118], eax
xor esi, esi
mov ecx, str._.ffmpeg
xor eax, eax
test eax, eax
jne 0x1001d5f1
mov edi, dword [ebp + esi*4 - 0x120]
test edi, edi
je 0x1001d5e7
push dword [ebp - 0x110]
cmp esi, 1
mov ebx, 0x10095064
cmove ebx, ecx
push ebx
push edi
push str._s_s__s.ffpreset
push 0x3e8
push dword [ebp - 0x10c]
call fcn.10019630
push 0x10097db4
push dword [ebp - 0x10c]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 0x20
test eax, eax
jne 0x1001d5e2
mov ecx, dword [ebp - 0x114]
test ecx, ecx
je 0x1001d5e2
push dword [ebp - 0x110]
push ecx
push ebx
mov ebx, dword [ebp - 0x10c]
push edi
push str._s_s__s__s.ffpreset
push 0x3e8
push ebx
call fcn.10019630
push 0x10097db4
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 0x24
mov ecx, str._.ffmpeg
inc esi
cmp esi, 3
jl 0x1001d553
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007fac0
mov esp, ebp
pop ebp
ret
Function at 0x10027d50
Capabilities:
Create thread

Disassembly:
cmp dword [edx + 0x6c], 1
mov eax, dword [edx + 0x68]
push ebx
push edi
mov edi, dword [eax + ecx*4]
je 0x10027e1d
mov eax, dword [edi]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10027d75
xor eax, eax
cmp dword [ecx + 0x54], eax
sete al
jmp 0x10027da5
mov eax, dword [eax + 4]
mov ecx, str.lavfi
mov eax, dword [eax]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10027da0
test dl, dl
je 0x10027d9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10027da0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10027d80
xor eax, eax
jmp 0x10027da5
sbb eax, eax
or eax, 1
test eax, eax
je 0x10027db0
mov dword [edi + 0x7c], 1
push 0x48
push dword [edi + 0x84]
lea ebx, [edi + 0x68]
push ebx
call dword [sym.imp.avutil_56.dll_av_thread_message_queue_alloc]
add esp, 0xc
test eax, eax
js 0x10027e1f
push esi
push 0
push 0
lea esi, [edi + 0x6c]
mov dword [esi + 4], 0x10027b70
push esi
push 0x1001dff0
push 0
push 0
mov dword [esi + 8], edi
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
jne 0x10027e1d
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
push eax
push str.pthread_create_failed:__s._Try_to_increase__ulimit__v__or_decrease__ulimit__s_._n
push 0x10
push 0
call dword [sym.imp.avutil_56.dll_av_log]
push ebx
call dword [sym.imp.avutil_56.dll_av_thread_message_queue_free]
add esp, 0x18
or eax, 0xffffffff
pop edi
pop ebx
ret
xor eax, eax
pop edi
pop ebx
ret

Function at 0x1002b080
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100aa9f8
push 0x10080073
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100b400c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
xor bl, bl
mov byte [ebp - 0x21], bl
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0
push esi
push 0x1002b2f0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
je 0x1002b0ec
mov bl, 1
mov byte [ebp - 0x21], bl
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.1002b119
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret
Function at 0x10044d00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100aaa18
push 0x10080073
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x100b400c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
xor bl, bl
mov byte [ebp - 0x21], bl
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0
push esi
push 0x10044c60
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
movzx ecx, bl
mov edx, 1
test eax, eax
cmovne ecx, edx
mov byte [ebp - 0x21], cl
mov dword [ebp - 4], 0xfffffffe
call fcn.10044d9a
mov al, cl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret
Function at 0x10051ad0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100aaa60
push 0x10080073
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x100b400c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov byte [ebp - 0x21], 0
mov dword [ebp - 0x28], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10051b28
push 0
push eax
call fcn.1007face
add esp, 8
push 0x108
call fcn.1007faf4
mov dword [ebp - 0x2c], eax
push 0x108
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x28]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10051b52
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [esi + 0x30]
call fcn.100052a0
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x10], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0
push esi
push 0x100519d0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x28], eax
movzx ebx, byte [ebp - 0x21]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov byte [ebp - 0x21], bl
mov dword [ebp - 4], 0xfffffffe
call fcn.10051be2
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret 8