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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x240
xor r12d, r12d
mov r15d, r8d
xor eax, eax
mov rbx, rdx
mov rsi, rcx
lock cmpxchg qword [rcx], r12
je 0x140002587
or rdi, 0xffffffffffffffff
cmp rax, rdi
jne 0x140002566
xor eax, eax
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
or rdi, 0xffffffffffffffff
mov qword [rbp + 0x188], r12
test r15b, 1
je 0x1400025a6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jmp 0x1400026eb
bt qword [0x1400143d8], 0
lea rdx, str.LoadLibraryExW
lea rcx, [0x140019080]
call fcn.140002454
mov r14, rax
test rax, rax
je 0x140002564
mov r13d, 2
test r13b, r15b
je 0x1400025dd
mov r8d, r13d
jmp 0x1400026e3
test r15b, 4
je 0x1400025eb
xor r8d, r8d
jmp 0x1400026e3
bt qword [0x1400143c0], 0
lea rdx, str.AddDllDirectory
lea rcx, [0x140019068]
call fcn.140002454
test rax, rax
jne 0x1400026dd
bt qword [0x1400143b8], 0
lea rdx, str.LdrLoadDll
lea rcx, [0x140019060]
call fcn.140002454
mov r15, rax
test rax, rax
je 0x140002564
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x102
ja 0x1400025e3
mov rdx, rdi
mov rax, rbx
mov rcx, r12
test rbx, rbx
je 0x140002683
cmp word [rax], r12w
je 0x140002683
inc rcx
add rax, r13
sub rdx, 1
jne 0x140002671
add rcx, rcx
mov qword [rsp + 0x28], rbx
movzx eax, cx
lea r9, [rbp + 0x188]
mov edx, 0xffff
lea r8, [rsp + 0x20]
cmp rcx, rdx
cmova ax, dx
mov word [rsp + 0x20], ax
lea rax, [rcx + 2]
add cx, r13w
cmp rax, rdx
cmova cx, dx
xor edx, edx
mov word [rsp + 0x22], cx
lea rcx, [rsp + 0x30]
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
call r15
mov rax, qword [rbp + 0x188]
jmp 0x1400026f2
mov r8d, 0x800
xor edx, edx
mov rcx, rbx
call r14
mov qword [rbp + 0x188], rax
test rax, rax
jne 0x1400026ff
xchg qword [rsi], rdi
jmp 0x140002564
xchg qword [rsi], rax
test rax, rax
je 0x140002714
mov rcx, qword [rbp + 0x188]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, qword [rbp + 0x188]
jmp 0x140002566
Function at 0x14000c150
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [section..textshe]
test rdi, rdi
je 0x14000c225
mov rcx, rdi
call sub.msvcrt.dll_malloc
mov rbx, rax
test rax, rax
je 0x14000c225
mov r9d, edi
mov r8d, 0x122f26
mov rdx, rax
lea rcx, [0x14001b008]
call sym.ConsoleApplication1.exe_LZ4_decompress_safe
test eax, eax
jns 0x14000c1a9
mov rcx, rbx
call sub.msvcrt.dll_free
jmp 0x14000c225
movsxd rsi, eax
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000c19f
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call sub.msvcrt.dll_free
nop
call rdi
nop
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000ec70
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x1400190d8]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14000ecac
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.14000ccc0
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14000ed68
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x14000edd0
test ebx, ebx
jne 0x14000edd0
mov ecx, 2
call fcn.14000ccc0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.14000c790
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret

Function at 0x14000f0e0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, ecx
mov dword [rsp + 0x60], 0
xor ecx, ecx
mov dword [rsp + 0x68], 2
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f142
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f142
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
jne 0x14000f142
mov eax, 0x20b
cmp word [rdx + 0x18], ax
jne 0x14000f142
cmp dword [rdx + 0x84], 0xe
jbe 0x14000f142
cmp dword [rdx + 0xf8], 0
je 0x14000f142
mov ecx, ebx
call fcn.14000efa0
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x140019840]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.14000ee10
cmp dword [rsp + 0x60], 0
jne 0x14000f185
mov ecx, ebx
call fcn.14000ef50
int3
add rsp, 0x40
pop rbx
ret
Function at 0x14000f1d0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f22c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f22c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f22c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f22c
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f22c
cmp dword [rcx + 0xf8], 0
je 0x14000f22c
mov ecx, ebx
call fcn.14000efa0
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x140019840]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.14000ee10
cmp dword [rsp + 0x60], 0
jne 0x14000f26f
mov ecx, ebx
call fcn.14000ef50
int3
add rsp, 0x40
pop rbx
ret
Function at 0x10000645c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x260], rax
cmp qword [rcx], 0
mov rbx, rcx
mov dil, 1
je 0x10000654d
mov r8, qword [rbx]
mov r9, qword [rbx + 8]
and qword [rsp + 0x50], 0
lea rcx, [rsp + 0x60]
mov edx, 0x100
call fcn.100004f90
test eax, eax
js 0x100006579
and qword [rsp + 0x40], 0
mov rbp, qword [rbx + 0x10]
mov rsi, qword [rbx + 0x18]
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
add rbx, 0x20
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100006535
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x100006538
xor dil, dil
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbx], 0
jne 0x100006495
mov al, dil
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.100017460
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
xor al, al
jmp 0x100006550

Function at 0x100006584
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x220], rax
xor esi, esi
mov rdi, rcx
mov bl, 1
cmp qword [rcx], rsi
je 0x1000065fd
mov r8, qword [rdi]
mov r9, qword [rdi + 8]
lea rcx, [rsp + 0x20]
mov edx, 0x100
call fcn.100004f90
cmp eax, esi
jl 0x100006624
lea rdx, [rsp + 0x20]
mov rcx, 0xffffffff80000000
add rdi, 0x20
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, 0x3fa
je 0x1000065f8
cmp eax, 2
je 0x1000065f8
movzx ebx, bl
cmp eax, esi
cmovne ebx, esi
cmp qword [rdi], rsi
jne 0x1000065b4
mov al, bl
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.100017460
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
xor al, al
jmp 0x1000065ff
Function at 0x100006c84
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0xf0
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor r12d, r12d
lea rsi, [0x10001bde8]
lea rdi, [0x1000019a8]
mov ebp, r12d
lea r14, [0x10001d630]
mov r9d, dword [rdi]
lea r8, [0x100001ac0]
lea rcx, [0x10001da20]
mov edx, 0x28
lea rbx, [0x10001bd40]
call fcn.100004f90
cmp eax, r12d
jl 0x100006e55
mov r8, qword [rsi]
cmp r8, r12
je 0x100006d4d
mov r9d, 0x28
mov rcx, r14
mov edx, r12d
sub r8, r14
lea rax, [r9 + 0x7fffffd6]
cmp rax, r12
je 0x100006d32
movzx eax, word [r8 + rcx]
cmp ax, r12w
je 0x100006d32
mov word [rcx], ax
add rcx, 2
sub r9, 1
jne 0x100006d0e
cmp r9, r12
jne 0x100006d40
sub rcx, 2
mov edx, 0x8007007a
cmp edx, r12d
mov word [rcx], r12w
jl 0x100006e82
cmp qword [0x10001bd40], r12
je 0x100006db4
lea rax, [rbx + 8]
cmp qword [rax], r12
je 0x100006daf
cmp qword [rbx + 0x10], r12
je 0x100006daf
mov r8, qword [rbx]
mov r9, qword [rax]
lea rcx, [rsp + 0x40]
mov edx, 0x50
mov rbx, rax
call fcn.100004f90
cmp eax, r12d
jl 0x100006e55
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, 0x3fa
je 0x100006dab
cmp eax, 2
je 0x100006dab
cmp eax, r12d
je 0x100006dab
inc ebp
add rbx, 0x20
cmp qword [rbx], r12
jne 0x100006d56
lea rax, [0x1000019b8]
add rdi, 0x10
add rsi, 8
cmp rdi, rax
jl 0x100006ccc
lea rax, [rsp + 0x30]
lea rdx, [0x100001b10]
mov r9d, 0x2011f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r12d
jne 0x100006e27
mov rcx, qword [rsp + 0x30]
lea rdx, [0x100001b78]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
lea rdx, [0x100001ba0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.10000a9dc
cmp al, r12b
je 0x100006e3d
lea rcx, [0x10001bf20]
call fcn.100006584
call fcn.10000a9dc
cmp al, r12b
je 0x100006e53
lea rcx, [0x10001bd18]
call fcn.100006584
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.100017460
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rdi
ret
mov eax, edx
jmp 0x100006e55

Function at 0x100006e8c
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x20]
lea rcx, [0x100001c28]
mov r8d, 0x40
mov byte [0x10001db34], 1
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x100006eff
movzx ecx, word [rsp + 0x20]
lea r8, [rsp + 0x20]
test ecx, ecx
je 0x100006efd
mov r9d, dword [0x10001db1c]
and ecx, 0x1f
add r8, 2
mov edx, 1
shl edx, cl
movzx ecx, word [r8]
or r9d, edx
test ecx, ecx
jne 0x100006edd
mov dword [0x10001db1c], r9d
mov al, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.100017460
add rsp, 0xb8
ret
Function at 0x10000a140
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
mov rbx, r9
xor r9d, r9d
mov rax, r8
mov qword [r11 - 0x18], r9
mov qword [r11 - 0x20], rax
mov dword [r11 - 0x28], r9d
movzx r10d, dx
xor r8d, r8d
mov word [r11 - 0x30], r10w
mov qword [r11 - 0x38], r9
mov r9d, ecx
lea edx, [r8 + 2]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
add rsp, 0x50
pop rbx
jmp qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]

Function at 0x10000a194
Capabilities:
Compare security identifiers

Disassembly:
push rbx
sub rsp, 0x50
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
test eax, eax
jne 0x10000a1c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x100002230]
mov edx, eax
call fcn.10000a84c
xor al, al
jmp 0x10000a303
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x10000a1c2
cmp byte [0x10001e27a], 0
jne 0x10000a1f2
lea rcx, [rsp + 0x20]
call fcn.100005380
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
jmp 0x10000a1fb
lea rdx, [0x10001e280]
xor eax, eax
test eax, eax
je 0x10000a208
lea rcx, [0x1000022f0]
jmp 0x10000a1bb
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x10000a219
mov al, 1
jmp 0x10000a303
cmp byte [0x10001e279], 0
jne 0x10000a233
lea rcx, [rsp + 0x20]
call fcn.10000526c
mov rdx, qword [rsp + 0x20]
jmp 0x10000a23c
lea rdx, [0x10001e380]
xor eax, eax
test eax, eax
je 0x10000a24c
lea rcx, [0x100002390]
jmp 0x10000a1bb
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10000a212
lea rbx, [0x10001e480]
cmp byte [0x10001e278], al
jne 0x10000a2de
and dword [rsp + 0x20], eax
lea rdx, [0x100001a90]
lea rcx, [rsp + 0x38]
call qword [0x10001a880]
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [0x10001a8b8]
cmp eax, 0xc0000023
je 0x10000a2a0
mov eax, 0xd
jmp 0x10000a2e4
cmp dword [rsp + 0x20], 0x100
jbe 0x10000a2b1
mov eax, 0xea
jmp 0x10000a2e4
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x38]
mov rdx, rbx
call qword [0x10001a8b8]
test eax, eax
jns 0x10000a2d7
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov rbx, qword [rsp + 0x28]
jmp 0x10000a2e0
mov byte [0x10001e278], 1
xor eax, eax
test eax, eax
je 0x10000a2f0
lea rcx, [0x100002420]
jmp 0x10000a1bb
mov rcx, qword [rsp + 0x28]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
add rsp, 0x50
pop rbx
ret
Function at 0x10000a43c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0xa90
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rsi, rcx
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x20a
xor edi, edi
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x50]
mov r12d, 0x105
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x270]
mov ebp, 0x401
mov dword [rsp + 0x48], r12d
lea r8, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x260], rax
mov dword [rsp + 0x268], ebp
mov r9d, r12d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x10000a627
mov rdx, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x10000a5aa
mov rcx, qword [rsp + 0x30]
call fcn.10000a310
test al, al
jne 0x10000a591
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r11, qword [rsp + 0x40]
lea rdx, [0x100002208]
xor ecx, ecx
mov qword [rsp + 0x38], r11
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x10000a541
lea edx, [rbx + 1]
lea r8, [rsp + 0x38]
mov r9, rax
mov ecx, 0x403
call fcn.10000a140
movsxd rdx, dword [rsp + 0x268]
mov r9, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x260]
lea r8, [0x1000025e0]
call fcn.100004f90
test eax, eax
js 0x10000a575
mov rcx, qword [rsp + 0x260]
xor edx, edx
call fcn.10000a84c
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.10000e4c8
test al, al
jne 0x10000a593
xor edx, edx
lea rcx, [0x1000026b0]
jmp 0x10000a5d9
inc edi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, qword [rsp + 0x40]
mov edx, edi
jmp 0x10000a4b2
movsxd rdx, dword [rsp + 0x268]
mov r9, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x260]
lea r8, [0x100002570]
call fcn.100004f90
test eax, eax
js 0x10000a5de
mov rcx, qword [rsp + 0x260]
mov edx, ebx
call fcn.10000a84c
cmp dword [rsp + 0x268], ebp
jle 0x10000a5f5
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rsp + 0x48], r12d
lea rax, [rsp + 0x270]
mov dword [rsp + 0x268], ebp
mov qword [rsp + 0x260], rax
jle 0x10000a623
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x10000a623
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
jmp 0x10000a680
cmp eax, 0x103
je 0x10000a639
mov edx, eax
lea rcx, [0x100002720]
jmp 0x10000a5d9
cmp dword [rsp + 0x268], ebp
jle 0x10000a650
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [rsp + 0x48], r12d
lea rcx, [rsp + 0x270]
mov dword [rsp + 0x268], ebp
mov qword [rsp + 0x260], rcx
jle 0x10000a67e
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x10000a67e
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, 1
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.100017460
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x10000a84c
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x8c0
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x8b0], rax
mov edi, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
cmp dword [0x10001d07c], 0xffffffff
mov ebx, eax
jne 0x10000a936
lea rax, [rsp + 0x30]
lea rdx, [0x100002960]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [0x10001d07c], ebp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x10000a936
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x50]
lea rdx, [0x1000029c0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x48], 0x28
mov dword [rsp + 0x38], 0x50
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x10000a919
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
and ecx, 3
mov dword [0x10001d07c], ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x48], 0x28
jle 0x10000a936
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x10001d07c]
and eax, 3
cmp al, bpl
je 0x10000a9a9
lea rcx, [rsp + 0xa2]
xor edx, edx
mov r8d, 0x800
mov word [rsp + 0xa0], bp
call sub.msvcrt.dll_memset
mov edx, 0x401
lea rcx, [rsp + 0xa0]
cmp edi, ebp
je 0x10000a988
lea r8, [0x1000029d0]
mov r9d, edi
mov qword [rsp + 0x20], rsi
call fcn.100004f90
jmp 0x10000a997
lea r8, [0x1000029f8]
mov r9, rsi
call fcn.100004f90
cmp eax, ebp
jl 0x10000a9a9
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x8b0]
xor rcx, rsp
call fcn.100017460
mov rbx, qword [rsp + 0x8f0]
add rsp, 0x8c0
pop rdi
pop rsi
pop rbp
ret
Function at 0x10000aa98
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
sub rsp, 0x880
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x870], rax
mov rcx, qword [0x10001db10]
lea rdx, [0x10001d6d0]
xor esi, esi
mov r8d, 0x103
mov word [0x10001d8d6], si
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, esi
jne 0x10000aaf1
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10000ab6e
mov word [0x10001d8d6], si
mov edi, esi
lea rbx, [0x10001bdf0]
cmp qword [0x10001bdf8], rsi
je 0x10000ab4f
mov r12d, 0x401
cmp qword [rbx], rsi
jne 0x10000ab45
mov rax, qword [rbx + 0x18]
mov r8, qword [rbx + 8]
mov r9, qword [rbx + 0x10]
mov rdx, r12
lea rcx, [rsp + 0x60]
cmp rax, rsi
je 0x10000ab3a
mov qword [rsp + 0x20], rax
call fcn.100004f90
jmp 0x10000ab3f
call fcn.100004f90
cmp eax, esi
jge 0x10000ab98
inc edi
add rbx, 0x30
cmp qword [rbx + 8], rsi
jne 0x10000ab10
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1000
mov ecx, 0x8000000
call qword [0x10001a6a0]
neg edi
sbb eax, eax
and eax, 0x80004005
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.100017460
lea r11, [rsp + 0x880]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r12
ret
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x10000abd6
inc edi
mov r8, qword [rbx + 0x20]
cmp r8, rsi
je 0x10000ac33
mov r9, qword [rbx + 0x28]
lea rcx, [rsp + 0x60]
mov rdx, r12
call fcn.100004f90
add rbx, 0x30
cmp eax, esi
jl 0x10000ac2f
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x10000ac37
inc edi
jmp 0x10000ac37
add rbx, 0x30
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10000ab49
Function at 0x10000ac50
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
sub rsp, 0x860
mov rax, qword [0x10001a100]
xor rax, rsp
mov qword [rsp + 0x850], rax
cmp qword [0x10001bdf8], 0
lea rbx, [0x10001bdf8]
je 0x10000ad30
mov rax, qword [rbx + 0x10]
mov r8, qword [rbx]
mov r9, qword [rbx + 8]
mov edx, 0x401
lea rcx, [rsp + 0x40]
test rax, rax
je 0x10000aca6
mov qword [rsp + 0x20], rax
call fcn.100004f90
jmp 0x10000acab
call fcn.100004f90
test eax, eax
js 0x10000ad61
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, 0x20008
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10000ad22
mov rcx, qword [rsp + 0x30]
lea r9d, [rax + 0x50]
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, 0x103
jne 0x10000ad11
mov rcx, qword [rsp + 0x30]
lea rdx, [0x100001880]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x30], 0
add rbx, 0x30
cmp qword [rbx], 0
jne 0x10000ac80
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1000
mov ecx, 0x8000000
call qword [0x10001a6a0]
xor eax, eax
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.100017460
add rsp, 0x860
pop rbx
ret
mov eax, 0x80004005
jmp 0x10000ad48