joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012c19
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x90]
mov rbx, rcx
mov rax, qword [rbx]
mov rdx, qword [rbx + 8]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
lea rax, str.execShellCmd
mov qword [rbp - 0x48], rax
lea rax, str.C:UsersUsuarioDownloadsGMSNim_nim_2.0.8libpureos.nim
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.nimFrame_9
call sym.nimErrorFlag_7
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x40], 0x1a1
mov dword [rbp - 0x14], 0
mov rax, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x58]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
lea rax, [rbp - 0x70]
mov rcx, rax
call sym.nimToCStringConv_3
mov rcx, rax
call sym.system
mov dword [rbp - 0x14], eax
mov dword [rbp - 0x18], 0
mov eax, dword [rbp - 0x14]
mov ecx, eax
call sym.exitStatusLikeShell__pureZos_u192
mov dword [rbp - 0x18], eax
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax]
movzx eax, al
test eax, eax
jne 0x140012cd8
mov eax, dword [rbp - 0x18]
cdqe
mov qword [rbp - 8], rax
jmp 0x140012cd9
nop
call sym.popFrame_9
mov rax, qword [rbp - 8]
add rsp, 0x98
pop rbx
pop rbp
ret

Function at 0x140013a00
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140014632
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400342c8]
test eax, eax
je 0x1400146ca
lea rax, [0x1400342a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400342d0]
mov qword [rbp - 8], rax
jmp 0x1400146ae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400146a2
cmp qword [rbp - 0x10], 0
je 0x1400146a2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140014668
lea rax, [0x1400342a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400146cb
nop
add rsp, 0x30
pop rbp
ret
Function at 0x1400147d0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400147f8
mov eax, 0
jmp 0x140014846
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140014821
mov eax, 0
jmp 0x140014846
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140014841
mov eax, 0
jmp 0x140014846
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14001484c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400148ca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400148c1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400148c1
mov rax, qword [rbp - 8]
jmp 0x1400148df
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140014894
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14001c234
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x14001c37e
mov rcx, qword [rbp + 0x10]
call sym.pthread_spin_destroy
cmp eax, 1
jne 0x14001c371
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x14001c327
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x14001c33d
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x14001c323
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x14001c35c
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sym.abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x14001c37f
nop
add rsp, 0x90
pop rbp
ret
Function at 0x14001d39b
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [sym.imp.KERNEL32.dll_TlsAlloc]
call rax
mov dword [0x140027450], eax
mov eax, dword [0x140027450]
cmp eax, 0xffffffff
jne 0x14001d3c2
call sym.abort
nop
add rsp, 0x20
pop rbp
ret

Function at 0x14001d575
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x140034d50]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x140027450]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14001d5c8
mov rax, qword [rbp - 0x10]
jmp 0x14001d728
call sym.pop_pthread_mem
mov qword [rbp - 0x10], rax
mov rax, qword [sym.__dyn_tls_pthread]
test rax, rax
je 0x14001d5e4
cmp qword [rbp - 0x10], 0
jne 0x14001d5ee
mov eax, 0
jmp 0x14001d728
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call sym.replace_spin_keys
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x14001d6c9
call sym.abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x140027450]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x14001d724
call sym.abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14001d822
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call sym.__pthread_self_lite
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x14001d88f
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x140027450]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14001d9d3
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14001d92c
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001d8e7
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x140027450]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14001d9d3
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001d966
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x14001d9d3
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 0x10], 0
mov eax, dword [0x140027450]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x14001e615
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
call sym._fpreset
lea rax, [0x140027460]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x140034d50]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x140027450]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 8]
mov dword [rdx + 0x70], eax
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rdx, rbp
mov rax, qword [rbp - 8]
add rax, 0xd0
mov rcx, rax
call sym._setjmp
test eax, eax
jne 0x14001e72a
mov qword [rbp - 0x10], pe_nt_image_headers64
lea rax, [0x140027460]
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x14001e6f8
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
call rdx
mov qword [rbp - 0x10], rax
nop
nop
lea rax, [0x140027460]
mov rcx, rax
call sym.pthread_mutex_lock
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
jmp 0x14001e739
lea rax, [0x140027460]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x14001e775
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x14001e7e3
mov rax, qword [rbp - 8]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 8], 0
mov eax, dword [0x140027450]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14001e82d
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 8]
mov dword [rax + 0xbc], 1
jmp 0x14001e82d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [0x140027460]
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x14001e81f
mov eax, dword [rbp - 0x14]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x1400012cb
Capabilities:
Terminate process

Disassembly:
jmp 0x14004785c
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140004170
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140067280]
test rax, rax
jne 0x1400041b6
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov qword [0x140067280], rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
xor ecx, ecx
test eax, eax
mov rax, qword [0x140067280]
sete cl
mov dword [0x14006727c], ecx
jmp 0x1400041bc
mov ecx, dword [0x14006727c]
test ecx, ecx
je 0x14000420c
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 0x140004221
cmp dword [rsp + 0x48], 0
je 0x140004221
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 0x140004221
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 0x1400042f0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r8, str.sigterm_handler_n
xor ecx, ecx
mov edx, 0x10
call sub.avutil_59.dll_av_log
mov dword [0x140067268], ebx
mov eax, dword [0x14006726c]
inc eax
mov dword [0x14006726c], eax
mov eax, dword [0x14006726c]
cmp eax, 3
jle 0x14000434d
mov r8d, 0x2a
lea rdx, str.Received___3_system_signals__hard_exiting_n
lea ecx, [r8 - 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
mov ecx, 0x7b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add rsp, 0x20
pop rbx
ret
Function at 0x140007870
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r8, qword [0x1400672b0]
xor r13d, r13d
mov r15, rdx
mov r12, rcx
mov esi, r13d
mov r14d, r13d
test r8, r8
je 0x1400078b2
mov eax, dword [0x1400672ac]
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 [0x1400672ac], r13d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [0x1400672ac]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbp, rax
mov eax, dword [0x1400672ac]
test eax, eax
jle 0x140007a24
test rbp, rbp
je 0x140007a24
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x80], rdi
mov edi, r13d
test eax, eax
jle 0x14000794c
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 [0x1400672ac]
cmp edi, eax
jl 0x140007910
inc eax
movsxd rcx, eax
movsxd rax, esi
lea rcx, [rax + rcx*8]
call sub.avutil_59.dll_av_mallocz
mov r8, rax
mov qword [0x1400672b0], rax
mov eax, dword [0x1400672ac]
lea ecx, [rax + 1]
movsxd rdx, ecx
lea r13, [r8 + rdx*8]
test r8, r8
jne 0x14000798a
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140007a17
xor edx, edx
mov edi, edx
test eax, eax
jle 0x1400079f3
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 [0x1400672b0]
lea rbx, [rbx + 8]
add r14d, eax
inc edi
xor edx, edx
cmp edi, dword [0x1400672ac]
jl 0x1400079a0
movsxd rax, edi
mov rcx, rbp
mov qword [r8 + rax*8], rdx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x1400672ac]
mov dword [r12], eax
mov rax, qword [0x1400672b0]
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 0x140022e70
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
lea r8, str.Starting_thread..._n
mov rcx, qword [rcx + 0x20]
mov edx, 0x28
call sub.avutil_59.dll_av_log
xor ecx, ecx
cmp dword [rdi + 0x48], ecx
je 0x140022ec5
lea rax, str.C:_CI_workspace_ve_VE_Thirdparty_FFmpeg_Windows_2_ci_workspace_ffmpeg_fftools_ffmpeg_sched.c
mov dword [rsp + 0x28], 0x19e
lea r9, str._task__thread_running
mov qword [rsp + 0x20], rax
lea r8, str.Assertion__s_failed_at__s:_d_n
xor edx, edx
call sub.avutil_59.dll_av_log
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
lea rax, [0x140023060]
mov qword [rsp + 0x40], rbx
mov qword [rdi + 0x30], rax
lea r9, [rdi + 0x28]
xor eax, eax
mov qword [rdi + 0x38], rdi
mov qword [rsp + 0x28], rax
lea r8, [0x140023540]
xor edx, edx
mov dword [rsp + 0x20], eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rbx, qword [rsp + 0x40]
mov qword [rdi + 0x28], rax
test rax, rax
jne 0x140022f31
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov rcx, qword [rdi + 0x20]
lea r8, str.pthread_create___failed:__s_n
mov r9, rax
mov edx, 0x10
call sub.avutil_59.dll_av_log
mov eax, 0xffffffff
add rsp, 0x30
pop rdi
ret
mov dword [rdi + 0x48], 1
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x1400450a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x1400670d8]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r14d, r14d
mov edi, edx
mov rsi, rcx
movabs r13, 0x8000000000000000
test edx, edx
jns 0x14004513d
mov ebx, r14d
mov r15, r13
cmp dword [rcx + 0x30], ebx
jbe 0x1400452cd
mov ebp, r14d
mov r12, qword [rsi + 0x28]
mov r8, qword [r12 + rbp + 0x18]
cmp r8, r13
je 0x140045128
cmp r15, r13
je 0x140045121
mov r9, qword [r12 + rbp + 8]
mov rcx, r15
movsxd rax, edi
lea rdx, [rax + rax*8]
mov rdx, qword [r12 + rdx*8 + 8]
call sub.avutil_59.dll_av_compare_ts
test eax, eax
jns 0x140045128
mov r15, qword [r12 + rbp + 0x18]
mov edi, ebx
inc ebx
add rbp, 0x48
mov eax, edi
cmp ebx, dword [rsi + 0x30]
jb 0x1400450f1
test eax, eax
js 0x1400452cd
mov eax, edi
mov rdi, r14
lea rcx, [rax + rax*8]
mov rax, qword [rsi + 0x28]
lea r15, [rax + rcx*8]
nop
mov rcx, qword [r15]
lea rdx, [rsp + 0x30]
mov r9, rdi
mov r8d, 1
call sub.avutil_59.dll_av_fifo_peek
test eax, eax
js 0x1400452cd
mov rax, qword [rsp + 0x30]
cmp dword [rsi], r14d
jne 0x140045182
mov rbx, qword [rax + 0x40]
add rbx, qword [rax + 8]
jmp 0x140045190
mov rbx, qword [rax + 0x1b0]
add rbx, qword [rax + 0x88]
inc rdi
cmp rbx, r13
je 0x140045150
mov rcx, qword [r15 + 0x18]
cmp rbx, rcx
jge 0x1400452cd
mov rdx, qword [r15 + 8]
sub rcx, rbx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x3c], 0xf4240
mov r8, qword [rsp + 0x38]
call sub.avutil_59.dll_av_rescale_q
cmp rax, qword [rsi + 0x20]
jl 0x1400452cd
lea r12, [rbx + 1]
cmp dword [rsi + 0x30], r14d
jbe 0x1400452c6
nop
mov eax, r14d
lea rcx, [rax + rax*8]
mov rax, qword [rsi + 0x28]
lea rdi, [rax + rcx*8]
cmp r15, rdi
je 0x1400452b9
cmp dword [rdi + 0x24], 0
jne 0x1400452b9
mov r8, qword [rdi + 0x18]
cmp r8, r13
je 0x140045223
mov r9, qword [rdi + 8]
mov rcx, r12
mov rdx, qword [r15 + 8]
call sub.avutil_59.dll_av_compare_ts
test eax, eax
jle 0x1400452b9
mov r8, qword [rdi + 8]
mov rcx, r12
mov rdx, qword [r15 + 8]
call sub.avutil_59.dll_av_rescale_q
mov rcx, qword [rdi + 0x18]
mov rbp, rax
cmp rcx, r13
je 0x140045249
inc rcx
cmp rcx, rax
cmovg rbp, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x40]
xorps xmm1, xmm1
mov rdx, rbp
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x70], xmm1
mov r8, qword [rdi + 8]
call sub.avutil_59.dll_av_ts_make_time_string2
mov r8, qword [rdi + 8]
lea rcx, [rsp + 0x60]
mov rdx, qword [rdi + 0x18]
mov rbx, rax
call sub.avutil_59.dll_av_ts_make_time_string2
mov rcx, qword [rsi + 8]
lea r8, str.sq:__u_overflow_heardbeat__s_____s_n
mov r9d, r14d
mov qword [rsp + 0x28], rbx
mov edx, 0x30
mov qword [rsp + 0x20], rax
call sub.avutil_59.dll_av_log
mov r8, rbp
mov edx, r14d
mov rcx, rsi
call fcn.140046970
inc r14d
cmp r14d, dword [rsi + 0x30]
jb 0x1400451e0
mov eax, 1
jmp 0x1400452cf
xor eax, eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140001280
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400022a8
Capabilities:
Parse pe header

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