joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420620
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x80]
mov rdi, rcx
movsxd r12, edx
mov r13, r8
call sym.strlen
mov r14, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x51]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.0040feb0
sub rsp, rax
movsxd r15, r14d
movabs rax, 0x656d68732d636367
lea rsi, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov r8, r15
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov eax, 0x326d
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
movsxd rbx, ebx
mov byte [rsp + 0x2e], 0x2d
call sym.memcpy
lea rax, [rsi + r15 + 0x10]
lea r15d, [r14 + 0x50]
movabs rdx, 0x6161616161616161
xor ecx, ecx
mov r8, rsi
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rdx
movsxd rax, r15d
xor edx, edx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + rbx + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + rbx + 0x20], 0x2d
mov rdi, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x420709
int3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x4207a2
mov rcx, r12
add r14d, 0x10
call sym.malloc
mov r10d, 0x40
mov rbx, rax
bt rbx, r10
jae 0x420744
mov r11d, r15d
sub r11d, r10d
movsxd r11, r11d
mov byte [rsi + r11], 0x41
sub r10d, 1
jne 0x420730
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x42079f
mov rdx, rsi
movzx ecx, ax
mov r9d, r14d
mov r8d, r15d
call sym.get_ptr_from_atom_1
cmp rax, rbx
mov rsi, rax
je 0x4207b9
mov rcx, rbx
call sym.free
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
lea rsp, [rbp - 0x58]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
lea r9d, [r14 + 0x10]
mov rdx, rsi
movzx ecx, ax
mov r8d, r15d
call sym.get_ptr_from_atom_1
mov rsi, rax
jmp 0x420779
xor edx, edx
mov r8, r12
mov rcx, rbx
call sym.memset
test r13, r13
je 0x420779
mov rcx, rbx
call r13
jmp 0x420779

Function at 0x420910
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.global_lock_spinlock
xor r8d, r8d
mov edx, 4
jmp sym.__shmem_winpthreads_grab

Function at 0x421100
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_rwl_global_shmem]
lea rcx, str.rwl_global_shmem
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x4211d0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_winpthreads_init_cond_locked_shmem_rwlock]
lea rcx, str.cond_locked_shmem_rwlock
mov edx, 8
jmp sym.__shmem_winpthreads_grab

Function at 0x421cf0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init_init]
lea rcx, str.init
mov edx, 8
jmp dbg.__shmem_grab

Function at 0x421d10
Capabilities:
Check mutex on windows

Disassembly:
lea rcx, str.eh_globals
xor r8d, r8d
mov edx, 0x10
jmp dbg.__shmem_grab
Function at 0x4223c0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init___terminate_handler_sh]
lea rcx, str.__terminate_handler_sh
mov edx, 8
jmp dbg.__shmem_grab

Function at 0x4223e0
Capabilities:
Check mutex on windows

Disassembly:
lea r8, [sym.__shmem_init___unexpected_handler_sh]
lea rcx, str.__unexpected_handler_sh
mov edx, 8
jmp dbg.__shmem_grab

Function at 0x423920
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
test rax, rax
jle 0x423951
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
mov dword [rbx + 0x48], 0xffffffff
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x4242a0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x00489090], 0
jne 0x424367
mov byte [0x00489090], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x4243fa
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov rsi, qword [sym.imp.msvcrt.dll___iob_func]
mov rdi, rax
call rsi
lea rcx, str.terminate_called_after_throwing_an_instance_of_
lea r9, [rax + 0x60]
mov r8d, 0x30
mov edx, 1
call sym.fwrite
cmp dword [rsp + 0x2c], 0
je 0x424357
call rsi
lea rdx, [rax + 0x60]
mov rcx, rbx
call sym.fputs
call rsi
lea rcx, [0x0048ad61]
lea r9, [rax + 0x60]
mov r8d, 2
mov edx, 1
call sym.fwrite
cmp dword [rsp + 0x2c], 0
je 0x42438d
call sym.__cxa_rethrow
call rsi
lea rdx, [rax + 0x60]
mov rcx, rdi
call sym.fputs
jmp 0x42432e
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.terminate_called_recursively_n
lea r9, [rax + 0x60]
mov r8d, 0x1d
mov edx, 1
call sym.fwrite
call sym.abort
mov rcx, rdi
call sym.free
jmp 0x424352
call sym.abort
call qword [sym.imp.msvcrt.dll___iob_func]
lea rcx, str.terminate_called_without_an_active_exception_n
lea r9, [rax + 0x60]
mov r8d, 0x2d
mov edx, 1
call sym.fwrite
jmp 0x4243f5

Function at 0x452ca0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rbp, rcx
mov rdi, rdx
mov esi, r8d
mov rcx, rbp
call method.std::__basic_file_char_.fd__
mov r8d, esi
mov rdx, rdi
mov ecx, eax
call sym.read
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
je 0x452cf0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x452cba
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140002610
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140002638
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000265e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002660
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400026b9
test ecx, ecx
jle 0x140002699
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400026b9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400026b9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x1400026e0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002702
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140002718
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002734
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002736
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002772
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000280e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400027ad
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x1400027ee
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000280e
cmp rbx, rax
ja 0x1400027c0
test rbx, rbx
je 0x14000280e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140002c70
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002c9d
xor eax, eax
jmp 0x140002e09
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002cd7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002cd7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002e09
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002dfc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002d1a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002d45
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002e01
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002db4
sub eax, 1
je 0x140002db4
cmp eax, 2
jne 0x140002dfc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002e01
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002de2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140002dfc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002e01
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004390
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140003430
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003503
cmp byte [rcx + 0x71], 0
je 0x140003503
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400034ff
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400034c4
sub eax, 1
je 0x1400034c8
cmp eax, 2
jne 0x1400034ff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004390
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400034f6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400034ff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400034ac
xor al, al
jmp 0x1400034ac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004390
add rsp, 0x60
pop rbx
ret

Function at 0x140004d10
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004d5a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004d5a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004d5a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004d5a
cmp dword [rcx + 0x84], 0xe
jbe 0x140004d5a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004d5c
xor al, al
add rsp, 0x28
ret
Function at 0x140007bf0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x30
mov edx, dword [rcx + 0xe0]
mov rdi, rcx
test edx, edx
jg 0x140007c20
mov edx, 1
mov eax, 8
cmp dword [0x140043188], edx
cmovg edx, eax
mov dword [rcx + 0xe0], edx
cmp dword [0x140043188], 1
jle 0x140007c8c
mov rax, qword [rcx + 0x10]
mov rcx, qword [rax + 0x20]
test rcx, rcx
je 0x140007c43
xor eax, eax
cmp dword [rcx + 0x88], eax
sete al
jmp 0x140007c7e
mov rax, qword [rax + 8]
lea r9, str.lavfi
xor ecx, ecx
mov r8, qword [rax]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
inc rcx
cmp al, byte [r9 + rcx - 1]
jne 0x140007c79
cmp rcx, 6
jne 0x140007c60
xor eax, eax
jmp 0x140007c7e
sbb eax, eax
or eax, 1
test eax, eax
je 0x140007c8c
mov dword [rdi + 0x108], 1
mov r8d, 0x10
lea rcx, [rdi + 0xd8]
call sub.avutil_58.dll_av_thread_message_queue_alloc
test eax, eax
js 0x140007dae
cmp dword [rdi + 0xb0], 0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
je 0x140007d19
mov eax, dword [rdi + 0x58]
xor ebx, ebx
test eax, eax
jle 0x140007d19
mov rdx, qword [rdi + 0x50]
mov r8d, eax
nop dword [rax]
mov rax, qword [rdx]
cmp dword [rax + 0x20], 0
je 0x140007ced
mov rax, qword [rax + 0x10]
mov rcx, qword [rax + 0x10]
cmp dword [rcx], 1
jne 0x140007ced
mov eax, 1
jmp 0x140007cef
xor eax, eax
add ebx, eax
add rdx, 8
sub r8, 1
jne 0x140007cd0
test ebx, ebx
je 0x140007d19
lea rcx, [rdi + 0x68]
mov r8d, 0x10
mov edx, ebx
call sub.avutil_58.dll_av_thread_message_queue_alloc
mov esi, eax
test eax, eax
js 0x140007d88
mov dword [rdi + 0x70], ebx
lea rax, [0x1400051b0]
mov qword [rsp + 0x28], 0
lea r9, [rdi + 0xe8]
mov qword [rdi + 0xf0], rax
lea r8, [0x1400030a0]
mov qword [rdi + 0xf8], rdi
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi + 0xe8], rax
test rax, rax
jne 0x140007d98
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
lea r8, str.pthread_create_failed:__s._Try_to_increase__ulimit__v__or_decrease__ulimit__s_._n
mov edx, 0x10
mov r9, rax
mov rcx, rdi
call sub.avutil_58.dll_av_log
mov esi, 0xffffffff
lea rcx, [rdi + 0xd8]
call sub.avutil_58.dll_av_thread_message_queue_free
mov eax, esi
jmp 0x140007da4
mov dword [rdi + 0x10c], 1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140011850
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
push r13
sub rsp, 0x58
mov r13, qword [rcx + 0x70]
mov rdi, rcx
call fcn.14001fd10
mov qword [rsp + 0x80], rax
test rax, rax
jne 0x140011882
mov eax, 0xfffffff4
add rsp, 0x58
pop r13
pop rdi
ret
movsxd rdx, dword [rdi + 0xa8]
lea r9, [0x140002880]
mov ecx, dword [r13 + 0x2c]
mov r8, rax
mov qword [rsp + 0x38], r14
call fcn.140021a20
lea r14, [rdi + 0x98]
mov qword [r14], rax
test rax, rax
jne 0x1400118cf
lea rcx, [rsp + 0x80]
call fcn.14001fd60
mov r14, qword [rsp + 0x38]
mov eax, 0xfffffff4
add rsp, 0x58
pop r13
pop rdi
ret
lea rax, [0x140010500]
mov qword [rsp + 0x88], rbx
mov qword [rdi + 0x80], rax
lea r9, [rdi + 0x78]
xor eax, eax
mov qword [rdi + 0x88], rdi
mov qword [rsp + 0x28], rax
lea r8, [0x1400030a0]
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rdi + 0x78], rax
test rax, rax
jne 0x140011927
mov rcx, r14
call fcn.140021b60
mov eax, 0xffffffff
jmp 0x140011a4c
mov qword [rsp + 0x50], rbp
xor ebx, ebx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x30], r15
mov r15d, ebx
cmp dword [r13 + 0x2c], ebx
jbe 0x140011a36
mov r12d, ebx
nop dword [rax]
mov rax, qword [rdi + 0x20]
lea rdx, [rsp + 0x78]
mov r8d, 1
mov rdi, qword [r12 + rax]
mov rcx, qword [rdi + 0x1d0]
call sub.avutil_58.dll_av_fifo_read
test eax, eax
js 0x140011a1b
lea rsi, [rdi + 0x130]
nop
mov rbp, qword [rsp + 0x78]
test rbp, rbp
je 0x1400119b8
test byte [rsi], 2
jne 0x1400119b0
mov edx, dword [rdi + 0x10]
mov r8, rbp
mov rcx, qword [r14]
call fcn.140021d30
mov ebx, eax
test eax, eax
js 0x1400119b0
xor eax, eax
lea rsi, [rdi + 0x130]
mov ebx, eax
jmp 0x1400119d4
mov rcx, rbp
call sub.avcodec_60.dll_av_packet_unref
or dword [rsi], 2
mov rcx, qword [r14]
mov edx, dword [rdi + 0x10]
call fcn.140021ea0
cmp ebx, 0xdfb9b0bb
mov eax, 0
cmove ebx, eax
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1400119f3
movsxd rax, dword [rax + 0x20]
lea rcx, [rsp + 0x78]
sub qword [rdi + 0x210], rax
call sub.avcodec_60.dll_av_packet_free
test ebx, ebx
js 0x140011a32
mov rcx, qword [rdi + 0x1d0]
lea rdx, [rsp + 0x78]
mov r8d, 1
call sub.avutil_58.dll_av_fifo_read
mov ebx, 0
test eax, eax
jns 0x140011980
inc r15d
add r12, 8
cmp r15d, dword [r13 + 0x2c]
jae 0x140011a36
mov rdi, qword [rsp + 0x70]
jmp 0x140011950
mov eax, ebx
jmp 0x140011a38
xor eax, eax
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov r15, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x88]
mov r14, qword [rsp + 0x38]
add rsp, 0x58
pop r13
pop rdi
ret
Function at 0x1400235c0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r8, qword [0x140043168]
xor r13d, r13d
mov r15, rdx
mov r12, rcx
mov esi, r13d
mov r14d, r13d
test r8, r8
je 0x140023602
mov eax, dword [0x140043164]
mov dword [rcx], eax
mov qword [rdx], r8
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
mov qword [rsp + 0x78], rbp
mov dword [0x140043164], r13d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [0x140043164]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbp, rax
mov eax, dword [0x140043164]
test eax, eax
jle 0x140023774
test rbp, rbp
je 0x140023774
mov qword [rsp + 0x80], rdi
mov edi, r13d
mov qword [rsp + 0x70], rbx
test eax, eax
jle 0x14002369c
mov rbx, rbp
nop word [rax + rax]
mov r8, qword [rbx]
mov r9d, 0xffffffff
mov qword [rsp + 0x38], r13
xor edx, edx
mov qword [rsp + 0x30], r13
mov ecx, 0xfde9
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc edi
lea rbx, [rbx + 8]
add esi, eax
mov eax, dword [0x140043164]
cmp edi, eax
jl 0x140023660
inc eax
movsxd rcx, eax
movsxd rax, esi
lea rcx, [rax + rcx*8]
call sub.avutil_58.dll_av_mallocz
mov r8, rax
mov qword [0x140043168], rax
mov eax, dword [0x140043164]
lea ecx, [rax + 1]
movsxd rdx, ecx
lea r13, [r8 + rdx*8]
test r8, r8
jne 0x1400236da
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140023767
xor edx, edx
mov edi, edx
test eax, eax
jle 0x140023743
mov ebx, edx
nop dword [rax]
nop dword [rax + rax]
mov qword [rsp + 0x38], rdx
mov eax, esi
mov qword [rsp + 0x30], rdx
sub eax, r14d
mov dword [rsp + 0x28], eax
mov r9d, 0xffffffff
movsxd rcx, r14d
xor edx, edx
add rcx, r13
mov qword [rbx + r8], rcx
mov r8, qword [rbx + rbp]
mov qword [rsp + 0x20], rcx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r8, qword [0x140043168]
lea rbx, [rbx + 8]
add r14d, eax
inc edi
xor edx, edx
cmp edi, dword [0x140043164]
jl 0x1400236f0
movsxd rax, edi
mov rcx, rbp
mov qword [r8 + rax*8], rdx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x140043164]
mov dword [r12], eax
mov rax, qword [0x140043168]
mov qword [r15], rax
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x140029ee0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400431d8]
test rax, rax
jne 0x140029f26
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov qword [0x1400431d8], rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
xor ecx, ecx
test eax, eax
mov rax, qword [0x1400431d8]
sete cl
mov dword [0x1400431d0], ecx
jmp 0x140029f2c
mov ecx, dword [0x1400431d0]
test ecx, ecx
je 0x140029f7c
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rcx, rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x140029f91
cmp dword [rsp + 0x48], 0
je 0x140029f91
mov r8d, 1
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
movzx eax, byte [rsp + 0x40]
add rsp, 0x38
ret
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__kbhit]
test eax, eax
je 0x140029f91
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
add rsp, 0x38
ret
mov eax, 0xffffffff
add rsp, 0x38
ret

Function at 0x14002bcf8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002bd42
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002bd42
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002bd42
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002bd42
cmp dword [rcx + 0x84], 0xe
jbe 0x14002bd42
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002bd44
xor al, al
add rsp, 0x28
ret