joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100008efc
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x10001f110]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, rdx
mov rbx, rcx
lea rdx, [0x100006140]
lea rcx, [rsp + 0x20]
mov r9d, 1
mov r8d, 0x1ef
call fcn.100018110
lea r11, [0x100005940]
xor esi, esi
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x208
mov qword [rsp + 0x58], r11
mov qword [rsp + 0x60], rsi
mov word [rsp + 0x70], si
call sub.msvcrt.dll_memset
mov eax, 0x1f4
cmp rbx, rsi
jne 0x100008f86
mov ebx, 0x80070057
mov word [rsp + 0x26], ax
jmp 0x10000905c
mov word [rsp + 0x24], ax
cmp rdi, rsi
jne 0x100008f97
mov eax, 0x1f5
jmp 0x100008f77
mov eax, 0x1f6
lea rcx, [rsp + 0x58]
mov rdx, rbx
mov dword [rsp + 0x20], esi
mov word [rsp + 0x24], ax
call fcn.10001b8c4
mov ebx, eax
mov dword [rsp + 0x20], eax
cmp eax, esi
mov eax, 0x1f9
jge 0x100008fcb
mov word [rsp + 0x26], ax
jmp 0x100009060
mov word [rsp + 0x24], ax
mov eax, 0x1fa
cmp dword [rsp + 0x60], esi
je 0x100008f77
lea rcx, [rsp + 0x58]
mov edx, 0x5c
mov dword [rsp + 0x20], esi
mov word [rsp + 0x24], ax
call fcn.10001bb64
mov ebx, eax
mov dword [rsp + 0x20], eax
cmp eax, esi
mov eax, 0x1fd
jl 0x100008fc1
mov rcx, qword [rsp + 0x58]
mov ebx, 0x105
lea rdx, [rsp + 0x70]
mov r8d, ebx
mov word [rsp + 0x24], ax
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
cmp eax, esi
mov eax, 0x204
jne 0x100009032
mov ebx, 0x80004005
jmp 0x100008f7c
lea rcx, [rsp + 0x70]
mov r8d, ebx
mov rdx, rdi
mov dword [rsp + 0x20], esi
mov word [rsp + 0x24], ax
call qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
cmp eax, esi
mov eax, 0x209
je 0x100009028
mov ebx, esi
mov word [rsp + 0x24], ax
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0x58]
call fcn.10001ae2c
lea rcx, [rsp + 0x20]
call fcn.100018228
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.10001c400
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x10000a4cd
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rsi, rdx
mov rax, rbx
movsxd rax, dword [rax + 0x3c]
lea rax, [rbx + rax]
mov eax, dword [rax + 0x88]
lea r14, [rax + rbx]
xor r13, r13
xor rdi, rdi
mov eax, dword [r14 + 0x20]
lea rax, [rax + rbx]
mov ecx, r13d
add ecx, ecx
add ecx, ecx
mov ecx, ecx
mov eax, dword [rax + rcx]
lea rax, [rax + rbx]
mov rcx, rax
mov rdx, rsi
call fcn.10000a56d
test al, al
je 0x10000a548
mov eax, r13d
add eax, eax
add eax, dword [r14 + 0x24]
mov eax, eax
movzx rax, word [rax + rbx]
and ax, 0xffff
movzx eax, ax
add eax, eax
add eax, eax
add eax, dword [r14 + 0x1c]
mov eax, eax
mov eax, dword [rax + rbx]
lea rdi, [rax + rbx]
add r13d, 1
test rdi, rdi
jne 0x10000a557
cmp r13d, dword [r14 + 0x18]
jne 0x10000a4f9
mov rax, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret
Function at 0x10000e778
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xf0
mov rsi, rcx
mov rdi, r9
lea rdx, [0x1000066d0]
lea rcx, [rsp + 0x20]
mov r9d, 1
mov r8d, 0xfd
call fcn.100018110
and qword [rsp + 0x60], 0
and qword [rsp + 0x70], 0
and dword [rsp + 0x80], 0
lea r11, [0x100005940]
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0x84]
mov qword [rsp + 0x58], r11
mov qword [rsp + 0x68], r11
call sub.msvcrt.dll_memset
mov r11d, 0x103
mov word [rsp + 0x24], r11w
lea eax, [r11 + 1]
test rdi, rdi
jne 0x10000e80d
mov ebx, 0x80070057
mov dword [rsp + 0x20], ebx
mov word [rsp + 0x26], ax
jmp 0x10000e945
and dword [rsp + 0x20], 0
lea rdx, [0x1000069d0]
lea rcx, [rsp + 0x68]
mov word [rsp + 0x24], ax
call fcn.10001bc3c
mov ebx, eax
mov dword [rsp + 0x20], eax
test eax, eax
mov eax, 0x106
js 0x10000e803
lea rdx, [0x1000060ec]
lea rcx, [rsp + 0x58]
mov r8, rdi
mov word [rsp + 0x24], ax
call fcn.10001b7bc
mov ebx, eax
mov dword [rsp + 0x20], eax
test eax, eax
mov eax, 0x108
js 0x10000e803
mov word [rsp + 0x24], ax
lea rax, [0x1000066e8]
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x68]
mov dword [rsp + 0x84], 0x540
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x58]
mov dword [rsp + 0x80], 0x70
mov qword [rsp + 0x88], rsi
mov dword [rsp + 0xb0], 1
mov qword [rsp + 0xa0], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x10000e941
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov dword [rsp + 0x20], ebx
mov rcx, qword [0x10001f120]
lea rax, [0x10001f120]
cmp rcx, rax
je 0x10000e916
bt dword [rcx + 0x1c], 9
jae 0x10000e916
mov rcx, qword [rcx + 0x10]
lea r8, [0x100005c60]
mov edx, 0xa
mov r9d, ebx
call fcn.10000e620
mov ebx, dword [rsp + 0x20]
cmp ebx, 0x800704c7
jne 0x10000e933
mov ebx, 1
mov eax, 0x11d
mov dword [rsp + 0x20], ebx
mov word [rsp + 0x24], ax
jmp 0x10000e945
mov eax, 0x121
test ebx, ebx
jns 0x10000e92c
jmp 0x10000e803
mov ebx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xe8]
test rcx, rcx
je 0x10000e965
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0xe8], 0
mov ebx, dword [rsp + 0x20]
lea rcx, [rsp + 0x68]
call fcn.10001ae2c
lea rcx, [rsp + 0x58]
call fcn.10001ae2c
lea rcx, [rsp + 0x20]
call fcn.100018228
lea r11, [rsp + 0xf0]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x10000e9a0
Capabilities:
Get file system object information

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x560
mov rax, qword [0x10001f110]
xor rax, rsp
mov qword [rsp + 0x550], rax
mov rdi, rdx
mov rbx, rcx
lea rdx, [0x1000066f8]
lea rcx, [rsp + 0x30]
mov r9d, 1
mov r8d, 0x142
call fcn.100018110
and qword [rsp + 0x70], 0
lea rcx, [rsp + 0x78]
xor edx, edx
mov r8d, 0x2b0
call sub.msvcrt.dll_memset
and dword [rsp + 0x330], 0
lea rcx, [rsp + 0x338]
xor edx, edx
mov r8d, 0x218
call sub.msvcrt.dll_memset
test rdi, rdi
je 0x10000ea20
and qword [rdi], 0
mov eax, 0x14c
test rbx, rbx
jne 0x10000ea3d
mov ebx, 0x80070057
mov dword [rsp + 0x30], ebx
mov word [rsp + 0x36], ax
jmp 0x10000ead0
mov word [rsp + 0x34], ax
mov eax, 0x14d
test rdi, rdi
je 0x10000ea2a
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
mov r9d, 0x2b8
xor edx, edx
mov rcx, rbx
mov word [rsp + 0x34], ax
mov dword [rsp + 0x20], 0x101
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
jne 0x10000eabe
lea r8, [rsp + 0x330]
lea ecx, [rax + 8]
mov edx, 0x101
mov dword [rsp + 0x330], 0x220
call qword [sym.imp.SHELL32.dll_SHGetStockIconInfo]
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
mov eax, 0x15a
jns 0x10000eaaf
mov ebx, 0x80004005
jmp 0x10000ea2f
mov word [rsp + 0x34], ax
mov rax, qword [rsp + 0x338]
jmp 0x10000eac7
mov rax, qword [rsp + 0x70]
mov ebx, dword [rsp + 0x30]
and qword [rsp + 0x70], 0
mov qword [rdi], rax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x10000eaea
call qword [sym.imp.USER32.dll_DestroyIcon]
and qword [rsp + 0x70], 0
mov ebx, dword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.100018228
mov eax, ebx
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.10001c400
mov rbx, qword [rsp + 0x580]
add rsp, 0x560
pop rdi
ret
Function at 0x10001383c
Capabilities:
Get disk information

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xe0
mov rax, qword [0x10001f110]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov rbx, rcx
mov r14d, 1
lea rdx, [0x100006b50]
lea rcx, [r11 - 0x80]
mov r8d, 0xa96
mov r9d, r14d
call fcn.100018110
lea r12, [rbx + 0x90]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdi, qword [rbx + 0x80]
test rdi, rdi
je 0x100013a28
mov r15d, 0x750
mov rbx, qword [rdi]
test rbx, rbx
je 0x10001393d
mov dword [rsp + 0x38], 0xa
lea rax, [rsp + 0xc0]
xor r9d, r9d
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x10001393d
lea rdx, [0x1000066b8]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x100013924
lea rdx, [0x1000066c8]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x10001393d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 2
sete cl
test ecx, ecx
jne 0x100013a11
mov rbx, qword [rdi]
test rbx, rbx
je 0x100013a15
lea rdx, [0x100007420]
lea rcx, [rsp + 0x50]
mov r9d, r14d
mov r8d, 0x73d
call fcn.100018110
and qword [rsp + 0x48], 0
and dword [rsp + 0x50], 0
mov eax, 0x74a
lea rdx, [rsp + 0x48]
mov rcx, rbx
mov dword [rsp + 0x40], r14d
mov ebp, r14d
mov word [rsp + 0x54], ax
call fcn.10001a15c
mov rsi, qword [rsp + 0x48]
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x1000139a2
mov word [rsp + 0x56], r15w
jmp 0x1000139ec
xor ebx, ebx
mov word [rsp + 0x54], r15w
cmp dword [rsi], ebx
jbe 0x1000139d5
lea rbp, [rsi + 8]
mov ecx, dword [rbp]
lea rdx, [rsp + 0x40]
call fcn.10001a86c
test eax, eax
js 0x1000139d5
cmp dword [rsp + 0x40], 0
jne 0x1000139d5
add ebx, r14d
add rbp, 0x18
cmp ebx, dword [rsi]
jb 0x1000139b2
xor ebp, ebp
cmp ebx, dword [rsi]
mov eax, 0x762
setne bpl
and dword [rsp + 0x50], 0
mov word [rsp + 0x54], ax
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ebx, dword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.100018228
test ebx, ebx
mov r11d, r14d
cmovns r11d, ebp
test r11d, r11d
jne 0x100013a15
xor eax, eax
jmp 0x100013a18
mov eax, r14d
mov dword [rdi + 0x30], eax
mov rdi, qword [rdi + 0x58]
test rdi, rdi
jne 0x1000138b0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [rsp + 0x88]
lea rcx, [rsp + 0x88]
call fcn.100018228
mov eax, ebx
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.10001c400
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1000179e8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rbx, r8
mov edi, 1
lea rdx, [0x1000070f0]
lea rcx, [rsp + 0x20]
mov r8d, 0x32d
mov r9d, edi
call fcn.100018110
mov dword [rsp + 0x80], edi
mov eax, 0x331
test rbx, rbx
je 0x100017a6c
and dword [rsp + 0x20], 0
lea r9d, [rdi + 1]
lea r8, [rsp + 0x80]
mov edx, 0x20001009
mov ecx, 0x400
mov dword [rbx], 0
mov word [rsp + 0x24], ax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [rsp + 0x80]
test eax, eax
cmove ecx, edi
mov dword [rbx], ecx
mov ebx, dword [rsp + 0x20]
mov dword [rsp + 0x80], ecx
jmp 0x100017a7a
mov ebx, 0x80070057
mov word [rsp + 0x26], ax
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0x20]
call fcn.100018228
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x1000197b4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov esi, r9d
mov r9d, 2
mov rdi, r8
mov rbx, rdx
mov rbp, rcx
lea r8d, [r9 + 0x1f]
lea rdx, [0x1000072a8]
lea rcx, [rsp + 0x38]
call fcn.100018110
and dword [rsp + 0x30], 0
and dword [rsp + 0xa0], 0
and dword [rsp + 0x98], 0
test rdi, rdi
je 0x100019807
mov dword [rdi], 0
mov eax, 0x2a
test rbx, rbx
jne 0x100019820
mov ebx, 0x80070057
mov word [rsp + 0x3e], ax
jmp 0x1000198f9
mov word [rsp + 0x3c], ax
mov eax, 0x2b
test rdi, rdi
je 0x100019811
and dword [rsp + 0x38], 0
mov word [rsp + 0x3c], ax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea r9, [rsp + 0xa0]
xor r8d, r8d
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x98], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x100019883
cmp eax, 2
jne 0x100019883
lea ebx, [rax - 1]
lea eax, [rbx + 0x30]
jmp 0x1000198f4
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x34
mov dword [rsp + 0x38], ebx
test ebx, ebx
jns 0x1000198ad
mov word [rsp + 0x3e], ax
mov dword [rsp + 0x40], 1
jmp 0x1000198fd
cmp dword [rsp + 0xa0], 4
mov word [rsp + 0x3c], ax
mov eax, 0x36
je 0x1000198cb
mov ebx, 0x8007065d
jmp 0x100019816
cmp dword [rsp + 0x98], 4
mov word [rsp + 0x3c], ax
je 0x1000198e9
mov ebx, 0x80004005
mov eax, 0x37
jmp 0x100019816
mov eax, dword [rsp + 0x30]
xor ebx, ebx
mov dword [rdi], eax
lea eax, [rbx + 0x3b]
mov word [rsp + 0x3c], ax
mov dword [rsp + 0x38], ebx
lea rcx, [rsp + 0x38]
call fcn.100018228
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x10001a01c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x10001f110]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbx, rcx
lea rdx, [0x1000073e8]
lea rcx, [rsp + 0x20]
mov r9d, 1
mov r8d, 0x393
call fcn.100018110
lea rcx, [rsp + 0x62]
xor edi, edi
xor edx, edx
mov r8d, 0x208
mov word [rsp + 0x60], di
call sub.msvcrt.dll_memset
cmp rbx, rdi
jne 0x10001a091
mov ebx, 0x80070057
mov eax, 0x398
mov dword [rsp + 0x20], ebx
mov word [rsp + 0x26], ax
jmp 0x10001a126
mov eax, 0x399
lea rdx, [rsp + 0x60]
lea rcx, [0x100007400]
mov r8d, 0x105
mov dword [rsp + 0x20], edi
mov word [rbx], di
mov word [rsp + 0x24], ax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r11d, eax
cmp eax, edi
jne 0x10001a0d3
call fcn.100019734
mov ebx, eax
mov dword [rsp + 0x20], eax
mov eax, 0x3a2
jmp 0x10001a087
mov eax, 0x3a2
mov word [rsp + 0x24], ax
mov eax, 0x3a3
cmp r11d, 0x105
jbe 0x10001a0f2
mov ebx, 0x8007007a
jmp 0x10001a083
lea rcx, [rsp + 0x60]
mov r8d, 0x105
mov rdx, rbx
mov dword [rsp + 0x20], edi
mov word [rsp + 0x24], ax
call fcn.100019cf8
mov ebx, eax
mov dword [rsp + 0x20], eax
cmp eax, edi
mov eax, 0x3a5
jl 0x10001a087
mov word [rsp + 0x24], ax
lea rcx, [rsp + 0x20]
call fcn.100018228
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.10001c400
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rdi
ret
Function at 0x10001bc3c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
mov rbx, rcx
cmp dword [rcx + 8], esi
je 0x10001bc61
mov rax, qword [rcx]
mov dword [rcx + 8], esi
mov word [rax], si
cmp rdx, rsi
jne 0x10001bc6d
mov edx, 0x80070057
jmp 0x10001bcd4
mov r8d, dword [rcx + 0xc]
mov rdx, qword [rcx]
jmp 0x10001bca2
cmp r11d, dword [rbx + 0xc]
jbe 0x10001bce6
cmp dword [rbx + 8], esi
je 0x10001bc8a
mov rax, qword [rbx]
mov dword [rbx + 8], esi
mov word [rax], si
mov edx, r11d
mov rcx, rbx
call fcn.10001b090
cmp eax, esi
mov edx, eax
jl 0x10001bcd4
mov r8d, dword [rbx + 0xc]
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r11d, eax
cmp eax, esi
jne 0x10001bc76
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
or edx, 0x80070000
cmp eax, esi
cmovle edx, eax
cmp dword [rbx + 8], esi
je 0x10001bcd4
mov rax, qword [rbx]
mov dword [rbx + 8], esi
mov word [rax], si
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, edx
add rsp, 0x20
pop rdi
ret
lea eax, [r11 - 1]
mov edx, esi
cmp eax, dword [rbx + 0xc]
ja 0x10001bc66
mov dword [rbx + 8], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], si
jmp 0x10001bcd4

Function at 0x10001c400
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x10001f110]
jne 0x10001c41b
rol rcx, 0x10
test cx, 0xffff
jne 0x10001c417
ret 0
ror rcx, 0x10
jmp 0x10001c73c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1000204f0]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov r11, qword [0x1000205e8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.ntdll.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x10001c7c1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1000204f0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.ntdll.dll_RtlVirtualUnwind
jmp 0x10001c7e3
mov rax, qword [rsp + 0x88]
mov qword [0x1000205e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100020588], rax
mov rax, qword [0x1000205e8]
mov qword [0x100020460], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100020570], rax
mov dword [0x100020450], 0xc0000409
mov dword [0x100020454], 1
mov rax, qword [0x10001f110]
mov qword [rsp + 0x68], rax
mov rax, qword [0x10001f118]
mov qword [rsp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x100001720]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x10001c5d8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10001c625
cmp rcx, 0xffffffffffffffff
je 0x10001c625
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10001c61d
cmp dword [rcx + 0x3c], edx
jl 0x10001c61d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10001c61d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x10001c625
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400023b0
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 0x14000248a
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 0x14000248d
mov edx, r12d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [rax - 1]
cmp word [rbp + rcx*2], 0x5c
je 0x14000243c
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 0x14000248a
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 0x140002460
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 0x140002670
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 0x1400026d2
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400026c7
cmp edi, eax
jb 0x1400026c7
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 0x1400039d0
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 [0x14014b1e0]
xor esi, esi
mov rdi, r8
mov r12, rdx
mov ebp, ecx
test rax, rax
jne 0x140003a19
lea rcx, str.Setupapi.dll
xor edx, edx
call fcn.140002e60
mov qword [0x14014b1e0], rax
test rax, rax
je 0x140003af6
cmp qword [0x14014b1e8], rsi
jne 0x140003a49
lea rdx, str.SetupDiGetClassDevsW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14014b1e8], rax
test rax, rax
je 0x140003af6
mov rax, qword [0x14014b1e0]
cmp qword [0x14014b1f0], rsi
jne 0x140003a79
lea rdx, [0x1400eab20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14014b1f0], rax
test rax, rax
je 0x140003af6
mov rax, qword [0x14014b1e0]
cmp qword [0x14014b200], rsi
jne 0x140003aa5
lea rdx, str.SetupDiGetDeviceRegistryPropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14014b200], rax
test rax, rax
je 0x140003af6
mov rax, qword [0x14014b1e0]
cmp qword [0x14014b1f8], rsi
jne 0x140003ad1
lea rdx, str.SetupDiGetDeviceInterfaceDetailW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14014b1f8], rax
test rax, rax
je 0x140003af6
mov rax, qword [0x14014b1e0]
cmp qword [0x14014b210], rsi
jne 0x140003afd
lea rdx, [0x1400eaab0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14014b210], rax
test rax, rax
jne 0x140003afd
xor eax, eax
jmp 0x140003b9d
mov r9d, 6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x30], rbx
call qword [0x14014b1e8]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140003b96
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 [0x14014b1f0]
test eax, eax
je 0x140003b8d
nop word [rax + rax]
mov r8, rdi
mov rdx, rbx
mov ecx, ebp
call fcn.140002850
cmp eax, 1
je 0x140003bb3
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 [0x14014b1f0]
test eax, eax
jne 0x140003b50
mov rcx, rbx
call qword [0x14014b210]
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 0x140003b98