joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006718c
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
mov rbx, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor esi, esi
mov qword [rbp - 0x10], rsi
mov dword [rbp + 0x30], esi
lea r8, [rbp + 0x30]
xor edx, edx
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
je 0x1400671d4
lea edi, [rsi + 0xd]
jmp 0x14006728f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xea
jne 0x14006728f
mov word [rbp + 0x20], si
mov edx, dword [rbp + 0x30]
mov r8, qword [rbp - 0x18]
mov rcx, r8
mov rdi, qword [rbp - 0x20]
sub rcx, rdi
sar rcx, 1
cmp rdx, rcx
jae 0x140067214
lea rax, [rdi + rdx*2]
mov qword [rbp - 0x18], rax
jmp 0x140067255
jbe 0x140067255
mov rax, qword [rbp - 0x10]
sub rax, rdi
sar rax, 1
cmp rdx, rax
jbe 0x140067238
lea r8, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call fcn.140043124
mov rdi, qword [rbp - 0x20]
jmp 0x140067255
sub rdx, rcx
je 0x140067251
movzx eax, si
mov rdi, r8
mov rcx, rdx
rep stosw word [rdi], ax
lea r8, [r8 + rdx*2]
mov rdi, qword [rbp - 0x20]
mov qword [rbp - 0x18], r8
lea r8, [rbp + 0x30]
mov rdx, rdi
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
jne 0x140067281
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x14006728f
mov rdx, qword [rbp - 0x20]
mov rcx, rbx
call fcn.140004374
mov edi, esi
lea rcx, [rbp - 0x20]
call fcn.140020b54
mov eax, edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x140067cf0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400b4480], eax
call fcn.140068190
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400b4480], 0
jne case.default.0x140067d46
mov ecx, 1
call fcn.140068190
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]
mov eax, 0x24dd5b49
fidiv dword [rcx - 0x11ff7039]
jmp 0x14012210c
add bh, byte [rdx - 0x27]
xchg edi, eax
push r14
xchg esi, eax
cmp eax, 0xec2ac20c
cmp eax, 0x46df8be1
hlt
Function at 0x140006680
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1030
call fcn.14000af60
sub rsp, rax
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rsi, rdx
xor edi, edi
lea rdx, [0x14002c7b4]
call fcn.1400031c0
mov rbx, rax
test rax, rax
je 0x1400066e2
lea rdx, [0x14002c8ac]
mov rcx, rsi
call fcn.1400031c0
mov rsi, rax
mov rcx, rbx
test rax, rax
jne 0x1400066ec
call fcn.14000e6f4
mov eax, 0xffffffff
jmp 0x140006781
call fcn.14000e78c
test eax, eax
jne 0x14000676f
nop word [rax + rax]
mov r9, rbx
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call fcn.14000ea44
test rax, rax
je 0x140006756
mov r9, rsi
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call fcn.14000f184
test rax, rax
je 0x140006751
mov rcx, rsi
call fcn.14000e7b8
test eax, eax
jne 0x140006751
mov rcx, rbx
call fcn.14000e78c
test eax, eax
je 0x140006700
jmp 0x14000676f
mov rcx, rsi
jmp 0x140006765
mov rcx, rbx
call fcn.14000e7b8
test eax, eax
je 0x14000676f
mov rcx, rbx
call fcn.140017364
mov edi, 0xffffffff
mov rcx, rbx
call fcn.14000e6f4
mov rcx, rsi
call fcn.14000e6f4
mov eax, edi
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000ac60
lea r11, [rsp + 0x1030]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400067b0
Capabilities:
Create directory

Disassembly:
push rdi
push r14
mov eax, 0x3058
call fcn.14000af60
sub rsp, rax
mov rax, qword [0x14003f040]
xor rax, rsp
mov qword [rsp + 0x3030], rax
mov rdi, r8
mov r14, rcx
mov rax, 0xffffffffffffffff
inc rax
cmp byte [r8 + rax], 0
jne 0x1400067e0
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rdx + rcx], 0
jne 0x1400067f1
inc rax
mov qword [rsp + 0x3050], rbx
add rax, rcx
mov qword [rsp + 0x3048], rbp
mov qword [rsp + 0x3040], rsi
cmp rax, 0x1000
jae 0x1400068e6
mov r9, rdx
mov dword [rsp + 0x20], 0x5c
mov edx, 0x1000
lea r8, [0x14002e264]
lea rcx, [rsp + 0x30]
call fcn.140001bd0
mov edx, 0x5c
movsxd rbp, eax
mov rcx, rdi
call fcn.14000baf0
mov rbx, rax
test rax, rax
je 0x1400068e2
mov esi, 0x1000
sub rsi, rbp
lea rbp, [rsp + rbp + 0x30]
nop
mov r9d, ebx
mov qword [rsp + 0x20], rdi
sub r9d, edi
lea r8, [0x14002e26c]
mov rdx, rsi
mov rcx, rbp
call fcn.140001bd0
lea rcx, [rsp + 0x30]
call fcn.140003160
test eax, eax
jne 0x1400068cc
mov r8d, 0x1000
lea rdx, [rsp + 0x1030]
lea rcx, [rsp + 0x30]
call fcn.140007aa0
mov rdx, qword [r14 + 0x3038]
lea rcx, [rsp + 0x1030]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1400068e6
lea rcx, [rbx + 1]
mov edx, 0x5c
call fcn.14000baf0
mov rbx, rax
test rax, rax
jne 0x140006870
xor eax, eax
jmp 0x1400068eb
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x3040]
mov rbp, qword [rsp + 0x3048]
mov rbx, qword [rsp + 0x3050]
mov rcx, qword [rsp + 0x3030]
xor rcx, rsp
call fcn.14000ac60
add rsp, 0x3058
pop r14
pop rdi
ret
Function at 0x1400030b0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rbx
push rsi
push rdi
push rbp
sub rsp, 0xc8
movdqa xmmword [rsp + 0x20], xmm6
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x50], xmm9
movdqa xmmword [rsp + 0x60], xmm10
movdqa xmmword [rsp + 0x70], xmm11
movdqa xmmword [rsp + 0x80], xmm12
movdqa xmmword [rsp + 0x90], xmm13
movdqa xmmword [rsp + 0xa0], xmm14
movdqa xmmword [rsp + 0xb0], xmm15
mov qword [rsp + 0x110], rcx
mov qword [rsp + 0x118], rdx
mov eax, dword [0x1401627bc]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, 0x30
add rax, rbx
mov qword [rsp + 0xc0], rax
lock and dword [rax + 0x38], 0xffffffef
mov rax, qword [rdx + 0x18]
mov rbx, qword [rax]
mov rax, qword [rdx + 0x20]
mov rbp, qword [rax]
mov rax, qword [rdx + 0x28]
mov rsi, qword [rax]
mov rax, qword [rdx + 0x30]
mov rdi, qword [rax]
mov rax, qword [rdx + 0x58]
mov r12, qword [rax]
mov rax, qword [rdx + 0x60]
mov r13, qword [rax]
mov rax, qword [rdx + 0x68]
mov r14, qword [rax]
mov rax, qword [rdx + 0x70]
mov r15, qword [rax]
movdqa xmm6, xmmword [rdx + 0x90]
movdqa xmm7, xmmword [rdx + 0xa0]
movdqa xmm8, xmmword [rdx + 0xb0]
movdqa xmm9, xmmword [rdx + 0xc0]
movdqa xmm10, xmmword [rdx + 0xd0]
movdqa xmm11, xmmword [rdx + 0xe0]
movdqa xmm12, xmmword [rdx + 0xf0]
movdqa xmm13, xmmword [rdx + 0x100]
movdqa xmm14, xmmword [rdx + 0x110]
movdqa xmm15, xmmword [rdx + 0x120]
mov rcx, qword [rdx + 0x78]
call qword [rsp + pe_nt_image_headers64]
mov rdx, qword [rsp + 0x118]
mov rax, qword [rdx + 0x18]
mov qword [rax], rbx
mov rax, qword [rdx + 0x20]
mov qword [rax], rbp
mov rax, qword [rdx + 0x28]
mov qword [rax], rsi
mov rax, qword [rdx + 0x30]
mov qword [rax], rdi
mov rax, qword [rdx + 0x58]
mov qword [rax], r12
mov rax, qword [rdx + 0x60]
mov qword [rax], r13
mov rax, qword [rdx + 0x68]
mov qword [rax], r14
mov rax, qword [rdx + 0x70]
mov qword [rax], r15
movdqa xmmword [rdx + 0x90], xmm6
movdqa xmmword [rdx + 0xa0], xmm7
movdqa xmmword [rdx + 0xb0], xmm8
movdqa xmmword [rdx + 0xc0], xmm9
movdqa xmmword [rdx + 0xd0], xmm10
movdqa xmmword [rdx + 0xe0], xmm11
movdqa xmmword [rdx + 0xf0], xmm12
movdqa xmmword [rdx + 0x100], xmm13
movdqa xmmword [rdx + 0x110], xmm14
movdqa xmmword [rdx + 0x120], xmm15
mov rax, qword [rsp + 0xc0]
lock or dword [rax + 0x38], 0x10
movdqa xmm6, xmmword [rsp + 0x20]
movdqa xmm7, xmmword [rsp + 0x30]
movdqa xmm8, xmmword [rsp + 0x40]
movdqa xmm9, xmmword [rsp + 0x50]
movdqa xmm10, xmmword [rsp + 0x60]
movdqa xmm11, xmmword [rsp + 0x70]
movdqa xmm12, xmmword [rsp + 0x80]
movdqa xmm13, xmmword [rsp + 0x90]
movdqa xmm14, xmmword [rsp + 0xa0]
movdqa xmm15, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbp
pop rdi
pop rsi
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140001a00
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
xor ebx, ebx
mov rsi, rcx
mov rbp, rbx
test rcx, rcx
je 0x140001ada
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov r12d, eax
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea rdx, [rcx - 1]
lea ecx, [r12 + 1]
add rdx, rcx
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x140001add
mov edx, r12d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [rax - 1]
cmp word [rbp + rcx*2], 0x5c
je 0x140001a8c
mov ecx, eax
mov edx, 0x5c
inc eax
mov word [rbp + rcx*2], dx
or rcx, 0xffffffffffffffff
movsxd r8, eax
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x140001ada
mov rdx, rsi
lea r8, [rbp + r8*2]
nop dword [rax]
movzx eax, word [rdx]
or rcx, 0xffffffffffffffff
inc ebx
mov word [r8], ax
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
mov eax, ebx
add rdx, 2
not rcx
add r8, 2
dec rcx
cmp rax, rcx
jb 0x140001ab0
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x140001cb0
Capabilities:
Get common file path

Disassembly:
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 ecx, 0x40
mov edx, eax
mov edi, eax
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140001d12
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140001d07
cmp edi, eax
jb 0x140001d07
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 0x140002f70
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov rax, qword [0x1400539b0]
xor esi, esi
mov rdi, r8
mov r12, rdx
mov ebp, ecx
test rax, rax
jne 0x140002fb9
lea rcx, str.Setupapi.dll
xor edx, edx
call fcn.1400026b0
mov qword [0x1400539b0], rax
test rax, rax
je 0x140003096
cmp qword [0x1400539b8], rsi
jne 0x140002fe9
lea rdx, str.SetupDiGetClassDevsW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400539b8], rax
test rax, rax
je 0x140003096
mov rax, qword [0x1400539b0]
cmp qword [0x1400539c0], rsi
jne 0x140003019
lea rdx, str.SetupDiEnumDeviceInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400539c0], rax
test rax, rax
je 0x140003096
mov rax, qword [0x1400539b0]
cmp qword [0x1400539d0], rsi
jne 0x140003045
lea rdx, str.SetupDiGetDeviceRegistryPropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400539d0], rax
test rax, rax
je 0x140003096
mov rax, qword [0x1400539b0]
cmp qword [0x1400539c8], rsi
jne 0x140003071
lea rdx, str.SetupDiGetDeviceInterfaceDetailW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400539c8], rax
test rax, rax
je 0x140003096
mov rax, qword [0x1400539b0]
cmp qword [0x1400539e0], rsi
jne 0x14000309d
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400539e0], rax
test rax, rax
jne 0x14000309d
xor eax, eax
jmp 0x14000313d
mov r9d, 6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x30], rbx
call qword [0x1400539b8]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140003136
xor eax, eax
mov r8, rdi
xor edx, edx
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov rcx, rbx
mov dword [rdi], 0x20
call qword [0x1400539c0]
test eax, eax
je 0x14000312d
nop word [rax + rax]
mov r8, rdi
mov rdx, rbx
mov ecx, ebp
call fcn.140001e90
cmp eax, 1
je 0x140003153
xor eax, eax
inc esi
mov r8, rdi
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov edx, esi
mov rcx, rbx
mov dword [rdi], 0x20
call qword [0x1400539c0]
test eax, eax
jne 0x1400030f0
mov rcx, rbx
call qword [0x1400539e0]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov qword [r12], rbx
mov eax, 1
jmp 0x140003138
Function at 0x140008dcc
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140051078]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rdx
mov dword [rcx + 0x60], 0x195
mov eax, 0x87
mov byte [rcx + 0x64], 3
mov rbx, rcx
mov word [rcx + 0x66], ax
mov edx, 0xfffffff0
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov rdx, qword [rdi + 0x18]
lea r9, str.ScrollBar
and qword [rsp + 0x20], 0
xor r8d, r8d
shr eax, 0x17
mov rcx, rbx
and al, 1
mov dword [rbx + 0x4c], 0x50010005
mov byte [rbx + 0x68], al
call fcn.1400076b8
mov rdx, rdi
mov rcx, rbx
call fcn.1400077c0
mov rax, qword gs:[0x58]
mov r15d, 4
mov rsi, qword [rax]
mov r11d, dword [r15 + rsi]
cmp dword [0x140061e40], r11d
jle 0x140008e7c
lea rcx, [rbp - 0x40]
int3
mov rax, qword [0x140061e48]
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x40]
mov edx, dword [rax]
movzx eax, byte [rbx + 0x68]
mov ecx, dword [rdi + 0x44]
add eax, eax
sub ecx, eax
cmp dword [rbx + 0x58], 0
jne 0x140008ea1
mov dword [rbx + 0x40], edx
cmp dword [rbx + 0x5c], 0
jne 0x140008eaa
mov dword [rbx + 0x44], ecx
mov rcx, rbx
call fcn.1400074d8
cmp dword [0x140061e40], r11d
jle 0x140008ec6
lea rcx, [rbp - 0x40]
int3
mov rax, qword [0x140061e48]
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x40]
movzx edx, byte [rbx + 0x68]
mov ecx, dword [rdi + 0x40]
sub ecx, dword [rax]
sub ecx, edx
add ecx, dword [rdi + 0x38]
mov dword [rbp - 0x38], ecx
mov ecx, dword [rdi + 0x3c]
add ecx, edx
lea rdx, [rbp - 0x38]
mov dword [rbp - 0x34], ecx
mov rcx, rbx
call fcn.1400075d4
mov edx, dword [rbx + 0x60]
lea r8, [rbp - 0x30]
and qword [rbp - 0x1c], 0
mov eax, 0x55555556
and dword [rbp - 0x28], 0
xor r9d, r9d
mov rcx, qword [rbx + 8]
mov dword [rbp - 0x24], edx
imul edx
mov dword [rbp - 0x30], 0x1c
mov eax, edx
mov dword [rbp - 0x2c], 3
inc edx
shr eax, 0x1f
add eax, edx
lea edx, [r9 + 2]
mov dword [rbp - 0x20], eax
call qword [sym.imp.USER32.dll_SetScrollInfo]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14001e6b0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret

Function at 0x140009d00
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x140009d66
cmp dword [rsp + 0x28], 0x104
je 0x140009d36
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x140009d4c
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov ecx, 0x1b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140009d66
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_SetFocus]
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140009d19
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140009fbc
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
sub rsp, 0x88
cmp byte [rcx], 1
mov rbx, rcx
jne 0x14000a1d0
xor r15d, r15d
cmp dword [rcx + 0xc], r15d
jne 0x140009ff0
cmp dword [rcx + 8], r15d
je 0x14000a1d0
lea rax, [rbp + 7]
mov qword [rbp + 7], r15
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x6f], r15d
lea rdx, str.SOFTWAREMicrosoftDirectX
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000a1d0
mov rcx, qword [rbp + 7]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x58], r15
xor r9d, r9d
mov qword [rsp + 0x50], r15
xor r8d, r8d
mov qword [rsp + 0x48], r15
xor edx, edx
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x67], r15d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14000a1d0
mov eax, dword [rbp + 0x67]
mov r14b, r15b
inc eax
mov qword [rbp + 0x17], r15
mov ecx, eax
mov dword [rbp + 0x67], eax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14001ed1c
mov rsi, rax
mov edi, r15d
cmp dword [rbp + 0x6f], r15d
jbe 0x14000a179
mov ecx, dword [rbp + 0x67]
lea r9, [rbp + 0x7f]
mov qword [rsp + 0x38], r15
mov r8, rsi
mov dword [rbp + 0x7f], ecx
mov edx, edi
mov rcx, qword [rbp + 7]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000a16a
mov rcx, qword [rbp + 7]
lea rax, [rbp + 0x77]
mov qword [rsp + 0x30], rax
lea r8, str.AdapterLuid
lea rax, [rbp + 0xf]
mov qword [rbp + 0xf], r15
mov qword [rsp + 0x28], rax
mov r9d, 0x48
mov rdx, rsi
mov qword [rsp + 0x20], r15
mov dword [rbp + 0x77], 8
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14000a16a
mov eax, dword [rbx + 0xc]
cmp dword [rbp + 0x13], eax
jne 0x14000a16a
mov eax, dword [rbx + 8]
cmp dword [rbp + 0xf], eax
jne 0x14000a16a
mov rcx, qword [rbp + 7]
lea rax, [rbp + 0x77]
mov qword [rsp + 0x30], rax
lea r8, str.DriverVersion
lea rax, [rbp + 0x17]
mov r9d, 0x48
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x14000a176
inc edi
cmp edi, dword [rbp + 0x6f]
jae 0x14000a179
jmp 0x14000a0b0
mov r14b, 1
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call 0x14001ed14
test r14b, r14b
je 0x14000a1d0
mov r8, qword [rbp + 0x17]
mov rcx, r8
mov rax, r8
shr rcx, 0x20
movzx ecx, cx
mov dword [rbx + 0x14], ecx
mov rcx, r8
shr rax, 0x30
mov dword [rbx + 0x10], eax
mov al, 1
shr rcx, 0x10
movzx edx, cx
mov dword [rbx + 0x18], edx
movzx ecx, r8w
mov dword [rbx + 0x1c], ecx
mov dword [rbx + 0x24], edx
mov ecx, dword [rbx + 0x1c]
mov dword [rbx + 0x28], ecx
mov byte [rbx + 0x20], 1
jmp 0x14000a1d2
xor al, al
add rsp, 0x88
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14000f95c
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x140055000]
mov rdi, rcx
mov rcx, qword [rcx + 0x48]
call qword [0x14003b6c0]
xor ebx, ebx
test rax, rax
je 0x14000fa1c
mov r8, qword [rdi + 0x50]
lea r9, [rsp + 0x48]
mov rcx, rax
mov dword [rsp + 0x40], 1
mov rax, qword [0x140055020]
lea rdx, [rsp + 0x40]
call qword [0x14003b6c0]
mov edi, eax
test eax, eax
jne 0x14000f9fa
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x14000f9d6
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], bl
jne 0x14000f9c3
mov rdx, rax
int3
mov rdx, rbx
lea rcx, str.refresh
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x48]
mov rax, qword [0x140054fe0]
call qword [0x14003b6c0]
jmp 0x14000fa18
mov rax, qword [0x140055030]
mov ecx, edi
call qword [0x14003b6c0]
mov rdx, rax
lea rcx, str.GetRefreshToken_EOS_Auth_CopyUserAuthToken___failed:__s
call fcn.14000f298
mov eax, edi
jmp 0x14000fa20
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14001ef35
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rsp + 8]
and rdx, 0
Function at 0x140006450
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140006474
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140006502
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400064d0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x1400064d0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.140027a60
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400064ed
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400064f5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140006491
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x1400065e0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140006519
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000651b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000654d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140027a60
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400065dd
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140006588
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x1400065be
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1400137f8
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x1400065dd
cmp rsi, rax
ja 0x140006591
test rsi, rsi
je 0x1400065dd
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400137f8
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret