joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001073
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004daf8
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14004d8c3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004d8c3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004d8c3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004d8c3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004d8c3
cmp dword [rcx + 0x84], 0xe
jbe 0x14004d8c3
cmp dword [rcx + 0xf8], 0
je 0x14004d8c3
mov ecx, ebx
call fcn.14004da54
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14004d5d4
cmp dword [rbp + 0x20], 0
je 0x14004d910
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004d948
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14004d85c

Function at 0x140001127
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140061eb8
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x1400882c8]
mov ecx, 5
lea r8, [0x1400882c0]
lea rdx, str.FlsGetValue
call fcn.1400614b0
mov ecx, ebx
test rax, rax
je 0x140061ef2
add rsp, 0x20
pop rbx
jmp qword [case.0x14001abfe.0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x140001285
Capabilities:
Check if file exists

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 0x140001410
Capabilities:
Check if file exists

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
Function at 0x140001988
Capabilities:
Terminate process

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

Function at 0x140001992
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 0x140001bc7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1400729a4
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14009b798]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor r11d, r11d
lea r10, [0x14009f880]
test r9, r9
lea rdi, [0x140089a48]
mov rax, rdx
mov r15, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r14d, ebp
cmovne r14, r8
neg rax
sbb rsi, rsi
and rsi, rcx
test r14, r14
jne 0x140072a0d
mov rax, 0xfffffffffffffffe
jmp 0x140072b5f
movzx r9d, word [r10 + 6]
test r9w, r9w
jne 0x140072a7d
mov bl, byte [rdi]
inc rdi
test bl, bl
js 0x140072a39
test rsi, rsi
je 0x140072a2b
movzx ecx, bl
mov dword [rsi], ecx
test bl, bl
setne r11b
mov rax, r11
jmp 0x140072b5f
mov al, bl
and al, 0xe0
cmp al, 0xc0
jne 0x140072a46
mov r8b, 2
jmp 0x140072a62
mov al, bl
and al, 0xf0
cmp al, 0xe0
jne 0x140072a53
mov r8b, 3
jmp 0x140072a62
mov al, bl
and al, 0xf8
cmp al, 0xf0
jne 0x140072b4b
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov r9b, r8b
sub edx, ebp
movzx eax, bl
and edx, eax
jmp 0x140072aa2
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
lea eax, [r8 - 2]
cmp al, 2
ja 0x140072b4b
cmp r9b, bpl
jb 0x140072b4b
cmp r9b, r8b
jae 0x140072b4b
movzx ebp, r9b
cmp rbp, r14
mov ebx, ebp
cmovae rbx, r14
jmp 0x140072ad1
mov cl, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x140072b4b
mov eax, edx
movzx ecx, cl
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r15
cmp rax, rbx
jb 0x140072ab1
cmp rbx, rbp
jae 0x140072afe
movzx eax, r8b
sub r9b, bl
mov word [r10 + 4], ax
movzx eax, r9b
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x140072a01
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x140072b4b
cmp edx, 0x110000
jae 0x140072b4b
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x140072b4b
test rsi, rsi
je 0x140072b3c
mov dword [rsi], edx
xor eax, eax
neg edx
mov qword [r10], rax
sbb rax, rax
and rax, rbp
jmp 0x140072b5f
xor eax, eax
mov qword [r10], rax
call fcn.140001e51
mov dword [rax], 0x2a
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140001d2a
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140001cc1
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140061f10
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x1400882e8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 6
lea r8, [0x1400882e0]
call fcn.1400614b0
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140061f50
call qword [case.0x14001abfe.0]
jmp 0x140061f56
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140001d2f
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004db6c
xor r8d, r8d
xor edx, edx
jmp 0x14004d85c
Function at 0x140001e1a
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 0x1400022d9
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 0x1400024a0
Capabilities:
Query environment variable

Disassembly:
jmp 0x14005fb6c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor r14d, r14d
mov rbx, rax
test rax, rax
je 0x14005fc3e
mov rsi, rax
cmp word [rax], r14w
je 0x14005fbbf
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14005fba7
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x14005fba3
mov qword [rsp + 0x38], r14
sub rsi, rbx
mov qword [rsp + 0x30], r14
add rsi, 2
sar rsi, 1
mov r8, rbx
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov qword [rsp + 0x20], r14
xor ecx, ecx
call fcn.140003a26
movsxd rbp, eax
test eax, eax
je 0x14005fc3e
mov rcx, rbp
call fcn.140002d1f
mov rdi, rax
test rax, rax
je 0x14005fc31
mov qword [rsp + 0x38], r14
mov r9d, esi
mov qword [rsp + 0x30], r14
mov r8, rbx
mov dword [rsp + 0x28], ebp
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.140003a26
test eax, eax
je 0x14005fc31
mov rsi, rdi
mov rdi, r14
jmp 0x14005fc34
mov rsi, r14
mov rcx, rdi
call fcn.1400029d7
jmp 0x14005fc41
mov rsi, r14
test rbx, rbx
je 0x14005fc4f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140002bfd
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140023f94
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140084dc0]
xor ecx, ecx
lea r8, [0x140084db8]
lea rdx, [0x140084dc8]
call fcn.1400239f4
test rax, rax
je 0x140023fcd
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [case.0x14001abfe.0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x14000316b
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x14001a43c
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14001a4c9
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x14001a4c9
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001a4c9
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 0x14001a4b0
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14001a4aa
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14001a4b2
add rdx, 0x28
jmp 0x14001a48f
xor edx, edx
test rdx, rdx
jne 0x14001a4bb
xor al, al
jmp 0x14001a4cf
cmp dword [rdx + 0x24], 0
jge 0x14001a4c5
xor al, al
jmp 0x14001a4cf
mov al, 1
jmp 0x14001a4cf
xor al, al
jmp 0x14001a4cf
add rsp, 0x18
ret

Function at 0x1400034d1
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004db08
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14004d85c

Function at 0x14000353a
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14002409c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140084e20]
mov edi, ecx
lea rdx, [0x140084e28]
mov ecx, 3
lea r8, [0x140084e18]
call fcn.1400239f4
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x1400240dc
call qword [case.0x14001abfe.0]
jmp 0x1400240e2
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140003549
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 0x140003788
Capabilities:
Check if file exists

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