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

Disassembly:
jmp 0x140129820
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140187788]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor r11d, r11d
lea r10, [0x140190b60]
test r9, r9
lea rdi, [0x14014d646]
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 0x140129889
mov rax, 0xfffffffffffffffe
jmp 0x1401299db
movzx r9d, word [r10 + 6]
test r9w, r9w
jne 0x1401298f9
mov bl, byte [rdi]
inc rdi
test bl, bl
js 0x1401298b5
test rsi, rsi
je 0x1401298a7
movzx ecx, bl
mov dword [rsi], ecx
test bl, bl
setne r11b
mov rax, r11
jmp 0x1401299db
mov al, bl
and al, 0xe0
cmp al, 0xc0
jne 0x1401298c2
mov r8b, 2
jmp 0x1401298de
mov al, bl
and al, 0xf0
cmp al, 0xe0
jne 0x1401298cf
mov r8b, 3
jmp 0x1401298de
mov al, bl
and al, 0xf8
cmp al, 0xf0
jne 0x1401299c7
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 0x14012991e
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
lea eax, [r8 - 2]
cmp al, 2
ja 0x1401299c7
cmp r9b, bpl
jb 0x1401299c7
cmp r9b, r8b
jae 0x1401299c7
movzx ebp, r9b
cmp rbp, r14
mov ebx, ebp
cmovae rbx, r14
jmp 0x14012994d
mov cl, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x1401299c7
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 0x14012992d
cmp rbx, rbp
jae 0x14012997a
movzx eax, r8b
sub r9b, bl
mov word [r10 + 4], ax
movzx eax, r9b
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x14012987d
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x1401299c7
cmp edx, 0x110000
jae 0x1401299c7
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 0x1401299c7
test rsi, rsi
je 0x1401299b8
mov dword [rsi], edx
xor eax, eax
neg edx
mov qword [r10], rax
sbb rax, rax
and rax, rbp
jmp 0x1401299db
xor eax, eax
mov qword [r10], rax
call fcn.140002f31
mov dword [rax], 0x2a
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140002cde
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002adb
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400c1218
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140004ca0
and qword [rdi + 0x50], 0
lea rax, [0x140000000]
and dword [rdi + 0x58], 0
lea rcx, [rdi + 0x28]
and dword [rdi + 0x5c], 0
xor r8d, r8d
mov qword [rdi + 0x10], rax
xor edx, edx
mov qword [rdi + 8], rax
lea rax, [0x140149098]
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x60
mov dword [rdi + 0x18], 0xe00
call fcn.14000236a
test eax, eax
jne 0x1400c12af
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x1400c12af
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400c12a8
lea rcx, str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x140188d38], 1
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x140002bf8
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14012233c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x14014deb8]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 6
lea r8, [0x14014deb0]
call fcn.1401218dc
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x14012237c
call qword [case.0x1400c284e.0]
jmp 0x140122382
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140002ebe
Capabilities:
Get file size
Write file on windows

Disassembly:
jmp 0x14001bec0
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 [0x140187788]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rsi, rcx
lea r15, [rcx + 0x120]
mov qword [rsp + 0x38], r15
test r15, r15
je 0x14001bf24
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12b, 1
mov byte [rsp + 0x40], r12b
jmp 0x14001bf2a
movzx r12d, byte [rsp + 0x40]
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x50]
call fcn.140004ca0
xor r14d, r14d
mov dword [rsp + 0x30], r14d
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x14001c0cf
cmp byte [rsi + 0x255], r14b
je 0x14001bf78
cmp dword [rsi + 0x18], 0x400
jb 0x14001bf78
mov dword [rsi + 0x18], r14d
mov rcx, rsi
call fcn.1400053f8
cmp qword [rsi + 8], 0xffffffffffffffff
je 0x14001c0cf
inc dword [rsi + 0x18]
mov eax, dword [rsi + 0x10]
cmp eax, dword [rsi + 0x14c]
jl 0x14001c0d5
lea r13, [rsp + 0x8c0]
mov dword [rsp + 0x28], eax
lea rax, [0x140142018]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, 0x800
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.140001294
mov ebx, eax
test eax, eax
jle 0x14001c04f
mov ebp, dword [rsp + 0x30]
cmp ebp, 0x800
jae 0x14001c011
mov edi, 0x800
sub rdi, rbp
lea rbx, [rsp + 0x50]
add rbx, rbp
call fcn.1400070e5
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.140004985
mov ebx, eax
mov eax, 0xffffffff
test ebx, ebx
cmovs ebx, eax
test ebx, ebx
jle 0x14001c053
cmp ebp, 0x800
jae 0x14001c03f
add ebp, ebx
mov eax, ebp
mov edx, 0x800
sub rdx, rax
lea rcx, [rsp + 0x50]
add rcx, rax
lea r8, [0x14014201c]
call fcn.140007cfc
mov ebx, eax
test ebx, ebx
jle 0x14001c053
cmp ebp, 0x800
jae 0x14001c053
add ebp, ebx
jmp 0x14001c053
mov ebp, dword [rsp + 0x30]
test ebp, ebp
je 0x14001c098
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 0x14001c098
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.140007856
cmp dword [rsi + 0x18], 0x186a0
jb 0x14001c0d8
lea rdx, [rsp + 0x30]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001c0c5
cmp qword [rsp + 0x30], 0xa00000
jge 0x14001c0c5
mov dword [rsi + 0x18], r14d
jmp 0x14001c0d8
mov rcx, rsi
call fcn.140005515
jmp 0x14001c0d8
mov r14d, 0xffffffff
mov ebx, r14d
test r15, r15
je 0x14001c0eb
test r12b, r12b
je 0x14001c0eb
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140002cde
add rsp, 0x868
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140003c65
Capabilities:
Query environment variable

Disassembly:
jmp 0x14012005c
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 0x14012012e
mov rsi, rax
cmp word [rax], r14w
je 0x1401200af
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x140120097
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], r14w
jne 0x140120093
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.140006c8a
movsxd rbp, eax
test eax, eax
je 0x14012012e
mov rcx, rbp
call fcn.140004f20
mov rdi, rax
test rax, rax
je 0x140120121
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.140006c8a
test eax, eax
je 0x140120121
mov rsi, rdi
mov rdi, r14
jmp 0x140120124
mov rsi, r14
mov rcx, rdi
call fcn.1400047c3
jmp 0x140120131
mov rsi, r14
test rbx, rbx
je 0x14012013f
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 0x140004caa
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400cbc00
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x140149a30]
xor ecx, ecx
lea r8, [0x140149a28]
lea rdx, [0x140148be0]
call fcn.1400cb660
test rax, rax
je 0x1400cbc39
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [case.0x1400c284e.0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x140004f89
Capabilities:
Set registry value

Disassembly:
jmp 0x140031520
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rbp, rdx
mov edi, r9d
mov rsi, r8
mov rdx, rcx
test rbp, rbp
je 0x140031675
test r8, r8
je 0x140031675
test r9d, r9d
je 0x140031675
mov ecx, dword [rcx + 0x800]
xor r8d, r8d
mov qword [rsp + 0x60], rbx
xor bl, bl
mov qword [rsp + 0x68], r8
test ecx, ecx
je 0x14003157d
sub ecx, 1
je 0x14003160c
cmp ecx, 2
jne 0x1400315f4
mov qword [rsp + 0x40], r8
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
add rdx, 0x400
mov qword [rsp + 0x30], r8
xor r9d, r9d
mov dword [rsp + 0x28], 0x20106
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400315e4
mov rcx, qword [rsp + 0x68]
lea r9d, [rax + 3]
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400315f4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov qword [rsp + 0x40], r8
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
add rdx, 0x400
mov qword [rsp + 0x30], r8
xor r9d, r9d
mov dword [rsp + 0x28], 0x20106
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400315e4
mov rcx, qword [rsp + 0x68]
lea r9d, [rax + 3]
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1400315e4
mov bl, 1
jmp 0x1400315e4
mov rbp, qword [rsp + 0x70]
xor al, al
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140005a10
Capabilities:
Delete file

Disassembly:
jmp 0x14001bd50
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x140187788]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rdi, r8
lea rcx, [rsp + 0x20]
mov rbx, rdx
mov r8d, 0x104
xor edx, edx
mov ebp, r9d
xor esi, esi
call fcn.140004ca0
test rbx, rbx
je 0x14001be47
mov rcx, qword [rdi]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001be47
lea r9d, [rsi + 8]
mov r8d, 0x104
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleA]
dec eax
cmp eax, 0x102
ja 0x14001bdfe
lea edx, [rsi + 0x3a]
lea rcx, [rsp + 0x20]
call fcn.14000427d
test rax, rax
je 0x14001bdfe
lea rcx, [rsp + 0x20]
cmp rax, rcx
jbe 0x14001bdfe
lfence
lea rdx, [rax - 1]
mov rcx, rbx
call fcn.140002527
test eax, eax
jne 0x14001bdfe
mov esi, 1
mov eax, esi
jmp 0x14001be49
lea rdx, [rsp + 0x20]
lea rcx, str.CLogger::ValidatePathFromHandle_:_Failed__s___
call fcn.140007856
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], 0xffffffffffffffff
cmp ebp, 0xb7
je 0x14001be43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14001be43
mov rdx, rbx
lea rcx, str.CLogger::ValidatePathFromHandle_:_DeleteFile_Failed__s___
call fcn.140007856
mov eax, esi
jmp 0x14001be49
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140002cde
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005fc9
Capabilities:
Parse pe header

Disassembly:
jmp 0x14010f930
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14010f684

Function at 0x1400060af
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400cbd08
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x140149a60]
mov edi, ecx
lea rdx, [0x140148c10]
mov ecx, 3
lea r8, [0x140149a58]
call fcn.1400cb660
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x1400cbd48
call qword [case.0x1400c284e.0]
jmp 0x1400cbd4e
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140006af0
Capabilities:
Get session user name

Disassembly:
jmp 0x14001a3c0
push rbx
sub rsp, 0x20
cmp byte [0x140188f70], 0
jne 0x14001a414
lea rbx, [0x140188f70]
mov dword [rsp + 0x30], 0x101
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x14001a40b
mov r9, 0xffffffffffffffff
lea r8, [0x140142080]
mov edx, 0x101
mov rcx, rbx
call fcn.140001b0e
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x140188f70]
add rsp, 0x20
pop rbx
ret

Function at 0x140006faf
Capabilities:
Terminate process

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

Disassembly:
jmp 0x14001a440
push rbx
sub rsp, 0x20
cmp word [0x140188d60], 0
jne 0x14001a495
lea rbx, [0x140188d60]
mov dword [rsp + 0x30], 0x101
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x14001a48c
mov r9, 0xffffffffffffffff
lea r8, [0x140142078]
mov edx, 0x101
mov rcx, rbx
call fcn.140002f90
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x140188d60]
add rsp, 0x20
pop rbx
ret

Function at 0x140007301
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400cbcb0
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140149a50]
mov ecx, 2
lea r8, [0x140149a48]
lea rdx, [0x140148c00]
call fcn.1400cb660
mov ecx, ebx
test rax, rax
je 0x1400cbcea
add rsp, 0x20
pop rbx
jmp qword [case.0x1400c284e.0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x140007856
Capabilities:
Print debug messages

Disassembly:
jmp 0x14001a710
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, 0x468
mov rax, qword [0x140187788]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rcx
lea rdi, [r11 + 0x10]
call fcn.1400070e5
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x250]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x1ff
mov rcx, qword [rax]
or rcx, 1
call fcn.1400052bd
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.140004ec6
lea rax, [rsp + 0x50]
dec rax
nop dword [rax]
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x14001a7d0
lea r8, [rsp + 0x250]
xor edx, edx
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [r8 + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x14001a7f0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140002cde
add rsp, 0x468
pop rdi
pop rbx
ret

Function at 0x140007b7b
Capabilities:
Query environment variable

Disassembly:
jmp 0x1401201a0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
je 0x140120227
mov rbp, rax
cmp word [rax], si
je 0x1401201e9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401201d0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401201cc
sub rbp, rbx
add rbp, 2
sar rbp, 1
add rbp, rbp
mov rcx, rbp
call fcn.140004f20
mov rdi, rax
test rax, rax
je 0x140120217
mov r8, rbp
mov rdx, rbx
mov rcx, rax
call fcn.140006965
mov rsi, rdi
xor ecx, ecx
call fcn.1400047c3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140007e0f
Capabilities:
Check if file exists

Disassembly:
jmp 0x14001bb40
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x140187788]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rdi, rdx
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
mov ebx, 1
call fcn.140004ca0
test rdi, rdi
je 0x14001bbfc
mov r8, rdi
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.1400045ac
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14001bbb6
bt eax, 0xa
jb 0x14001bbcf
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call fcn.14000427d
test rax, rax
je 0x14001bbe2
mov byte [rax], 0
jmp 0x14001bba0
lea rdx, [rsp + 0x20]
lea rcx, str.CLogger::ValidatePathForSymLink_:_Failed__s___
call fcn.140007856
xor ebx, ebx
test ebx, ebx
je 0x14001bbfc
mov rdx, rdi
mov rcx, rsi
call fcn.1400069ec
test eax, eax
je 0x14001bbfc
mov eax, 1
jmp 0x14001bbfe
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140002cde
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140016450
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x280
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x140187788]
xor rax, rsp
mov qword [rsp + 0x270], rax
test cl, cl
je 0x140016658
mov rax, qword [0x140188c18]
test rax, rax
jne 0x14001662b
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x60]
call fcn.140004ca0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x26]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400165e3
movdqa xmm0, xmmword [0x1401419c0]
movdqu xmmword [rsp + 0x48], xmm0
xor esi, esi
mov word [rsp + 0x38], si
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], si
jne 0x1400164f0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140003454
nop
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rax, rdx
sub rax, rcx
cmp rax, 0x31
jb 0x140016554
lea rdi, [rcx + 0x31]
mov qword [rsp + 0x48], rdi
lea rbx, [rsp + 0x38]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x38]
lea rcx, [rbx + rcx*2]
mov r8d, 0x62
lea rdx, str.NVIDIA_CorporationNVIDIA_NvDLISRGfeXCode64.dll
call fcn.1400014d8
mov word [rbx + rdi*2], si
jmp 0x140016578
lfence
mov qword [rsp + 0x20], 0x31
lea r9, str.NVIDIA_CorporationNVIDIA_NvDLISRGfeXCode64.dll
xor r8d, r8d
lea edx, [r8 + 0x31]
lea rcx, [rsp + 0x38]
call fcn.140002e50
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
xor edx, edx
call fcn.140004e26
mov qword [0x140188c18], rax
mov rdx, qword [rsp + 0x50]
test rax, rax
jne 0x1400165eb
cmp rdx, 8
jb 0x1400165de
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400165d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001669a
call fcn.1400021c6
mov eax, 0x80004005
lfence
jmp 0x140016675
cmp rdx, 8
jb 0x14001662b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001661f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001669a
call fcn.1400021c6
mov rax, qword [0x140188c18]
cmp qword [0x140188c20], 0
jne 0x140016673
lea rdx, str.GfeXcodeImage
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140188c20], rax
test rax, rax
jne 0x140016673
mov eax, 0x80004005
jmp 0x140016675
mov rcx, qword [0x140188c18]
test rcx, rcx
je 0x140016673
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
mov qword [0x140188c18], rsi
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140002cde
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call fcn.140003b11
int3
Function at 0x140018ba0
Capabilities:
Create thread

Disassembly:
jmp 0x140018ba0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov edx, 0x923
xor ecx, ecx
mov rbx, r8
call fcn.140002063
xor edi, edi
lea r9, str.Global96D95145_FAC5_46C4_835A_E722C8698A35_ngxCancel
xor r8d, r8d
mov dword [rsp + 0x30], edi
xor ecx, ecx
lea edx, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rax, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x140016960]
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x140018c2e
mov edx, 0x926
lea ecx, [rax + 7]
call fcn.140002063
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov ebx, 2
mov qword [rsp + 0x38], rdi
mov ecx, ebx
mov qword [rsp + 0x40], rsi
xor r9d, r9d
lea rdx, [rsp + 0x38]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x140018c7a
cmp eax, 1
je 0x140018c9b
xor r9d, r9d
mov qword [rsp + 0x38], rdi
xor r8d, r8d
mov qword [rsp + 0x40], rsi
lea rdx, [rsp + 0x38]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x140018c54
call fcn.140003337
movss xmm0, dword [rax + 4]
ucomiss xmm0, dword [0x1401419ac]
jp 0x140018cb3
jne 0x140018cb3
mov ebx, 1
mov edx, 0x925
jmp 0x140018cb8
call fcn.140003337
mov edx, 0x61a8
mov rcx, rdi
mov byte [rax], 1
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140018cbf
mov edx, 0x926
mov ecx, ebx
call fcn.140002063
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov eax, 1
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret