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

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
lea rcx, section..rdata
mov edx, reloc.WS2_32.dll_listen
mov r8, rsi
xor r9d, r9d
call fcn.140048530
test al, al
je 0x1400487bb
mov al, 1
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140472010]
mov edx, 5
mov r8, rsi
mov r9b, 1
add rsp, 0x20
pop rsi
jmp fcn.140048530

Function at 0x1400487e0
Capabilities:
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
lea rcx, [0x140472020]
mov edx, 0x27
mov r8, rsi
xor r9d, r9d
call fcn.140048530
test al, al
je 0x14004880b
mov al, 1
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140472010]
mov edx, 5
mov r8, rsi
mov r9b, 1
add rsp, 0x20
pop rsi
jmp fcn.140048530

Function at 0x140048830
Capabilities:
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
lea rcx, [0x140472040]
mov edx, select
mov r8, rsi
xor r9d, r9d
call fcn.140048530
test al, al
je 0x14004885b
mov al, 1
add rsp, 0x20
pop rsi
ret
lea rcx, [0x140472010]
mov edx, 5
mov r8, rsi
mov r9b, 1
add rsp, 0x20
pop rsi
jmp fcn.140048530

Function at 0x140050c80
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor ecx, ecx
xor eax, eax
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x140050da1
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x140050de1
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr edi, 5
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x140050dd7
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
and al, dil
mov byte [r8 + 0x16], al
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x140050ddb
xor ecx, ecx
mov eax, 0x80000007
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x140050de9
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x140050d74
mov dl, byte [r8 + 0x19]
jmp 0x140050dd0
xor r10d, r10d
jmp 0x140050cdf
cmp byte [r8 + 0x1a], 0
je 0x140050dd4
xor ecx, ecx
mov eax, 0x40000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x140050dd4
cmp ecx, 0x666f736f
jne 0x140050dd4
cmp edx, 0x76482074
jne 0x140050dd4
mov byte [r8 + 0x19], 1
jmp 0x140050dd4
Function at 0x140051e40
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x14005208c
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x14052a210], rax
jne 0x14005208f
mov rsi, rcx
mov r14d, dword [rcx + 8]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
cmp byte [rcx + 2], 0
sete al
bsr rdx, r14
xor rdx, 0xffffffffffffffc0
lea rcx, [0x14048cc90]
mov cl, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x14048cce0]
mov rcx, qword [rcx + rdx*8 + 0x208]
and rcx, r14
lea rdx, [r8 + rdx*8]
add rdx, 0x208
cmp rcx, 1
sbb rdx, 0xffffffffffffffff
lea rcx, reloc.WS2_32.dll_recv
movzx ecx, word [rcx + rdx*2 + 0x400]
cmp cx, 0x6e
setb dl
and dl, al
movzx eax, dl
or eax, ecx
movzx eax, ax
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x48
lea rdi, [rsi + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140052012
mov rax, qword [r15]
mov rbx, qword [rax]
test rbx, rbx
je 0x14005201f
mov byte [rsp + 0x3f], 0
mov r8, qword [rbx]
test r8, r8
je 0x14005200b
lea rdx, [rsi + 0x48]
mov rcx, r8
bswap rcx
mov r14d, dword [rdx + r12*8 + 0x18]
mov rdx, rcx
xor rdx, rbx
cmp rdx, 0x1fffff
ja 0x140052092
mov edx, ecx
and edx, 0x1fc000
je 0x140052092
prefetcht0 byte [rcx]
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rbx
mov rdx, rsi
call fcn.140225460
mov ecx, dword [0x140531308]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14052f0f0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x120], rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1402ddd70
mov rax, rbx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x140051f6c
mov rcx, rdi
call fcn.140225050
jmp 0x140051f19
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.1402231a0
test rax, rax
je 0x140052085
mov rbx, rax
and rax, 0xffffffffffe00000
mov ecx, ebx
shr ecx, 0xe
movzx ecx, cl
shl rcx, 5
or rcx, rax
mov rax, rcx
or rax, 0x1000
or rcx, 0x101e
movzx ecx, byte [rcx]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
jmp 0x140051f86
xor ebx, ebx
jmp 0x140051fb0
int3
int3
movaps xmm0, xmmword [0x14047fb40]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
lea rdx, str.first
mov rcx, rsi
call fcn.14031fd00
mov rcx, rsi
call fcn.140024cf0
mov rcx, r14
call fcn.14031fd60
int3
Function at 0x140054460
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x140532dc8], 0
jne 0x14005449d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140054490
mov dword [rdi], eax
mov dword [0x140532dd0], eax
mov qword [0x140532dc8], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x140060100
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, r9
mov r15, r8
mov r14, rcx
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rdi, [rcx + 0x10]
mov rcx, rdi
call fcn.140259190
mov ebx, eax
test al, al
je 0x140060207
mov rax, qword [r15 + 8]
mov dword [rax], 0x20
mov ecx, dword [r14 + 0x20]
mov dword [rax + 4], ecx
mov dword [rax + 0xc], 0
mov ecx, dword [r14 + 0x18]
cmp ecx, 2
ja 0x14006015d
mov dword [rax + 8], ecx
mov rcx, qword [r14 + 0x28]
mov rdx, qword [r14 + 0x30]
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rcx
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x40]
mov qword [r14], rax
mov rcx, rdi
mov rdx, r14
call fcn.14026cc10
xor eax, eax
mov qword [rsp + 0x28], rax
mov r15, qword [r14]
mov qword [r14], rax
cmp r15, 0xffffffffffffffff
je 0x1400601a7
test r15, r15
je 0x1400601cb
call fcn.14026d530
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [r15 + 1]
cmp rax, 2
jb 0x1400601c3
mov qword [rsp + 0x28], r15
call fcn.14026d530
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
call fcn.140275110
cmp qword [rsi], 0
je 0x140060233
mov rcx, qword [rsi + 8]
lea rsi, [rsp + 0x30]
mov rdx, rsi
call fcn.140275080
mov rcx, rsi
call fcn.1402751c0
mov rax, qword [rsp + 0x40]
inc rax
cmp rax, 2
jae 0x140060222
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402ddd70
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14026d530
mov rcx, qword [rsp + 0x40]
call fcn.140252540
jmp 0x140060207
int3
Function at 0x140060240
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
movaps xmmword [rsp + 0xb0], xmm6
mov rsi, rcx
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
cmp qword [rdx], 0x20
jb 0x140060446
mov r14, r8
cmp qword [r8], 0
je 0x140060446
mov r15, qword [rdx + 8]
mov eax, dword [r15]
cmp eax, 0x20
jb 0x140060446
and eax, 7
jne 0x140060446
mov edi, dword [r15 + 8]
cmp edi, 3
jae 0x140060446
movabs r13, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x10], r13
movaps xmm6, xmmword [0x14047fb40]
movaps xmmword [rbx], xmm6
mov r8, qword [r15 + 0x10]
mov rdx, qword [r15 + 0x18]
mov rcx, rbx
call fcn.14025bb20
cmp byte [rbx + 0x10], 0
je 0x140060446
cmp qword [r14], 0
je 0x14006046b
mov rax, qword [r14 + 8]
mov dword [rax], 0
mov r12, qword [rax + 8]
mov qword [rax + 8], 0
test r12, r12
je 0x14006044f
cmp r12, 0xffffffffffffffff
je 0x14006045b
call fcn.14026d530
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14026d530
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x70], 0
mov qword [rsp + 0x50], r13
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
je 0x140060482
mov r14d, dword [r15 + 4]
mov qword [rsp + 0x28], 0
cmp r12, 0xffffffffffffffff
je 0x140060368
test r12, r12
je 0x14006038d
call fcn.14026d530
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
lea rax, [r12 + 1]
cmp rax, 2
jb 0x140060385
mov qword [rsp + 0x28], r12
call fcn.14026d530
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x20], rbx
lea rbx, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov rcx, rbx
mov r8d, edi
mov r9, r14
call fcn.140258ed0
mov rcx, rbx
call fcn.140259190
test al, al
je 0x140060457
mov ecx, 0x38
call fcn.1402dd130
mov rdi, rax
lea rbx, [rsp + 0x80]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14026cae0
mov rcx, rdi
mov edx, 1
call fcn.140236a20
lea rax, [0x140486348]
mov qword [rdi], rax
mov rcx, rdi
add rcx, 0x10
mov rdx, rbx
call fcn.14026cae0
mov rcx, rbx
call fcn.1402544c0
mov qword [rsi], rdi
lea rcx, [rsp + 0x30]
call fcn.1402544c0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1402ddd70
mov rax, rsi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsi], 0
jmp 0x140060417
xor r12d, r12d
jmp 0x140060331
xor edi, edi
jmp 0x14006040a
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x140060329
mov qword [rsp + 0x50], r13
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
xor r12d, r12d
jmp 0x14006034b
call fcn.14032b820
int3
Function at 0x1400605b0
Capabilities:
Access peb ldr_data

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
movaps xmmword [rsp + 0x20], xmm6
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov bpl, byte [rsp + 0x80]
xor edx, edx
call fcn.140236a20
lea rax, [0x140486408]
mov qword [rsi], rax
lea rax, [0x140484c30]
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], r14
lea rcx, [rsi + 0x20]
mov rdx, rdi
call fcn.140145a70
xorps xmm6, xmm6
movups xmmword [rsi + 0x30], xmm6
mov dword [rsi + 0x3f], 0
mov byte [rsi + 0x43], bpl
lea rcx, [rsi + 0x48]
mov rdx, rbx
call fcn.1401661b0
lea rcx, [rsi + 0x58]
call fcn.1402386c0
movups xmmword [rsi + 0x60], xmm6
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x80], 0
mov eax, dword [0x140538588]
mov ecx, dword [0x14052f0f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400606ac
mov rax, qword [0x140538580]
mov qword [rsi + 0x88], rax
test rax, rax
je 0x14006067f
mov ecx, 1
lock xadd dword [rax + 8], ecx
cmp ecx, 0x7fffffff
je 0x1400606da
xorps xmm0, xmm0
movups xmmword [rsi + 0x90], xmm0
mov rcx, rbx
call fcn.1401661f0
mov rcx, rdi
call fcn.1402544c0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140538588]
call fcn.1402dd290
cmp dword [0x140538588], 0xffffffff
jne 0x14006065a
mov qword [0x140538580], 0
lea rcx, [0x140538588]
call fcn.1402dd328
jmp 0x14006065a
int3
Function at 0x14007d730
Capabilities:
Get session user name

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x268
mov rsi, rcx
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rdi, [rsp + 0x4c]
mov dword [rdi], 0x101
lea rbx, [rsp + 0x50]
mov r8d, 0x202
mov rcx, rbx
mov dl, 0xaa
call fcn.1402e0d10
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov edi, eax
test eax, eax
je 0x14007d7d4
lea r14, [rsp + 0x50]
mov rcx, r14
call fcn.140303804
mov rbx, rax
mov al, byte [rsi + 0x17]
test al, al
js 0x14007d82f
cmp rbx, 0xa
ja 0x14007d7fe
mov r14, rsi
test rbx, rbx
je 0x14007d7c2
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.1402e0660
mov al, byte [rsi + 0x17]
test al, al
js 0x14007d7f8
mov eax, ebx
and al, 0x7f
mov byte [rsi + 0x17], al
mov word [r14 + rbx*2], 0
test edi, edi
setne bl
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1402ddd70
mov eax, ebx
add rsp, 0x268
pop rbx
pop rdi
pop rsi
pop r14
ret
mov qword [rsi + 8], rbx
jmp 0x14007d7cd
movzx r9d, al
mov edx, 0xa
mov r8, rbx
sub r8, rdx
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], 0
mov rcx, rsi
call fcn.14013b340
jmp 0x14007d7d4
mov rax, qword [rsi + 0x10]
mov rdx, rax
btr rdx, 0x3f
dec rdx
cmp rdx, rbx
jb 0x14007d84f
shr rax, 0x38
mov r14, qword [rsi]
jmp 0x14007d7a7
mov r9, qword [rsi + 8]
jmp 0x14007d807
Function at 0x14007d860
Capabilities:
Get session user name

Disassembly:
mov edx, 2
jmp 0x14007d870
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x44]
mov dword [r8], 0
mov ecx, edx
xor edx, edx
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x14007d968
lea r14, [rsp + 0x44]
mov r15d, dword [r14]
inc r15d
mov dword [r14], r15d
add r15, r15
mov rcx, r15
call fcn.1402dd1ac
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.1402e0d10
mov ecx, edi
mov rdx, rbx
mov r8, r14
call sub.Secur32.dll_GetUserNameExW
test al, al
setne dil
je 0x14007d961
test rbx, rbx
je 0x14007d9da
mov rcx, rbx
call fcn.140303804
mov r14, rax
mov al, byte [rsi + 0x17]
test al, al
js 0x14007d9b4
cmp r14, 0xa
ja 0x14007d983
mov r15, rsi
test r14, r14
je 0x14007d92b
mov r8, r14
add r8, r14
mov rcx, r15
mov rdx, rbx
call fcn.1402e0660
mov al, byte [rsi + 0x17]
test al, al
js 0x14007d97d
mov eax, r14d
and al, 0x7f
mov byte [rsi + 0x17], al
mov word [r15 + r14*2], 0
mov rcx, rbx
call fcn.1402dd1b4
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402ddd70
mov eax, edi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
test rbx, rbx
jne 0x14007d93e
jmp 0x14007d979
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x14007d8ac
xor edi, edi
jmp 0x14007d946
mov qword [rsi + 8], r14
jmp 0x14007d937
movzx r9d, al
mov edx, 0xa
mov r8, r14
sub r8, rdx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], 0
mov rcx, rsi
call fcn.14013b340
jmp 0x14007d93e
mov rax, qword [rsi + 0x10]
mov rdx, rax
btr rdx, 0x3f
dec rdx
cmp rdx, r14
jb 0x14007d9d4
shr rax, 0x38
mov r15, qword [rsi]
jmp 0x14007d912
mov r9, qword [rsi + 8]
jmp 0x14007d98c
lea rax, str.string::assign_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string
lea r9, str.__s___nullptr
mov r8d, 0xa51
call fcn.14032ac00
int3
Function at 0x14007d870
Capabilities:
Get session user name

Disassembly:
mov edx, 2
jmp 0x14007d870
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea r8, [rsp + 0x44]
mov dword [r8], 0
mov ecx, edx
xor edx, edx
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x14007d968
lea r14, [rsp + 0x44]
mov r15d, dword [r14]
inc r15d
mov dword [r14], r15d
add r15, r15
mov rcx, r15
call fcn.1402dd1ac
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.1402e0d10
mov ecx, edi
mov rdx, rbx
mov r8, r14
call sub.Secur32.dll_GetUserNameExW
test al, al
setne dil
je 0x14007d961
test rbx, rbx
je 0x14007d9da
mov rcx, rbx
call fcn.140303804
mov r14, rax
mov al, byte [rsi + 0x17]
test al, al
js 0x14007d9b4
cmp r14, 0xa
ja 0x14007d983
mov r15, rsi
test r14, r14
je 0x14007d92b
mov r8, r14
add r8, r14
mov rcx, r15
mov rdx, rbx
call fcn.1402e0660
mov al, byte [rsi + 0x17]
test al, al
js 0x14007d97d
mov eax, r14d
and al, 0x7f
mov byte [rsi + 0x17], al
mov word [r15 + r14*2], 0
mov rcx, rbx
call fcn.1402dd1b4
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402ddd70
mov eax, edi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
test rbx, rbx
jne 0x14007d93e
jmp 0x14007d979
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x14007d8ac
xor edi, edi
jmp 0x14007d946
mov qword [rsi + 8], r14
jmp 0x14007d937
movzx r9d, al
mov edx, 0xa
mov r8, r14
sub r8, rdx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], 0
mov rcx, rsi
call fcn.14013b340
jmp 0x14007d93e
mov rax, qword [rsi + 0x10]
mov rdx, rax
btr rdx, 0x3f
dec rdx
cmp rdx, r14
jb 0x14007d9d4
shr rax, 0x38
mov r15, qword [rsi]
jmp 0x14007d912
mov r9, qword [rsi + 8]
jmp 0x14007d98c
lea rax, str.string::assign_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string
lea r9, str.__s___nullptr
mov r8d, 0xa51
call fcn.14032ac00
int3
Function at 0x140084c30
Capabilities:
Query or enumerate registry key

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x298
movaps xmmword [rsp + 0x280], xmm6
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0x278], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x60], r15
xor eax, eax
mov qword [rsp + 0x68], rax
mov esi, dword [rcx + 8]
mov r9d, esi
or r9d, 0x2001f
mov rcx, qword [rcx]
lea rdx, [rsp + 0x70]
mov qword [rdx], rax
mov qword [rsp + 0x20], rdx
mov rdx, rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140084cd6
mov ebp, eax
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1402ddd70
mov eax, ebp
movaps xmm6, xmmword [rsp + 0x280]
add rsp, 0x298
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x40], rbx
lea rbx, [rsp + 0x70]
mov r12, qword [rbx]
lea r14, [rsp + 0x58]
mov qword [r14], r12
and esi, 0x300
mov dword [r14 + 8], esi
lea r13, [rsp + 0x50]
mov qword [r13], r15
lea r15, [rsp + 0x4c]
mov dword [r15], 0x100
mov r8d, 0x200
mov rcx, rbx
mov dl, 0xaa
call fcn.1402e0d10
xorps xmm6, xmm6
mov rsi, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov qword [rsp + 0x38], r13
movups xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x30], 0
mov rcx, r12
xor edx, edx
mov r8, rbx
mov r9, r15
call rsi
test eax, eax
jne 0x140084d66
mov rcx, r14
mov rdx, rbx
call fcn.140084c30
test eax, eax
jne 0x140084d94
mov dword [rsp + 0x4c], 0x100
mov r12, qword [rsp + 0x58]
jmp 0x140084d24
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140084d7f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x60], 0
mov rcx, rdi
mov rdx, qword [rsp + 0x40]
call fcn.140085420
mov ebp, eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140084ca8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140084ca8
Function at 0x140085420
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rdx
mov rdi, rcx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x1400854bb
mov rdi, qword [rdi]
cmp qword [rbx], 0
je 0x14008549c
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14008548f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14008548f
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], 0
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [case.0x14012d181.0]
jmp 0x140085494
mov eax, 1
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
cmp dword [rbx + 8], 0
je 0x14008548f
mov rcx, rdi
mov rdx, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rdi]
jmp 0x1400854a5
cmp byte [0x14053b8c0], 0
jne 0x1400854f4
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400854ed
lea rdx, [0x140495076]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14053b8b8], rax
mov byte [0x14053b8c0], 1
mov rax, qword [0x14053b8b8]
test rax, rax
je 0x1400854b6
mov r8d, dword [rdi + 8]
mov rcx, qword [rdi]
mov r10, qword [case.0x14012d181.0]
mov rdx, rsi
xor r9d, r9d
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp r10
Function at 0x14008aa50
Capabilities:
Compare security identifiers

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rsi, rdx
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0x78], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x60]
mov qword [rdi], rax
mov rcx, rdi
call fcn.140089750
mov rdi, qword [rdi]
test rdi, rdi
je 0x14008ab04
lea rbx, [rsp + 0x68]
mov qword [rbx], 0
xor eax, eax
lea rcx, [rsp + 0x70]
mov dword [rcx], eax
mov word [rcx + 4], 0x500
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dl, 1
mov r8d, reloc.WS2_32.dll_select
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov rbx, qword [rbx]
test eax, eax
je 0x14008ab0b
test rbx, rbx
je 0x14008ab19
mov rdx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, 1
sete byte [rsi]
mov byte [rsi + 1], 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x14008ab1e
mov word [rsi], 0
jmp 0x14008ab27
test rbx, rbx
je 0x14008ab19
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov word [rsi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1402ddd70
mov rax, rsi
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret

Function at 0x14008ab50
Capabilities:
Compare security identifiers

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov ebx, r9d
mov r14, r8
mov rsi, rdx
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0x50], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x48]
mov qword [rdi], rax
mov rcx, rdi
call fcn.140089750
mov rdi, qword [rdi]
test rdi, rdi
je 0x14008abf9
mov qword [rsp + 0x40], 0
cmp byte [r14 + 0x17], 0
jns 0x14008aba6
mov r14, qword [r14]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x20], xmm0
lea r9, [rsp + 0x40]
mov rcx, r14
mov edx, ebx
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x14008ac00
xor eax, eax
xor ecx, ecx
mov byte [rsi], al
mov byte [rsi + 1], cl
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1402ddd70
mov rax, rsi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
mov word [rsi], 0
jmp 0x14008abdf
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, 1
sete al
mov cl, 1
jmp 0x14008abd1