joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001504c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x40
mov rsi, r8
mov rbp, rdx
test r8, r8
je 0x10001525b
test rdx, rdx
je 0x10001525b
mov r12d, 0x208
mov rcx, r12
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rdi, rax
test rax, rax
jne 0x1000150c8
mov rcx, qword [0x100023120]
lea rax, [0x100023120]
cmp rcx, rax
je 0x1000150be
test byte [rcx + 0x1c], 1
je 0x1000150be
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x40]
lea r8, [0x1000018f0]
call fcn.100004898
mov ebx, 0x8007000e
jmp 0x100015257
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x1c]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
test eax, eax
jns 0x100015110
mov rcx, qword [0x100023120]
lea rax, [0x100023120]
cmp rcx, rax
je 0x10001524f
test byte [rcx + 0x1c], 1
je 0x10001524f
mov edx, 0x41
jmp 0x10001523b
mov rcx, r12
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rsi], rax
test rax, rax
jne 0x10001514b
mov rcx, qword [0x100023120]
lea rax, [0x100023120]
cmp rcx, rax
je 0x1000151f4
test byte [rcx + 0x1c], 1
je 0x1000151f4
mov edx, 0x42
jmp 0x1000151e4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rsi]
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], eax
lea r14, [0x1000032e0]
lea r8, [0x100003310]
mov r9, rdi
mov edx, 0x104
mov qword [rsp + 0x20], r14
call fcn.10000b314
mov ebx, eax
test eax, eax
jns 0x1000151b5
mov rcx, qword [0x100023120]
lea rax, [0x100023120]
cmp rcx, rax
je 0x10001524f
test byte [rcx + 0x1c], 1
je 0x10001524f
mov edx, 0x43
jmp 0x10001523b
mov rcx, r12
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rbp], rax
test rax, rax
jne 0x1000151fb
mov rcx, qword [0x100023120]
lea rax, [0x100023120]
cmp rcx, rax
je 0x1000151f4
test byte [rcx + 0x1c], 1
je 0x1000151f4
mov edx, 0x44
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000018f0]
call fcn.100004898
mov ebx, 0x8007000e
jmp 0x10001524f
lea r8, [0x100002ad0]
mov r9, rdi
mov edx, 0x104
mov rcx, rax
mov qword [rsp + 0x20], r14
call fcn.10000b314
mov ebx, eax
test eax, eax
jns 0x10001524d
mov rcx, qword [0x100023120]
lea rax, [0x100023120]
cmp rcx, rax
je 0x10001524f
test byte [rcx + 0x1c], 1
je 0x10001524f
mov edx, 0x45
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000018f0]
call fcn.100004898
jmp 0x10001524f
xor ebx, ebx
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, ebx
jmp 0x10001528e
mov rcx, qword [0x100023120]
lea rax, [0x100023120]
cmp rcx, rax
je 0x100015289
test byte [rcx + 0x1c], 1
je 0x100015289
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000018f0]
mov edx, 0x3f
call fcn.100004898
mov eax, 0x80070057
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop r12
pop rdi
ret
Function at 0x100016f78
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x100023110]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
mov edx, 0x40
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x100016fd1
cmp eax, 0x40
ja 0x100016fd1
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.10001627c
test eax, eax
js 0x100016ff1
lea rdx, [0x1000019ec]
mov rcx, rbx
call fcn.1000164fc
jmp 0x100016ff1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.10001e7a0
add rsp, 0xb0
pop rbx
ret

Function at 0x100017010
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x100023110]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, rcx
test edx, edx
lea rcx, [rsp + 0x20]
mov edx, 0x40
je 0x100017044
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x10001704a
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100017075
cmp eax, 0x40
ja 0x100017075
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.10001627c
test eax, eax
js 0x100017095
lea rdx, [0x1000019ec]
mov rcx, rbx
call fcn.1000164fc
jmp 0x100017095
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.10001e7a0
add rsp, 0xb0
pop rbx
ret

Function at 0x10001754c
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x80
mov rax, qword [0x100023110]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
lea rax, [r11 - 0x20]
lea rcx, [r11 - 0x18]
mov qword [r11 - 0x38], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
lea r8d, [rbx + 0x12]
xor r9d, r9d
mov dl, 1
mov dword [rsp + 0x28], ebx
mov byte [rsp + 0x70], bl
mov byte [rsp + 0x71], bl
mov byte [rsp + 0x72], bl
mov dword [rsp + 0x20], ebx
mov byte [rsp + 0x73], bl
mov byte [rsp + 0x74], bl
mov byte [rsp + 0x75], 5
mov qword [r11 - 0x20], rbx
mov dword [rsp + 0x60], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
jne 0x1000175de
mov rcx, qword [0x100023120]
lea rax, [0x100023120]
cmp rcx, rax
je 0x100017622
test byte [rcx + 0x1c], 1
je 0x100017622
lea edx, [rbx + 0x2f]
jmp 0x100017612
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp eax, ebx
jne 0x100017622
mov rcx, qword [0x100023120]
lea rax, [0x100023120]
cmp rcx, rax
je 0x100017622
test byte [rcx + 0x1c], 1
je 0x100017622
mov edx, 0x30
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001888]
call fcn.100004898
mov rcx, qword [rsp + 0x68]
cmp rcx, rbx
je 0x100017632
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.10001e7a0
add rsp, 0x80
pop rbx
ret
Function at 0x100017654
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x100023110]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edi, edi
lea rax, [r11 - 0x30]
lea rcx, [r11 - 0x20]
mov qword [r11 - 0x48], rax
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
lea r8d, [rdi + 4]
xor r9d, r9d
mov dl, 1
mov dword [rsp + 0x28], edi
mov byte [rsp + 0x78], dil
mov byte [rsp + 0x79], dil
mov byte [rsp + 0x7a], dil
mov dword [rsp + 0x20], edi
mov byte [rsp + 0x7b], dil
mov byte [rsp + 0x7c], dil
mov byte [rsp + 0x7d], 5
mov qword [r11 - 0x30], rdi
mov dword [rsp + 0x60], edi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, edi
jne 0x1000176f2
mov rcx, qword [0x100023120]
lea rax, [0x100023120]
cmp rcx, rax
je 0x100017747
test byte [rcx + 0x1c], 1
je 0x100017747
lea edx, [rdi + 0x31]
jmp 0x100017726
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
cmp eax, edi
jne 0x100017738
mov rcx, qword [0x100023120]
lea rax, [0x100023120]
cmp rcx, rax
je 0x100017747
test byte [rcx + 0x1c], 1
je 0x100017747
mov edx, 0x32
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001888]
call fcn.100004898
jmp 0x100017747
cmp dword [rsp + 0x60], edi
je 0x100017751
call fcn.10001722c
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], edi
jne 0x1000177e0
call fcn.10001754c
cmp eax, edi
je 0x100017787
call fcn.10001722c
cmp eax, edi
je 0x100017787
lea r8, [0x1000033d0]
xor edx, edx
mov ecx, 0x1f0001
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp rax, rdi
je 0x100017787
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000177d2
lea rax, [rsp + 0x70]
lea rdx, [0x1000035b0]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x70]
mov ebx, eax
cmp rcx, rdi
je 0x1000177c5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
jne 0x1000177dc
call fcn.10001722c
cmp eax, edi
je 0x1000177dc
mov dword [rsp + 0x60], 1
jmp 0x1000177e0
mov dword [rsp + 0x60], edi
mov rcx, qword [rsp + 0x68]
cmp rcx, rdi
je 0x1000177f0
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.10001e7a0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
Function at 0x100017f9c
Capabilities:
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rdi, rcx
and qword [rax - 0x20], 0
and dword [rax - 0x14], 0
and dword [rax - 0x18], 0
lea rdx, [rax - 0x20]
call fcn.10001ad30
test eax, eax
jns 0x10001800f
lea rax, [0x100023120]
mov rcx, qword [0x100023120]
cmp rcx, rax
je 0x100017ff9
test byte [rcx + 0x1c], 1
je 0x100017ff9
mov edx, 0x59
lea r8, [0x100001888]
mov rcx, qword [rcx + 0x10]
call fcn.100004898
nop
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.1000170b4
xor eax, eax
jmp 0x1000180cd
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r11d, eax
test al, 0x10
jne 0x100018085
cmp eax, 0xffffffff
je 0x100018085
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov r8d, 3
mov dword [rsp + 0x20], r8d
xor r9d, r9d
lea edx, [r8 - 2]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x100018065
lea edx, [rax + 2]
lea rcx, [rsp + 0x48]
call fcn.1000170b4
xor eax, eax
jmp 0x1000180cd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.1000170b4
mov eax, 1
jmp 0x1000180cd
lea rax, [0x100023120]
mov rcx, qword [0x100023120]
cmp rcx, rax
je 0x1000180bc
test byte [rcx + 0x1c], 1
je 0x1000180bc
mov edx, 0x5a
mov dword [rsp + 0x20], r11d
mov r9, rdi
lea r8, [0x100001888]
mov rcx, qword [rcx + 0x10]
call fcn.100005088
nop
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.1000170b4
xor eax, eax
add rsp, 0x60
pop rdi
ret
Function at 0x100019764
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x260
mov rax, qword [0x100023110]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
mov r12d, 0x200
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_memset
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9, r12
lea r8, [rsp + 0x50]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp eax, ebx
je 0x100019803
cmp qword [rsp + 0x38], r12
jne 0x100019803
lea r9, [rsp + 0x40]
mov r8, r12
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlImageNtHeaderEx]
cmp eax, ebx
jl 0x100019801
mov rax, qword [rsp + 0x40]
cmp rax, rbx
je 0x100019801
mov ebx, dword [rax + 8]
mov dword [rsp + 0x30], ebx
jmp 0x10001980d
xor eax, eax
jmp 0x10001980f
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.10001e7a0
mov rbx, qword [rsp + 0x290]
add rsp, 0x260
pop r12
pop rdi
pop rsi
ret

Function at 0x10001983c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbx, qword [rsp + 0x80]
mov esi, r9d
mov rbp, r8
mov rdi, rcx
mov dword [rax + 0x20], r9d
mov dword [rax + 8], 4
mov qword [rax + 0x10], rcx
test rbx, rbx
je 0x100019872
and dword [rbx], 0
lea rax, [rsp + 0x68]
mov r9d, 0x101
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000198c3
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov r9d, 0x10
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x78]
mov r8, rbp
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x1000198d7
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x1000198dd
jmp 0x1000198d9
xor ecx, ecx
test ecx, ecx
jns 0x1000198ec
mov dword [rsp + 0x78], esi
test rbx, rbx
je 0x1000198ec
mov dword [rbx], 1
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x100019901
cmp rcx, rdi
je 0x100019901
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x100019918
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push r14
sub rsp, 0x50
and dword [rax + 8], 0
cmp qword [rsp + 0x80], 0
mov r14, 0xffffffff80000001
mov qword [rax - 0x18], r14
mov rbp, r8
mov ebx, 0x80004005
jne 0x10001995d
mov eax, 0x80070057
jmp 0x100019b65
lea rax, [rsp + 0x40]
lea rdx, [0x1000031f0]
mov r9d, 0x101
xor r8d, r8d
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r11d, eax
test eax, eax
je 0x1000199db
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
test eax, eax
cmovns eax, ebx
mov ebx, eax
mov rcx, qword [0x100023120]
lea rax, [0x100023120]
cmp rcx, rax
je 0x100019b4e
test byte [rcx + 0x1c], 1
je 0x100019b4e
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001888]
mov edx, 0xba
mov r9d, ebx
call fcn.1000048bc
jmp 0x100019b4e
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov r9d, 2
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov r8, rbp
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov r11d, eax
test eax, eax
je 0x100019a29
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
test eax, eax
cmovns eax, ebx
mov ebx, eax
jmp 0x100019b4e
mov ecx, dword [rsp + 0x60]
mov eax, 2
shr rcx, 1
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rdi, rax
test rax, rax
jne 0x100019a8e
mov rcx, qword [0x100023120]
lea rax, [0x100023120]
cmp rcx, rax
je 0x100019b41
test byte [rcx + 0x1c], 1
je 0x100019b41
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001888]
mov edx, 0xbb
call fcn.100004898
jmp 0x100019b41
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov r9d, 2
mov qword [rsp + 0x30], rax
mov r8, rbp
xor edx, edx
mov qword [rsp + 0x28], rdi
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov r11d, eax
test eax, eax
je 0x100019af6
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
test eax, eax
cmovns eax, ebx
mov ebx, eax
mov rcx, qword [0x100023120]
lea rax, [0x100023120]
cmp rcx, rax
je 0x100019b41
test byte [rcx + 0x1c], 1
je 0x100019b41
mov edx, 0xbc
jmp 0x100019b2a
mov rcx, qword [rsp + 0x80]
mov rdx, rdi
call fcn.10001627c
mov ebx, eax
test eax, eax
jns 0x100019b3f
mov rcx, qword [0x100023120]
lea rax, [0x100023120]
cmp rcx, rax
je 0x100019b41
test byte [rcx + 0x1c], 1
je 0x100019b41
mov edx, 0xbd
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001888]
mov r9d, ebx
call fcn.1000048bc
jmp 0x100019b41
xor ebx, ebx
test rdi, rdi
je 0x100019b4e
mov rcx, rdi
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x100019b63
cmp rcx, r14
je 0x100019b63
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x10001a2d4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], r9
push rdi
sub rsp, 0x40
mov rbx, qword [rsp + 0x70]
and qword [rax + 0x10], 0
mov rdi, rcx
mov dword [rax + 0x20], 8
mov qword [rax + 8], rcx
test rbx, rbx
je 0x10001a304
and dword [rbx], 0
lea rax, [rsp + 0x50]
mov r9d, 0x101
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10001a359
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
lea r8, [0x100002aa8]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov r9d, 0x40
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x10001a36d
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x10001a373
jmp 0x10001a36f
xor ecx, ecx
test ecx, ecx
jns 0x10001a384
and qword [rsp + 0x58], 0
test rbx, rbx
je 0x10001a384
mov dword [rbx], 1
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x10001a399
cmp rcx, rdi
je 0x10001a399
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x10001a854
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rsp + 0x50], 0
mov rsi, rdx
mov rdi, rcx
call fcn.10001aa44
xor ebx, ebx
cmp qword [rdi], 0xffffffffffffffff
jne 0x10001a8df
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
jne 0x10001a8df
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x10001a8c3
cmp eax, 0x21
je 0x10001a8c3
cmp eax, 0x36
jne 0x10001a8d5
mov ecx, 0xfa
inc ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 5
jb 0x10001a875
cmp qword [rdi], 0xffffffffffffffff
je 0x10001a9ff
mov rcx, qword [rdi]
test rcx, rcx
je 0x10001a9ff
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rdi + 0x18], eax
cmp eax, 0xffffffff
jne 0x10001a963
mov rcx, qword [0x100023120]
lea rax, [0x100023120]
cmp rcx, rax
je 0x10001a92c
test byte [rcx + 0x1c], 1
je 0x10001a92c
mov edx, 0xb
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001878]
call fcn.100004898
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x10001a949
mov ebx, 0x80004005
mov rcx, rdi
call fcn.10001aa44
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi]
and qword [rsp + 0x28], 0
xor r9d, r9d
lea r8d, [r9 + 8]
xor edx, edx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rdi + 8], rax
test rax, rax
jne 0x10001a9ab
mov rcx, qword [0x100023120]
lea rax, [0x100023120]
cmp rcx, rax
je 0x10001a92c
test byte [rcx + 0x1c], 1
je 0x10001a92c
mov edx, 0xc
jmp 0x10001a91c
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x10001a9f8
mov rcx, qword [0x100023120]
lea rax, [0x100023120]
cmp rcx, rax
je 0x10001a92c
test byte [rcx + 0x1c], 1
je 0x10001a92c
mov edx, 0xd
jmp 0x10001a91c
xor ebx, ebx
jmp 0x10001a951
mov rcx, qword [0x100023120]
lea rax, [0x100023120]
cmp rcx, rax
je 0x10001a92c
test byte [rcx + 0x1c], 1
je 0x10001a92c
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001878]
mov edx, 0xa
mov r9, rsi
call fcn.100005008
jmp 0x10001a92c
Function at 0x10001ad30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x10001ae9b
test rdx, rdx
je 0x10001ae9b
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r12d, eax
mov dword [rsp + 0x70], r12d
and qword [rsp + 0x78], 0
mov eax, 2
mul r12
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rbx, rax
mov qword [rsp + 0x78], rax
jmp 0x10001adb6
test rbx, rbx
jne 0x10001adf4
lea rax, [0x100023120]
mov rcx, qword [0x100023120]
cmp rcx, rax
je 0x10001adea
test byte [rcx + 0x1c], 1
je 0x10001adea
lea edx, [rbx + 0xb]
mov r9d, r12d
lea r8, [0x100001858]
mov rcx, qword [rcx + 0x10]
call fcn.1000048bc
mov edi, 0x8007000e
jmp 0x10001ae97
mov r8d, r12d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x10001ae65
lea rax, [0x100023120]
mov rcx, qword [0x100023120]
cmp rcx, rax
je 0x10001ae45
test byte [rcx + 0x1c], 1
je 0x10001ae45
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov edx, 0xc
lea r8, [0x100001858]
mov rcx, qword [0x100023120]
mov rcx, qword [rcx + 0x10]
call fcn.1000048bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
jmp 0x10001ae8a
mov edx, 1
mov rcx, rsi
call fcn.1000170b4
mov qword [rsi], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rsi + 0xc], eax
inc eax
mov dword [rsi + 8], eax
xor ebx, ebx
xor edi, edi
test rbx, rbx
je 0x10001ae97
mov rcx, rbx
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
mov eax, edi
jmp 0x10001aece
lea rax, [0x100023120]
mov rcx, qword [0x100023120]
cmp rcx, rax
je 0x10001aec9
test byte [rcx + 0x1c], 1
je 0x10001aec9
mov edx, 0xa
lea r8, [0x100001858]
mov rcx, qword [rcx + 0x10]
call fcn.100004898
mov eax, 0x80070057
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x10001b170
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rdi, rdx
mov rsi, rcx
and qword [rax - 0x20], 0
and dword [rax - 0x14], 0
and dword [rax - 0x18], 0
test rcx, rcx
je 0x10001b2d4
test rdx, rdx
je 0x10001b2d4
mov rcx, rdx
call fcn.10001aee0
test rax, rax
je 0x10001b28a
cmp rax, rdi
je 0x10001b28a
sub rax, rdi
sar rax, 1
lea r8, [rax - 1]
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.100016100
mov ebx, eax
test eax, eax
jns 0x10001b223
lea rax, [0x100023120]
mov rcx, qword [0x100023120]
cmp rcx, rax
je 0x10001b2c1
test byte [rcx + 0x1c], 1
je 0x10001b2c1
mov edx, 0xc
mov r9d, ebx
lea r8, [0x100001848]
mov rcx, qword [rcx + 0x10]
call fcn.1000048bc
jmp 0x10001b2c1
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x10001b286
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
lea rax, [0x100023120]
mov rcx, qword [0x100023120]
cmp rcx, rax
je 0x10001b2c1
test byte [rcx + 0x1c], 1
je 0x10001b2c1
mov edx, 0xd
mov r9d, ebx
lea r8, [0x100001848]
mov rcx, qword [rcx + 0x10]
call fcn.1000048bc
jmp 0x10001b2c1
xor ebx, ebx
jmp 0x10001b2c1
mov ebx, 0x80070057
lea rax, [0x100023120]
mov rcx, qword [0x100023120]
cmp rcx, rax
je 0x10001b2c1
test byte [rcx + 0x1c], 2
je 0x10001b2c1
mov edx, 0xb
mov r9, rdi
lea r8, [0x100001848]
mov rcx, qword [rcx + 0x10]
call fcn.100005008
nop
mov edx, 1
lea rcx, [rsp + 0x28]
call fcn.1000170b4
mov eax, ebx
jmp 0x10001b317
lea rax, [0x100023120]
mov rcx, qword [0x100023120]
cmp rcx, rax
je 0x10001b303
test byte [rcx + 0x1c], 1
je 0x10001b303
mov edx, 0xa
lea r8, [0x100001848]
mov rcx, qword [rcx + 0x10]
call fcn.100004898
nop
mov edx, 1
lea rcx, [rsp + 0x28]
call fcn.1000170b4
mov eax, 0x80070057
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret