joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000331e
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 0x1800037f6
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 0x18000396d
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 0x18000398b
Capabilities:
Get file size
Write file on windows

Disassembly:
jmp 0x18001f410
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rdi, [rcx + 8]
mov rbx, rcx
mov rcx, rdi
call fcn.180005277
mov esi, eax
test eax, eax
jns 0x18001f4ec
mov qword [rsp + 0x30], rbp
lfence
mov ebp, dword [rbx + 0x17b0]
cmp ebp, 0x3e8
je 0x18001f4a4
cmp dword [0x18013218c], 7
mov dword [0x180132050], 7
jg 0x18001f4a4
mov rbx, qword [rbx + 0x17b8]
call fcn.180002dd8
mov rcx, rax
mov r8d, ebp
sub rcx, rbx
movabs rax, 0x346dc5d63886594b
imul rcx
lea rcx, vtable.CLogger.0
sar rdx, 0xb
mov r9, rdx
shr r9, 0x3f
add r9, rdx
lea rdx, str.CVideoCaptureDda::DeleteInstance:_thread_did_not_respond.__CHECKPOINT__d___Last_Capture__dms_ago_
call fcn.1800024fa
mov rcx, rdi
call fcn.1800013a7
cmp dword [0x18013218c], 7
mov rbp, qword [rsp + 0x30]
mov dword [0x180132050], 7
jg 0x18001f501
lfence
mov r8d, esi
lea rdx, str.CVideoCaptureDda::DeleteInstance:_CVideoCaptureDda_stop_failed._0x_08X
lea rcx, vtable.CLogger.0
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.1800024fa
test rbx, rbx
je 0x18001f501
lfence
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180003a8f
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x18007fa4c
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x18010f810]
xor ecx, ecx
lea r8, [0x18010f808]
lea rdx, [0x18010f818]
call fcn.18007f4ac
test rax, rax
je 0x18007fa85
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [case.0x18007552e.0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x180003cb5
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
Function at 0x180003d6e
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 0x180004197
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 0x180004282
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x180074d6c
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x180074df9
movsxd rcx, dword [0x18000003c]
lea rdx, [0x180000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x180074df9
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180074df9
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x180074de0
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x180074dda
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x180074de2
add rdx, 0x28
jmp 0x180074dbf
xor edx, edx
test rdx, rdx
jne 0x180074deb
xor al, al
jmp 0x180074dff
cmp dword [rdx + 0x24], 0
jge 0x180074df5
xor al, al
jmp 0x180074dff
mov al, 1
jmp 0x180074dff
xor al, al
jmp 0x180074dff
add rsp, 0x18
ret

Function at 0x1800045e3
Capabilities:
Parse pe header

Disassembly:
jmp 0x1800d81f0
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800d821a
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x1800d821a
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x1800d821a
mov eax, 1
ret
xor eax, eax
ret
Function at 0x1800047e6
Capabilities:
Parse pe header

Disassembly:
jmp 0x1800ace1c
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1800acb70

Function at 0x18000487c
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x18007fb54
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x18010f870]
mov edi, ecx
lea rdx, [0x18010f878]
mov ecx, 3
lea r8, [0x18010f868]
call fcn.18007f4ac
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x18007fb94
call qword [case.0x18007552e.0]
jmp 0x18007fb9a
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180004c0a
Capabilities:
Check if file exists

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 0x180004cbe
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 0x180004d04
Capabilities:
Get common file path

Disassembly:
jmp 0x1800734c0
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x180135088]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
xor edi, edi
mov qword [rcx], rdi
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.180003a85
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rax, str.NvFBC64.dll
mov edx, 0x104
mov qword [rsp + 0x28], rax
lea r9, str._s_s
lea rax, [rsp + 0x30]
lea r8, [rdi - 1]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
call fcn.180002bfd
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180003b8e
test rax, rax
mov qword [rbx], rax
mov ecx, 0x80004005
cmove edi, ecx
mov eax, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180002397
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x180004ecb
Capabilities:
Write file on windows

Disassembly:
jmp 0x1800586c0
push rbx
push rbp
push r14
sub rsp, 0x30
mov rbx, rcx
mov rbp, r8
mov rcx, qword [rcx + 8]
mov r14, rdx
cmp rcx, 0xffffffffffffffff
je 0x180058851
cmp byte [rbx + 0x11], 0
jne 0x180058851
mov qword [rsp + 0x58], rsi
lea r8, [rsp + 0x50]
mov qword [rsp + 0x60], rdi
xor edx, edx
xor edi, edi
mov dword [rsp + 0x50], 0
lea r9d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x180058725
movsxd rdi, dword [rsp + 0x50]
shl rdi, 0x20
add rdi, rsi
jmp 0x180058754
cmp dword [0x18013218c], 7
mov dword [0x180132050], 7
jg 0x180058754
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.FileWriter::Write:_cannot_get_current_position__errno___d
lea rcx, vtable.CLogger.0
call fcn.1800024fa
cmp byte [rbx + 0x11], 0
jne 0x1800587f1
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x68]
mov r8d, ebp
mov dword [rsp + 0x68], 0
mov rdx, r14
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18005880e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x18013218c], 7
mov dword [0x180132050], 7
jg 0x1800587c9
mov r9d, dword [rsp + 0x68]
lea rdx, str.FileWriter::Write:_FATAL_ERROR___WriteFile_Failed__size___d__wasWritten___d__current_pos___lld__errno___d
mov dword [rsp + 0x28], eax
lea rcx, vtable.CLogger.0
mov r8, rbp
mov qword [rsp + 0x20], rdi
call fcn.1800024fa
cmp byte [rbx + 0x10], 0
mov byte [rbx + 0x11], 1
jne 0x180058804
test esi, esi
jne 0x1800587dd
cmp dword [rsp + 0x50], esi
je 0x1800587f1
xor r9d, r9d
lea r8, [rsp + 0x50]
mov edx, esi
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rbp
pop rbx
ret
xor r9d, r9d
xor r8d, r8d
xor edx, edx
jmp 0x1800587e7
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x18005884b
cmp dword [0x18013218c], 7
mov dword [0x180132050], 7
jg 0x18005884b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.FileWriter::Write:_FlushFileBuffers_failed_with_errno__d
lea rcx, vtable.CLogger.0
call fcn.1800024fa
mov byte [rbx + 0x10], 0
jmp 0x1800587f1
cmp dword [0x18013218c], 7
mov dword [0x180132050], 7
jg 0x1800587fb
movzx r9d, byte [rbx + 0x11]
lea rdx, str.FileWriter::Write:_invalid_state._m_hFile__X__m_bFileWriteFailed__d_
mov r8, qword [rbx + 8]
lea rcx, vtable.CLogger.0
call fcn.1800024fa
add rsp, 0x30
pop r14
pop rbp
pop rbx
ret

Function at 0x180004ee9
Capabilities:
Get session user name

Disassembly:
jmp 0x180033cc0
push rbx
sub rsp, 0x20
cmp byte [0x180139fe0], 0
jne 0x180033d14
lea rbx, [0x180139fe0]
mov dword [rsp + 0x30], 0x101
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x180033d0b
mov r9, 0xffffffffffffffff
lea r8, [0x1800f90a8]
mov edx, 0x101
mov rcx, rbx
call fcn.18000173a
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x180139fe0]
add rsp, 0x20
pop rbx
ret