joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e780
Capabilities:
Compare security identifiers

Disassembly:
push rdi
sub rsp, 0x90
mov rax, qword [0x14005a4a8]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edi, edi
mov qword [rsp + 0x68], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x68]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000e8d2
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0xa8], rsi
xor r9d, r9d
mov esi, 1
mov dword [rsp + 0x60], edi
mov edx, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14000e8bf
mov qword [rsp + 0xa0], rbx
mov ebx, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
lea edx, [rdi + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14000e8b7
mov r9d, dword [rsp + 0x60]
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov r8, rbx
mov edx, esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14000e8a3
lea rax, [rsp + 0x70]
mov dword [rsp + 0x78], edi
mov qword [rsp + 0x50], rax
lea r8d, [rdi + 0x12]
mov dword [rsp + 0x48], edi
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x40], edi
xor r9d, r9d
mov dword [rsp + 0x38], edi
movzx edx, sil
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov word [rsp + 0x7c], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000e8a3
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
cmovne edi, esi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0xa8]
mov eax, edi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140022dc0
add rsp, 0x90
pop rdi
ret
Function at 0x140011430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rsi, rcx
mov qword [rsp + 0x48], rcx
xor ebp, ebp
mov qword [rcx], rbp
mov qword [rcx + 8], rbp
lea ecx, [rbp + 0x58]
call fcn.1400229c0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsi], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
lea r8, [0x140043368]
lea edx, [rbp + 0x66]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], bpl
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400114c2
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14000cbd0
nop
mov r8b, 1
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x58]
call fcn.140017ddc
nop
mov rcx, rax
call fcn.1400177c4
mov r15, rax
cmp rsi, rax
je 0x1400115e0
mov r14, qword [rsi]
mov rdi, qword [r14 + 8]
cmp byte [rdi + 0x19], 0
jne 0x140011543
nop
mov r8, qword [rdi + 0x10]
mov rdx, rsi
mov rcx, rsi
call fcn.14000ec30
mov rbx, rdi
mov rdi, qword [rdi]
lea rcx, [rbx + 0x20]
call fcn.14000ede0
nop
mov edx, 0x58
mov rcx, rbx
call fcn.1400229fc
nop
cmp byte [rdi + 0x19], 0
je 0x140011510
mov qword [r14 + 8], r14
mov qword [r14], r14
mov qword [r14 + 0x10], r14
mov qword [rsi + 8], rbp
mov rdx, qword [r15]
movzx r9d, byte [rsp + 0x20]
mov r8, qword [rsi]
mov rdx, qword [rdx + 8]
mov rcx, rsi
call fcn.140011270
mov rcx, rax
mov rax, qword [rsi]
mov qword [rax + 8], rcx
mov rax, qword [r15 + 8]
mov qword [rsi + 8], rax
mov r8, qword [rsi]
mov rdx, qword [r8 + 8]
cmp byte [rdx + 0x19], 0
jne 0x1400115d6
mov rcx, qword [rdx]
cmp byte [rcx + 0x19], 0
jne 0x1400115af
nop dword [rax]
nop word [rax + rax]
mov rdx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x1400115a0
mov qword [r8], rdx
mov rdx, qword [rsi]
mov rcx, qword [rdx + 8]
mov rax, qword [rcx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1400115d0
mov rcx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400115c3
mov qword [rdx + 0x10], rcx
jmp 0x1400115e0
mov qword [r8], r8
mov rax, qword [rsi]
mov qword [rax + 0x10], rax
lea rcx, [rsp + 0x58]
call fcn.14000eee0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140011625
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001161f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011642
call fcn.1400229fc
nop
mov rax, rsi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.1400294dc
nop
int3
Function at 0x1400121b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14005a4a8]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r14, rdx
mov esi, ecx
xor r12d, r12d
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov r13, qword [0x14005a0b8]
lea rbx, [0x14005a0a8]
cmp qword [0x14005a0c0], 8
cmovae rbx, qword [0x14005a0a8]
cmp r13, 8
jae 0x14001222d
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x38], xmm0
lea r15d, [r12 + 7]
jmp 0x14001226b
mov r15, r13
or r15, 7
movabs rax, 0x7ffffffffffffffe
cmp r15, rax
cmova r15, rax
lea rdx, [r15 + 1]
lea rcx, [rsp + 0x38]
call fcn.140001580
mov qword [rsp + 0x38], rax
lea r8, [r13*2 + 2]
mov rdx, rbx
mov rcx, rax
call fcn.140024d40
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r13
mov rax, r15
sub rax, r13
cmp rax, 0x1e
jb 0x1400122b6
lea rdi, [r13 + 0x1e]
mov qword [rsp + 0x48], rdi
lea rbx, [rsp + 0x38]
cmp r15, 8
cmovae rbx, qword [rsp + 0x38]
lea rcx, [rbx + r13*2]
mov r8d, 0x3c
lea rdx, str.IgnoreWebResourceInstallErrors
call fcn.140024d40
mov word [rbx + rdi*2], r12w
jmp 0x1400122d7
mov qword [rsp + 0x20], 0x1e
lea r9, str.IgnoreWebResourceInstallErrors
xor r8d, r8d
lea edx, [r8 + 0x1e]
lea rcx, [rsp + 0x38]
call fcn.14000ec90
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.1400253f0
mov dword [rsp + 0x58], 0x208
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140012371
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140012371
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rsp + 0x60], 0x31
jne 0x140012371
cmp word [rsp + 0x62], 0
jne 0x140012371
mov esi, r12d
jmp 0x140012381
cmp qword [r14 + 0x10], 0
je 0x140012381
mov rcx, r14
call fcn.140013020
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x1400123c0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400123ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400123f2
call fcn.1400229fc
nop
mov eax, esi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140022dc0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400294dc
nop
int3
Function at 0x140012400
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x60
mov rax, qword [0x14005a4a8]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor esi, esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov rbp, qword [0x14005a0b8]
lea rbx, [0x14005a0a8]
cmp qword [0x14005a0c0], 8
cmovae rbx, qword [0x14005a0a8]
cmp rbp, 8
jae 0x140012467
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x38], xmm0
lea r14d, [rsi + 7]
jmp 0x1400124a5
mov r14, rbp
or r14, 7
movabs rax, 0x7ffffffffffffffe
cmp r14, rax
cmova r14, rax
lea rdx, [r14 + 1]
lea rcx, [rsp + 0x38]
call fcn.140001580
mov qword [rsp + 0x38], rax
lea r8, [rbp*2 + 2]
mov rdx, rbx
mov rcx, rax
call fcn.140024d40
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], rbp
mov rax, r14
sub rax, rbp
cmp rax, 0xb
jb 0x1400124ef
lea rdi, [rbp + 0xb]
mov qword [rsp + 0x48], rdi
lea rbx, [rsp + 0x38]
cmp r14, 8
cmovae rbx, qword [rsp + 0x38]
lea rcx, [rbx + rbp*2]
mov r8d, 0x16
lea rdx, str.WebResource
call fcn.140024d40
mov word [rbx + rdi*2], si
jmp 0x140012510
mov qword [rsp + 0x20], 0xb
lea r9, str.WebResource
xor r8d, r8d
lea edx, [r8 + 0xb]
lea rcx, [rsp + 0x38]
call fcn.14000ec90
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov ebx, 1
mov r9d, ebx
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001256a
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
cmove esi, ebx
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x1400125a9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400125a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400125d3
call fcn.1400229fc
nop
mov eax, esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140022dc0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
call fcn.1400294dc
nop
int3
Function at 0x140013590
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 8
mov rbx, rcx
jb 0x1400135a3
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400135bd
test al, 0x10
je 0x1400135bd
mov eax, 1
add rsp, 0x20
pop rbx
ret
cmp qword [rbx + 0x18], 8
jb case.default.0x1400135d1
mov rbx, qword [rbx]
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_CreateDirectoryW]

Function at 0x1400135e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x18], 8
jb 0x1400135ee
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140013607
test al, 0x10
jne 0x140013607
mov eax, 1
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x140013f70
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14005a4a8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
lea edx, [rdi + 0x10]
lea rcx, [rsp + 0x60]
call sub.ADVAPI32.dll_SystemFunction036
mov rdx, rbx
mov rcx, rsi
call fcn.140012080
mov dword [rsp + 0x30], 1
mov rdx, qword [rsi + 0x10]
mov r8, qword [rsi + 0x18]
mov rax, r8
sub rax, rdx
cmp rax, 1
jb 0x140014003
lea rcx, [rdx + 1]
mov qword [rsi + 0x10], rcx
mov rax, rsi
cmp r8, 8
jb 0x140013ff2
mov rax, qword [rsi]
mov r8d, 0x5c
mov word [rax + rdx*2], r8w
mov word [rax + rcx*2], di
jmp 0x140014022
mov qword [rsp + 0x20], 1
lea r9, [0x140042f84]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rsi
call fcn.14000ec90
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], di
xor r8d, r8d
lea rdx, [0x14004312c]
lea rcx, [rsp + 0x40]
call fcn.1400015f0
nop
nop word [rax + rax]
movzx ecx, byte [rsp + rdi + 0x60]
mov eax, 0x4ec4ec4f
mul ecx
shr edx, 3
imul eax, edx, 0x1a
sub ecx, eax
add cl, 0x41
movsx edx, cl
lea rcx, [rsp + 0x40]
call fcn.140015d10
inc rdi
cmp rdi, 0x10
jl 0x140014050
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
mov rcx, rsi
call fcn.140015270
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1400140db
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400140d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014100
call fcn.1400229fc
nop
mov rax, rsi
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140022dc0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1400294dc
int3
Function at 0x140014a60
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14005a4a8]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor esi, esi
mov qword [rbp + 0x2f], rsi
mov qword [rbp + 0x37], rsi
mov r14, qword [0x14005a0b8]
lea rdi, [0x14005a0a8]
cmp qword [0x14005a0c0], 8
cmovae rdi, qword [0x14005a0a8]
cmp r14, 8
jae 0x140014ace
movups xmm0, xmmword [rdi]
movups xmmword [rbp + 0x1f], xmm0
mov qword [rbp + 0x37], 7
jmp 0x140014b0e
mov rbx, r14
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp + 0x1f]
call fcn.140001580
mov qword [rbp + 0x1f], rax
lea r8, [r14*2 + 2]
mov rdx, rdi
mov rcx, rax
call fcn.140024d40
mov qword [rbp + 0x37], rbx
mov qword [rbp + 0x2f], r14
xor ecx, ecx
call fcn.14002bb70
mov rcx, rax
call fcn.14002bb58
call fcn.14002bb2c
mov ecx, eax
mov eax, 0x68db8bad
imul ecx
sar edx, 0xc
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x2710
sub ecx, eax
inc ecx
mov dword [rbp + 0x3f], ecx
mov rcx, qword [rbp + 0x2f]
mov rdx, qword [rbp + 0x37]
mov rax, rdx
sub rax, rcx
cmp rax, 0xb
jb 0x140014b8b
lea rdi, [rcx + 0xb]
mov qword [rbp + 0x2f], rdi
lea rbx, [rbp + 0x1f]
cmp rdx, 8
cmovae rbx, qword [rbp + 0x1f]
lea rcx, [rbx + rcx*2]
mov r8d, 0x16
lea rdx, str.WebResource
call fcn.140024d40
mov word [rbx + rdi*2], si
jmp 0x140014bab
mov qword [rsp + 0x20], 0xb
lea r9, str.WebResource
xor r8d, r8d
lea edx, [r8 + 0xb]
lea rcx, [rbp + 0x1f]
call fcn.14000ec90
lea rdx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 8
cmovae rdx, qword [rbp + 0x1f]
mov qword [rsp + 0x40], rsi
lea rax, [rbp + 0x17]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140014c35
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x3f]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.irandom
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x17]
test eax, eax
je 0x140014c2a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140014c35
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
mov rdx, qword [rbp + 0x37]
cmp rdx, 8
jb 0x140014c72
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014c6c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014c9d
call fcn.1400229fc
nop
mov eax, esi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140022dc0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400294dc
nop
int3
Function at 0x140014ec0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x14005a4a8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
xor r12d, r12d
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov rbp, qword [0x14005a0b8]
lea rdi, [0x14005a0a8]
cmp qword [0x14005a0c0], 8
cmovae rdi, qword [0x14005a0a8]
cmp rbp, 8
jae 0x140014f2b
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x58], xmm0
lea esi, [r12 + 7]
jmp 0x140014f69
mov rsi, rbp
or rsi, 7
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
cmova rsi, rax
lea rdx, [rsi + 1]
lea rcx, [rsp + 0x58]
call fcn.140001580
mov qword [rsp + 0x58], rax
lea r8, [rbp*2 + 2]
mov rdx, rdi
mov rcx, rax
call fcn.140024d40
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rbp
mov r15, rbx
cmp qword [rbx + 0x18], 8
jb 0x140014f80
mov r15, qword [rbx]
mov r14d, dword [rbx + 0x10]
add r14d, r14d
mov rax, rsi
sub rax, rbp
cmp rax, 0xb
jb 0x140014fc8
lea rdi, [rbp + 0xb]
mov qword [rsp + 0x68], rdi
lea rbx, [rsp + 0x58]
cmp rsi, 8
cmovae rbx, qword [rsp + 0x58]
lea rcx, [rbx + rbp*2]
mov r8d, 0x16
lea rdx, str.WebResource
call fcn.140024d40
mov word [rbx + rdi*2], r12w
jmp 0x140014fe9
mov qword [rsp + 0x20], 0xb
lea r9, str.WebResource
xor r8d, r8d
lea edx, [r8 + 0xb]
lea rcx, [rsp + 0x58]
call fcn.14000ec90
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140015068
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r15
mov ebx, 1
mov r9d, ebx
xor r8d, r8d
lea rdx, str.tWebResourceInstallPath
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x1400150d5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, r12d
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400150aa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400150a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400150de
call fcn.1400229fc
nop
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140022dc0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x14001506b
call fcn.1400294dc
int3
Function at 0x140015af0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14005a4a8]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor esi, esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov r14, qword [0x14005a0b8]
lea rbx, [0x14005a0a8]
cmp qword [0x14005a0c0], 8
cmovae rbx, qword [0x14005a0a8]
cmp r14, 8
jae 0x140015b62
movups xmm0, xmmword [rbx]
movups xmmword [rsp + 0x38], xmm0
lea r15d, [rsi + 7]
jmp 0x140015ba0
mov r15, r14
or r15, 7
movabs rax, 0x7ffffffffffffffe
cmp r15, rax
cmova r15, rax
lea rdx, [r15 + 1]
lea rcx, [rsp + 0x38]
call fcn.140001580
mov qword [rsp + 0x38], rax
lea r8, [r14*2 + 2]
mov rdx, rbx
mov rcx, rax
call fcn.140024d40
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r14
mov rax, r15
sub rax, r14
cmp rax, 0xb
jb 0x140015bea
lea rdi, [r14 + 0xb]
mov qword [rsp + 0x48], rdi
lea rbx, [rsp + 0x38]
cmp r15, 8
cmovae rbx, qword [rsp + 0x38]
lea rcx, [rbx + r14*2]
mov r8d, 0x16
lea rdx, str.WebResource
call fcn.140024d40
mov word [rbx + rdi*2], si
jmp 0x140015c0b
mov qword [rsp + 0x20], 0xb
lea r9, str.WebResource
xor r8d, r8d
lea edx, [r8 + 0xb]
lea rcx, [rsp + 0x38]
call fcn.14000ec90
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.1400253f0
mov dword [rsp + 0x58], 0x208
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov ebx, 1
mov r9d, ebx
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015c99
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.irandom
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
cmove esi, ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140015cd8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015cd2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140015d06
call fcn.1400229fc
nop
mov eax, esi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140022dc0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1400294dc
nop
int3
Function at 0x140006df0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140006e90
jmp 0x140006e7f
jae 0x140006f4f
cmp r8, 0x201
jae 0x140006e90
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140006ee7
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x140006ebf
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140022df0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x140006f10
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140006fbb
mov r8d, r13d
cmp r12, r8
jne 0x140006e70
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140006fef
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140006e7f
jmp 0x140006e90
cmp r14, r8
jb 0x140007009
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140009470
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x140006fa4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140004870
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x140006f8f
jmp 0x140006fa4
lea rcx, str.internal_error:_entered_unreachable_code_rustc_129f3b9964af4d4a709d1383930ade12dfe7c081library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140023ba0
jmp 0x14000701e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140023f30
ud2