joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003125
Capabilities:
Get file size
Write file on windows

Disassembly:
jmp 0x14000d590
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 [0x140095790]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rsi, rcx
lea r15, [rcx + 0x120]
mov qword [rsp + 0x38], r15
test r15, r15
je 0x14000d5f4
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12b, 1
mov byte [rsp + 0x40], r12b
jmp 0x14000d5fa
movzx r12d, byte [rsp + 0x40]
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x50]
call fcn.140002757
xor r14d, r14d
mov dword [rsp + 0x30], r14d
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x14000d79f
cmp byte [rsi + 0x35a], r14b
je 0x14000d648
cmp dword [rsi + 0x18], 0x400
jb 0x14000d648
mov dword [rsi + 0x18], r14d
mov rcx, rsi
call fcn.1400025cc
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x14000d79f
inc dword [rsi + 0x18]
mov eax, dword [rsi + 0x10]
cmp eax, dword [rsi + 0x14c]
jl 0x14000d7a5
lea r13, [rsp + 0x8c0]
mov dword [rsp + 0x28], eax
lea rax, [0x14007ba60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, 0x800
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140002c0c
mov ebx, eax
test eax, eax
jle 0x14000d71f
mov ebp, dword [rsp + 0x30]
cmp ebp, 0x800
jae 0x14000d6e1
mov edi, 0x800
sub rdi, rbp
lea rbx, [rsp + 0x50]
add rbx, rbp
call fcn.1400027e8
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.140004007
mov ebx, eax
mov eax, 0xffffffff
test ebx, ebx
cmovs ebx, eax
test ebx, ebx
jle 0x14000d723
cmp ebp, 0x800
jae 0x14000d70f
add ebp, ebx
mov eax, ebp
mov edx, 0x800
sub rdx, rax
lea rcx, [rsp + 0x50]
add rcx, rax
lea r8, [0x14007ba64]
call fcn.1400015ff
mov ebx, eax
test ebx, ebx
jle 0x14000d723
cmp ebp, 0x800
jae 0x14000d723
add ebp, ebx
jmp 0x14000d723
mov ebp, dword [rsp + 0x30]
test ebp, ebp
je 0x14000d768
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 0x14000d768
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.1400029a5
cmp dword [rsi + 0x18], 0x186a0
jb 0x14000d7a8
lea rdx, [rsp + 0x30]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000d795
cmp qword [rsp + 0x30], 0xa00000
jge 0x14000d795
mov dword [rsi + 0x18], r14d
jmp 0x14000d7a8
mov rcx, rsi
call fcn.140003c7e
jmp 0x14000d7a8
mov r14d, 0xffffffff
mov ebx, r14d
test r15, r15
je 0x14000d7bb
test r12b, r12b
je 0x14000d7bb
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140003828
add rsp, 0x868
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000321f
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14005ca88
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140082f90]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 6
lea r8, [0x140082f88]
call fcn.14005c028
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x14005cac8
call qword [case.0x140019d66.0]
jmp 0x14005cace
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000335a
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14005c97c
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140082f60]
mov ecx, 3
lea r8, [0x140082f58]
lea rdx, str.FlsAlloc
call fcn.14005c028
test rax, rax
je 0x14005c9b8
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [case.0x140019d66.0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1400033f0
Capabilities:
Set environment variable

Disassembly:
jmp 0x14006b668
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov rsi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rbp - 0x29]
call fcn.1400038dc
xor r14d, r14d
lea r8, [0x140003265]
xor r9d, r9d
mov qword [rbp + 0x27], r14
lea rdx, [rbp + 0x27]
mov qword [rbp + 0x2f], r14
mov rcx, rbx
mov qword [rbp + 0x37], r14
mov qword [rbp + 0x3f], r14
mov edi, r14d
mov qword [rbp + 0x47], r14
mov byte [rbp + 0x4f], r14b
mov qword [rbp - 9], r14
mov qword [rbp - 1], r14
mov qword [rbp + 7], r14
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], r14
mov byte [rbp + 0x1f], r14b
call fcn.14000286f
test eax, eax
jne 0x14006b717
xor r9d, r9d
lea r8, [0x140003265]
lea rdx, [rbp - 9]
mov rcx, rsi
call fcn.14000286f
mov rdi, qword [rbp + 7]
test eax, eax
jne 0x14006b717
mov rcx, qword [rbp + 0x37]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14006b71a
mov ebx, r14d
cmp byte [rbp + 0x1f], r14b
je 0x14006b728
mov rcx, rdi
call fcn.140003bca
cmp byte [rbp + 0x4f], r14b
je 0x14006b737
mov rcx, qword [rbp + 0x37]
call fcn.140003bca
cmp byte [rbp - 0x11], r14b
je 0x14006b748
mov rax, qword [rbp - 0x29]
and dword [rax + 0x3a8], 0xfffffffd
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x1400036bb
Capabilities:
Parse pe header

Disassembly:
jmp 0x140049874
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1400495c8
Function at 0x140003959
Capabilities:
Print debug messages

Disassembly:
jmp 0x14005eeb8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbp, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne sil
test eax, eax
je 0x14005ef04
test rbx, rbx
je 0x14005eef3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.1400012fd
cmp eax, 1
je 0x14005ef04
mov eax, 4
jmp 0x14005ef47
call fcn.140002923
cmp eax, 2
jne 0x14005ef40
call fcn.140001474
test al, al
je 0x14005ef40
call fcn.14000382d
test al, al
jne 0x14005ef36
bts edi, 0x15
xor ecx, ecx
mov rdx, rbx
mov r8, rbp
mov r9d, edi
call fcn.140002eaf
jmp 0x14005ef47
call fcn.140001d93
mov rcx, rax
jmp 0x14005ef26
movzx eax, sil
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140003c29
Capabilities:
Get common file path

Disassembly:
jmp 0x140016080
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1400160e2
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400160d7
cmp edi, eax
jb 0x1400160d7
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003c3d
Capabilities:
Print debug messages

Disassembly:
jmp 0x14006cc04
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rbx
mov rax, qword [0x140095790]
xor rax, rbp
mov qword [rbp + 8], rax
mov r9, rcx
test rcx, rcx
je 0x14006cc8a
or r8, 0xffffffffffffffff
inc r8
cmp byte [rcx + r8], 0
jne 0x14006cc2d
add r8, 1
je 0x14006cc8a
lea rax, [r8 + r8]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14006cc54
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140002ff4
sub rsp, rcx
lea rax, [r8 - 1]
lea rcx, [rbp]
lea rbx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rdx, rbx
call fcn.1400035d5
test eax, eax
jne 0x14006cc8a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.140003828
mov rbx, qword [rbp + 0x20]
lea rsp, [rbp + 0x10]
pop rbp
ret
Function at 0x140009a40
Capabilities:
Get common file path

Disassembly:
jmp 0x140009a40
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140095790]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r9d, 7
mov byte [rsp + 0x20], 0
xor r8d, r8d
lea rcx, vtable.CLogger.0
lea edx, [r9 - 8]
call fcn.140001316
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.140002757
lea r9, [rsp + 0x30]
mov qword [rsp + 0x30], 0
xor r8d, r8d
lea rcx, [0x14007ee38]
xor edx, edx
call sub.SHELL32.dll_SHGetKnownFolderPath
lea rdi, str.nvsphelperplugin64.dll
mov ebx, eax
test eax, eax
jns 0x140009aef
cmp dword [0x14009515c], 7
mov dword [0x140095020], 7
jg 0x140009b40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, ebx
lea rdx, str.WinMain:_SHGetKnownFolderPath_failed._hr0x_08X__error__d_
mov r9d, eax
lea rcx, vtable.CLogger.0
call fcn.140003125
jmp 0x140009b40
mov rax, qword [rsp + 0x30]
lea r9, str._sNVIDIA_CorporationShadowPlay_s
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x40]
mov edx, 0x104
mov qword [rsp + 0x20], rax
mov r8, 0xffffffffffffffff
call fcn.140001186
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor edx, edx
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
call fcn.140003206
test rax, rax
jne 0x140009b78
cmp dword [0x14009515c], 7
mov dword [0x140095020], 7
jg 0x140009be1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, rdi
lea rdx, str.WinMain:_Could_not_locate__s__error__d_
mov r9d, eax
lea rcx, vtable.CLogger.0
call fcn.140003125
jmp 0x140009be1
lea rdx, str.NvPluginGetInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140009bc9
cmp dword [0x14009515c], 7
mov dword [0x140095020], 7
jg 0x140009be1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, rdi
lea r8, str.NvPluginGetInfo
lea rdx, str.WinMain:_No_entry_point__s_in_DLL__s__error__d_
mov dword [rsp + 0x20], eax
lea rcx, vtable.CLogger.0
call fcn.140003125
jmp 0x140009be1
call rax
xor ecx, ecx
mov rbx, rax
call qword [rax + 0x18]
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [rbx + 0x30]
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140003828
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x14000ac90
Capabilities:
Check if file exists
Copy file
Get file attributes
Get file size

Disassembly:
jmp 0x14000ac90
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x470
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x140095790]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rdi, rcx
lea rbx, [rcx + 0x120]
mov qword [rsp + 0x28], rbx
test rbx, rbx
je 0x14000ace8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov sil, 1
mov byte [rsp + 0x30], sil
jmp 0x14000aced
movzx esi, byte [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000ae47
cmp qword [rsp + 0x20], 0x100000
jle 0x14000ae47
mov rcx, rdi
call fcn.140003c7e
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.140002757
mov r9d, 0x103
lea r8, [rdi + 0x150]
lea edx, [r9 + 1]
lea rcx, [rsp + 0x40]
call fcn.14000172b
mov edx, 0x2e
lea rcx, [rsp + 0x40]
call fcn.1400039bd
test rax, rax
je 0x14000ae3e
lea rdx, str..old
mov rcx, rax
call fcn.14000167c
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x250]
call fcn.140002757
lea r8, [rsp + 0x40]
mov edx, 0x104
lea rcx, [rsp + 0x250]
call fcn.140003049
xor r14d, r14d
nop
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000adb9
bt eax, 0xa
jb 0x14000add6
mov edx, 0x5c
lea rcx, [rsp + 0x250]
call fcn.1400039bd
test rax, rax
je 0x14000adec
mov word [rax], r14w
jmp 0x14000ada0
lea rdx, [rsp + 0x250]
lea rcx, str.CLogger::ValidatePathForSymLink_:_Failed__s___
call fcn.1400029a5
jmp 0x14000ae3e
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140001974
test eax, eax
je 0x14000ae3e
mov edx, 0x5c
lea rcx, [rsp + 0x40]
call fcn.1400039bd
test rax, rax
je 0x14000ae3e
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rdi + 0x150]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14000ae3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CLogger::MoveLogFile_:_CopyFile_failed_Error__0x_x_
call fcn.1400029a5
mov rcx, rdi
call fcn.14000185c
nop
test rbx, rbx
je 0x14000ae5a
test sil, sil
je 0x14000ae5a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140003828
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000b920
Capabilities:
Get session user name

Disassembly:
jmp 0x14000b920
push rbx
sub rsp, 0x20
cmp byte [0x140096ac0], 0
jne 0x14000b974
lea rbx, [0x140096ac0]
mov dword [rsp + 0x30], 0x101
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x14000b96b
mov r9, 0xffffffffffffffff
lea r8, [0x14007bb08]
mov edx, 0x101
mov rcx, rbx
call fcn.140002d15
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x140096ac0]
add rsp, 0x20
pop rbx
ret

Function at 0x14000b9a0
Capabilities:
Get session user name

Disassembly:
jmp 0x14000b9a0
push rbx
sub rsp, 0x20
cmp word [0x1400968b0], 0
jne 0x14000b9f5
lea rbx, [0x1400968b0]
mov dword [rsp + 0x30], 0x101
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x14000b9ec
mov r9, 0xffffffffffffffff
lea r8, [0x14007bb00]
mov edx, 0x101
mov rcx, rbx
call fcn.14000172b
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x1400968b0]
add rsp, 0x20
pop rbx
ret

Function at 0x14000bc90
Capabilities:
Print debug messages

Disassembly:
jmp 0x14000bc90
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
push rdi
sub rsp, 0x868
mov rax, qword [0x140095790]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rbx, rcx
lea rdi, [r11 + 0x10]
call fcn.1400027e8
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x450]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x1ff
mov rcx, qword [rax]
or rcx, 1
call fcn.140003571
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, word [rsp + 0x4e]
movzx edx, word [rsp + 0x4c]
movzx r10d, word [rsp + 0x4a]
movzx r9d, word [rsp + 0x48]
movzx r8d, word [rsp + 0x46]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], edx
lea rdx, str.__02i:_02i:_02i:_02i:_03i___5d_
mov dword [rsp + 0x20], r10d
call fcn.140001208
lea rax, [rsp + 0x50]
sub rax, 2
nop dword [rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x14000bd50
lea r8, [rsp + 0x450]
xor edx, edx
nop word [rax + rax]
movzx ecx, word [r8 + rdx*2]
mov word [rax + rdx*2], cx
lea rdx, [rdx + 1]
test cx, cx
jne 0x14000bd70
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140003828
add rsp, 0x868
pop rdi
pop rbx
ret
Function at 0x14000d430
Capabilities:
Delete file

Disassembly:
jmp 0x14000d430
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x140095790]
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.140002757
test rbx, rbx
je 0x14000d524
mov rcx, qword [rdi]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000d524
lea r9d, [rsi + 8]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
dec eax
cmp eax, 0x102
ja 0x14000d4db
lea edx, [rsi + 0x3a]
lea rcx, [rsp + 0x20]
call fcn.1400039bd
test rax, rax
je 0x14000d4db
lea rcx, [rsp + 0x20]
cmp rax, rcx
jbe 0x14000d4db
lea rdx, [rax - 2]
mov rcx, rbx
call fcn.14000367f
test eax, eax
jne 0x14000d4db
mov esi, 1
mov eax, esi
jmp 0x14000d526
lea rdx, [rsp + 0x20]
lea rcx, str.CLogger::ValidatePathFromHandle_:_Failed__s___
call fcn.1400029a5
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0xffffffffffffffff
cmp ebp, 0xb7
je 0x14000d520
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000d520
mov rdx, rbx
lea rcx, str.CLogger::ValidatePathFromHandle_:_DeleteFile_Failed__s___
call fcn.1400029a5
mov eax, esi
jmp 0x14000d526
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140003828
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000d590
Capabilities:
Get file size
Write file on windows

Disassembly:
jmp 0x14000d590
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 [0x140095790]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rsi, rcx
lea r15, [rcx + 0x120]
mov qword [rsp + 0x38], r15
test r15, r15
je 0x14000d5f4
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12b, 1
mov byte [rsp + 0x40], r12b
jmp 0x14000d5fa
movzx r12d, byte [rsp + 0x40]
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x50]
call fcn.140002757
xor r14d, r14d
mov dword [rsp + 0x30], r14d
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x14000d79f
cmp byte [rsi + 0x35a], r14b
je 0x14000d648
cmp dword [rsi + 0x18], 0x400
jb 0x14000d648
mov dword [rsi + 0x18], r14d
mov rcx, rsi
call fcn.1400025cc
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x14000d79f
inc dword [rsi + 0x18]
mov eax, dword [rsi + 0x10]
cmp eax, dword [rsi + 0x14c]
jl 0x14000d7a5
lea r13, [rsp + 0x8c0]
mov dword [rsp + 0x28], eax
lea rax, [0x14007ba60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, 0x800
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140002c0c
mov ebx, eax
test eax, eax
jle 0x14000d71f
mov ebp, dword [rsp + 0x30]
cmp ebp, 0x800
jae 0x14000d6e1
mov edi, 0x800
sub rdi, rbp
lea rbx, [rsp + 0x50]
add rbx, rbp
call fcn.1400027e8
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.140004007
mov ebx, eax
mov eax, 0xffffffff
test ebx, ebx
cmovs ebx, eax
test ebx, ebx
jle 0x14000d723
cmp ebp, 0x800
jae 0x14000d70f
add ebp, ebx
mov eax, ebp
mov edx, 0x800
sub rdx, rax
lea rcx, [rsp + 0x50]
add rcx, rax
lea r8, [0x14007ba64]
call fcn.1400015ff
mov ebx, eax
test ebx, ebx
jle 0x14000d723
cmp ebp, 0x800
jae 0x14000d723
add ebp, ebx
jmp 0x14000d723
mov ebp, dword [rsp + 0x30]
test ebp, ebp
je 0x14000d768
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 0x14000d768
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.1400029a5
cmp dword [rsi + 0x18], 0x186a0
jb 0x14000d7a8
lea rdx, [rsp + 0x30]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000d795
cmp qword [rsp + 0x30], 0xa00000
jge 0x14000d795
mov dword [rsi + 0x18], r14d
jmp 0x14000d7a8
mov rcx, rsi
call fcn.140003c7e
jmp 0x14000d7a8
mov r14d, 0xffffffff
mov ebx, r14d
test r15, r15
je 0x14000d7bb
test r12b, r12b
je 0x14000d7bb
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140003828
add rsp, 0x868
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000f150
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x14000f22f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x14000f187
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14000f232
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x14000f1d6
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], di
jne 0x14000f1e0
test rax, rax
je 0x14000f22f
mov rdx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x14000f220
cmp rdx, rax
jb 0x14000f200
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140014cd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x140014cd0
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x140014f03
xor edx, edx
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], dx
jne 0x140014d00
test rax, rax
je 0x140014d34
xor ecx, ecx
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x140014f03
cmp r8w, 0x2f
je 0x140014f03
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x140014d10
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.140003094
mov rsi, rax
test rax, rax
je 0x140014e2e
mov qword [rsp + 0x50], r14
call fcn.140003c29
mov r14, rax
test rax, rax
je 0x140014e1b
mov rcx, rsi
call fcn.14000ef50
test eax, eax
je 0x140014e04
lea rax, str.system32_
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x20]
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x140014db0
mov r8, rbx
mov rcx, rsi
call fcn.140001762
test eax, eax
je 0x140014dd8
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x140014da0
jmp 0x140014de7
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.140013550
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x140014e12
mov rcx, rsi
call fcn.14000eee0
test eax, eax
je 0x140014e12
mov rbp, rsi
xor esi, esi
jmp 0x140014e12
mov rdx, rsi
mov rcx, r14
call fcn.140013550
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x140014ecf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x140014ed8
mov rcx, rbx
call fcn.14000edb0
mov rdi, rax
test rax, rax
je 0x140014ed8
mov ecx, 0x37e4
call fcn.140012450
test eax, eax
je 0x140014e6d
lea rcx, [0x14007bd10]
call fcn.140001ef6
jmp 0x140014e72
call fcn.140003c29
mov rbx, rax
test rax, rax
je 0x140014ec6
mov rdx, rdi
mov rcx, rax
call fcn.140013550
mov rbp, rax
test rax, rax
je 0x140014ebd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140014e9f
test al, 0x50
je 0x140014ebd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140014eb2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x140014ed8
xor ecx, ecx
jmp 0x140014ee5
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140014eeb
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret