joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441a30
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.00410450
mov r13d, eax
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.00418430
mov esi, eax
cmp esi, 0x104
jbe 0x441a8b
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.004090e0
mov rdi, rax
jmp 0x441a8f
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.00418430
mov rcx, rdi
call sub.user32.dll_CharUpperW
xor ebx, ebx
xor ecx, ecx
mov edx, esi
sub edx, 1
mov eax, ecx
cmp eax, edx
jg 0x441ae5
sub edx, ecx
add edx, 1
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movsxd rcx, eax
movzx ecx, word [rdi + rcx*2]
xor ebx, ecx
add eax, 1
sub edx, 1
test edx, edx
jne 0x441ac6
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x441af7
mov rcx, rdi
call fcn.00409110
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret

Function at 0x4a14d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov qword [rbp + 0x60], r8
movzx rax, byte [rbp + 0x70]
mov byte [rbp + 0x70], al
mov rcx, rsi
mov rdx, qword [rbp + 0x60]
mov r8, r9
call sub.kernel32.dll_FindResourceW
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x20], 0
jne 0x4a150f
mov rcx, rbp
call fcn.004a13f0
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_LoadResource
mov qword [rbx + 0x28], rax
cmp qword [rbx + 0x28], 0
jne 0x4a152e
mov rcx, rbp
call fcn.004a13f0
mov rcx, qword [rbx + 0x28]
call sub.kernel32.dll_LockResource
mov rdi, rax
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_SizeofResource
mov rcx, rbx
mov rdx, rdi
mov r8d, eax
call fcn.004a0c30
lea rsp, [rbp + 0x28]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x4b35d0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x28
movzx rax, byte [rcx + 0x19]
or al, dl
test al, al
je 0x4b3620
cmp byte [rcx + 0x1d], 0
jne 0x4b3620
cmp byte [rcx + 0x40], 0
jne 0x4b3620
mov byte [rcx + 0x1b], 0
mov byte [rcx + 0x19], 0
mov rcx, qword [rcx + 0x10]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4b363d
mov rcx, qword [0x0046c410]
mov dl, 1
mov r8, qword [0x0076c6a8]
call fcn.0043e850
mov rcx, rax
call fcn.0040eeb0
jmp 0x4b363d
mov rcx, qword [0x0046c410]
mov dl, 1
mov r8, qword [0x0076c6a8]
call fcn.0043e850
mov rcx, rax
call fcn.0040eeb0
add rsp, 0x28
ret

Function at 0x4b4180
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x1b]
mov byte [rbp + 0x3f], al
nop
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x1b], 1
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_SuspendThread
mov rcx, qword [rbp + 0x50]
test eax, eax
setge dl
call fcn.004b3440
jmp 0x4b41db
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x4b4200
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 0x10]
call sub.kernel32.dll_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.004b3440
cmp esi, 1
jne 0x4b422a
mov byte [rbx + 0x1b], 0
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x4b8510
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov qword [rsp + 0x40], rcx
cmp qword [0x00778e10], 0
jne 0x4b85b6
xor ecx, ecx
mov edx, 0x1000
mov r8d, 0x1000
mov r9d, 0x40
call sub.kernel32.dll_VirtualAlloc
mov rbx, rax
mov rax, qword [0x00778e08]
mov qword [rbx], rax
lea rcx, [0x0073512c]
lea rdx, [rbx + 8]
mov r8d, 8
call fcn.00409530
lea rax, [0x004b84d0]
mov qword [rbx + 0x10], rax
lea rsi, [rbx + 0x18]
mov byte [rsi], 0xe8
mov rcx, rsi
lea rdx, [rbx + 8]
call fcn.004b8500
mov dword [rsi + 1], eax
mov rax, qword [0x00778e10]
mov qword [rsi + 5], rax
mov qword [0x00778e10], rsi
add rsi, 0x15
mov rax, rbx
neg rax
lea rax, [rsi + rax]
cmp rax, 0xfed
jl 0x4b8574
mov qword [0x00778e08], rbx
mov rax, qword [0x00778e10]
mov rsi, qword [0x00778e10]
mov rcx, qword [rsi + 5]
mov qword [0x00778e10], rcx
mov rcx, qword [rsp + 0x40]
lea rdi, [rsi + 5]
mov rsi, rcx
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x5f22a0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x168
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
call sub.user32.dll_GetMessagePos
mov ecx, eax
call fcn.0041dc80
mov dword [rbp + 0x3c], eax
movsx rax, word [rbp + 0x3c]
mov dword [rbp + 0x34], eax
movsx rax, word [rbp + 0x3e]
mov dword [rbp + 0x38], eax
mov rcx, rbx
lea rdx, [rbp + 0x34]
call fcn.005e8cb0
mov qword [rbp + 0x158], rax
test rdi, rdi
jne 0x5f230b
mov rcx, rbx
lea rdx, [rbp + 0x158]
xor r8, r8
xor r9, r9
mov byte [rsp + 0x20], 0
call fcn.005f2180
mov rdi, rax
test rdi, rdi
je 0x5f23eb
cmp rdi, rbx
je 0x5f2339
mov eax, dword [rbp + 0x158]
sub eax, dword [rdi + 0x90]
mov dword [rbp + 0x40], eax
mov eax, dword [rbp + 0x15c]
sub eax, dword [rdi + 0x94]
mov dword [rbp + 0x44], eax
jmp 0x5f2344
mov rax, qword [rbp + 0x158]
mov qword [rbp + 0x40], rax
movzx eax, word [rsi + 0x10]
mov dword [rbp + 0x48], eax
mov rax, qword [rsi + 8]
mov qword [rbp + 0x50], rax
movzx eax, word [rsi + 0x12]
cmp eax, 0x201
jge 0x5f237c
sub eax, 0xa1
cmp eax, 2
jb 0x5f2399
sub eax, 3
cmp eax, 2
jb 0x5f23a5
sub eax, 3
cmp eax, 2
jae 0x5f23ab
jmp 0x5f239f
sub eax, 0x201
cmp eax, 2
jb 0x5f2399
sub eax, 3
cmp eax, 2
jb 0x5f23a5
sub eax, 3
cmp eax, 2
jae 0x5f23ab
jmp 0x5f239f
mov byte [rbp + 0x4c], 0
jmp 0x5f23af
mov byte [rbp + 0x4c], 2
jmp 0x5f23af
mov byte [rbp + 0x4c], 1
jmp 0x5f23af
mov byte [rbp + 0x4c], 0
lea rcx, [rbp + 0x58]
call sub.user32.dll_GetKeyboardState
lea rcx, [rbp + 0x58]
call fcn.006e5f80
mov ebx, eax
call fcn.005e3940
or bx, ax
mov word [rbp + 0x4d], bx
mov rcx, rdi
mov edx, 0xb04b
xor r8, r8
lea r9, [rbp + 0x40]
call fcn.005eb600
mov qword [rsi + 0x18], rax
mov al, 1
jmp 0x5f23ed
xor eax, eax
lea rsp, [rbp + 0x168]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140001488
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1401b1110]
mov dword [rax], 1
mov rax, qword [0x1401b1120]
mov dword [rax], 1
mov rax, qword [0x1401b1130]
mov dword [rax], 1
mov rax, qword [0x1401b1100]
mov dword [rax], 1
mov rax, qword [0x1401afbc0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014e6
mov eax, 0
jmp 0x140001593
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001512
mov eax, 0
jmp 0x140001593
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001538
cmp eax, 0x20b
je 0x14000155f
jmp 0x14000158e
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000154b
mov eax, 0
jmp 0x140001593
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001593
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000157a
mov eax, 0
jmp 0x140001593
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001593
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1401824a0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1401c6890], 0
mov r12, rcx
mov rdi, rdx
je 0x140182528
lea rdx, [0x1401ae34a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140182630
mov rsi, qword [0x1401c6888]
jmp 0x1401824e5
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x1401824e0
movzx r8d, word [rdx + 4]
lea r9, [rdx + 6]
mov rcx, r12
mov rdx, r9
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1401806d0
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
mov r9d, dword [rax]
mov eax, dword [rax + 4]
lea rcx, [rdx + 8]
mov qword [0x1401c6888], rcx
test eax, eax
je 0x140182618
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop dword [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x140182580
not eax
cmp r9d, eax
jne 0x1401826ce
mov byte [0x1401c6890], 1
jmp 0x1401824b9
cmp byte [0x1401c6880], 0
jne 0x1401824d0
mov rbx, qword [sym.imp.python39.dll_PyDict_New]
call rbx
mov qword [0x1401c68d8], rax
call rbx
mov qword [0x1401c68d0], rax
call rbx
mov qword [0x1401c68c8], rax
call rbx
mov qword [0x1401c6908], rax
call rbx
mov qword [0x1401c6900], rax
call rbx
mov qword [0x1401c68f8], rax
call rbx
mov qword [0x1401c68e8], rax
call rbx
mov rbp, qword [sym.imp.python39.dll_PyLong_FromLong]
mov rsi, qword [0x1401afac0]
mov rbx, 0xfffffffffffffffb
mov qword [0x1401c68e0], rax
nop dword [rax]
mov ecx, ebx
call rbp
add qword [rax], 1
mov qword [rsi + rbx*8 + 0x28], rax
add rbx, 1
cmp rbx, 0x102
jne 0x1401826a8
mov byte [0x1401c6880], 1
jmp 0x1401824d0
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
Function at 0x140194480
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14019c650
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14019c650
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1401950b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1401c6a48]
test eax, eax
je 0x14019514a
lea rax, [0x1401c6a20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1401c6a50]
mov qword [rbp - 8], rax
jmp 0x14019512e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140195122
cmp qword [rbp - 0x10], 0
je 0x140195122
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1401950e8
lea rax, [0x1401c6a20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14019514b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140195250
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140195278
mov eax, 0
jmp 0x1401952c6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1401952a1
mov eax, 0
jmp 0x1401952c6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1401952c1
mov eax, 0
jmp 0x1401952c6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1401952cc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14019534a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140195341
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140195341
mov rax, qword [rbp - 8]
jmp 0x14019535f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140195314
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002270
Capabilities:
Create directory
Get common file path
Get session user name
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov rax, qword [0x140048370]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rcx
lea rcx, [rsp + 0x32]
xor edi, edi
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], di
call fcn.140019d30
lea rcx, [rsp + 0x242]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x240], di
call fcn.140019d30
lea rcx, [rsp + 0x30]
mov edx, 0x104
mov dword [rsp + 0x28], 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [rdi + 0x5c]
lea rcx, [rsp + 0x30]
call fcn.140017c3c
test rax, rax
je 0x1400022f5
mov word [rax], di
lea rcx, [rsp + 0x30]
mov edx, 0x5c
call fcn.140017c3c
test rax, rax
je 0x140002323
lea r8, str.Intelgp_
lea rcx, [rsp + 0x30]
mov edx, 0x104
mov word [rax + 2], di
call fcn.140017b48
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x240]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1400023d9
lea r8, str.profile_
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.140017b48
lea r8, [rsp + 0x240]
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.140017b48
lea r8, str..dat
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.140017b48
lea r8, [0x140031cdc]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
call fcn.140018180
test eax, eax
jne 0x1400023d9
mov r9, qword [rsp + 0x20]
lea edx, [rax + 1]
lea rcx, [0x14004ba90]
mov r8d, 0x35c8
call fcn.140018528
mov rcx, qword [rsp + 0x20]
call fcn.140018330
mov rcx, rbx
call fcn.140002ac0
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140019d00
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret
Function at 0x140002ea0
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.1400172f0
mov rbx, rax
mov qword [rsp + 0x60], rax
xor edi, edi
test rax, rax
je 0x140002f18
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 0x140002f1b
mov qword [0x14004f070], rcx
test rcx, rcx
je 0x140002f08
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test rsi, rsi
je 0x140002f1b
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
jmp 0x140002f1b
mov rbx, rdi
lea rax, [0x14004ba88]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, [0x140001d00]
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 0x140002f60
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x140048370]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rdi, rcx
mov rcx, qword [0x14004ba80]
test rcx, rcx
jne 0x14000309b
lea rcx, [rsp + 0x42]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], bx
call fcn.140019d30
lea rcx, [rsp + 0x252]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x250], bx
call fcn.140019d30
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x250]
mov dword [rsp + 0x30], 0x104
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x14000308f
lea r8, str.SOFTWAREIntelDisplayigfxcuiprofiles_app
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.140017bd0
lea r8, [0x140031a98]
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.140017b48
lea r8, [rsp + 0x250]
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.140017b48
mov rcx, qword [0x14004ba80]
mov ebx, 3
test rcx, rcx
jne 0x14000309b
lea rsi, [0x14004ba80]
nop dword [rax + rax]
test ebx, ebx
je 0x140003096
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 0x140003050
jmp 0x14000309b
mov rcx, qword [0x14004ba80]
test rcx, rcx
je 0x1400030da
cmp qword [rdi], 0
jne 0x1400030c0
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 0x1400030da
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.140019d00
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140003100
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.1400021a0
cmp dword [0x14004ba90], 0
je 0x14000312a
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.140002270
call fcn.140002d40
cmp dword [0x14004ba94], 0
je 0x14000314d
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140002f60
add rsp, 0x20
pop rbx
ret
Function at 0x140006420
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 0x14000644e
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140007f10
cmp byte [0x14004f130], 0
jne 0x140006499
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006489
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x14004f130], 1
mov qword [0x14004f128], rax
jmp 0x1400064a0
mov rax, qword [0x14004f128]
mov byte [0x14004f130], 1
jmp 0x1400064a0
mov rax, qword [0x14004f128]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x1400064bf
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 0x140007f84
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x140007f9f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je case.default.0x140007f9f
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.0x140007f9f
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
shl ebx, 0xa5
cmp ecx, dword [rdx + 0x40068b3d]
sub al, 0x6c
invalid
pop rsi
jb 0x140077ce9
movabs dword [0xb388c1495559c537], eax
push rcx
invalid
Function at 0x140007dc0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140048370]
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.140007800
mov ebx, eax
test eax, eax
jne 0x140007ed7
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 0x140007eb1
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140007dc0
mov ebx, eax
test eax, eax
jne 0x140007ed7
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 0x140007e60
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140007ec6
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.140006420
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140007ee7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140019d00
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret