joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000cfa8
Capabilities:
Query environment variable

Disassembly:
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 esi, esi
mov rbx, rax
test rax, rax
jne 0x14000cfd8
xor eax, eax
jmp 0x14000d09b
mov rbp, rbx
cmp word [rax], si
je 0x14000cffd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000cfe4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000cfe0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000cec8
movsxd r14, eax
test eax, eax
jne 0x14000d03b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000cfd1
mov rcx, r14
call fcn.14000b35c
mov rdi, rax
test rax, rax
jne 0x14000d054
xor ecx, ecx
call fcn.14000b528
jmp 0x14000d030
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000cec8
test eax, eax
jne 0x14000d085
mov rcx, rdi
call fcn.14000b528
jmp 0x14000d08f
xor ecx, ecx
call fcn.14000b528
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140010400
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000bf98
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001048a
cmp byte [rbp - 0x21], r15b
je 0x140010485
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400104c0
call fcn.14000e57c
test eax, eax
jne 0x1400104ac
cmp byte [rbp - 0x21], r15b
je 0x1400104a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400104c0
cmp byte [rbp - 0x21], r15b
je 0x1400104bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000b578
test eax, eax
jne 0x140010560
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000bf98
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400104ff
cmp byte [rbp - 0x21], r15b
je 0x140010534
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140010534
call fcn.14000e57c
test eax, eax
jne 0x140010520
cmp byte [rbp - 0x21], r15b
je 0x140010519
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140010534
cmp byte [rbp - 0x21], r15b
je 0x140010531
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000b578
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140010560
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140010563
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140010571
mov rcx, rdi
call fcn.14000b528
cmp byte [rbp + 0x3f], r15b
je 0x140010580
mov rcx, qword [rbp + 0x27]
call fcn.14000b528
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400133b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400133d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400133d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001220
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov rbx, rdx
mov r9, rcx
test rcx, rcx
je 0x1400012dd
cmp dword [rcx], 0
jne 0x1400012dd
movsx rax, byte [rdx]
mov r8, rdx
mov r10d, 0x1505
test rax, rax
je 0x140001264
nop
imul r10, r10, 0x21
lea r8, [r8 + 1]
add r10, rax
movsx rax, byte [r8]
test rax, rax
jne 0x140001250
mov rcx, qword [rcx + 0x20]
lea r8, [0x14009afb0]
xor edx, edx
mov rax, r10
div qword [r8 + rcx*8]
lea rax, [r9 + 0x28]
mov r11, rdx
shl r11, 4
add r11, qword [r9 + 0x18]
mov r8, qword [r11]
cmp r8, rax
jne 0x140001295
cmp r8, qword [r11 + 8]
je 0x1400012dd
cmp qword [r8 - 8], r10
jne 0x1400012c7
lea rax, [r8 + 0x20]
mov r9, rbx
sub r9, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x1400012c3
inc rax
test ecx, ecx
jne 0x1400012b0
test edx, edx
je 0x1400012d3
cmp r8, qword [r11 + 8]
je 0x1400012dd
mov r8, qword [r8 + 8]
jmp 0x140001295
mov rax, qword [r8 + 0x10]
mov rbx, qword [rsp + 8]
ret
mov rbx, qword [rsp + 8]
xor eax, eax
ret
Function at 0x140001400
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x140001586
cmp dword [rcx], 0
jne 0x140001586
movsx rax, byte [rdx]
mov r8, rdx
mov qword [rsp + 0x38], rbp
mov r9d, 0x1505
mov qword [rsp + 0x40], r14
test rax, rax
je 0x140001454
nop
imul r9, r9, 0x21
lea r8, [r8 + 1]
add r9, rax
movsx rax, byte [r8]
test rax, rax
jne 0x140001440
mov rcx, qword [rcx + 0x20]
lea r8, [0x14009afb0]
xor edx, edx
mov qword [rsp + 0x30], rbx
mov rax, r9
lea r14, [rdi + 0x28]
div qword [r8 + rcx*8]
mov r11, rdx
shl r11, 4
add r11, qword [rdi + 0x18]
mov rbp, qword [r11]
cmp rbp, r14
jne 0x14000148e
cmp rbp, qword [r11 + 8]
je 0x140001567
mov r10, rbp
cmp qword [r10 - 8], r9
lea rbx, [r10 - 8]
jne 0x1400014c7
lea rax, [rbx + 0x28]
mov r8, rsi
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400014c3
inc rax
test ecx, ecx
jne 0x1400014b0
test edx, edx
je 0x1400014d7
cmp r10, qword [r11 + 8]
je 0x140001567
mov r10, qword [r10 + 8]
jmp 0x140001491
mov rax, qword [r11 + 8]
lea rdx, [rbx + 8]
cmp rdx, rbp
jne 0x1400014fb
cmp rdx, rax
jne 0x1400014f2
mov qword [r11 + 8], r14
mov qword [r11], r14
jmp 0x140001507
mov rax, qword [rbx + 0x10]
mov qword [r11], rax
jmp 0x140001507
cmp rdx, rax
jne 0x140001507
mov rax, qword [rdx]
mov qword [r11 + 8], rax
mov rcx, qword [rdx]
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov rcx, qword [rdx + 8]
mov rax, qword [rdx]
mov qword [rcx], rax
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14000153e
mov rax, qword [rcx + 8]
cmp rax, 0xffffffffffffffff
je 0x14000153e
sub rax, 1
mov qword [rcx + 8], rax
jne 0x14000153e
call fcn.140002ee0
mov rcx, rbx
call qword [fcn.140064080]
dec qword [rdi + 0x10]
mov r14, qword [rsp + 0x40]
xor eax, eax
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov r14, qword [rsp + 0x40]
mov eax, 0xffffffff
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x48]
mov eax, 0xffffffff
add rsp, 0x20
pop rdi
ret
Function at 0x140010f50
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400a9538]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov ebx, edx
mov rdi, rcx
xor esi, esi
lea rdx, [rsp + 0x58]
mov ecx, 0x20019
mov qword [rsp + 0x58], rsi
call fcn.14001fe40
test eax, eax
jne 0x140011084
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rsi
lea rdx, [rdi + 0x778]
mov qword [rsp + 0x38], rax
or ebx, 0x2001f
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140011084
movzx eax, word [0x14008d4f0]
lea r9d, [rsi + 0x10]
movups xmm0, xmmword [str.Recovery]
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x68]
mov word [rsp + 0x78], ax
xor edx, edx
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
movups xmmword [rsp + 0x68], xmm0
mov dword [rsp + 0x58], 4
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x50], esi
je 0x140011084
mov rcx, qword [rdi + 8]
lea rax, str.Safe_mode_is_ON._Optional_plugins_will_not_be_loaded
lea r9d, [rsi + 2]
mov qword [rsp + 0x20], rax
mov r8d, 0x145
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcServiceHost.cpp
call fcn.14001c680
mov al, 1
jmp 0x140011086
xor al, al
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140023310
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140011190
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
lea rax, str.Service_host:
mov rcx, qword [rcx + 8]
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcServiceHost.cpp
mov r9d, 4
mov qword [rsp + 0x20], rax
mov r8d, 0x21e
call fcn.14001c680
cmp word [rdi + 0x778], 0
jne 0x140011211
mov rcx, qword [rdi + 8]
lea rbx, str.Service_host:_service_registration_failed
mov r9d, 1
mov qword [rsp + 0x20], rbx
mov r8d, 0x224
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcServiceHost.cpp
call fcn.14001c680
mov rdx, rbx
mov ecx, 0x14
call fcn.14000bf70
xor al, al
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
xor ebx, ebx
mov qword [rsp + 0x40], rsi
mov rcx, rdi
mov dword [rdi + 0x754], 4
mov dword [rdi + 0x768], ebx
mov dword [rdi + 0x758], 5
lea edx, [rbx + 3]
call fcn.1400110b0
call fcn.14001cd10
shr eax, 1
test al, 1
je 0x1400112e7
mov qword [rsp + 0x28], rbx
lea r8, [0x140011580]
mov r9, rdi
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rdi + 0x800], rax
test rax, rax
jne 0x1400112bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi + 8]
lea rbx, str.Service_host:_failed_to_create_ServiceConfigThread._Error__u
mov dword [rsp + 0x28], eax
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcServiceHost.cpp
mov r9d, 1
mov qword [rsp + 0x20], rbx
mov r8d, 0x239
call fcn.14001c680
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov ecx, 0x11
mov r8d, eax
call fcn.14000bf70
jmp 0x1400112e7
mov rcx, qword [rdi + 8]
lea rax, str.Service_host:_Created_ServiceConfigThread
mov r9d, 3
mov qword [rsp + 0x20], rax
mov r8d, 0x23d
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcServiceHost.cpp
call fcn.14001c680
cmp qword [rdi + 0x130], 0
je 0x140011301
call fcn.14001b770
mov rcx, qword [rdi + 0x130]
mov qword [rcx + 0x18], rax
mov rcx, rdi
call fcn.14000c1e0
movzx esi, al
test al, al
je 0x1400113e4
cmp qword [rdi + 0x130], 0
je 0x140011337
mov rbx, qword [rdi + 0x130]
call fcn.14001b770
sub eax, dword [rbx + 0x18]
cmp dword [rbx + 8], eax
cmovae eax, dword [rbx + 8]
mov dword [rbx + 8], eax
mov rcx, rdi
call fcn.14000bb60
mov rcx, rdi
call fcn.14000aa80
mov edx, 3
mov dword [rdi + 0x754], 3
mov rcx, rdi
mov dword [rdi + 0x768], 0x7530
movzx esi, al
mov dword [rdi + 0x758], 5
call fcn.1400110b0
test sil, sil
je 0x1400113b2
mov rax, qword [rdi + 0x130]
test rax, rax
je 0x1400113b2
call fcn.14001b770
mov rcx, qword [rdi + 0x130]
mov qword [rcx + 0x18], rax
mov rax, qword [rdi + 0x130]
test rax, rax
je 0x1400113b2
call fcn.14001b770
mov rcx, qword [rdi + 0x130]
mov qword [rcx + 0x20], rax
xor edx, edx
mov rcx, rdi
call fcn.14000c450
test sil, sil
je 0x1400113e4
cmp qword [rdi + 0x130], 0
je 0x1400113e4
mov rbx, qword [rdi + 0x130]
call fcn.14001b770
sub eax, dword [rbx + 0x18]
cmp dword [rbx + 0xc], eax
cmovae eax, dword [rbx + 0xc]
mov dword [rbx + 0xc], eax
mov rbx, qword [rsp + 0x48]
movzx eax, sil
mov rsi, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140011400
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x1400a9538]
xor rax, rsp
mov qword [rsp + 0x88], rax
movups xmm0, xmmword [str.ServiceAutoStart]
movzx eax, word [0x14008d550]
mov edi, edx
movups xmm1, xmmword [0x14008d540]
mov rbp, rcx
lea rsi, [rcx + 0x778]
movups xmmword [rsp + 0x60], xmm0
xor r14d, r14d
lea rdx, [r11 - 0x58]
movups xmmword [rsp + 0x70], xmm1
mov ecx, 0x20019
mov word [r11 - 0x28], ax
mov ebx, 5
mov qword [r11 - 0x58], r14
call fcn.14001fe40
test eax, eax
jne 0x1400114ba
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], r14
or edi, 0x20006
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov rdx, rsi
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140011500
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
lea r9d, [rbx + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x50], 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140011554
mov rcx, qword [rbp + 8]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x38], ebx
lea rdi, str.Failed_to_save_auto_start_flag__ls_to_registry_for_service__ls._Error__ld
mov qword [rsp + 0x30], rsi
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercontainerwindowsNvcServiceHost.cpp
mov qword [rsp + 0x28], rax
mov r9d, 1
mov r8d, 0x169
mov qword [rsp + 0x20], rdi
call fcn.14001c680
mov r9, rsi
mov dword [rsp + 0x20], ebx
lea r8, [rsp + 0x60]
mov rdx, rdi
mov ecx, 0x13
call fcn.14000bf70
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140023310
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400135a0
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 0x14001367f
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 0x1400135d7
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 0x140013682
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 0x140013626
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 0x140013630
test rax, rax
je 0x14001367f
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 0x140013670
cmp rdx, rax
jb 0x140013650
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 0x1400183d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
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 0x140018603
xor edx, edx
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], dx
jne 0x140018400
test rax, rax
je 0x140018434
xor ecx, ecx
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x140018603
cmp r8w, 0x2f
je 0x140018603
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x140018410
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.140018620
mov rsi, rax
test rax, rax
je 0x14001852e
mov qword [rsp + 0x50], r14
call fcn.1400193e0
mov r14, rax
test rax, rax
je 0x14001851b
mov rcx, rsi
call fcn.1400133f0
test eax, eax
je 0x140018504
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 0x1400184b0
mov r8, rbx
mov rcx, rsi
call fcn.14005e2c4
test eax, eax
je 0x1400184d8
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x1400184a0
jmp 0x1400184e7
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.140017010
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x140018512
mov rcx, rsi
call fcn.1400133a0
test eax, eax
je 0x140018512
mov rbp, rsi
xor esi, esi
jmp 0x140018512
mov rdx, rsi
mov rcx, r14
call fcn.140017010
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 0x1400185cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x1400185d8
mov rcx, rbx
call fcn.1400132a0
mov rdi, rax
test rax, rax
je 0x1400185d8
mov ecx, 0x37e4
call fcn.140016240
test eax, eax
je 0x14001856d
lea rcx, [0x14008e228]
call fcn.1400190f0
jmp 0x140018572
call fcn.1400193e0
mov rbx, rax
test rax, rax
je 0x1400185c6
mov rdx, rdi
mov rcx, rax
call fcn.140017010
mov rbp, rax
test rax, rax
je 0x1400185bd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001859f
test al, 0x50
je 0x1400185bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400185b2
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 0x1400185d8
xor ecx, ecx
jmp 0x1400185e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400185eb
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 0x1400193e0
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 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 0x140019442
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140019437
cmp edi, eax
jb 0x140019437
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 0x1400197e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
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 0x14001993e
movzx eax, word [rbx]
cmp eax, 0x5c
je 0x140019849
cmp eax, 0x2f
je 0x140019849
mov ecx, eax
call fcn.14005dc38
test eax, eax
je 0x14001993e
cmp word [rbx + 2], 0x3a
jne 0x14001993e
movzx eax, word [rbx + 4]
cmp ax, 0x5c
je 0x140019849
cmp ax, 0x2f
jne 0x14001993e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140019937
test al, 0x50
jne 0x140019937
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 0x14001989a
lea ecx, [rax + 0x21]
jmp 0x140019943
mov rcx, rbx
call fcn.140015f70
test eax, eax
jne 0x14001990c
test ebp, ebp
mov dword [rsp + 0x60], esi
lea rdx, [rsp + 0x60]
mov rcx, rbx
cmove rdx, rsi
call fcn.14001a5f0
test eax, eax
je 0x1400198d6
test ebp, ebp
je 0x14001990c
cmp dword [rsp + 0x60], esi
jne 0x14001990c
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.1400165b0
test eax, eax
jne 0x14001990c
test rdi, rdi
je 0x140019908
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 0x14001994c
mov r8d, r14d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
test rdi, rdi
je 0x140019949
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
jmp 0x140019943
mov ecx, 0x7e
jmp 0x140019943
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