joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d8f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140056070]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
lea ecx, [rsi + 0x20]
call fcn.140016960
mov qword [rax], rsi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
movups xmm0, xmmword [rbx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rax + 0x10], xmm1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], setsockopt
mov byte [rbx], sil
mov qword [rsp + 0x30], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x140014170]
xor edx, edx
xor ecx, ecx
call fcn.1400211e4
mov qword [rdi], rax
test rax, rax
je 0x14000d993
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140016940
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], esi
mov ecx, 6
call fcn.140015394
int3

Function at 0x1400175a8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400175f2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400175f2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400175f2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400175f2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400175f2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400175f4
xor al, al
add rsp, 0x28
ret

Function at 0x140027fb0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140027ddc
Function at 0x140008c34
Capabilities:
Check if file exists

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 - 0x168]
sub rsp, 0x250
mov rax, qword [0x1400be278]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x30]
mov qword [r8], r15
lea rdx, [rsp + 0x30]
sub rcx, rax
mov r14, r8
mov r9d, 0x104
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x140008ca5
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140008ca5
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x140008c83
test r9, r9
lea rax, [rdx - 2]
lea r8, [0x1400880c0]
cmovne rax, rdx
lea rcx, [rsp + 0x30]
mov word [rax], r15w
call fcn.1400073e8
mov ebx, 0x1f0003
lea r8, [rsp + 0x30]
mov ecx, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x140008d08
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140008dc4
mov edx, 0xc8
mov rcx, qword [rbp + 0x168]
call fcn.140008a28
mov esi, eax
jmp 0x140008dc7
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.140008af0
mov esi, eax
test eax, eax
jns 0x140008d3e
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xce
call fcn.1400089ec
jmp 0x140008dc7
lea r8, [0x1400880c8]
lea rcx, [rsp + 0x30]
call fcn.1400073e8
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x140008d6d
mov edx, 0xd4
jmp 0x140008cf5
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140008af0
mov esi, eax
test eax, eax
jns 0x140008da3
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd6
call fcn.1400089ec
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140008e19
jmp 0x140008dc7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140008e2b
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
mov esi, r15d
test rdi, rdi
je 0x140008dd9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x140008e07
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140067150
lea r11, [rsp + 0x250]
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
mov rcx, qword [rbp + 0x168]
mov edx, 0x90e
call fcn.140008a48
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x90e
call fcn.140008a48
int3
mov rcx, qword [rbp + 0x168]
mov edx, 0x90e
call fcn.140008a48
int3
Function at 0x140028a10
Capabilities:
Get token membership

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xd0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x1400be278]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0x220
mov r9d, 0x20
lea r8d, [r9 - 0x1e]
lea rdx, [0x14008a8f8]
lea rcx, [rsp + 0x40]
call fcn.140004b4c
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x48]
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x140028a85
cmp dword [rsp + 0x34], 0
setne bl
xor dil, dil
jmp 0x140028a8c
mov dil, 1
mov bl, byte [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140004cf8
test dil, dil
je 0x140028a9f
xor al, al
jmp 0x140028aa5
mov al, bl
jmp 0x140028aa5
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140067150
mov rbx, qword [rsp + 0xe8]
add rsp, 0xd0
pop rdi
ret

Function at 0x140028d10
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
mov rdi, rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
xor ebx, ebx
mov qword [rbp - 8], rbx
mov edx, 0x104
lea rcx, [rbp - 0x18]
call fcn.1400386b8
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
sub rdx, rcx
sar rdx, 1
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
test eax, eax
jne 0x140028db6
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140028da4
mov rdx, qword [rbp - 8]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
cmp rdx, 0x1000
mov rax, rcx
jb 0x140028d9f
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140028e58
call fcn.1400674a4
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
mov r8, qword [rbp - 0x10]
mov rax, r8
mov rcx, qword [rbp - 0x18]
sub rax, rcx
sar rax, 1
cmp rdx, rax
jbe 0x140028df3
lea rcx, [rbp - 0x18]
call fcn.1400386b8
mov rdx, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
sub rdx, rcx
sar rdx, 1
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov r8, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
test edx, edx
je 0x140028e53
sub r8, rcx
sar r8, 1
mov eax, edx
cmp rax, r8
ja 0x140028e53
mov rdx, rcx
mov rcx, rdi
call fcn.140003c94
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140028e4c
mov rdx, qword [rbp - 8]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028e47
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140028e58
call fcn.1400674a4
mov bl, 1
jmp 0x140028da4
jmp 0x140028d68
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14003f974
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x198
mov rax, qword [0x1400be278]
xor rax, rsp
mov qword [rsp + 0x180], rax
cmp dword [0x1400bf2e0], 0
je 0x14003f9a1
mov eax, dword [0x1400bf2dc]
jmp 0x14003fa22
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x11c
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x30]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x30]
mov r9b, byte [rsp + 0x17a]
mov edx, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x64]
mov r8d, dword [rsp + 0x70]
mov word [rsp + 0x28], ax
movzx eax, word [rsp + 0x178]
mov word [rsp + 0x20], ax
call fcn.14003fa40
mov dword [0x1400bf2dc], eax
mov dword [0x1400bf2e0], 1
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140067150
add rsp, 0x198
ret

Function at 0x140040988
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov r14, r8
mov rdi, rdx
mov rsi, rcx
and dword [rbp - 0x30], 0
and dword [rbp + 0x38], 0
cmp qword [rdx + 0x18], 8
jb 0x1400409c1
mov rdx, qword [rdx]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x30]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140040a9a
mov ecx, dword [rbp + 0x38]
test ecx, ecx
je 0x140040a95
mov eax, dword [rbp - 0x30]
dec eax
cmp eax, 1
ja 0x140040a95
mov byte [rbp + 0x28], 0
lea rdx, [rcx + 2]
lea r8, [rbp + 0x28]
lea rcx, [rbp - 0x20]
call fcn.140040bf8
nop
cmp qword [rdi + 0x18], 8
jb 0x140040a1e
mov rdi, qword [rdi]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov rbx, qword [rbp - 0x20]
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x30]
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140040a55
mov rdx, rbx
mov rcx, r14
call fcn.140003c94
nop
test rbx, rbx
je 0x140040a91
mov rdx, qword [rbp - 0x10]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x140040a89
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040a89
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400674a4
mov eax, edi
jmp 0x140040a9a
mov eax, 0x65e
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140040ab8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
and dword [r9], 0
mov rdi, r9
cmp qword [rdx + 0x18], 8
mov rbx, r8
jb 0x140040adb
mov rdx, qword [rdx]
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140040b84
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
call fcn.140067178
movups xmm0, xmmword [rsp + 0x30]
lea rcx, vtable.appv::utility::scope_guard_func_impl_class_std::_Binder_struct_std::_Unforced__long_int____cdecl___struct_HKEY______ptr64___struct_HKEY______ptr64____ptr64__.0
mov qword [rsp + 0x68], rax
movdqu xmmword [rax + 8], xmm0
mov qword [rax], rcx
cmp qword [rbx + 0x18], 8
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x70], 4
jb 0x140040b53
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rcx, [rsp + 0x58]
mov ebx, eax
call fcn.1400065e4
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140041614
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400be278]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rdi, rcx
xor r14d, r14d
mov esi, r14d
mov dword [rsp + 0x20], r14d
call fcn.14003f974
and eax, 0xffff0000
cmp eax, 0x800000
jl 0x1400416c3
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], r14w
lea rdx, str.API_MS_WIN
lea rcx, [rsp + 0x30]
call fcn.140003c94
lea esi, [r14 + 1]
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400416b1
mov rcx, qword [rdi]
mov r8, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsnicmp]
test eax, eax
mov bl, sil
je 0x1400416c6
mov bl, r14b
test sil, 1
je 0x1400416d6
lea rcx, [rsp + 0x30]
call fcn.140003c2c
test bl, bl
je 0x140041775
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400416fa
mov rcx, qword [rdi]
lea rdx, [rsp + 0x30]
call fcn.140041490
mov rsi, rax
mov rbx, r14
test rax, rax
je 0x140041801
lea rdx, str.API_MS_WIN_CORE_PROCESSTHREADS_L1_1_0.DLL
mov rdx, qword [rbx + rdx]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__stricmp]
test eax, eax
je 0x1400417f5
add rbx, 8
cmp rbx, 0x30
jb 0x140041713
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140041775
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041770
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041834
call fcn.1400674a4
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x103
ja 0x140041845
movdqa xmm0, xmmword [0x140098cc0]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], r14w
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.140003c94
nop
mov r8, rdi
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140041bd0
cmp qword [rax + 0x18], 8
jb 0x1400417d2
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
lea rcx, [rsp + 0x50]
call fcn.140003c2c
nop
lea rcx, [rsp + 0x30]
call fcn.140003c2c
jmp 0x140041840
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140041840
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004183b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004183b
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400674a4
mov rax, rbx
jmp 0x140041847
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140067150
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140042270
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x40
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rsi, rdx
mov rdi, rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x14004229f
mov rcx, qword [rdx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ebx, [rax + 1]
xor ebp, ebp
mov word [rsp + 0x58], bp
mov edx, ebx
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0x28]
call fcn.140040c74
nop
cmp qword [rsi + 0x18], 8
jb 0x1400422d0
mov rsi, qword [rsi]
mov r8d, ebx
mov rbx, qword [rsp + 0x28]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], 7
mov word [rdi], bp
test eax, eax
je 0x14004230e
lea rdx, [0x14008b828]
test rbx, rbx
cmovne rdx, rbx
mov rcx, rdi
call fcn.140003c94
nop
test rbx, rbx
je 0x140042351
mov rdx, qword [rsp + 0x38]
sub rdx, rbx
sar rdx, 1
add rdx, rdx
cmp rdx, 0x1000
mov rax, rbx
jb 0x140042349
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140042349
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400674a4
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x1400458b4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
and dword [rsp + 0x58], 0
mov ebx, edx
lea rdx, [rcx + 0x40]
mov dword [rsp + 0x40], r9d
cmp qword [rdx + 0x18], 8
jb 0x1400458d8
mov rdx, qword [rdx]
mov rcx, qword [rcx + 0x60]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
je 0x140045947
mov edx, 0x5c
lea rcx, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x14004591b
inc rax
jmp 0x140045922
lea rax, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
mov rdx, rax
lea rcx, [0x1400bf638]
call fcn.140012ce4
shl rax, 0x34
movabs rcx, 0x342500000000
or rax, rdi
or rax, rcx
jmp 0x140045999
cmp ebx, dword [rsp + 0x58]
je 0x14004598f
mov edx, 0x5c
lea rcx, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x140045969
inc rax
jmp 0x140045970
lea rax, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
mov rdx, rax
lea rcx, [0x1400bf638]
call fcn.140012ce4
shl rax, 0x34
movabs rcx, 0x350500040002
jmp 0x140045942
movabs rax, 0x8000000000
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140045b30
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
and dword [rax + 0x20], 0
mov esi, edx
and dword [rax + 8], 0
lea rdx, [rcx + 0x40]
cmp qword [rdx + 0x18], 8
mov rdi, r8
jb 0x140045b5b
mov rdx, qword [rdx]
mov rcx, qword [rcx + 0x60]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, 0xea
je 0x140045bd5
test eax, eax
je 0x140045bd5
mov edx, 0x5c
lea rcx, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x140045ba6
inc rax
jmp 0x140045bad
lea rax, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
mov rdx, rax
lea rcx, [0x1400bf638]
call fcn.140012ce4
shl rax, 0x34
movabs rcx, 0x312500000000
or rax, rbx
or rax, rcx
jmp 0x140045c79
cmp esi, dword [rsp + 0x40]
je 0x140045c1d
mov edx, 0x5c
lea rcx, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x140045bf7
inc rax
jmp 0x140045bfe
lea rax, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
mov rdx, rax
lea rcx, [0x1400bf638]
call fcn.140012ce4
shl rax, 0x34
movabs rcx, 0x320500040002
jmp 0x140045bcd
mov eax, dword [rsp + 0x58]
cmp eax, 0x4000
jb 0x140045c6d
mov edx, 0x5c
lea rcx, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x140045c44
inc rax
jmp 0x140045c4b
lea rax, str.admin_appman_appv_sharedclientconfiguration_registryvalue.h
mov rdx, rax
lea rcx, [0x1400bf638]
call fcn.140012ce4
shl rax, 0x34
movabs rcx, 0x330500040003
jmp 0x140045bcd
mov dword [rdi], eax
movabs rax, 0x8000000000
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140064fd4
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x50
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rbp, rdx
mov rbx, rcx
mov rdx, rcx
mov rcx, rbp
call fcn.14003636c
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14006500e
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 1
lea r9, [0x14008dd4c]
xor r8d, r8d
mov rdx, qword [rbx + 0x10]
call fcn.140042554
cmp rax, 0xffffffffffffffff
jne 0x140065037
mov al, 1
jmp 0x1400650dd
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140065044
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x1400650dd
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.14001c438
nop
cmp qword [rbx + 0x18], 8
jb 0x140065071
mov rbx, qword [rbx]
mov r8d, esi
mov rdi, qword [rsp + 0x38]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp esi, eax
sete bl
jne 0x140065098
mov rdx, rdi
mov rcx, rbp
call fcn.140003c94
nop
test rdi, rdi
je 0x1400650db
mov rdx, qword [rsp + 0x48]
sub rdx, rdi
sar rdx, 1
add rdx, rdx
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400650d3
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400650d3
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1400674a4
mov al, bl
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140066ca8
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov dword [rax + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, 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]
test eax, eax
je 0x140066cf0
lea ebx, [rsi + 0xd]
jmp 0x140066d5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xea
jne 0x140066d5b
mov word [rbp + 0x20], si
mov edx, dword [rbp + 0x30]
lea rax, [rbp - 0x20]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call fcn.140040f40
lea r8, [rbp + 0x30]
mov rdx, qword [rbp - 0x20]
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x140066d4d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140066d5b
mov rdx, qword [rbp - 0x20]
mov rcx, rdi
call fcn.140003c94
mov ebx, esi
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140066d9e
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140066d99
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140066d99
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400674a4
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400677e0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400bf080], eax
call fcn.140067c64
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400bf080], 0
jne case.default.0x140067836
mov ecx, 1
call fcn.140067c64
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]
hlt