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

Disassembly:
push rbp
push r14
push rdi
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x50]
lea rcx, [0x140149f40]
mov edx, 5
call fcn.140004350
xor ecx, ecx
mov edx, ecx
lea r8, [0x14011cbf0]
movzx r8d, word [r8 + rdx*2 + 0xc]
mov r10d, ecx
and r10d, 0xf
lea r9, [0x140134a70]
movzx r10d, word [r9 + r10*2 + 0xc]
xor r8d, r10d
mov word [rax + rdx*2 + 0x10], r8w
inc ecx
cmp ecx, 5
jl 0x140077842
mov rcx, rax
call fcn.140082a30
mov rbx, rax
xor esi, esi
call fcn.140077960
mov rcx, rax
mov edx, 2
call fcn.140077f10
mov rdi, rax
test rdi, rdi
je 0x14007791d
lea rcx, [0x14013d1a8]
call fcn.140004230
mov r14, rax
mov rcx, r14
mov edx, 0x100
mov r8d, 0x7fffffff
call fcn.1400b6920
mov r8, qword [r14 + 8]
mov r8d, dword [r8 + 8]
add r8d, dword [r14 + 0x1c]
mov rcx, rdi
mov rdx, r14
call fcn.140077d00
test eax, eax
jle 0x140077903
mov rcx, r14
call fcn.1400b69e0
mov dword [rsp + 0x20], 5
mov r9d, dword [rax + 8]
mov rcx, rax
mov rdx, rbx
xor r8d, r8d
call fcn.140084700
test eax, eax
jge 0x14007791a
mov rcx, rdi
mov edx, 2
call fcn.140077f10
mov rdi, rax
test rdi, rdi
jne 0x1400778a0
jmp 0x14007791d
mov rsi, rdi
test rsi, rsi
je 0x140077945
mov rcx, rsi
call fcn.140073b00
mov rcx, rsi
mov edx, 5
call fcn.140073d70
mov rax, rsi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r14
pop rbp
ret
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r14
pop rbp
ret

Function at 0x14007d590
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
mov r8d, edx
mov dword [rbp - 0x64], r8d
mov rdx, rcx
mov qword [rbp - 0x70], rdx
xor ecx, ecx
mov qword [rbp - 0x78], rcx
mov r9d, 2
mov dword [rbp - 0x68], r9d
lea rcx, [rbp - 0x60]
call fcn.140005ef0
mov r8d, dword [rbp - 0x64]
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
mov r9d, dword [rbp - 0x68]
call sub.bcrypt.dll_BCryptGenRandom
mov ebx, eax
lea rcx, [rbp - 0x60]
call fcn.140005f40
test ebx, ebx
jne 0x14007d604
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp ebx, 0xc0000017
je 0x14007d62c
lea rcx, [0x14013a718]
call fcn.140004230
mov rbx, rax
mov rcx, rbx
call fcn.14008c6e0
mov rcx, rbx
call fcn.1400047a0
int3
lea rcx, [0x14013acf0]
call fcn.140004230
mov rbx, rax
mov rcx, rbx
call fcn.1400908f0
mov rcx, rbx
call fcn.1400047a0
int3
Function at 0x14007db00
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x50]
mov rbx, rcx
mov eax, dword [rbx + 0x38]
cmp eax, 0xffffffff
jne 0x14007dba7
mov dword [rsp + 0x20], 0x10
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x20]
mov rcx, rbx
mov r9d, 4
call fcn.1400da620
mov ecx, eax
test ecx, ecx
jne 0x14007dbae
xor eax, eax
mov ecx, 0x40000000
test byte [rbp - 0x10], 0x30
cmove eax, ecx
mov ecx, eax
or ecx, 0x80000000
test byte [rbp - 0x10], 2
cmovne eax, ecx
mov ecx, eax
or ecx, 0x10000000
test dword [rbp - 0x10], 0x800
cmovne eax, ecx
mov ecx, eax
or ecx, 0x8000000
test byte [rbp - 0x10], 4
cmovne eax, ecx
mov ecx, eax
or ecx, 0x4000000
test dword [rbp - 0x10], 0x1000
cmovne eax, ecx
mov ecx, eax
or ecx, 0x20000000
test byte [rbp - 0x10], 8
cmovne eax, ecx
mov dword [rbx + 0x38], eax
add rsp, 0x48
pop rbx
pop rbp
ret
add rsp, 0x48
pop rbx
pop rbp
ret
call fcn.1400da5c0
mov ecx, eax
lea rdx, [0x14011c3a8]
xor r8d, r8d
call fcn.1400c5130
mov rcx, rax
call fcn.1400047a0
int3

Function at 0x140080950
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140080962
add rsp, 0x28
jmp fcn.140081020
lea rcx, [0x140134960]
call fcn.140088470
int3
Function at 0x140080ec0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x20]
xor eax, eax
mov qword [rbp + 0x58], rax
xorps xmm4, xmm4
movaps xmmword [rbp + 0x60], xmm4
mov qword [rbp + 0x70], rax
mov rax, qword [0x1401d3440]
mov qword [rbp + 0x10], rax
test dword [rsp], esp
sub rsp, 0x40
lea rcx, [rsp + 0x20]
mov qword [rbp + 0x68], rcx
mov dword [rbp + 0x70], 0x20
xor ecx, ecx
mov dword [rbp + 0x60], ecx
mov rcx, qword gs:[0x58]
mov eax, dword [0x1401dda68]
mov edx, 0x10
add rdx, qword [rcx + rax*8]
mov rbx, qword [rdx]
test rbx, rbx
je 0x140080fec
mov qword [rbp + 0x18], rbx
jmp 0x140080f48
mov edx, ebx
sub edx, dword [rbp + 0x60]
lea rcx, [rbp + 0x58]
call fcn.1400bc9d0
mov rsi, qword [rbp + 0x68]
mov qword [rbp + 0x20], rsi
mov edi, dword [rbp + 0x70]
mov qword [rbp + 0x50], rsi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rsi, qword [rbp + 0x20]
mov rcx, rsi
mov qword [rbp + 4], rcx
mov edx, edi
mov dword [rbp + 0xc], edx
lea rcx, [rbp + 0x28]
call fcn.140005ef0
mov rcx, qword [rbp + 4]
mov edx, dword [rbp + 0xc]
call sub.KERNEL32.dll_GetSystemDirectoryW
mov ebx, eax
lea rcx, [rbp + 0x28]
call fcn.140005f40
call sub.KERNEL32.dll_GetLastError
xor edx, edx
mov qword [rbp + 0x50], rdx
mov rsi, qword [rbp + 0x18]
mov dword [rsi + 0x80], eax
mov edx, ebx
movsxd rcx, dword [rbp + 0x70]
cmp rdx, rcx
jle 0x140080fb5
cmp ebx, dword [rbp + 0x70]
jbe 0x140080f48
jmp 0x140080f3a
test ebx, ebx
je 0x140081000
mov dword [rbp + 0x60], ebx
lea rcx, [rbp + 0x58]
call fcn.1400bc7a0
lea rcx, [0x1401d3440]
mov rcx, qword [rcx]
cmp qword [rbp + 0x10], rcx
je 0x140080fda
call fcn.140003db0
nop
lea rsp, [rbp + 0x78]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x1400d30f0]
call rax
mov rbx, rax
jmp 0x140080f34
lea rcx, [0x14011c3a8]
call fcn.1400c50d0
mov rcx, rax
call fcn.1400047a0
int3
Function at 0x140090f80
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r8d, edx
test r8d, r8d
jl 0x140091086
mov rcx, qword [rcx + 8]
lea rax, [0x140141100]
cmp qword [rcx], rax
je 0x140091078
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
mov r10, qword [rcx + 0x18]
mov r9, qword [rcx + 0x20]
mov r11, rdx
shl r11, 0x11
xor r10, rax
xor r9, rdx
lea rbx, [rdx + rdx*4]
rol rbx, 7
lea rbx, [rbx + rbx*8]
xor rdx, r10
xor rax, r9
xor r10, r11
rol r9, 0x2d
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rdx
mov qword [rcx + 0x18], r10
mov qword [rcx + 0x20], r9
mov r10d, r8d
shr rbx, 0x20
mov r9d, ebx
imul r9, r10
mov r11d, r9d
cmp r11d, r8d
jae 0x14009106a
mov eax, r8d
neg eax
xor edx, edx
div r8d
cmp r11d, edx
jae 0x14009106a
mov r9, qword [rcx + 8]
mov r11, qword [rcx + 0x10]
mov rax, qword [rcx + 0x18]
mov r8, qword [rcx + 0x20]
mov rbx, r11
shl rbx, 0x11
xor rax, r9
xor r8, r11
lea rsi, [r11 + r11*4]
rol rsi, 7
lea rsi, [rsi + rsi*8]
xor r11, rax
xor r9, r8
xor rax, rbx
rol r8, 0x2d
mov qword [rcx + 8], r9
mov qword [rcx + 0x10], r11
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x20], r8
shr rsi, 0x20
mov r9d, esi
imul r9, r10
mov r11d, r9d
cmp r11d, edx
jb 0x140091011
shr r9, 0x20
mov eax, r9d
add rsp, 0x28
pop rbx
pop rsi
ret
mov edx, r8d
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400dbd90
mov ecx, r8d
lea rdx, [0x140133990]
call fcn.14010f870
int3

Function at 0x1400d5410
Capabilities:
Get geographical location

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
xor eax, eax
mov qword [rbp - 0x40], rax
test rcx, rcx
jne 0x1400d5437
xor ecx, ecx
jmp 0x1400d543b
add rcx, 0xc
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x78], rcx
mov dword [rbp - 0x6c], edx
mov qword [rbp - 0x80], r8
mov dword [rbp - 0x70], r9d
lea rcx, [rbp - 0x68]
call fcn.140005ef0
mov rcx, qword [rbp - 0x78]
mov edx, dword [rbp - 0x6c]
mov r8, qword [rbp - 0x80]
mov r9d, dword [rbp - 0x70]
call sub.KERNEL32.dll_GetLocaleInfoEx
mov ebx, eax
lea rcx, [rbp - 0x68]
call fcn.140005f40
mov eax, ebx
xor ecx, ecx
mov qword [rbp - 0x40], rcx
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1400d5870
Capabilities:
Copy file

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], rax
mov rbx, r8
mov rsi, r9
mov rdi, qword [rbp + 0x30]
mov qword [rbp - 0x40], rdi
test rdx, rdx
jne 0x1400d58ad
xor r14d, r14d
jmp 0x1400d58b1
lea r14, [rdx + 0xc]
mov qword [rbp - 0x48], r14
test rcx, rcx
jne 0x1400d58bf
xor r15d, r15d
jmp 0x1400d58c3
lea r15, [rcx + 0xc]
mov qword [rbp - 0x50], r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov qword [rsp + 0x20], rdi
mov edi, dword [rbp + 0x38]
mov dword [rsp + 0x28], edi
mov rcx, r15
mov qword [rbp - 0x80], rcx
mov rdx, r14
mov qword [rbp - 0x88], rdx
mov r8, rbx
mov qword [rbp - 0x90], r8
mov r9, rsi
mov qword [rbp - 0x98], r9
lea rcx, [rbp - 0x78]
call fcn.140005ef0
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x88]
mov r8, qword [rbp - 0x90]
mov r9, qword [rbp - 0x98]
call sub.KERNEL32.dll_CopyFileExW
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.140005f40
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x1401dda68]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x1400d5988
mov dword [rdi + 0x80], esi
test ebx, ebx
setne al
movzx eax, al
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x1400d30f0]
call rax
mov rdi, rax
jmp 0x1400d5966

Function at 0x1400d5f70
Capabilities:
Delete file

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x90]
xor eax, eax
mov qword [rbp - 0x40], rax
test rcx, rcx
jne 0x1400d5f97
xor ebx, ebx
jmp 0x1400d5f9b
lea rbx, [rcx + 0xc]
mov qword [rbp - 0x40], rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rbx
mov qword [rbp - 0x70], rcx
lea rcx, [rbp - 0x68]
call fcn.140005ef0
mov rcx, qword [rbp - 0x70]
call sub.KERNEL32.dll_DeleteFileW
mov ebx, eax
lea rcx, [rbp - 0x68]
call fcn.140005f40
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x1401dda68]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x1400d6016
mov dword [rdi + 0x80], esi
test ebx, ebx
setne al
movzx eax, al
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x1400d30f0]
call rax
mov rdi, rax
jmp 0x1400d5ff7
Function at 0x1400d7540
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov rbx, rdx
mov esi, r8d
mov rdi, r9
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1400cc500
mov rcx, qword [rbp - 0x48]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x7c], rcx
mov rdx, rbx
mov qword [rbp - 0x84], rdx
mov r8d, esi
mov dword [rbp - 0x74], r8d
mov r9, rdi
mov qword [rbp - 0x8c], r9
lea rcx, [rbp - 0x70]
call fcn.140005ef0
mov rcx, qword [rbp - 0x7c]
mov rdx, qword [rbp - 0x84]
mov r8d, dword [rbp - 0x74]
mov r9, qword [rbp - 0x8c]
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
lea rcx, [rbp - 0x70]
call fcn.140005f40
call sub.KERNEL32.dll_GetLastError
mov esi, eax
cmp byte [rbp - 0x40], 0
je 0x1400d7603
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1400cc540
mov rax, qword gs:[0x58]
mov ecx, dword [0x1401dda68]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x1400d763f
mov dword [rdi + 0x80], esi
mov eax, ebx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x1400d30f0]
call rax
mov rdi, rax
jmp 0x1400d7623

Function at 0x1400d7690
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rsi, rdx
mov edi, r8d
mov rbx, r9
xor edx, edx
mov dword [rbx], edx
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1400cc500
nop
mov qword [rbp - 0x50], rbx
mov rcx, qword [rbp - 0x48]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x84], rcx
mov rdx, rsi
mov qword [rbp - 0x8c], rdx
mov r8d, edi
mov dword [rbp - 0x7c], r8d
mov r9, rbx
mov qword [rbp - 0x94], r9
lea rcx, [rbp - 0x78]
call fcn.140005ef0
mov rcx, qword [rbp - 0x84]
mov rdx, qword [rbp - 0x8c]
mov r8d, dword [rbp - 0x7c]
mov r9, qword [rbp - 0x94]
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.140005f40
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x1400d776f
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1400cc540
mov rax, qword gs:[0x58]
mov ecx, dword [0x1401dda68]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x1400d77ab
mov dword [rdi + 0x80], esi
mov eax, ebx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x1400d30f0]
call rax
mov rdi, rax
jmp 0x1400d778f
Function at 0x1400d81d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
xor ecx, ecx
mov dword [r9], ecx
mov qword [rbp - 0x40], r9
mov r14, r9
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x74], rcx
mov rdx, rsi
mov qword [rbp - 0x7c], rdx
mov r8d, edi
mov dword [rbp - 0x6c], r8d
mov r9, r14
mov qword [rbp - 0x84], r9
lea rcx, [rbp - 0x68]
call fcn.140005ef0
mov rcx, qword [rbp - 0x74]
mov rdx, qword [rbp - 0x7c]
mov r8d, dword [rbp - 0x6c]
mov r9, qword [rbp - 0x84]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x68]
call fcn.140005f40
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x1401dda68]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x1400d829c
mov dword [rdi + 0x80], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x1400d30f0]
call rax
mov rdi, rax
jmp 0x1400d8283

Function at 0x1400d90a0
Capabilities:
Access the windows event log

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x48], rax
mov rbx, rcx
mov esi, edx
mov edi, r8d
mov r14d, r9d
mov r15, qword [rbp + 0x30]
mov r13, qword [rbp + 0x50]
lea r12, [r13 + 0x10]
xor ecx, ecx
test r13, r13
cmove r12, rcx
mov qword [rbp - 0x40], r12
lea r13, [r15 + 0x10]
test r15, r15
cmove r13, rcx
mov qword [rbp - 0x48], r13
call sub.KERNEL32.dll_SetLastError
mov qword [rsp + 0x20], r13
movsx rdx, word [rbp + 0x38]
mov dword [rsp + 0x28], edx
mov r15d, dword [rbp + 0x40]
mov dword [rsp + 0x30], r15d
mov r15, qword [rbp + 0x48]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r12
movsx rdx, si
mov dword [rbp - 0x74], edx
movzx r8d, di
mov dword [rbp - 0x78], r8d
mov rcx, rbx
mov qword [rbp - 0x84], rcx
mov r9d, r14d
mov dword [rbp - 0x7c], r9d
lea rcx, [rbp - 0x70]
call fcn.140005ef0
mov edx, dword [rbp - 0x74]
mov r8d, dword [rbp - 0x78]
mov rcx, qword [rbp - 0x84]
mov r9d, dword [rbp - 0x7c]
call sub.ADVAPI32.dll_ReportEventW
mov ebx, eax
lea rcx, [rbp - 0x70]
call fcn.140005f40
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x1401dda68]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x1400d91c0
mov dword [rdi + 0x80], esi
test ebx, ebx
setne al
movzx eax, al
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x1400d30f0]
call rax
mov rdi, rax
jmp 0x1400d919e
Function at 0x1400d9320
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0x100]
xor eax, eax
mov qword [rbp - 0x78], rax
xorps xmm4, xmm4
movaps xmmword [rbp - 0x70], xmm4
movaps xmmword [rbp - 0x60], xmm4
movaps xmmword [rbp - 0x50], xmm4
mov qword [rbp - 0x40], rax
mov edi, edx
mov rbx, r8
mov rsi, r9
mov r14, qword [rbp + 0x30]
mov r15, qword [rbp + 0x38]
mov r13, qword [rbp + 0x40]
mov r12, qword [rbp + 0x48]
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1400cc500
nop
lea rcx, [r12 + 0x10]
xor edx, edx
test r12, r12
cmove rcx, rdx
mov qword [rbp - 0x50], rcx
lea rdx, [r13 + 0x10]
xor r8d, r8d
test r13, r13
cmove rdx, r8
mov qword [rbp - 0x58], rdx
lea r8, [r15 + 0x10]
xor r9d, r9d
test r15, r15
cmove r8, r9
mov qword [rbp - 0x60], r8
lea r9, [r14 + 0x10]
xor eax, eax
test r14, r14
cmove r9, rax
mov qword [rbp - 0x68], r9
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x78], rbx
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rcx
mov rcx, qword [rax + 8]
mov qword [rbp - 0xac], rcx
mov edx, edi
mov dword [rbp - 0xa4], edx
mov r8, rbx
mov qword [rbp - 0xb4], r8
mov r9, rsi
mov qword [rbp - 0xbc], r9
lea rcx, [rbp - 0xa0]
call fcn.140005ef0
mov rcx, qword [rbp - 0xac]
mov edx, dword [rbp - 0xa4]
mov r8, qword [rbp - 0xb4]
mov r9, qword [rbp - 0xbc]
call sub.ADVAPI32.dll_RegEnumKeyExW
mov ebx, eax
lea rcx, [rbp - 0xa0]
call fcn.140005f40
nop
xor ecx, ecx
mov qword [rbp - 0x78], rcx
xor ecx, ecx
mov qword [rbp - 0x70], rcx
xor ecx, ecx
mov qword [rbp - 0x68], rcx
xor ecx, ecx
mov qword [rbp - 0x60], rcx
xor ecx, ecx
mov qword [rbp - 0x58], rcx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x1400d9483
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1400cc540
mov eax, ebx
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1400d95c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0x100]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x70], xmm4
movaps xmmword [rbp - 0x60], xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov edi, edx
mov rbx, r8
mov rsi, r9
mov r14, qword [rbp + 0x38]
mov r15, qword [rbp + 0x40]
mov r13, qword [rbp + 0x48]
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1400cc500
nop
lea rcx, [r13 + 0x10]
xor edx, edx
test r13, r13
cmove rcx, rdx
mov qword [rbp - 0x50], rcx
lea rdx, [r15 + 0x10]
xor r8d, r8d
test r15, r15
cmove rdx, r8
mov qword [rbp - 0x58], rdx
lea r8, [r14 + 0x10]
xor r9d, r9d
test r14, r14
cmove r8, r9
mov qword [rbp - 0x60], r8
mov qword [rbp - 0x68], rsi
mov r9, rsi
lea rax, [rbx + 0x10]
xor r10d, r10d
test rbx, rbx
cmove rax, r10
mov qword [rbp - 0x70], rax
mov r10, qword [rbp - 0x48]
mov rbx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rcx
mov rcx, qword [r10 + 8]
mov qword [rbp - 0xa4], rcx
mov edx, edi
mov dword [rbp - 0x9c], edx
mov r8, rax
mov qword [rbp - 0xac], r8
mov qword [rbp - 0xb4], r9
lea rcx, [rbp - 0x98]
call fcn.140005ef0
mov rcx, qword [rbp - 0xa4]
mov edx, dword [rbp - 0x9c]
mov r8, qword [rbp - 0xac]
mov r9, qword [rbp - 0xb4]
call sub.ADVAPI32.dll_RegEnumValueW
mov ebx, eax
lea rcx, [rbp - 0x98]
call fcn.140005f40
nop
xor ecx, ecx
mov qword [rbp - 0x70], rcx
xor ecx, ecx
mov qword [rbp - 0x68], rcx
xor ecx, ecx
mov qword [rbp - 0x60], rcx
xor ecx, ecx
mov qword [rbp - 0x58], rcx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x1400d9715
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1400cc540
mov eax, ebx
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1400d9a20
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rdx
mov rsi, r8
mov rdi, r9
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1400cc500
nop
test rbx, rbx
jne 0x1400d9a71
xor edx, edx
jmp 0x1400d9a75
lea rdx, [rbx + 0xc]
mov qword [rbp - 0x50], rdx
mov rcx, qword [rbp - 0x48]
mov rbx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rbx
mov rbx, qword [rbp + 0x38]
mov qword [rsp + 0x28], rbx
mov rcx, qword [rcx + 8]
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x88], rdx
mov r8, rsi
mov qword [rbp - 0x90], r8
mov r9, rdi
mov qword [rbp - 0x98], r9
lea rcx, [rbp - 0x78]
call fcn.140005ef0
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x88]
mov r8, qword [rbp - 0x90]
mov r9, qword [rbp - 0x98]
call sub.ADVAPI32.dll_RegQueryValueExW
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.140005f40
nop
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x1400d9afe
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1400cc540
mov eax, ebx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1400dc060
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
mov r8, qword [rcx + 0x18]
mov r10, qword [rcx + 0x20]
mov r9, rdx
shl r9, 0x11
xor r8, rax
xor r10, rdx
lea r11, [rdx + rdx*4]
rol r11, 7
lea r11, [r11 + r11*8]
xor rdx, r8
xor rax, r10
xor r8, r9
rol r10, 0x2d
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rdx
mov qword [rcx + 0x18], r8
mov qword [rcx + 0x20], r10
mov rax, r11
shr rax, 0x21
cmp rax, 0x7fffffff
je fcn.1400dc060
ret