joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180035440
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x180035440
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x180135088]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rdi, rdx
lea rcx, [rbp - 0x60]
mov r13d, 1
xor edx, edx
mov r8d, 0x208
mov ebx, r13d
call fcn.180003a85
xor r12d, r12d
test rdi, rdi
je 0x180035673
mov r8, rdi
lea rcx, [rbp - 0x60]
mov edx, 0x104
call fcn.180002531
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800354c7
bt eax, 0xa
jb 0x1800354e0
mov edx, 0x5c
lea rcx, [rbp - 0x60]
call fcn.180001320
test rax, rax
je 0x1800354f3
mov word [rax], r12w
jmp 0x1800354b2
lea rdx, [rbp - 0x60]
lea rcx, str.CLogger::ValidatePathForSymLink_:_Failed__s___
call fcn.180002c25
mov ebx, r12d
test ebx, ebx
je 0x180035673
movsd xmm0, qword [0x1800f8b50]
lea rcx, [rbp - 0x56]
movzx eax, word [0x1800f8b58]
xor edx, edx
mov r8d, 0x1fe
movsd qword [rbp - 0x60], xmm0
mov word [rbp - 0x58], ax
mov ebx, r12d
call fcn.180003a85
xorps xmm0, xmm0
mov dword [rsp + 0x5c], r12d
xorps xmm1, xmm1
mov dword [rsp + 0x74], r12d
xor eax, eax
mov qword [rsp + 0x30], r12
lea rcx, str.ntdll.dll
mov qword [rbp - 0x68], rax
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rbp - 0x78], xmm1
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlInitUnicodeString
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.ntdll.dll
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtOpenFile
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.ntdll.dll
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.ZwQueryInformationFile
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test r15, r15
je 0x180035673
test r14, r14
je 0x180035673
test rax, rax
je 0x180035673
mov r8, rdi
lea rcx, [rbp - 0x60]
mov edx, 0x104
call fcn.180001839
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x38]
call r15
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], r12d
xorps xmm0, xmm0
mov qword [rsp + 0x68], rax
lea r9, [rsp + 0x48]
mov dword [rsp + 0x58], 0x30
lea r8, [rsp + 0x58]
mov qword [rsp + 0x60], r12
mov edx, 0x20000
mov dword [rsp + 0x70], 0x40
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], r13d
movdqu xmmword [rsp + 0x78], xmm0
call r14
test eax, eax
js 0x1800356a6
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1800356a6
mov r9d, 0x18
mov dword [rsp + 0x20], 5
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x48]
call rsi
test eax, eax
js 0x180035664
cmp dword [rbp - 0x68], 2
cmovb ebx, r13d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1800356ad
mov eax, r12d
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.180002397
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
cmp eax, 0xc0000034
jne 0x180035673
mov eax, r13d
jmp 0x180035676
Function at 0x180035850
Capabilities:
Delete file

Disassembly:
jmp 0x180035850
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x180135088]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rdi, r8
lea rcx, [rsp + 0x20]
mov rbx, rdx
mov r8d, 0x208
xor edx, edx
mov ebp, r9d
xor esi, esi
call fcn.180003a85
test rbx, rbx
je 0x180035947
mov rcx, qword [rdi]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180035947
lea r9d, [rsi + 8]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
dec eax
cmp eax, 0x102
ja 0x1800358fe
lea edx, [rsi + 0x3a]
lea rcx, [rsp + 0x20]
call fcn.180001320
test rax, rax
je 0x1800358fe
lea rcx, [rsp + 0x20]
cmp rax, rcx
jbe 0x1800358fe
lfence
lea rdx, [rax - 2]
mov rcx, rbx
call fcn.180002c57
test eax, eax
jne 0x1800358fe
mov esi, 1
mov eax, esi
jmp 0x180035949
lea rdx, [rsp + 0x20]
lea rcx, str.CLogger::ValidatePathFromHandle_:_Failed__s___
call fcn.180002c25
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0xffffffffffffffff
cmp ebp, 0xb7
je 0x180035943
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180035943
mov rdx, rbx
lea rcx, str.CLogger::ValidatePathFromHandle_:_DeleteFile_Failed__s___
call fcn.180002c25
mov eax, esi
jmp 0x180035949
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180002397
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800359c0
Capabilities:
Get file size
Write file on windows

Disassembly:
jmp 0x1800359c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x868
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x180135088]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rsi, rcx
lea r15, [rcx + 0x120]
mov qword [rsp + 0x38], r15
test r15, r15
je 0x180035a24
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12b, 1
mov byte [rsp + 0x40], r12b
jmp 0x180035a2a
movzx r12d, byte [rsp + 0x40]
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x50]
call fcn.180003a85
xor r14d, r14d
mov dword [rsp + 0x30], r14d
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x180035bcf
cmp byte [rsi + 0x35a], r14b
je 0x180035a78
cmp dword [rsi + 0x18], 0x400
jb 0x180035a78
mov dword [rsi + 0x18], r14d
mov rcx, rsi
call fcn.180003fa8
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x180035bcf
inc dword [rsi + 0x18]
mov eax, dword [rsi + 0x10]
cmp eax, dword [rsi + 0x14c]
jl 0x180035bd5
lea r13, [rsp + 0x8c0]
mov dword [rsp + 0x28], eax
lea rax, [0x1800f9000]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, 0x800
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.180001181
mov ebx, eax
test eax, eax
jle 0x180035b4f
mov ebp, dword [rsp + 0x30]
cmp ebp, 0x800
jae 0x180035b11
mov edi, 0x800
sub rdi, rbp
lea rbx, [rsp + 0x50]
add rbx, rbp
call fcn.1800052fe
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov r9, qword [rsp + 0x8b8]
mov r8, rdi
mov rdx, rbx
mov rcx, qword [rax]
call fcn.180003869
mov ebx, eax
mov eax, 0xffffffff
test ebx, ebx
cmovs ebx, eax
test ebx, ebx
jle 0x180035b53
cmp ebp, 0x800
jae 0x180035b3f
add ebp, ebx
mov eax, ebp
mov edx, 0x800
sub rdx, rax
lea rcx, [rsp + 0x50]
add rcx, rax
lea r8, [0x1800f9004]
call fcn.180005b9b
mov ebx, eax
test ebx, ebx
jle 0x180035b53
cmp ebp, 0x800
jae 0x180035b53
add ebp, ebx
jmp 0x180035b53
mov ebp, dword [rsp + 0x30]
test ebp, ebp
je 0x180035b98
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x30]
mov r8d, ebp
lea rdx, [rsp + 0x50]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180035b98
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r9d, dword [rsp + 0x30]
mov r8d, ebp
lea rcx, str.CLogger::Write_WriteFile_failed_0x_08X___d___d_
call fcn.180002c25
cmp dword [rsi + 0x18], 0x186a0
jb 0x180035bd8
lea rdx, [rsp + 0x30]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180035bc5
cmp qword [rsp + 0x30], 0xa00000
jge 0x180035bc5
mov dword [rsi + 0x18], r14d
jmp 0x180035bd8
mov rcx, rsi
call fcn.180004043
jmp 0x180035bd8
mov r14d, 0xffffffff
mov ebx, r14d
test r15, r15
je 0x180035beb
test r12b, r12b
je 0x180035beb
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.180002397
add rsp, 0x868
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18003b360
Capabilities:
Get file size
Write file on windows

Disassembly:
jmp 0x18003b360
push rbx
sub rsp, 0x20
mov rbx, rdx
test rdx, rdx
je 0x18003b3b7
mov rcx, qword [rcx + 0x10]
call fcn.180003512
test rax, rax
je 0x18003b38c
mov qword [rbx], rax
lock inc dword [rax + 0xc8]
add rsp, 0x20
pop rbx
ret
cmp dword [0x18013218c], 7
mov dword [0x180132050], 7
jg 0x18003b3e2
lea rdx, str.Stage_Buffer_get_free_failed
lea rcx, vtable.CLogger.0
add rsp, 0x20
pop rbx
jmp fcn.1800024fa
cmp dword [0x18013218c], 7
mov dword [0x180132050], 7
jg 0x18003b3e2
lea rdx, str.Stage_Buffer_failed_NULL_ptr
lea rcx, vtable.CLogger.0
add rsp, 0x20
pop rbx
jmp fcn.1800024fa
add rsp, 0x20
pop rbx
ret

Function at 0x18003c280
Capabilities:
Get file size
Write file on windows

Disassembly:
jmp 0x18003c280
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180005277
mov edi, eax
test eax, eax
jns 0x18003c2d9
lfence
mov rcx, rbx
call fcn.1800013a7
cmp dword [0x18013218c], 7
mov dword [0x180132050], 7
jg 0x18003c2ee
lfence
mov r8d, edi
lea rdx, str.CStageEncodeVideo::DeleteInstance:_CStageEncodeVideo_stop_failed._0x_08X
lea rcx, vtable.CLogger.0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1800024fa
test rbx, rbx
je 0x18003c2ee
lfence
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18003c370
Capabilities:
Write file on windows

Disassembly:
jmp 0x18003c370
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rsi, rdx
mov rcx, qword [rcx + 0x19b8]
test rcx, rcx
je 0x18003c3f2
mov rax, qword [rcx]
call qword [rax + 0x48]
movzx ebx, al
test al, al
je 0x18003c3f4
cmp byte [rdi + 0x1c20], 0
je 0x18003c41d
mov rcx, qword [rdi + 0x1a10]
xor eax, eax
mov dword [rsp + 0x40], eax
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x18003c3d9
mov rdx, qword [rsi + 8]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdx]
mov rdx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc dword [rdi + 0x1c24]
movzx eax, bl
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xor bl, bl
cmp dword [0x18013218c], 7
mov dword [0x180132050], 7
jg 0x18003c41a
lea rdx, str.encode_get_header_failed
lea rcx, vtable.CLogger.0
call fcn.1800024fa
movzx eax, bl
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x18003d550
Capabilities:
Write file on windows

Disassembly:
jmp 0x18003d550
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor r9d, r9d
mov rdi, rcx
mov rcx, qword [rcx + 0x1a10]
mov bl, 1
mov dword [rsp + 0x40], r9d
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18003d58c
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18003d58e
xor bl, bl
inc dword [rdi + 0x1c24]
movzx eax, bl
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180042150
Capabilities:
Get common file path

Disassembly:
jmp 0x180042150
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x490
mov rax, qword [0x180135088]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rax, qword [rsp + 0x500]
lea rcx, [rsp + 0x60]
mov r14, qword [rsp + 0x4e0]
mov ebx, r8d
mov r15, qword [rsp + 0x4e8]
mov edi, edx
mov r12, qword [rsp + 0x4f0]
xor edx, edx
mov r13, qword [rsp + 0x4f8]
mov r8d, 0x208
mov qword [rsp + 0x50], rax
mov rsi, r9
call fcn.180003a85
xor edx, edx
lea rcx, [rsp + 0x270]
mov r8d, 0x208
call fcn.180003a85
xor ebp, ebp
test rsi, rsi
je 0x180042344
test r14, r14
je 0x180042344
test r15, r15
je 0x180042344
test r12, r12
je 0x180042344
test r13, r13
je 0x180042344
cmp qword [rsp + 0x50], rbp
je 0x180042344
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rbp + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r8, [0x1800e1f94]
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.180001839
lea r8, str.NVIDIA_CorporationOSCwatermark
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.180001839
lea r8, [rsp + 0x60]
mov edx, 0x104
mov rcx, rsi
call fcn.180001839
test edi, edi
jle 0x180042344
test ebx, ebx
jle 0x180042344
mov ecx, ebp
lea rax, [0x1801327a8]
nop dword [rax]
cmp ebx, dword [rax - 4]
jl 0x18004229d
cmp dword [rax], edi
jle 0x180042377
inc ecx
add rax, 0x428
cmp ecx, 8
jb 0x180042290
mov ebx, ebp
lea r8, [0x1800e1f94]
mov edx, 0x104
mov rcx, rsi
call fcn.180001839
lea r8, [rsp + 0x270]
mov edx, 0x104
mov rcx, rsi
call fcn.180001839
mov r8, qword [rsp + 0x50]
xor r9d, r9d
xor edx, edx
mov rcx, rsi
call fcn.1800747fc
test eax, eax
je 0x1800423e3
cmp dword [0x18013218c], 7
mov dword [0x180132050], 7
jg 0x180042344
mov ecx, dword [r13]
lea rdx, str.Dyn_Logo_D3DXGetImageInfoFromFile_failed_with_error_code:0x_x_:_FileExists:_d_W:_d_H:_d_Lw:_d_Lh:_d_Mx:_d_My:_d
mov dword [rsp + 0x48], ecx
mov r9d, 1
mov ecx, dword [r12]
mov r8d, eax
mov dword [rsp + 0x40], ecx
mov ecx, dword [r15]
mov dword [rsp + 0x38], ecx
mov ecx, dword [r14]
mov dword [rsp + 0x30], ecx
lea rcx, vtable.CLogger.0
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebp
call fcn.1800024fa
xor al, al
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.180002397
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
test ecx, ecx
js 0x1800422aa
lfence
lea r9, [0x1801327a0]
movsxd rax, ecx
imul rcx, rax, 0x428
lea r8, [r9 + 0x18]
mov edx, 0x104
add r8, rcx
mov eax, dword [rcx + r9 + 8]
mov ebp, dword [rcx + r9]
mov ebx, dword [rcx + r9 + 4]
mov dword [r14], eax
mov eax, dword [rcx + r9 + 0xc]
mov dword [r15], eax
mov eax, dword [rcx + r9 + 0x10]
mov dword [r12], eax
mov eax, dword [rcx + r9 + 0x14]
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x270]
mov dword [r13], eax
call fcn.1800025b3
jmp 0x1800422ac
mov al, 1
jmp 0x180042346
Function at 0x180045910
Capabilities:
Get file size
Write file on windows

Disassembly:
jmp 0x180045910
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180005277
mov edi, eax
test eax, eax
jns 0x180045969
lfence
mov rcx, rbx
call fcn.1800013a7
cmp dword [0x18013218c], 7
mov dword [0x180132050], 7
jg 0x18004597e
lfence
mov r8d, edi
lea rdx, str.DelegateHandler_struct_IMFSample__::DeleteInstance:_DelegateHandler_stop_failed._0x_08X
lea rcx, vtable.CLogger.0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1800024fa
test rbx, rbx
je 0x18004597e
lfence
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800459b0
Capabilities:
Get file size
Write file on windows

Disassembly:
jmp 0x1800459b0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180005277
mov edi, eax
test eax, eax
jns 0x180045a09
lfence
mov rcx, rbx
call fcn.1800013a7
cmp dword [0x18013218c], 7
mov dword [0x180132050], 7
jg 0x180045a1e
lfence
mov r8d, edi
lea rdx, str.AudioCapture::DeleteInstance:_AudioCapture_stop_failed._0x_08X
lea rcx, vtable.CLogger.0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1800024fa
test rbx, rbx
je 0x180045a1e
lfence
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180048170
Capabilities:
Get file size
Write file on windows

Disassembly:
jmp 0x180048170
sub rsp, 0x28
mov byte [rcx + 0x758], 1
mov dword [rcx + 0x4f0], 0x10401
call fcn.1800039c7
cmp dword [0x18013218c], 7
mov dword [0x180132050], 7
jg 0x1800481b4
lea rdx, str._Audio_init_failure___inserting_silence.
lea rcx, vtable.CLogger.0
add rsp, 0x28
jmp fcn.1800024fa
add rsp, 0x28
ret
Function at 0x18004a2d0
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
jmp 0x18004a2d0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xorps xmm0, xmm0
lea rdi, [0x18013a6b0]
movups xmmword [rcx + 0x74], xmm0
mov rbx, rcx
mov edx, 0x104
movups xmmword [rcx + 0x84], xmm0
mov byte [rcx + 8], 0
mov qword [rcx], 0
mov byte [rcx + 0x70], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, str.mf.dll
mov edx, 0x104
mov qword [rsp + 0x28], rax
lea r9, str._s_s
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rdi
mov rcx, rdi
call fcn.180002bfd
xor edx, edx
mov rcx, rdi
call fcn.180003b8e
mov edx, 0x104
mov qword [rbx + 0x10], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, str.mfplat.dll
mov edx, 0x104
mov qword [rsp + 0x28], rax
lea r9, str._s_s
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rdi
mov rcx, rdi
call fcn.180002bfd
xor edx, edx
mov rcx, rdi
call fcn.180003b8e
xorps xmm0, xmm0
mov qword [rbx + 0x18], rax
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
movups xmmword [rbx + 0x60], xmm0
cmp qword [rbx + 0x10], 0
je 0x18004a48d
mov rcx, rax
test rax, rax
je 0x18004a48d
lea rdx, str.MFStartup
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x18]
lea rdx, str.MFShutdown
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x18]
lea rdx, str.MFCreateSystemTimeSource
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x18]
lea rdx, str.MFCreateMemoryBuffer
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x18]
lea rdx, str.MFCreateSample
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x18]
lea rdx, str.MFCreateFile
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x18]
lea rdx, str.MFCreateMediaType
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x18]
lea rdx, str.MFTEnum
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.MFCreateMPEG4MediaSink
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x10]
lea rdx, str.MFCreatePresentationClock
mov qword [rbx + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x68], rax
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18004c050
Capabilities:
Get file size
Write file on windows

Disassembly:
jmp 0x18004c050
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180005277
mov edi, eax
test eax, eax
jns 0x18004c0a9
lfence
mov rcx, rbx
call fcn.1800013a7
cmp dword [0x18013218c], 7
mov dword [0x180132050], 7
jg 0x18004c0be
lfence
mov r8d, edi
lea rdx, str.AVCirularBufferToFileCommiter::DeleteInstance:_AVCirularBufferToFileCommiter_stop_failed._0x_08X
lea rcx, vtable.CLogger.0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1800024fa
test rbx, rbx
je 0x18004c0be
lfence
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180054c90
Capabilities:
Delete file

Disassembly:
jmp 0x180054c90
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov rdi, rcx
mov dword [rcx + 0x2c8], 0x67
mov rcx, qword [rcx + 0x220]
test rcx, rcx
je 0x180054cd3
call fcn.180003df0
nop
mov qword [rdi + 0x220], 0
mov rbx, qword [rdi + 0x258]
test rbx, rbx
je 0x180054d82
cmp byte [rbx + 0x438], 0
je 0x180054d0b
mov rcx, qword [rbx + 0x430]
test rcx, rcx
je 0x180054d69
call fcn.180004903
nop
mov qword [rbx + 0x430], 0
jmp 0x180054d69
mov rcx, qword [rbx + 0x220]
cmp rcx, 0xffffffffffffffff
je 0x180054d1f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbx + 0x228]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
test eax, eax
jne 0x180054d69
mov dword [0x180132050], 7
cmp dword [0x18013218c], 7
jg 0x180054d69
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov r9d, eax
lea r8, [rbx + 0x228]
lea rdx, str.DataStorage::FinalizeStorage:__S_could_not_be_deleted__error__0x_x
lea rcx, vtable.CLogger.0
call fcn.1800024fa
nop
mov edx, 0x440
mov rcx, rbx
call fcn.180001bf4
nop
mov qword [rdi + 0x258], 0
lea rcx, [rdi + 0x2a0]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
Function at 0x180058410
Capabilities:
Delete file
Get file size

Disassembly:
jmp 0x180058410
jmp 0x1800718b0
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rbx, rcx
lea rax, vtable.FileWriter.0
mov qword [rcx], rax
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1800584f8
mov dil, 1
xor eax, eax
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop
test eax, eax
je 0x180058467
movzx edi, dil
xor eax, eax
cmp qword [rsp + 0x40], rax
cmovg edi, eax
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test eax, eax
jne 0x1800584a7
mov dword [0x180132050], 7
cmp dword [0x18013218c], 7
jg 0x1800584a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov r8d, eax
lea rdx, str.FileWriter::FileWriter:_Cannot_close_handle___errno___d
lea rcx, vtable.CLogger.0
call fcn.1800024fa
nop
mov qword [rbx + 8], 0xffffffffffffffff
test dil, dil
je 0x1800584f8
lea rcx, [rbx + 0x12]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
test eax, eax
jne 0x1800584f8
mov dword [0x180132050], 7
cmp dword [0x18013218c], 7
jg 0x1800584f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov r9d, eax
lea r8, [rbx + 0x12]
lea rdx, str.FileWriter::FileWriter:_could_not_delete_empty_file__s__errno___d
lea rcx, vtable.CLogger.0
call fcn.1800024fa
nop
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rdi, rcx
lea rax, vtable.WAVFileWriter.0
mov qword [rcx], rax
cmp byte [rcx + 0x10], 0
jne 0x180071a00
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop
mov ebx, eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop
mov ecx, ebx
shr ecx, 0x18
mov byte [rdi + 0x11f], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [rdi + 0x11e], cl
mov ecx, ebx
shr ecx, 8
mov byte [rdi + 0x11d], cl
mov byte [rdi + 0x11c], bl
lea ecx, [rbx - 0x44]
mov eax, ecx
shr eax, 0x18
mov byte [rdi + 0x15b], al
mov eax, ecx
shr eax, 0x10
mov byte [rdi + 0x15a], al
mov eax, ecx
shr eax, 8
mov byte [rdi + 0x159], al
mov byte [rdi + 0x158], cl
cmp byte [rdi + 0x10], 0
je 0x1800719ea
mov dword [rdi + 0x118], 0x46464952
mov dword [rdi + 0x120], 0x45564157
mov dword [rdi + 0x124], 0x20746d66
mov dword [rdi + 0x128], 0x28
mov dword [rdi + 0x12c], 0x2fffe
mov dword [rdi + 0x130], 0xbb80
mov dword [rdi + 0x134], 0x2ee00
mov dword [rdi + 0x138], 0x100004
mov dword [rdi + 0x13c], 0x100016
mov dword [rdi + 0x140], 3
movups xmm0, xmmword [0x180109608]
movups xmmword [rdi + 0x144], xmm0
mov dword [rdi + 0x154], 0x61746164
mov r8d, 0x44
lea rdx, [rdi + 0x118]
mov rcx, rdi
call fcn.180004ecb
nop
mov r8d, 0x44
lea rdx, [rdi + 0x118]
mov rcx, rdi
call fcn.180004ecb
nop
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp 0x180001a05