joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404250
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00452624]
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
test esi, esi
jle 0x404404
mov rax, qword [0x00452628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40429c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x404329
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x404280
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x404439
mov rax, qword [0x00452628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00452628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40441c
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x404322
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4043a4
add dword [0x00452624], 1
cmp edi, 8
jae 0x404360
test dil, 4
jne 0x4043f0
test edi, edi
je 0x40434c
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40440b
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbp]
mov qword [rbx], rax
mov eax, edi
mov rdx, qword [rbp + rax - 8]
mov qword [rbx + rax - 8], rdx
lea rax, [rbx + 8]
and rax, 0xfffffffffffffff8
sub rbx, rax
sub rbp, rbx
add ebx, edi
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x40434c
and ebx, 0xfffffff8
xor edx, edx
mov ecx, edx
add edx, 8
mov r8, qword [rbp + rcx]
cmp edx, ebx
mov qword [rax + rcx], r8
jb 0x404390
jmp 0x40434c
add rsi, qword [0x00452628]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x404322
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax + rax]
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x40434c
xor esi, esi
jmp 0x4042a7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x40434c
mov rax, qword [0x00452628]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rsi + 0x18]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop dword [rax]
Function at 0x404b90
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00452900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004528e0]
test rbx, rbx
je 0x404be4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x404bdb
test rsi, rsi
je 0x404bdb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x404bc0
lea rcx, [0x00452900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x404e20
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x404e30
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x404e40
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x404e81
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x404e78
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x404e83
add rax, 0x28
cmp rax, r9
jne 0x404e64
xor eax, eax
ret

Function at 0x404f20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0044f370]
mov rdx, rcx
cmp word [r8], 0x5a4d
jne 0x404f8d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x404f8d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x404f8d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x404f84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x404f8f
add rax, 0x28
cmp rax, r9
jne 0x404f70
xor eax, eax
add rsp, 0x28
ret

Function at 0x405090
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0044f370]
xor eax, eax
mov rdx, rcx
cmp word [r8], 0x5a4d
je 0x4050b0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4050a8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40510d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x405104
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x405114
add rax, 0x28
cmp rax, r9
jne 0x4050f0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x405130
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x0044f370]
mov r9d, ecx
cmp word [r11], 0x5a4d
jne 0x40519e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40519e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x40519e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x40519e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x405195
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x4051a5
add rcx, 0x28
cmp rcx, rax
jne 0x405180
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x4051b8
jmp 0x40519e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x4051c6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x40519e
test r9d, r9d
jg 0x4051b0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret

Function at 0x405720
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
mov r8d, 0x1b
mov edx, 1
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x180001000
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x30
movzx edi, word [r8 + 0xe]
movzx eax, word [r8 + 0xc]
mov rsi, r9
add edi, eax
mov r10, rcx
lea rbx, [r8 + 0x10]
je 0x1800010c8
mov qword [rsp + 0x60], rbp
mov ebp, dword [rsp + 0x70]
mov ecx, dword [rbx + 4]
test ecx, ecx
jns 0x180001068
test ebp, ebp
jne 0x180001047
cmp word [rbx], 0x18
je 0x1800010b7
btr ecx, 0x1f
lea eax, [rbp + 1]
mov r9, rsi
lea r8, [rdx + rcx]
mov rcx, r10
mov dword [rsp + 0x20], eax
call section..text
mov r10, qword [rsp + 0x50]
jmp 0x1800010b2
btr ecx, 0x1f
mov r9d, dword [rcx + rdx + 4]
mov r8d, dword [rcx + rdx]
shr r9d, 2
add r8, r10
test r9d, r9d
je 0x1800010b7
mov eax, dword [rsi]
add r8, 4
xor dword [r8 - 4], eax
mov ecx, dword [rsi]
mov eax, 0x8fd66c05
mul ecx
shr edx, 0x11
imul edx, edx, 0x38f40
sub ecx, edx
imul ecx, ecx, 0x2455
add ecx, 0xc091
dec r9d
mov dword [rsi], ecx
jne 0x180001081
mov rdx, qword [rsp + 0x58]
add rbx, 8
dec edi
jne 0x180001036
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800010d0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
movsxd rsi, dword [rcx + 0x3c]
xor r12d, r12d
mov rbp, rcx
add rsi, rcx
mov ebx, r12d
movzx eax, word [rsi + 0x14]
lea rdi, [rax + rsi + 0x18]
cmp r12w, word [rsi + 6]
jae 0x180001141
nop word [rax + rax]
lea rdx, str..rsrc
mov rcx, rdi
call fcn.18000177c
test eax, eax
je 0x180001141
movzx eax, word [rsi + 6]
inc ebx
add rdi, 0x28
cmp ebx, eax
jl 0x180001120
movzx eax, word [rsi + 6]
cmp ebx, eax
jge 0x180001231
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x40], r12b
call fcn.180001930
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, str.QA1Q0ZWQIE__d
lea rcx, [rsp + 0x40]
mov r8d, eax
call fcn.180001848
lea r8, [rsp + 0x40]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
je 0x180001231
mov edx, 0x3e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x180001228
mov esi, dword [rdi + 0xc]
add rsi, rbp
mov edx, dword [rsi]
mov dword [rsp + 0x34], edx
test edx, edx
je 0x18000121f
mov eax, edx
shr eax, 0x10
xor al, 0x76
cmp dl, al
jne 0x18000121f
mov eax, edx
shr edx, 8
shr eax, 0x18
xor al, 0x5a
cmp dl, al
jne 0x18000121f
mov edx, dword [rdi + 0x10]
lea r9, [rsp + 0x30]
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r9, [rsp + 0x34]
mov r8, rsi
mov rdx, rsi
mov rcx, rbp
mov dword [rsi], r12d
mov dword [rsp + 0x20], r12d
call section..text
mov edx, dword [rdi + 0x10]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180001900
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x180003e77
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x18000191a
rol rcx, 0x10
test cx, 0xffff
jne 0x180001916
repz ret
ror rcx, 0x10
jmp 0x180003dd0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800201f0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800202e8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180003e55
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1800201f0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180003e77
mov rax, qword [rsp + 0x88]
mov qword [0x1800202e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180020288], rax
mov rax, qword [0x1800202e8]
mov qword [0x180020160], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180020270], rax
mov dword [0x180020150], 0xc0000409
mov dword [0x180020154], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18000e008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800201e8], eax
mov ecx, 1
call fcn.180006418
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18000a810]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800201e8], 0
jne 0x180003efe
mov ecx, 1
call fcn.180006418
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1800085e4
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1800028d0
xor ebx, ebx
cmp qword [0x180021188], rbx
mov rdi, rax
jne 0x1800086f7
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1800087ce
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800087ce
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180021188], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180021190], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x180021198], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1800211a8], rax
test rax, rax
je 0x1800086ee
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1800211a0], rax
jmp 0x1800086fe
mov rax, qword [0x1800211a0]
jmp 0x180008705
mov rax, qword [0x1800211a0]
mov r11, qword [0x1800211a8]
cmp rax, rdi
je 0x18000876c
cmp r11, rdi
je 0x18000876c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1800211a8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x18000876c
test rax, rax
je 0x18000876c
call rsi
test rax, rax
je 0x180008766
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180008766
test byte [rsp + 0x40], 1
jne 0x18000876c
bts ebp, 0x15
jmp 0x1800087ac
mov rcx, qword [0x180021190]
cmp rcx, rdi
je 0x1800087ac
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800087ac
call rax
mov rbx, rax
test rax, rax
je 0x1800087ac
mov rcx, qword [0x180021198]
cmp rcx, rdi
je 0x1800087ac
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800087ac
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180021188]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800087ce
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1800087d0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180001900
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140003070
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov r14, rcx
mov ebp, 0x80004005
mov ecx, 0x10
call fcn.140017420
mov rbx, rax
mov qword [rsp + 0x60], rax
xor edi, edi
test rax, rax
je 0x1400030e8
mov rax, qword [r14]
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov rcx, qword [rax]
mov rsi, qword [0x14004f070]
cmp rsi, rcx
je 0x1400030eb
mov qword [0x14004f070], rcx
test rcx, rcx
je 0x1400030d8
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test rsi, rsi
je 0x1400030eb
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
jmp 0x1400030eb
mov rbx, rdi
lea rax, [0x14004ba88]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x140001c70]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r14 + 8], rax
test rax, rax
cmovne ebp, edi
mov eax, ebp
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x140003130
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x140048360]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rdi, rcx
mov rcx, qword [0x14004ba80]
test rcx, rcx
jne 0x14000326b
lea rcx, [rsp + 0x42]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], bx
call fcn.1400198d0
lea rcx, [rsp + 0x252]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x250], bx
call fcn.1400198d0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x250]
mov dword [rsp + 0x30], 0x104
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x14000325f
lea r8, str.SOFTWAREIntelDisplayigfxcuiprofiles_app
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.1400180f0
lea r8, [0x140031ad8]
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.140018068
lea r8, [rsp + 0x250]
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.140018068
mov rcx, qword [0x14004ba80]
mov ebx, 3
test rcx, rcx
jne 0x14000326b
lea rsi, [0x14004ba80]
nop dword [rax + rax]
test ebx, ebx
je 0x140003266
lea rdx, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x14004ba80]
dec ebx
test rcx, rcx
je 0x140003220
jmp 0x14000326b
mov rcx, qword [0x14004ba80]
test rcx, rcx
je 0x1400032aa
cmp qword [rdi], 0
jne 0x140003290
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi], rax
test rax, rax
je 0x1400032aa
mov rcx, qword [0x14004ba80]
mov r9, qword [rdi]
mov edx, 1
mov dword [rsp + 0x20], 1
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400198a0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400032d0
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140002110
cmp dword [0x14004ba90], 0
je 0x1400032fa
xor r8d, r8d
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov qword [rbx + 8], rax
mov rcx, rbx
call fcn.1400021e0
call fcn.140002f10
cmp dword [0x14004ba94], 0
je 0x14000331d
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140003130
add rsp, 0x20
pop rbx
ret
Function at 0x1400065f0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x14000661e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1400080e0
cmp byte [0x14004f130], 0
jne 0x140006669
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006659
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x14004f130], 1
mov qword [0x14004f128], rax
jmp 0x140006670
mov rax, qword [0x14004f128]
mov byte [0x14004f130], 1
jmp 0x140006670
mov rax, qword [0x14004f128]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000668f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140008154
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14000816f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14000816f
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x14000816f
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
cmp eax, 0x62003a96
bnd jns 0x140077ec9
xchg esp, eax
add byte [rax + 0x465eaf79], ch
test al, 9
invalid
invalid
jnp 0x140077f3b
mov esp, 0xcfffe3c2
jl 0x140077e7b
int3
mov ebx, 0x3ce29af8
xor al, byte [rdx]
fnstcw word [rdx - 0x369e09f3]
stosd dword [rdi], eax
mov dword [rbp - 0x5083381b], esp
xchg esp, eax
invalid
or ebp, dword [rax - 0xc1d638a]
jo 0x140077f03
invalid
Function at 0x140007f90
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140048360]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
lea rcx, [rsp + 0x48]
or r9d, 0x2001f
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x58], rbp
call fcn.1400079d0
mov ebx, eax
test eax, eax
jne 0x1400080a7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140008081
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140007f90
mov ebx, eax
test eax, eax
jne 0x1400080a7
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x40], 0x100
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140008030
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140008096
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x50], ebp
call fcn.1400065f0
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400080b7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400198a0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400080e0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
test rcx, rcx
je 0x14000661e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1400080e0
cmp byte [0x14004f130], 0
jne 0x140006669
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006659
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x14004f130], 1
mov qword [0x14004f128], rax
jmp 0x140006670
mov rax, qword [0x14004f128]
mov byte [0x14004f130], 1
jmp 0x140006670
mov rax, qword [0x14004f128]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000668f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140008154
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14000816f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x14000816f
mov rcx, qword [rbx]
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je case.default.0x14000816f
mov rdx, r8
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 1
add rsp, 0x30
pop rdi
ret
cmp eax, 0x62003a96
bnd jns 0x140077ec9
xchg esp, eax
add byte [rax + 0x465eaf79], ch
test al, 9
invalid
invalid
jnp 0x140077f3b
mov esp, 0xcfffe3c2
jl 0x140077e7b
int3
mov ebx, 0x3ce29af8
xor al, byte [rdx]
fnstcw word [rdx - 0x369e09f3]
stosd dword [rdi], eax
mov dword [rbp - 0x5083381b], esp
xchg esp, eax
invalid
or ebp, dword [rax - 0xc1d638a]
jo 0x140077f03
invalid