joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400037f6
Capabilities:
Delete file

Disassembly:
jmp 0x14000ddf0
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14009b798]
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.140002bf3
test rbx, rbx
je 0x14000dee7
mov rcx, qword [rdi]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000dee7
lea r9d, [rsi + 8]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
dec eax
cmp eax, 0x102
ja 0x14000de9e
lea edx, [rsi + 0x3a]
lea rcx, [rsp + 0x20]
call fcn.140001244
test rax, rax
je 0x14000de9e
lea rcx, [rsp + 0x20]
cmp rax, rcx
jbe 0x14000de9e
lfence
lea rdx, [rax - 2]
mov rcx, rbx
call fcn.1400022f2
test eax, eax
jne 0x14000de9e
mov esi, 1
mov eax, esi
jmp 0x14000dee9
lea rdx, [rsp + 0x20]
lea rcx, str.CLogger::ValidatePathFromHandle_:_Failed__s___
call fcn.1400022d9
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0xffffffffffffffff
cmp ebp, 0xb7
je 0x14000dee3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000dee3
mov rdx, rbx
lea rcx, str.CLogger::ValidatePathFromHandle_:_DeleteFile_Failed__s___
call fcn.1400022d9
mov eax, esi
jmp 0x14000dee9
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140001d2a
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400038c8
Capabilities:
Parse pe header

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

Function at 0x14000394f
Capabilities:
Get session user name

Disassembly:
jmp 0x14000c260
push rbx
sub rsp, 0x20
cmp byte [0x14009cc00], 0
jne 0x14000c2b4
lea rbx, [0x14009cc00]
mov dword [rsp + 0x30], 0x101
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x14000c2ab
mov r9, 0xffffffffffffffff
lea r8, [0x140080c08]
mov edx, 0x101
mov rcx, rbx
call fcn.140001514
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x14009cc00]
add rsp, 0x20
pop rbx
ret
Function at 0x140003b70
Capabilities:
Terminate process

Disassembly:
jmp 0x14004b240
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14004b25a
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.140003ca1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140003c79
Capabilities:
Get session user name

Disassembly:
jmp 0x14000c2e0
push rbx
sub rsp, 0x20
cmp word [0x14009c9f0], 0
jne 0x14000c335
lea rbx, [0x14009c9f0]
mov dword [rsp + 0x30], 0x101
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x14000c32c
mov r9, 0xffffffffffffffff
lea r8, [0x140080c00]
mov edx, 0x101
mov rcx, rbx
call fcn.140001e8d
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x14009c9f0]
add rsp, 0x20
pop rbx
ret

Function at 0x140003cdd
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140024044
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140084e00]
mov ecx, 2
lea r8, [0x140084df8]
lea rdx, [0x140084e08]
call fcn.1400239f4
mov ecx, ebx
test rax, rax
je 0x14002407e
add rsp, 0x20
pop rbx
jmp qword [case.0x14001abfe.0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x140009fd0
Capabilities:
Get common file path

Disassembly:
jmp 0x140009fd0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14009b798]
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.140003a67
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.140002bf3
lea r9, [rsp + 0x30]
mov qword [rsp + 0x30], 0
xor r8d, r8d
lea rcx, [0x140083f78]
xor edx, edx
call sub.SHELL32.dll_SHGetKnownFolderPath
lea rdi, str.nvsphelperplugin64.dll
mov ebx, eax
test eax, eax
jns 0x14000a082
cmp dword [0x14009b15c], 7
mov dword [0x14009b020], 7
jg 0x14000a0d3
lfence
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.140001e1a
jmp 0x14000a0d3
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.1400022c0
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.140002ca7
test rax, rax
jne 0x14000a10b
cmp dword [0x14009b15c], 7
mov dword [0x14009b020], 7
jg 0x14000a174
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.140001e1a
jmp 0x14000a174
lea rdx, str.NvPluginGetInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14000a15c
cmp dword [0x14009b15c], 7
mov dword [0x14009b020], 7
jg 0x14000a174
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.140001e1a
jmp 0x14000a174
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.140001d2a
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x14000c260
Capabilities:
Get session user name

Disassembly:
jmp 0x14000c260
push rbx
sub rsp, 0x20
cmp byte [0x14009cc00], 0
jne 0x14000c2b4
lea rbx, [0x14009cc00]
mov dword [rsp + 0x30], 0x101
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x14000c2ab
mov r9, 0xffffffffffffffff
lea r8, [0x140080c08]
mov edx, 0x101
mov rcx, rbx
call fcn.140001514
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x14009cc00]
add rsp, 0x20
pop rbx
ret

Function at 0x14000c2e0
Capabilities:
Get session user name

Disassembly:
jmp 0x14000c2e0
push rbx
sub rsp, 0x20
cmp word [0x14009c9f0], 0
jne 0x14000c335
lea rbx, [0x14009c9f0]
mov dword [rsp + 0x30], 0x101
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x14000c32c
mov r9, 0xffffffffffffffff
lea r8, [0x140080c00]
mov edx, 0x101
mov rcx, rbx
call fcn.140001e8d
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x14009c9f0]
add rsp, 0x20
pop rbx
ret

Function at 0x14000c5d0
Capabilities:
Print debug messages

Disassembly:
jmp 0x14000c5d0
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 [0x14009b798]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rbx, rcx
lea rdi, [r11 + 0x10]
call fcn.140003bfc
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.1400028a6
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.140003d3c
lea rax, [rsp + 0x50]
sub rax, 2
nop dword [rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
jne 0x14000c690
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 0x14000c6b0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140001d2a
add rsp, 0x868
pop rdi
pop rbx
ret
Function at 0x14000d9e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x14000d9e0
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 [0x14009b798]
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.140002bf3
xor r12d, r12d
test rdi, rdi
je 0x14000dc13
mov r8, rdi
lea rcx, [rbp - 0x60]
mov edx, 0x104
call fcn.140001e42
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000da67
bt eax, 0xa
jb 0x14000da80
mov edx, 0x5c
lea rcx, [rbp - 0x60]
call fcn.140001244
test rax, rax
je 0x14000da93
mov word [rax], r12w
jmp 0x14000da52
lea rdx, [rbp - 0x60]
lea rcx, str.CLogger::ValidatePathForSymLink_:_Failed__s___
call fcn.1400022d9
mov ebx, r12d
test ebx, ebx
je 0x14000dc13
movsd xmm0, qword [0x1400806b0]
lea rcx, [rbp - 0x56]
movzx eax, word [0x1400806b8]
xor edx, edx
mov r8d, 0x1fe
movsd qword [rbp - 0x60], xmm0
mov word [rbp - 0x58], ax
mov ebx, r12d
call fcn.140002bf3
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 0x14000dc13
test r14, r14
je 0x14000dc13
test rax, rax
je 0x14000dc13
mov r8, rdi
lea rcx, [rbp - 0x60]
mov edx, 0x104
call fcn.1400015b4
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 0x14000dc46
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000dc46
mov r9d, 0x18
mov dword [rsp + 0x20], 5
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x48]
call rsi
test eax, eax
js 0x14000dc04
cmp dword [rbp - 0x68], 2
cmovb ebx, r13d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x14000dc4d
mov eax, r12d
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140001d2a
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 0x14000dc13
mov eax, r13d
jmp 0x14000dc16
Function at 0x14000ddf0
Capabilities:
Delete file

Disassembly:
jmp 0x14000ddf0
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14009b798]
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.140002bf3
test rbx, rbx
je 0x14000dee7
mov rcx, qword [rdi]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000dee7
lea r9d, [rsi + 8]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
dec eax
cmp eax, 0x102
ja 0x14000de9e
lea edx, [rsi + 0x3a]
lea rcx, [rsp + 0x20]
call fcn.140001244
test rax, rax
je 0x14000de9e
lea rcx, [rsp + 0x20]
cmp rax, rcx
jbe 0x14000de9e
lfence
lea rdx, [rax - 2]
mov rcx, rbx
call fcn.1400022f2
test eax, eax
jne 0x14000de9e
mov esi, 1
mov eax, esi
jmp 0x14000dee9
lea rdx, [rsp + 0x20]
lea rcx, str.CLogger::ValidatePathFromHandle_:_Failed__s___
call fcn.1400022d9
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0xffffffffffffffff
cmp ebp, 0xb7
je 0x14000dee3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000dee3
mov rdx, rbx
lea rcx, str.CLogger::ValidatePathFromHandle_:_DeleteFile_Failed__s___
call fcn.1400022d9
mov eax, esi
jmp 0x14000dee9
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140001d2a
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000df60
Capabilities:
Get file size
Write file on windows

Disassembly:
jmp 0x14000df60
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 [0x14009b798]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rsi, rcx
lea r15, [rcx + 0x120]
mov qword [rsp + 0x38], r15
test r15, r15
je 0x14000dfc4
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12b, 1
mov byte [rsp + 0x40], r12b
jmp 0x14000dfca
movzx r12d, byte [rsp + 0x40]
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x50]
call fcn.140002bf3
xor r14d, r14d
mov dword [rsp + 0x30], r14d
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x14000e16f
cmp byte [rsi + 0x35a], r14b
je 0x14000e018
cmp dword [rsi + 0x18], 0x400
jb 0x14000e018
mov dword [rsi + 0x18], r14d
mov rcx, rsi
call fcn.140002f4f
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x14000e16f
inc dword [rsi + 0x18]
mov eax, dword [rsi + 0x10]
cmp eax, dword [rsi + 0x14c]
jl 0x14000e175
lea r13, [rsp + 0x8c0]
mov dword [rsp + 0x28], eax
lea rax, [0x140080b60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, 0x800
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140001118
mov ebx, eax
test eax, eax
jle 0x14000e0ef
mov ebp, dword [rsp + 0x30]
cmp ebp, 0x800
jae 0x14000e0b1
mov edi, 0x800
sub rdi, rbp
lea rbx, [rsp + 0x50]
add rbx, rbp
call fcn.140003bfc
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.140002aa4
mov ebx, eax
mov eax, 0xffffffff
test ebx, ebx
cmovs ebx, eax
test ebx, ebx
jle 0x14000e0f3
cmp ebp, 0x800
jae 0x14000e0df
add ebp, ebx
mov eax, ebp
mov edx, 0x800
sub rdx, rax
lea rcx, [rsp + 0x50]
add rcx, rax
lea r8, [0x140080b64]
call fcn.140004188
mov ebx, eax
test ebx, ebx
jle 0x14000e0f3
cmp ebp, 0x800
jae 0x14000e0f3
add ebp, ebx
jmp 0x14000e0f3
mov ebp, dword [rsp + 0x30]
test ebp, ebp
je 0x14000e138
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 0x14000e138
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.1400022d9
cmp dword [rsi + 0x18], 0x186a0
jb 0x14000e178
lea rdx, [rsp + 0x30]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000e165
cmp qword [rsp + 0x30], 0xa00000
jge 0x14000e165
mov dword [rsi + 0x18], r14d
jmp 0x14000e178
mov rcx, rsi
call fcn.140002fd6
jmp 0x14000e178
mov r14d, 0xffffffff
mov ebx, r14d
test r15, r15
je 0x14000e18b
test r12b, r12b
je 0x14000e18b
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140001d2a
add rsp, 0x868
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000fb10
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 0x14000fbef
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 0x14000fb47
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 0x14000fbf2
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 0x14000fb96
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 0x14000fba0
test rax, rax
je 0x14000fbef
lfence
mov rdx, rdi
nop dword [rax]
nop dword [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 0x14000fbe0
cmp rdx, rax
jb 0x14000fbc0
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 0x140015ab0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x140015ab0
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 0x140015ce3
xor edx, edx
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], dx
jne 0x140015ae0
test rax, rax
je 0x140015b14
xor ecx, ecx
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x140015ce3
cmp r8w, 0x2f
je 0x140015ce3
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x140015af0
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.14000185c
mov rsi, rax
test rax, rax
je 0x140015c0e
mov qword [rsp + 0x50], r14
call fcn.140001992
mov r14, rax
test rax, rax
je 0x140015bfb
mov rcx, rsi
call fcn.14000f910
test eax, eax
je 0x140015be4
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 0x140015b90
mov r8, rbx
mov rcx, rsi
call fcn.1400021d0
test eax, eax
je 0x140015bb8
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x140015b80
jmp 0x140015bc7
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.140014270
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x140015bf2
mov rcx, rsi
call fcn.14000f8a0
test eax, eax
je 0x140015bf2
mov rbp, rsi
xor esi, esi
jmp 0x140015bf2
mov rdx, rsi
mov rcx, r14
call fcn.140014270
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 0x140015caf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x140015cb8
mov rcx, rbx
call fcn.14000f770
mov rdi, rax
test rax, rax
je 0x140015cb8
mov ecx, 0x37e4
call fcn.140013170
test eax, eax
je 0x140015c4d
lea rcx, [0x140080e10]
call fcn.140001e01
jmp 0x140015c52
call fcn.140001992
mov rbx, rax
test rax, rax
je 0x140015ca6
mov rdx, rdi
mov rcx, rax
call fcn.140014270
mov rbp, rax
test rax, rax
je 0x140015c9d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140015c7f
test al, 0x50
je 0x140015c9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140015c92
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 0x140015cb8
xor ecx, ecx
jmp 0x140015cc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140015ccb
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
Function at 0x140016e50
Capabilities:
Get common file path

Disassembly:
jmp 0x140016e50
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 0x140016eb2
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140016ea7
cmp edi, eax
jb 0x140016ea7
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 0x140017340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x140017340
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rbx, rcx
mov ebp, r8d
xor ecx, ecx
mov r14d, edx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x14001749e
movzx eax, word [rbx]
cmp eax, 0x5c
je 0x1400173a9
cmp eax, 0x2f
je 0x1400173a9
mov ecx, eax
call fcn.140002176
test eax, eax
je 0x14001749e
cmp word [rbx + 2], 0x3a
jne 0x14001749e
movzx eax, word [rbx + 4]
cmp ax, 0x5c
je 0x1400173a9
cmp ax, 0x2f
jne 0x14001749e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140017497
test al, 0x50
jne 0x140017497
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400173fa
lea ecx, [rax + 0x21]
jmp 0x1400174a3
mov rcx, rbx
call fcn.140012df0
test eax, eax
jne 0x14001746c
test ebp, ebp
mov dword [rsp + 0x60], esi
lea rdx, [rsp + 0x60]
mov rcx, rbx
cmove rdx, rsi
call fcn.140002e19
test eax, eax
je 0x140017436
test ebp, ebp
je 0x14001746c
cmp dword [rsp + 0x60], esi
jne 0x14001746c
mov ecx, 0x80092009
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1400135b0
test eax, eax
jne 0x14001746c
test rdi, rdi
je 0x140017468
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400174ac
mov r8d, r14d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
test rdi, rdi
je 0x1400174a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
jmp 0x1400174a3
mov ecx, 0x7e
jmp 0x1400174a3
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret