joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006330
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140031a44]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rax, qword [rax]
add rsp, 0x28
ret

Function at 0x140006370
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x140031a44]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rbx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400063b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140031a44]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add qword [rax + 0x10], 2
add rsp, 0x28
ret

Function at 0x1400063d0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x140031a44]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rax + 0x10], rbx
mov rax, qword [rax]
add rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140006bb0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rbp, ecx
mov esi, edx
mov ecx, dword [0x140031a44]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
cmp esi, 0xffffffff
jne 0x140006be0
mov esi, dword [rax + 0x10]
mov eax, dword [rax + 0x10]
mov r8, qword [rbx + 8]
lea edx, [rax + rbp*2]
movsxd rax, edx
lea rcx, [r8 - 4]
cmp rax, rcx
jl 0x140006c01
lea eax, [rdx + 0x4000]
movsxd r9, eax
jmp 0x140006c13
mov eax, 0x100000
cmp r8, rax
jle 0x140006c30
cmp edx, eax
cmovl edx, eax
mov r9d, edx
mov r8, qword [rbx]
xor edx, edx
mov qword [rbx + 8], r9
add r9, 0xa
mov rcx, qword [0x140032cd8]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbx], rax
mov rax, qword [rbx]
movsxd rdx, esi
mov rsi, qword [rsp + 0x40]
add rax, rdx
lea rcx, [rdx + rbp*2]
mov rbp, qword [rsp + 0x38]
mov qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140006c60
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
mov ecx, dword [0x140031a44]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [rbx + rbx]
movsxd rdx, ecx
sub qword [rax + 0x10], rdx
add rsp, 0x20
pop rbx
ret

Function at 0x140006c90
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x140031a44]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax]
cmp rbx, rcx
jb 0x140006cc4
mov rdx, qword [rax + 0x10]
add rdx, rcx
cmp rbx, rdx
ja 0x140006cc4
sub ebx, ecx
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140006cd0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x140031a44]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
dec rbx
mov rax, qword [rax]
add rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x140006d00
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x140031a44]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edx, edx
mov qword [rax + 0x10], rbx
mov rax, qword [rax]
mov word [rbx + rax], dx
add rsp, 0x20
pop rbx
ret

Function at 0x140009e60
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
movsxd rbx, ecx
mov ecx, dword [0x140031a44]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rbx, qword [rax]
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x14000aae8
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov dword [rax + 0x10], edx
push rdi
sub rsp, 0x20
xor ebx, ebx
movsxd rdi, ecx
mov rsi, r8
cmp edx, 0xffffffff
jne 0x14000ab1e
lea r8, [rax + 0x10]
mov edx, 0x4004667f
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, dword [rsp + 0x38]
test edx, edx
je 0x14000ab61
mov r8d, edx
mov r9d, 2
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x14000ab55
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8bb
and eax, 0xfffffffa
neg eax
sbb ebx, ebx
not ebx
and ebx, 0xfffffffe
jmp 0x14000ab61
test eax, eax
mov ecx, 0xfffffffe
cmove eax, ecx
mov ebx, eax
mov rsi, qword [rsp + 0x40]
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000af50
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push r14
sub rsp, 0x38
xor ebp, ebp
movsxd rbx, r8d
mov r14, rdx
mov rsi, rcx
mov dword [rsp + 0x60], ebp
cmp dword [rcx + 0x24], ebp
jne 0x14000b04a
cmp dword [rcx + 0x1c], 1
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x30], r15
jne 0x14000afab
mov eax, dword [rcx + 0x14]
lea r9d, [rbp + 1]
mov rcx, qword [rcx]
lea r8, [rsp + 0x7c]
neg eax
cdqe
mov edx, eax
mov qword [rsp + 0x78], rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [rsi + 0x10]
mov dword [rsi + 0x14], eax
mov dword [rsi + 0x1c], ebp
mov ecx, dword [rsi + 0x14]
cmp ecx, ebx
jle 0x14000b00c
mov eax, dword [rsi + 0x10]
mov edx, ebx
sub eax, ecx
movsxd rcx, eax
add rcx, qword [rsi + 8]
sub edx, 1
je 0x14000b004
sub edx, 1
je 0x14000affb
cmp edx, 2
je 0x14000aff4
mov r8, rbx
mov rdx, r14
call fcn.140006d60
sub dword [rsi + 0x14], ebx
mov rax, rbx
mov rdi, qword [rsp + 0x68]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [r14]
mov dword [rcx], eax
jmp 0x14000afda
movzx eax, word [r14]
mov word [rcx], ax
jmp 0x14000afda
movzx eax, byte [r14]
mov byte [rcx], al
jmp 0x14000afda
mov rcx, rsi
call fcn.140004a60
mov eax, dword [rsi + 0x10]
mov rdx, r14
cmp ebx, eax
jl 0x14000b03b
mov rcx, qword [rsi]
lea r9, [rsp + 0x60]
mov r8d, ebx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
movsxd rax, dword [rsp + 0x60]
jmp 0x14000afe0
sub eax, dword [rsi + 0x14]
mov r8, rbx
movsxd rcx, eax
add rcx, qword [rsi + 8]
jmp 0x14000afd5
movsxd rax, ebp
add rsp, 0x38
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000b694
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x140033a48], 0
lea rbx, [0x140033a58]
mov r14, rdx
mov r15, rcx
jne 0x14000b6e1
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x140033a4c], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x140033a48], 1
mov ecx, dword [0x140033a4c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x14000b7b6
mov rcx, qword [0x1400324f8]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14000b7e1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140033a50]
test rax, rax
je 0x14000b731
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x140033a50], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
lea r9, [rbp + 0x20]
and dword [rsp + 0x28], 0
mov rcx, rax
mov r8, rdi
mov dword [rsp + 0x20], 0x100000
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
lea r8, [0x14000b8b0]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x140033a4c]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1400324f8]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14000b7e1
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x14000be40
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x140032cd8]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [0x140032cd8]
xor edx, edx
mov rbx, rax
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx + 8], reloc.WS2_32.dll_recv
mov rdx, rbx
mov qword [rbx], rax
mov qword [rbx + 0x10], 0
mov ecx, dword [0x140031a44]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x140016478
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14000ccc8
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140016519
cmp ebx, dword [rsp + 0x30]
je 0x140016512
test esi, esi
je 0x140016512
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400164ed
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400164fa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400164d7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400164fe
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001651b
mov eax, 1
jmp 0x14001651b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400168b8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140016a00
Function at 0x1400215b8
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 0x1400215e8
xor eax, eax
jmp 0x1400216ab
mov rbp, rbx
cmp word [rax], si
je 0x14002160d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400215f4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400215f0
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.14001205c
movsxd r14, eax
test eax, eax
jne 0x14002164b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400215e1
mov rcx, r14
call fcn.14000c338
mov rdi, rax
test rax, rax
jne 0x140021664
xor ecx, ecx
call fcn.14000c2fc
jmp 0x140021640
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.14001205c
test eax, eax
jne 0x140021695
mov rcx, rdi
call fcn.14000c2fc
jmp 0x14002169f
xor ecx, ecx
call fcn.14000c2fc
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 0x140043c4e
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
sub rsp, 0x28
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x30]
push rbx
push rsi
push rdi
lea rdi, [0x140030888]
not eax
sub rcx, 4
jb 0x140043cb9
mov ebx, dword [rdx]
xor ebx, eax
movzx esi, bl
mov eax, dword [rdi + rsi*4 + 0xc00]
shr ebx, 8
movzx esi, bl
xor eax, dword [rdi + rsi*4 + 0x800]
shr ebx, 8
movzx esi, bl
xor eax, dword [rdi + rsi*4 + 0x400]
shr ebx, 8
xor eax, dword [rdi + rbx*4]
add rdx, 4
sub rcx, 4
jae 0x140043c81
add rcx, 4
je 0x140043cd4
movzx ebx, byte [rdx]
xor bl, al
shr eax, 8
xor eax, dword [rdi + rbx*4]
add rdx, 1
sub rcx, 1
jne 0x140043cbf
pop rdi
pop rsi
pop rbx
not eax
jmp 0x140043cde
add rsp, 0x28
ret

Function at 0x140043ce4
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x140031a44]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x14161f058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14161f1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14161f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14161f06f
add dl, dl
jne 0x14161f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14161f0f6
xor eax, eax
add dl, dl
jne 0x14161f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14161f1ad
add dl, dl
jne 0x14161f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14161f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14161f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14161f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14161f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14161f07e
mov eax, 1
add dl, dl
jne 0x14161f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14161f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14161f0fb
sub eax, ebx
mov ebx, 1
jne 0x14161f14c
mov ecx, 1
add dl, dl
jne 0x14161f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14161f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14161f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14161f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14161f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14161f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14161f15d
cmp eax, 0x7d00
jae 0x14161f19b
cmp eax, 0x500
jb 0x14161f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14161f07e
cmp eax, 0x7f
ja 0x14161f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14161f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14161f1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14161f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001350
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, [0x14008d340]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140001370
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov eax, dword [0x14008d3b8]
test al, 1
jne 0x140001427
and qword [0x14008d3c0], 0
or eax, 1
and qword [0x14008d3c8], 0
xor ecx, ecx
and qword [0x14008d3e0], 0
mov dword [0x14008d3b8], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x140001427
lea rdx, str.IsAssertEtwEnabled
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14008d3c0], rax
test rax, rax
je 0x1400013f9
lea rdx, str.WriteAssertEtwEventA
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WriteAssertEtwEventW
mov rcx, rbx
mov qword [0x14008d3c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14008d3e0], rax
lea rdx, str.WriteEtwEventForZwAllocateVirtualMemory
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WriteEtwEventForZwFreeVirtualMemory
mov rcx, rbx
mov qword [0x14008d3d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14008d3d8], rax
lea rcx, [0x14008d340]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
lea rax, [0x14008d3c0]
add rsp, 0x20
pop rbx
ret
Function at 0x140001eac
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, r9
cmp byte [rcx + 0xb], 0
je 0x140001ed4
cmp rdx, 0xffffffff80000002
jne 0x140001f47
cmp byte [rcx + 0xc], 0
jne 0x140001f47
test r8b, 6
je 0x140001f47
xor dil, dil
cmp byte [rcx + 0xa], dil
jne 0x140001f4a
call fcn.1400027c4
mov rcx, rax
test rax, rax
je 0x140001f58
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], rbx
lea r9, str.Attempt_to_write_to_HKEY_LOCAL_MACHINE_without__setup_command
lea r8, str.VisualStudio
lea rdx, str.Warning:__s:__s:__s_n
lea rcx, [rsp + 0x40]
call fcn.1400069fc
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140001f4a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140001f4a
mov dil, 1
mov al, dil
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400312f0
int3

Function at 0x140002da8
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x30
mov rbx, rcx
lea rsi, [0x14008d478]
mov qword [rsp + 0x20], rsi
mov byte [rsp + 0x28], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsp + 0x28], 1
cmp qword [0x14008d468], 0
jne 0x140002dee
test rbx, rbx
je 0x140002f13
mov qword [0x14008d468], rbx
cmp qword [0x14008d470], 0
jne 0x140002f0c
cmp byte [0x14008e320], 0
jne 0x140002f0c
lea rcx, [0x14008e718]
call qword [sym.imp.ole32.dll_CoCreateGuid]
mov rax, qword [0x14008d468]
cmp dword [rax + 8], 0
je 0x140002e67
lea rdx, [0x140075e84]
lea rcx, [0x1400665a0]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, 0x38
call fcn.140002cbc
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140002e5b
mov rdx, qword [0x14008d468]
mov rcx, rax
call fcn.1400594c4
nop
mov qword [0x14008d470], rax
jmp 0x140002f0c
call fcn.1400027c4
mov rcx, rax
test rax, rax
je 0x140002f2f
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, [0x1400665a0]
lea rcx, [rsp + 0x48]
call fcn.1400149e0
test eax, eax
je 0x140002ec2
mov ecx, 0x38
call fcn.140002cbc
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140002ec0
mov rdx, qword [0x14008d468]
mov rcx, rax
call fcn.1400594c4
nop
jmp 0x140002ee6
mov ecx, 0xe0
call fcn.140002cbc
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140002ee6
mov rdx, qword [0x14008d468]
mov rcx, rax
call fcn.14002c674
nop
mov qword [0x14008d470], rax
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140002f0c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [0x14008d470]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rsp + 0x28], 0
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rsi
ret
mov ecx, 0x80004005
call fcn.1400312f0
int3
Function at 0x1400077c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x30
mov rdx, qword [rdx]
lea rax, [r11 + 8]
mov rcx, qword [rcx]
lea r9, [r11 + 0x10]
mov qword [r11 - 0x10], rax
mov rbx, r8
lea rax, [r11 + 0x20]
mov dword [rsp + 0x40], 8
xor r8d, r8d
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x14000780a
mov eax, dword [rsp + 0x48]
sub eax, 0xb
neg eax
sbb ecx, ecx
and ecx, 0xd
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x14000782a
mov eax, dword [rsp + 0x58]
mov dword [rbx], eax
mov eax, dword [rsp + 0x5c]
mov dword [rbx + 4], eax
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140007f1c
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x270
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r14, r9
mov rbx, rdx
movsxd rdi, ecx
xor ebp, ebp
test r9, r9
jne 0x140007f56
mov eax, 0x80004003
jmp 0x140008076
mov qword [r9], rbp
test rbx, rbx
je 0x140008071
cmp edi, 0x23
ja 0x140008071
movabs rcx, 0x814000000
bt rcx, rdi
jae 0x140008071
mov word [rsp + 0x50], bp
mov esi, ebp
cmp r8, 0xffffffffffffffff
je 0x140007f97
mov rcx, r8
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov esi, eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test esi, esi
je 0x140007fbd
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
test edi, edi
jns 0x140007fc8
mov eax, edi
jmp 0x140008076
call fcn.1400027c4
mov rcx, rax
test rax, rax
je 0x140008094
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [str.Software_]
movups xmmword [rsp + 0x38], xmm0
mov eax, dword [0x140064380]
mov dword [rsp + 0x48], eax
mov r8d, 9
lea rdx, [rsp + 0x38]
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp
test eax, eax
jne 0x140008019
add rbx, 0x12
mov r8, rbx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1400080b0
mov rbx, qword [rsp + 0x30]
test rbx, rbx
jne 0x140008061
mov rax, rbp
mov qword [r14], rax
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000805d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140008076
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
test rax, rax
je 0x1400080a2
jmp 0x140008038
mov eax, 0x80070057
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140001020
add rsp, 0x270
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80004005
call fcn.1400312f0
nop
jmp 0x1400080a1
nop
mov ecx, 0x8007000e
call fcn.1400312f0
int3