joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001bbd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140072724
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14009a7a8]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor r11d, r11d
lea r10, [0x14009e3f0]
test r9, r9
lea rdi, [0x140089678]
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 0x14007278d
mov rax, 0xfffffffffffffffe
jmp 0x1400728df
movzx r9d, word [r10 + 6]
test r9w, r9w
jne 0x1400727fd
mov bl, byte [rdi]
inc rdi
test bl, bl
js 0x1400727b9
test rsi, rsi
je 0x1400727ab
movzx ecx, bl
mov dword [rsi], ecx
test bl, bl
setne r11b
mov rax, r11
jmp 0x1400728df
mov al, bl
and al, 0xe0
cmp al, 0xc0
jne 0x1400727c6
mov r8b, 2
jmp 0x1400727e2
mov al, bl
and al, 0xf0
cmp al, 0xe0
jne 0x1400727d3
mov r8b, 3
jmp 0x1400727e2
mov al, bl
and al, 0xf8
cmp al, 0xf0
jne 0x1400728cb
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 0x140072822
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
lea eax, [r8 - 2]
cmp al, 2
ja 0x1400728cb
cmp r9b, bpl
jb 0x1400728cb
cmp r9b, r8b
jae 0x1400728cb
movzx ebp, r9b
cmp rbp, r14
mov ebx, ebp
cmovae rbx, r14
jmp 0x140072851
mov cl, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x1400728cb
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 0x140072831
cmp rbx, rbp
jae 0x14007287e
movzx eax, r8b
sub r9b, bl
mov word [r10 + 4], ax
movzx eax, r9b
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x140072781
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x1400728cb
cmp edx, 0x110000
jae 0x1400728cb
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 0x1400728cb
test rsi, rsi
je 0x1400728bc
mov dword [rsi], edx
xor eax, eax
neg edx
mov qword [r10], rax
sbb rax, rax
and rax, rbp
jmp 0x1400728df
xor eax, eax
mov qword [r10], rax
call fcn.140001e47
mov dword [rax], 0x2a
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140001d20
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140001cb7
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140061b58
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140087f18]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 6
lea r8, [0x140087f10]
call fcn.1400610f8
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140061b98
call qword [case.0x14001ab2e.0]
jmp 0x140061b9e
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001e10
Capabilities:
Get file size
Write file on windows

Disassembly:
jmp 0x14000e9c0
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 [0x14009a7a8]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rsi, rcx
lea r15, [rcx + 0x120]
mov qword [rsp + 0x38], r15
test r15, r15
je 0x14000ea24
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12b, 1
mov byte [rsp + 0x40], r12b
jmp 0x14000ea2a
movzx r12d, byte [rsp + 0x40]
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x50]
call fcn.140002be9
xor r14d, r14d
mov dword [rsp + 0x30], r14d
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x14000ebcf
cmp byte [rsi + 0x35a], r14b
je 0x14000ea78
cmp dword [rsi + 0x18], 0x400
jb 0x14000ea78
mov dword [rsi + 0x18], r14d
mov rcx, rsi
call fcn.140002f54
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x14000ebcf
inc dword [rsi + 0x18]
mov eax, dword [rsi + 0x10]
cmp eax, dword [rsi + 0x14c]
jl 0x14000ebd5
lea r13, [rsp + 0x8c0]
mov dword [rsp + 0x28], eax
lea rax, [0x140080c20]
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 0x14000eb4f
mov ebp, dword [rsp + 0x30]
cmp ebp, 0x800
jae 0x14000eb11
mov edi, 0x800
sub rdi, rbp
lea rbx, [rsp + 0x50]
add rbx, rbp
call fcn.140003c01
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.140002a95
mov ebx, eax
mov eax, 0xffffffff
test ebx, ebx
cmovs ebx, eax
test ebx, ebx
jle 0x14000eb53
cmp ebp, 0x800
jae 0x14000eb3f
add ebp, ebx
mov eax, ebp
mov edx, 0x800
sub rdx, rax
lea rcx, [rsp + 0x50]
add rcx, rax
lea r8, [0x140080c24]
call fcn.140004192
mov ebx, eax
test ebx, ebx
jle 0x14000eb53
cmp ebp, 0x800
jae 0x14000eb53
add ebp, ebx
jmp 0x14000eb53
mov ebp, dword [rsp + 0x30]
test ebp, ebp
je 0x14000eb98
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 0x14000eb98
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.1400022cf
cmp dword [rsi + 0x18], 0x186a0
jb 0x14000ebd8
lea rdx, [rsp + 0x30]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14000ebc5
cmp qword [rsp + 0x30], 0xa00000
jge 0x14000ebc5
mov dword [rsi + 0x18], r14d
jmp 0x14000ebd8
mov rcx, rsi
call fcn.140002fdb
jmp 0x14000ebd8
mov r14d, 0xffffffff
mov ebx, r14d
test r15, r15
je 0x14000ebeb
test r12b, r12b
je 0x14000ebeb
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140001d20
add rsp, 0x868
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400022cf
Capabilities:
Print debug messages

Disassembly:
jmp 0x14000d030
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 [0x14009a7a8]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rbx, rcx
lea rdi, [r11 + 0x10]
call fcn.140003c01
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.140002897
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 0x14000d0f0
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 0x14000d110
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140001d20
add rsp, 0x868
pop rdi
pop rbx
ret

Function at 0x140002496
Capabilities:
Query environment variable

Disassembly:
jmp 0x14005f7b4
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 0x14005f886
mov rsi, rax
cmp word [rax], r14w
je 0x14005f807
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14005f7ef
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x14005f7eb
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.140003a2b
movsxd rbp, eax
test eax, eax
je 0x14005f886
mov rcx, rbp
call fcn.140002d1a
mov rdi, rax
test rax, rax
je 0x14005f879
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.140003a2b
test eax, eax
je 0x14005f879
mov rsi, rdi
mov rdi, r14
jmp 0x14005f87c
mov rsi, r14
mov rcx, rdi
call fcn.1400029c8
jmp 0x14005f889
mov rsi, r14
test rbx, rbx
je 0x14005f897
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 0x140002bf3
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x140023eb4
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x1400849f0]
xor ecx, ecx
lea r8, [0x1400849e8]
lea rdx, [0x1400849f8]
call fcn.140023914
test rax, rax
je 0x140023eed
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [case.0x14001ab2e.0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x1400034d6
Capabilities:
Parse pe header

Disassembly:
jmp 0x14004d7f8
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14004d54c

Function at 0x14000353f
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140023fbc
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140084a50]
mov edi, ecx
lea rdx, [0x140084a58]
mov ecx, 3
lea r8, [0x140084a48]
call fcn.140023914
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x140023ffc
call qword [case.0x14001ab2e.0]
jmp 0x140024002
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000378d
Capabilities:
Check if file exists

Disassembly:
jmp 0x14000e440
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 [0x14009a7a8]
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.140002be9
xor r12d, r12d
test rdi, rdi
je 0x14000e673
mov r8, rdi
lea rcx, [rbp - 0x60]
mov edx, 0x104
call fcn.140001e38
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000e4c7
bt eax, 0xa
jb 0x14000e4e0
mov edx, 0x5c
lea rcx, [rbp - 0x60]
call fcn.140001244
test rax, rax
je 0x14000e4f3
mov word [rax], r12w
jmp 0x14000e4b2
lea rdx, [rbp - 0x60]
lea rcx, str.CLogger::ValidatePathForSymLink_:_Failed__s___
call fcn.1400022cf
mov ebx, r12d
test ebx, ebx
je 0x14000e673
movsd xmm0, qword [0x140080770]
lea rcx, [rbp - 0x56]
movzx eax, word [0x140080778]
xor edx, edx
mov r8d, 0x1fe
movsd qword [rbp - 0x60], xmm0
mov word [rbp - 0x58], ax
mov ebx, r12d
call fcn.140002be9
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 0x14000e673
test r14, r14
je 0x14000e673
test rax, rax
je 0x14000e673
mov r8, rdi
lea rcx, [rbp - 0x60]
mov edx, 0x104
call fcn.1400015aa
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 0x14000e6a6
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000e6a6
mov r9d, 0x18
mov dword [rsp + 0x20], 5
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x48]
call rsi
test eax, eax
js 0x14000e664
cmp dword [rbp - 0x68], 2
cmovb ebx, r13d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x14000e6ad
mov eax, r12d
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140001d20
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 0x14000e673
mov eax, r13d
jmp 0x14000e676
Function at 0x1400037fb
Capabilities:
Delete file

Disassembly:
jmp 0x14000e850
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14009a7a8]
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.140002be9
test rbx, rbx
je 0x14000e947
mov rcx, qword [rdi]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000e947
lea r9d, [rsi + 8]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
dec eax
cmp eax, 0x102
ja 0x14000e8fe
lea edx, [rsi + 0x3a]
lea rcx, [rsp + 0x20]
call fcn.140001244
test rax, rax
je 0x14000e8fe
lea rcx, [rsp + 0x20]
cmp rax, rcx
jbe 0x14000e8fe
lfence
lea rdx, [rax - 2]
mov rcx, rbx
call fcn.1400022e8
test eax, eax
jne 0x14000e8fe
mov esi, 1
mov eax, esi
jmp 0x14000e949
lea rdx, [rsp + 0x20]
lea rcx, str.CLogger::ValidatePathFromHandle_:_Failed__s___
call fcn.1400022cf
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0xffffffffffffffff
cmp ebp, 0xb7
je 0x14000e943
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000e943
mov rdx, rbx
lea rcx, str.CLogger::ValidatePathFromHandle_:_DeleteFile_Failed__s___
call fcn.1400022cf
mov eax, esi
jmp 0x14000e949
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140001d20
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret

Function at 0x140003954
Capabilities:
Get session user name

Disassembly:
jmp 0x14000ccc0
push rbx
sub rsp, 0x20
cmp byte [0x14009bc10], 0
jne 0x14000cd14
lea rbx, [0x14009bc10]
mov dword [rsp + 0x30], 0x101
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x14000cd0b
mov r9, 0xffffffffffffffff
lea r8, [0x140080cc8]
mov edx, 0x101
mov rcx, rbx
call fcn.14000150a
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x14009bc10]
add rsp, 0x20
pop rbx
ret
Function at 0x140003b75
Capabilities:
Terminate process

Disassembly:
jmp 0x14004b160
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14004b17a
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
lea ecx, [r8 + 1]
call fcn.140003ca6
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 0x140003c7e
Capabilities:
Get session user name

Disassembly:
jmp 0x14000cd40
push rbx
sub rsp, 0x20
cmp word [0x14009ba00], 0
jne 0x14000cd95
lea rbx, [0x14009ba00]
mov dword [rsp + 0x30], 0x101
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x14000cd8c
mov r9, 0xffffffffffffffff
lea r8, [0x140080cc0]
mov edx, 0x101
mov rcx, rbx
call fcn.140001e83
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x14009ba00]
add rsp, 0x20
pop rbx
ret

Function at 0x140003ce2
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x140023f64
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140084a30]
mov ecx, 2
lea r8, [0x140084a28]
lea rdx, [0x140084a38]
call fcn.140023914
mov ecx, ebx
test rax, rax
je 0x140023f9e
add rsp, 0x20
pop rbx
jmp qword [case.0x14001ab2e.0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x14000a990
Capabilities:
Get common file path

Disassembly:
jmp 0x14000a990
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x14009a7a8]
xor rax, rsp
mov qword [rsp + 0x280], rax
xorps xmm0, xmm0
lea rcx, [rsp + 0x38]
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm0
movdqu xmmword [rsp + 0x48], xmm1
movdqu xmmword [rsp + 0x58], xmm0
call fcn.140002ec3
mov r9d, 7
mov byte [rsp + 0x20], 0
xor r8d, r8d
lea rcx, vtable.CLogger.0
lea edx, [r9 - 8]
call fcn.140003a6c
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x208
call fcn.140002be9
lea r9, [rsp + 0x30]
mov qword [rsp + 0x30], 0
xor r8d, r8d
lea rcx, [0x140083ba8]
xor edx, edx
call sub.SHELL32.dll_SHGetKnownFolderPath
lea rdi, str.nvsphelperplugin64.dll
mov ebx, eax
test eax, eax
jns 0x14000aa64
cmp dword [0x14009a15c], 7
mov dword [0x14009a020], 7
jg 0x14000aab5
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.140001e10
jmp 0x14000aab5
mov rax, qword [rsp + 0x30]
lea r9, str._sNVIDIA_CorporationShadowPlay_s
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x70]
mov edx, 0x104
mov qword [rsp + 0x20], rax
mov r8, 0xffffffffffffffff
call fcn.1400022b6
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor edx, edx
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x70]
call fcn.140002ca2
test rax, rax
jne 0x14000aaed
cmp dword [0x14009a15c], 7
mov dword [0x14009a020], 7
jg 0x14000ab56
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.140001e10
jmp 0x14000ab56
lea rdx, str.NvPluginGetInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14000ab3e
cmp dword [0x14009a15c], 7
mov dword [0x14009a020], 7
jg 0x14000ab56
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.140001e10
jmp 0x14000ab56
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]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000ab66
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000ab76
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000ab86
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000ab96
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14000aba6
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000abb6
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140001d20
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x290
pop rdi
ret
Function at 0x14000ccc0
Capabilities:
Get session user name

Disassembly:
jmp 0x14000ccc0
push rbx
sub rsp, 0x20
cmp byte [0x14009bc10], 0
jne 0x14000cd14
lea rbx, [0x14009bc10]
mov dword [rsp + 0x30], 0x101
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x14000cd0b
mov r9, 0xffffffffffffffff
lea r8, [0x140080cc8]
mov edx, 0x101
mov rcx, rbx
call fcn.14000150a
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x14009bc10]
add rsp, 0x20
pop rbx
ret

Function at 0x14000cd40
Capabilities:
Get session user name

Disassembly:
jmp 0x14000cd40
push rbx
sub rsp, 0x20
cmp word [0x14009ba00], 0
jne 0x14000cd95
lea rbx, [0x14009ba00]
mov dword [rsp + 0x30], 0x101
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x14000cd8c
mov r9, 0xffffffffffffffff
lea r8, [0x140080cc0]
mov edx, 0x101
mov rcx, rbx
call fcn.140001e83
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x14009ba00]
add rsp, 0x20
pop rbx
ret

Function at 0x14000d030
Capabilities:
Print debug messages

Disassembly:
jmp 0x14000d030
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 [0x14009a7a8]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rbx, rcx
lea rdi, [r11 + 0x10]
call fcn.140003c01
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.140002897
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 0x14000d0f0
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 0x14000d110
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140001d20
add rsp, 0x868
pop rdi
pop rbx
ret