joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003b60c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140048cc8], rbx
je 0x14003b673
cmp rax, rbx
jne 0x14003b666
mov ebx, 1
mov esi, ebx
jmp 0x14003b678
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14003b64b
mov ebx, 1
mov eax, dword [0x140048cd0]
cmp eax, ebx
jne 0x14003b690
mov edi, 0x1f
mov ecx, edi
call fcn.140166000
jmp 0x14003b6fc
mov eax, dword [0x140048cd0]
test eax, eax
jne 0x14003b6f1
mov dword [0x140048cd0], ebx
lea r15, [0x14003e288]
lea rdi, [0x14003e270]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14003b6e3
test eax, eax
jne 0x14003b6e7
cmp qword [rdi], r14
je 0x14003b6d8
mov rax, qword [rdi]
mov rcx, qword [0x14003e230]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14003b6ba
test eax, eax
je 0x14003b6f7
mov eax, 0xff
jmp 0x14003b852
mov dword [0x140048284], ebx
mov edi, 0x1f
mov eax, dword [0x140048cd0]
cmp eax, ebx
jne 0x14003b723
lea rdx, [0x14003e268]
lea rcx, [0x14003e238]
call sub.msvcrt.dll__initterm
mov dword [0x140048cd0], 2
test esi, esi
jne 0x14003b731
mov rax, r14
xchg qword [0x140048cc8], rax
cmp qword [0x140048ce8], r14
je 0x14003b764
lea rcx, [0x140048ce8]
call fcn.14003bbf0
test eax, eax
je 0x14003b764
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140048ce8]
mov r9, qword [0x14003e230]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14003b77d
mov eax, 0xff
jmp 0x14003b852
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14003b803
test ax, ax
je 0x14003b798
test edx, edx
jne 0x14003b803
sub ax, bx
cmp ax, di
ja 0x14003b7ae
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14003b798
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001fc0
mov dword [0x140048280], eax
cmp dword [0x1400482a0], r14d
jne 0x14003b7ec
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140048284], r14d
jne 0x14003b801
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140048280]
jmp 0x14003b852
cmp ax, 0x22
jne 0x14003b817
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14003b786
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14003bc70
add rsp, 0x28
jmp 0x14003b60c
Function at 0x140001a01
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r12, rcx
test edx, edx
je 0x140001b75
mov r13d, edx
mov edi, 0
lea r14, [0x140001530]
lea rbx, [0x1405b72e1]
jmp 0x140001a67
mov byte [0x1405b72e1], 0
mov edx, esi
sar edx, 0x1f
shr edx, 0x1b
lea eax, [rsi + rdx]
and eax, 0x1f
sub eax, edx
cdqe
lea rdx, [0x1405b72c0]
xor bpl, byte [rdx + rax]
mov byte [r12 + rdi], bpl
add rdi, 1
cmp r13, rdi
je 0x140001b75
mov esi, edi
movzx ebp, byte [r12 + rdi]
mov byte [rsp + 0x20], 0x81
mov byte [rsp + 0x21], 0x78
mov byte [rsp + 0x22], 0x81
mov byte [rsp + 0x23], 0x82
mov byte [rsp + 0x24], 0x8d
mov byte [rsp + 0x25], pe_nt_image_headers64
mov byte [rsp + 0x26], pe_nt_image_headers64
mov byte [rsp + 0x27], 0x87
mov byte [rsp + 0x28], 0x79
mov byte [rsp + 0x29], 0x7a
mov byte [rsp + 0x2a], 0x85
mov byte [rsp + 0x2b], 0x83
mov byte [rsp + 0x2c], 0x82
mov byte [rsp + 0x2d], 0x87
mov byte [rsp + 0x2e], 0x87
mov byte [rsp + 0x2f], 0x82
mov byte [rsp + 0x30], 0x7f
mov byte [rsp + 0x31], 0x85
mov byte [rsp + 0x32], 0x74
mov byte [rsp + 0x33], 0x84
mov byte [rsp + 0x34], 0x7f
mov byte [rsp + 0x35], 0x76
mov byte [rsp + 0x36], 0x87
mov byte [rsp + 0x37], 0x8b
mov byte [rsp + 0x38], 0x7c
mov byte [rsp + 0x39], 0x7e
mov byte [rsp + 0x3a], 0x7d
mov byte [rsp + 0x3b], 0x83
mov byte [rsp + 0x3c], 0x7b
mov byte [rsp + 0x3d], 0x76
mov byte [rsp + 0x3e], 0x86
mov byte [rsp + 0x3f], 0x83
mov byte [rsp + 0x40], 0x13
cmp byte [0x1405b72a0], 0
jne 0x140001b50
mov byte [0x1405b72e1], 1
mov eax, 0
lea rcx, [0x1405b72c0]
movzx edx, byte [rsp + rax + 0x20]
mov byte [rcx + rax], dl
add rax, 1
cmp rax, 0x21
jne 0x140001b2f
mov byte [0x1405b72a0], 1
mov rcx, r14
call fcn.1400014f0
cmp byte [0x1405b72e1], 0
je 0x140001a39
lea rax, [0x1405b72c0]
sub byte [rax], 0x13
add rax, 1
cmp rbx, rax
jne 0x140001b64
jmp 0x140001a32
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140006a80
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140006ab0
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x140006aaf
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140006ab5
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x140006aaf
mov eax, 0
jmp 0x140006aaf

Function at 0x140007130
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400070e0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140010750
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 fcn.140019290
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140019290
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x1400107c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1405b7694]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140010950
mov rax, qword [0x1405b7698]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x14001080c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140010895
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x1400107f0
mov rcx, rdi
call fcn.140011320
test rax, rax
mov r12, rax
je 0x1400109a2
mov rax, qword [0x1405b7698]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140011460
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1405b7698]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140010985
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001088e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140010900
add dword [0x1405b7694], 1
cmp ebx, 8
jae 0x1400108c1
test bl, 4
jne 0x140010960
test ebx, ebx
je 0x1400108b6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140010974
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x1400108b6
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x1400108da
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1405b7698]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001088e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140010750
xor esi, esi
jmp 0x140010817
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x1400108b6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x1400108b6
mov rax, qword [0x1405b7698]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140010750
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140010750
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140010f70
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1405b7700]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1405b76e0]
test rbx, rbx
je 0x140010fc4
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 0x140010fbb
test rsi, rsi
je 0x140010fbb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140010fa0
lea rcx, [0x1405b7700]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140011320
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1405b2290]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14001138f
mov rcx, r9
call fcn.1400111f0
test eax, eax
je 0x14001138f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14001138d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140011384
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14001138f
add rdx, 0x28
cmp rdx, r9
jne 0x140011370
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001b690
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1405aecc0]
jmp 0x140012150

Function at 0x14001b6a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1405aecc0]
jmp 0x140012150
Function at 0x10000641c
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 0x10000650d
mov r8, qword [rbx]
mov r9, qword [rbx + 8]
and qword [rsp + 0x50], 0
lea rcx, [rsp + 0x60]
mov edx, 0x100
call fcn.100004f50
test eax, eax
js 0x100006539
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 0x1000064f5
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 0x1000064f8
xor dil, dil
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbx], 0
jne 0x100006455
mov al, dil
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.100017040
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 0x100006510

Function at 0x100006544
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 0x1000065bd
mov r8, qword [rdi]
mov r9, qword [rdi + 8]
lea rcx, [rsp + 0x20]
mov edx, 0x100
call fcn.100004f50
cmp eax, esi
jl 0x1000065e4
lea rdx, [rsp + 0x20]
mov rcx, 0xffffffff80000000
add rdi, 0x20
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, 0x3fa
je 0x1000065b8
cmp eax, 2
je 0x1000065b8
movzx ebx, bl
cmp eax, esi
cmovne ebx, esi
cmp qword [rdi], rsi
jne 0x100006574
mov al, bl
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.100017040
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
xor al, al
jmp 0x1000065bf
Function at 0x100006c44
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, [0x10001bf18]
lea rdi, [0x1000019a8]
mov ebp, r12d
lea r14, [0x10001d5f0]
mov r9d, dword [rdi]
lea r8, [0x100001ac0]
lea rcx, [0x10001d9e0]
mov edx, 0x28
lea rbx, [0x10001bcd0]
call fcn.100004f50
cmp eax, r12d
jl 0x100006e15
mov r8, qword [rsi]
cmp r8, r12
je 0x100006d0d
mov r9d, 0x28
mov rcx, r14
mov edx, r12d
sub r8, r14
lea rax, [r9 + 0x7fffffd6]
cmp rax, r12
je 0x100006cf2
movzx eax, word [r8 + rcx]
cmp ax, r12w
je 0x100006cf2
mov word [rcx], ax
add rcx, 2
sub r9, 1
jne 0x100006cce
cmp r9, r12
jne 0x100006d00
sub rcx, 2
mov edx, 0x8007007a
cmp edx, r12d
mov word [rcx], r12w
jl 0x100006e42
cmp qword [0x10001bcd0], r12
je 0x100006d74
lea rax, [rbx + 8]
cmp qword [rax], r12
je 0x100006d6f
cmp qword [rbx + 0x10], r12
je 0x100006d6f
mov r8, qword [rbx]
mov r9, qword [rax]
lea rcx, [rsp + 0x40]
mov edx, 0x50
mov rbx, rax
call fcn.100004f50
cmp eax, r12d
jl 0x100006e15
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, 0x3fa
je 0x100006d6b
cmp eax, 2
je 0x100006d6b
cmp eax, r12d
je 0x100006d6b
inc ebp
add rbx, 0x20
cmp qword [rbx], r12
jne 0x100006d16
lea rax, [0x1000019b8]
add rdi, 0x10
add rsi, 8
cmp rdi, rax
jl 0x100006c8c
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 0x100006de7
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.10000a99c
cmp al, r12b
je 0x100006dfd
lea rcx, [0x10001bed0]
call fcn.100006544
call fcn.10000a99c
cmp al, r12b
je 0x100006e13
lea rcx, [0x10001bd78]
call fcn.100006544
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.100017040
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 0x100006e15

Function at 0x100006e4c
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 [0x10001daf4], 1
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x100006ebf
movzx ecx, word [rsp + 0x20]
lea r8, [rsp + 0x20]
test ecx, ecx
je 0x100006ebd
mov r9d, dword [0x10001dadc]
and ecx, 0x1f
add r8, 2
mov edx, 1
shl edx, cl
movzx ecx, word [r8]
or r9d, edx
test ecx, ecx
jne 0x100006e9d
mov dword [0x10001dadc], r9d
mov al, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.100017040
add rsp, 0xb8
ret
Function at 0x10000a100
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 0x10000a154
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 0x10000a189
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x100002230]
mov edx, eax
call fcn.10000a80c
xor al, al
jmp 0x10000a2c3
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x10000a182
cmp byte [0x10001e23a], 0
jne 0x10000a1b2
lea rcx, [rsp + 0x20]
call fcn.100005340
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
jmp 0x10000a1bb
lea rdx, [0x10001e240]
xor eax, eax
test eax, eax
je 0x10000a1c8
lea rcx, [0x1000022f0]
jmp 0x10000a17b
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x10000a1d9
mov al, 1
jmp 0x10000a2c3
cmp byte [0x10001e239], 0
jne 0x10000a1f3
lea rcx, [rsp + 0x20]
call fcn.10000522c
mov rdx, qword [rsp + 0x20]
jmp 0x10000a1fc
lea rdx, [0x10001e340]
xor eax, eax
test eax, eax
je 0x10000a20c
lea rcx, [0x100002390]
jmp 0x10000a17b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x10000a1d2
lea rbx, [0x10001e440]
cmp byte [0x10001e238], al
jne 0x10000a29e
and dword [rsp + 0x20], eax
lea rdx, [0x100001a90]
lea rcx, [rsp + 0x38]
call qword [0x10001a878]
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x38]
xor edx, edx
call qword [0x10001a8b0]
cmp eax, 0xc0000023
je 0x10000a260
mov eax, 0xd
jmp 0x10000a2a4
cmp dword [rsp + 0x20], 0x100
jbe 0x10000a271
mov eax, 0xea
jmp 0x10000a2a4
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x38]
mov rdx, rbx
call qword [0x10001a8b0]
test eax, eax
jns 0x10000a297
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov rbx, qword [rsp + 0x28]
jmp 0x10000a2a0
mov byte [0x10001e238], 1
xor eax, eax
test eax, eax
je 0x10000a2b0
lea rcx, [0x100002420]
jmp 0x10000a17b
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 0x10000a3fc
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 0x10000a5e7
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 0x10000a56a
mov rcx, qword [rsp + 0x30]
call fcn.10000a2d0
test al, al
jne 0x10000a551
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 0x10000a501
lea edx, [rbx + 1]
lea r8, [rsp + 0x38]
mov r9, rax
mov ecx, 0x403
call fcn.10000a100
movsxd rdx, dword [rsp + 0x268]
mov r9, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x260]
lea r8, [0x1000025e0]
call fcn.100004f50
test eax, eax
js 0x10000a535
mov rcx, qword [rsp + 0x260]
xor edx, edx
call fcn.10000a80c
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call fcn.10000e250
test al, al
jne 0x10000a553
xor edx, edx
lea rcx, [0x1000026b0]
jmp 0x10000a599
inc edi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, qword [rsp + 0x40]
mov edx, edi
jmp 0x10000a472
movsxd rdx, dword [rsp + 0x268]
mov r9, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x260]
lea r8, [0x100002570]
call fcn.100004f50
test eax, eax
js 0x10000a59e
mov rcx, qword [rsp + 0x260]
mov edx, ebx
call fcn.10000a80c
cmp dword [rsp + 0x268], ebp
jle 0x10000a5b5
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 0x10000a5e3
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x10000a5e3
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
jmp 0x10000a640
cmp eax, 0x103
je 0x10000a5f9
mov edx, eax
lea rcx, [0x100002720]
jmp 0x10000a599
cmp dword [rsp + 0x268], ebp
jle 0x10000a610
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 0x10000a63e
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x10000a63e
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, 1
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.100017040
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 0x10000a80c
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 [0x10001d03c], 0xffffffff
mov ebx, eax
jne 0x10000a8f6
lea rax, [rsp + 0x30]
lea rdx, [0x100002960]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [0x10001d03c], ebp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x10000a8f6
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 0x10000a8d9
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
and ecx, 3
mov dword [0x10001d03c], ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x48], 0x28
jle 0x10000a8f6
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [0x10001d03c]
and eax, 3
cmp al, bpl
je 0x10000a969
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 0x10000a948
lea r8, [0x1000029d0]
mov r9d, edi
mov qword [rsp + 0x20], rsi
call fcn.100004f50
jmp 0x10000a957
lea r8, [0x1000029f8]
mov r9, rsi
call fcn.100004f50
cmp eax, ebp
jl 0x10000a969
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.100017040
mov rbx, qword [rsp + 0x8f0]
add rsp, 0x8c0
pop rdi
pop rsi
pop rbp
ret