joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140072f70
Capabilities:
Copy file
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x1ff88]
mov eax, 0x20080
call fcn.1400388f0
sub rsp, rax
mov dil, r8b
mov rbx, rdx
mov esi, 0x7fff
lea r8, [rbp + 0xff80]
mov edx, esi
call fcn.140074404
lea r8, [rbp - 0x80]
mov edx, esi
mov rcx, rbx
call fcn.140074404
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor esi, esi
test eax, eax
jne 0x14007300a
test dil, dil
je 0x140073003
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call fcn.140027544
test eax, eax
je 0x140072ffc
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
jmp 0x1400730ae
xor al, al
jmp 0x1400730ae
lea rcx, [rbp + 0xff80]
call fcn.140074914
test al, al
je 0x140073003
lea rcx, [rbp - 0x80]
call fcn.140074914
test al, al
je 0x1400730c7
test dil, dil
je 0x140073003
lea rdx, [0x1400cd8d8]
lea rcx, [rbp + 0xff80]
call fcn.140026aac
lea rcx, [rbp + 0xff80]
call fcn.1400268e8
lea rcx, [rbp - 0x80]
mov word [rbp + rax*2 + 0xff82], si
call fcn.1400268e8
lea rcx, [rsp + 0x20]
xorps xmm0, xmm0
mov word [rbp + rax*2 - 0x7e], si
lea rax, [rbp + 0xff80]
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x80]
mov dword [rsp + 0x44], esi
mov qword [rsp + 0x38], rax
mov eax, 0x614
mov qword [rsp + 0x20], rsi
mov word [rsp + 0x40], ax
mov dword [rsp + 0x28], 2
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
lea r11, [rsp + 0x20080]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.14001ee7c
lea rcx, [rsp + 0x58]
call fcn.1400733dc
lea rcx, [rsp + 0x58]
test al, al
sete bl
call fcn.14001c05c
test bl, bl
jne 0x140073003
lea rcx, [rbp - 0x80]
call fcn.140074914
test al, al
jmp 0x14007302e
Function at 0x140073504
Capabilities:
Delete file
Enumerate files on windows

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 rbp
lea rbp, [rax - 0x1e8]
sub rsp, 0x2e0
mov rbx, rcx
lea rcx, [rsp + 0x30]
xor edi, edi
mov r14b, dil
call fcn.14001e400
lea rcx, [rsp + 0x70]
call fcn.14001e400
lea rcx, [rsp + 0x50]
call fcn.14001e400
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14001a1fc
mov rcx, qword [rsp + 0x30]
call fcn.140074914
test al, al
je 0x140073578
lea rdx, [0x1400cd8d8]
lea rcx, [rsp + 0x30]
call fcn.14001ece0
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
call fcn.140019fac
mov rcx, qword [rsp + 0x30]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov sil, 1
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14007361b
cmp sil, 1
jne 0x14007361b
test byte [rbp - 0x70], 0x10
jne 0x1400735fa
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
mov r14b, sil
call fcn.14001f110
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14001ea20
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x30]
call fcn.14001ece0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x140073610
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400735af
mov sil, dil
jmp 0x1400735af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140073627
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov dil, r14b
lea rcx, [rsp + 0x50]
call fcn.14001c05c
lea rcx, [rsp + 0x70]
call fcn.14001c05c
lea rcx, [rsp + 0x30]
call fcn.14001c05c
lea r11, [rsp + 0x2e0]
mov al, dil
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140d58058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140d581df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140d58089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d5806f
add dl, dl
jne 0x140d58096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d580f6
xor eax, eax
add dl, dl
jne 0x140d580a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d581ad
add dl, dl
jne 0x140d580b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d580c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d580d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d580dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d580ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d5807e
mov eax, 1
add dl, dl
jne 0x140d58106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d58113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d580fb
sub eax, ebx
mov ebx, 1
jne 0x140d5814c
mov ecx, 1
add dl, dl
jne 0x140d5812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d5813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d58123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d5807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d58168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d58175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d5815d
cmp eax, 0x7d00
jae 0x140d5819b
cmp eax, 0x500
jb 0x140d58196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d5807e
cmp eax, 0x7f
ja 0x140d5819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d5807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d581d2
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 0x140d5807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x14030e1a1
Capabilities:
Encode data using xor

Disassembly:
add dil, 0x9a
lea rdi, [rdi + riz - 0x445c647]
mov esp, 0xba39b927
sti
call fcn.14030ce26
xor ch, byte [rdx + 0x1ea2e404]
lodsb al, byte [rsi]
or al, 0x6e
clc
xor esp, edi
sal byte [rax], 0xd4
in al, dx
and ah, byte [rdx + 0x2a829444]
xchg esp, eax
add al, 0xd2
add eax, 0x248031d4
mov esi, 0xaef41052
and al, al
cmp byte [rsi - 0x1992b2fe], dh
jg 0x14030e1a7
cld
invalid

Function at 0x140477671
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp], 0xffffffffe0aca50a
mov qword [rsp], r9
push 0xffffffffcf366785
mov r9d, 0x6598e985
shr r9, 0x4b
lea r11, [0x140480f00]
lea rsp, [rsp + 8]
Function at 0x180e98008
Capabilities:
Encode data using xor

Disassembly:
jmp 0x180e98012
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x180e9803b
pop rbp
sub rbp, 0x33
sub rbp, 0xe98008
cmp edx, 1
je 0x180e9807e
ldmxcsr dword [rsp]
add rsp, 8
popfq
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rdi
pop rsi
pop rbp
pop rbx
pop rdx
pop rcx
pop rax
xor rax, rax
ret
sub rsp, 0x20
jmp 0x180e9808e
mov rax, 0xe98008
add rax, rbp
add rax, 0xb8
mov rcx, 0x60b
mov rdx, 0x1b42a842
xor byte [rax], dl
inc rax
dec rcx
jne 0x180e980ad
jmp 0x180e980c4
or cl, bl
stosd dword [rdi], eax
leave
retf
Function at 0xe54058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00e541df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0xe54089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xe5406f
add dl, dl
jne 0xe54096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xe540f6
xor eax, eax
add dl, dl
jne 0xe540a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0xe541ad
add dl, dl
jne 0xe540b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe540c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe540d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe540dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0xe540ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0xe5407e
mov eax, 1
add dl, dl
jne 0xe54106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xe54113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xe540fb
sub eax, ebx
mov ebx, 1
jne 0xe5414c
mov ecx, 1
add dl, dl
jne 0xe5412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe5413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xe54123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xe5407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xe54168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xe54175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0xe5415d
cmp eax, 0x7d00
jae 0xe5419b
cmp eax, 0x500
jb 0xe54196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xe5407e
cmp eax, 0x7f
ja 0xe5419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0xe5407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0xe541d2
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 0xe5407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
mov ss, word [rcx + 0x5d92b5d1]
invalid
Function at 0x14000fbcc
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x60
and qword [rax - 0x28], 0
lea rbx, [rcx + 0x18]
and qword [rax - 0x30], 0
mov rdi, rcx
mov rcx, qword [rcx]
xor r9d, r9d
mov dword [rax - 0x38], 0xfe0
xor r8d, r8d
mov qword [rax - 0x40], rbx
lea rax, [rax - 0x18]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
xor ecx, ecx
mov qword [rdi + 8], rbx
test eax, eax
cmovns ecx, dword [rsp + 0x58]
mov dword [rdi + 0x10], ecx
js 0x14000fc2a
test ecx, ecx
mov edx, 0xc0000011
cmove eax, edx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x140011a00
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov r15, rcx
mov r13d, 1
mov edx, r13d
lea rcx, [rbp - 0x49]
call qword [sym.imp.ntoskrnl.exe_RtlCreateSecurityDescriptor]
xor r9d, r9d
lea rcx, [rbp - 0x49]
xor r8d, r8d
mov dl, r13b
call qword [sym.imp.ntoskrnl.exe_RtlSetDaclSecurityDescriptor]
xor r12d, r12d
mov dword [rsp + 0x30], 0x30
lea rax, [rbp - 0x59]
mov qword [rsp + 0x38], r12
mov qword [rbp - 0x79], rax
lea ebx, [r13 + 0x5b]
lea rax, [rbp - 0x49]
mov dword [rbp - 0x71], 0x240
mov qword [rbp - 0x69], rax
mov esi, r12d
mov qword [rbp - 0x61], r12
mov r14d, r12d
mov rdx, qword [r15 + 0x18]
lea rcx, [rbp - 0x59]
add r14d, r13d
mov rdx, qword [rdx + 0x90]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r8, [rsp + 0x30]
mov edx, 0xf000f
lea rcx, [rbp + 0x6f]
call qword [sym.imp.ntoskrnl.exe_ZwCreateDirectoryObject]
mov edi, eax
cmp eax, 0xc000003a
jne 0x140011ae2
mov rcx, qword [r15 + 0x18]
mov edx, ebx
mov rcx, qword [rcx + 0x90]
call sub.ntoskrnl.exe_wcsrchr
test rsi, rsi
je 0x140011ad0
mov word [rsi], bx
mov rsi, rax
test rax, rax
je 0x140011b5c
mov word [rax], r12w
jmp 0x140011b5c
test edi, edi
js 0x140011b47
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
movzx ebx, al
mov cr8, r13
mov rcx, qword [0x1400337f0]
mov dl, r13b
call qword [sym.imp.ntoskrnl.exe_ExAcquireResourceExclusiveLite]
mov rcx, qword [0x140033700]
xor r8d, r8d
lea edx, [r8 + 0x18]
call fcn.140015224
mov rcx, qword [rbp + 0x6f]
mov r8, rax
xor edx, edx
mov qword [rax + 0x10], rcx
lea rcx, [0x1400337f8]
call fcn.14000d45c
mov rcx, qword [0x1400337f0]
call qword [sym.imp.ntoskrnl.exe_ExReleaseResourceLite]
mov cr8, rbx
mov ebx, 0x5c
jmp 0x140011b51
cmp edi, 0xc0000035
cmove edi, r12d
test rsi, rsi
je 0x140011b66
mov word [rsi], bx
mov rsi, r12
cmp r14d, 0x40
jb 0x140011a81
cmp r14d, 0x40
jb 0x140011b73
mov edi, 0xc0000001
jmp 0x140011b77
test edi, edi
jns 0x140011b9e
mov r9, qword [r15 + 0x18]
mov r8d, edi
mov rax, qword [r15]
xor edx, edx
mov qword [rsp + 0x28], rax
mov ecx, 0xc10204bd
or dword [rsp + 0x20], 0xffffffff
mov r9, qword [r9 + 0x90]
call fcn.140015188
lea r11, [rsp + 0xf0]
shr edi, 0x1f
mov rbx, qword [r11 + 0x30]
xor dil, r13b
mov rsi, qword [r11 + 0x40]
mov al, dil
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140014210
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rbx, rdx
mov rdi, rcx
mov rdx, qword [rdx + 0x10]
lea rcx, [rbp - 0x69]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rdx, qword [rbx + 0x20]
lea rax, [rbp - 0x69]
and qword [rbp - 1], 0
lea rcx, [rbp - 0x59]
xorps xmm0, xmm0
mov qword [rbp + 7], rax
movdqu xmmword [rbp + 0x17], xmm0
mov dword [rbp - 9], 0x30
mov dword [rbp + 0xf], 0x240
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp - 0x41], 0
lea rax, [rbp - 0x59]
xorps xmm0, xmm0
mov qword [rbp - 0x39], rax
mov ebx, 0x20019
mov dword [rbp - 0x49], 0x30
mov edx, ebx
mov dword [rbp - 0x31], 0x240
lea r8, [rbp - 0x49]
lea rcx, [rbp + 0x77]
movdqu xmmword [rbp - 0x29], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jns 0x1400142bd
lea r8, [rbp - 9]
mov rcx, rdi
lea rdx, [rbp - 0x49]
call fcn.1400143d8
jmp 0x1400143c2
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rdx, [0x14002aef0]
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp + 0x2f], 0
lea rax, [rbp - 0x19]
xorps xmm0, xmm0
mov qword [rbp + 0x37], rax
lea r8, [rbp + 0x27]
mov dword [rbp + 0x27], 0x30
mov edx, ebx
mov dword [rbp + 0x3f], 0x240
lea rcx, [rbp + 0x77]
movdqu xmmword [rbp + 0x47], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov ebx, eax
test eax, eax
js 0x1400143ac
mov rcx, qword [rdi + 0x10]
xor r8d, r8d
mov edx, 0x800
call fcn.140015224
mov rdi, rax
test rax, rax
jne 0x140014335
mov ebx, 0xc000009a
jmp 0x14001439a
mov rcx, qword [rbp + 0x77]
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x59]
mov r9, rdi
mov dword [rsp + 0x20], 0x800
mov r8d, 2
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
test eax, eax
js 0x14001438d
movzx eax, word [rbp - 0x69]
cmp dword [rdi + 8], eax
jb 0x140014388
movzx r8d, word [rbp - 0x69]
lea rcx, [rdi + 0xc]
mov rdx, qword [rbp - 0x61]
shr r8, 1
inc r8
call sub.ntoskrnl.exe__wcsnicmp
test eax, eax
je 0x14001438d
mov ebx, 0xc0000035
mov edx, 0x800
mov rcx, rdi
call fcn.14000ee44
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebx, ebx
js 0x1400143ac
mov al, 1
jmp 0x1400143c2
xor r9d, r9d
mov r8d, ebx
mov ecx, 0xc10204d9
lea edx, [r9 + 0x33]
call fcn.14001516c
xor al, al
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14001486c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x90
mov eax, edx
mov rsi, rcx
xor ebx, ebx
test r8, r8
jne 0x140014ab8
test rcx, rcx
je 0x140014ab8
mov rdx, qword [rcx]
mov ecx, eax
call fcn.140013ab0
mov r12, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140014ab4
mov rdx, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x60], 0x30
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x78], 0x240
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x80], xmm0
lea r8, [rsp + 0x60]
mov edx, 0x20019
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov r14d, eax
mov dword [rsp + 0x30], eax
test eax, eax
jne 0x140014aa5
mov rax, qword [rsi + 8]
test rax, rax
je 0x14001493f
movzx ecx, word [rax + 2]
test cx, cx
je 0x14001493f
lea rdx, [rcx + 0x18]
mov r8d, dword [str.sboxS]
mov ecx, dword [0x140033600]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
jmp 0x140014942
mov rdi, rbx
mov qword [rsp + 0xd8], rdi
test rdi, rdi
je 0x140014a80
mov eax, dword [rsi + 0x20]
test eax, eax
je 0x140014975
lea edx, [rax + 8]
mov r8d, dword [str.sboxS]
mov ecx, dword [0x140033600]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r15, rax
jmp 0x140014978
mov r15, rbx
mov qword [rsp + 0x38], r15
test r15, r15
je 0x140014a71
mov rax, qword [rsi + 8]
movzx edx, word [rax]
mov word [rdi], dx
mov rax, qword [rsi + 8]
movzx ecx, word [rax + 2]
mov word [rdi + 2], cx
lea rax, [rdi + 0x10]
mov qword [rdi + 8], rax
cmp dx, cx
jbe 0x1400149ae
mov word [rdi], cx
jmp 0x1400149b1
movzx ecx, dx
movzx r8d, cx
mov rdx, qword [rsi + 8]
mov rdx, qword [rdx + 8]
mov rcx, rax
call fcn.140028c00
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x1400149d2
mov eax, dword [rax]
jmp 0x1400149d4
mov eax, ebx
mov dword [rsp + 0xd0], eax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x28], rax
mov eax, dword [rsi + 0x20]
mov dword [rsp + 0x20], eax
mov r9, r15
mov r8d, dword [rsi + 0x10]
mov rdx, rdi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov r14d, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x140014a1d
mov eax, dword [rsp + 0xd0]
mov dword [rcx], eax
mov eax, dword [rsi + 0x20]
mov edx, dword [rsp + 0xd0]
cmp edx, eax
cmova edx, eax
mov dword [rsp + 0xd0], edx
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x140014a47
mov r8d, edx
mov rdx, r15
call fcn.140028c00
jmp 0x140014a62
mov edx, dword [str.sboxS]
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [str.sboxS]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test r14d, r14d
jne 0x140014a8c
mov ebx, 0xc0000503
jmp 0x140014a9a
cmp r14d, 0xc0000034
cmove r14d, ebx
mov ebx, r14d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov edx, dword [str.sboxS]
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
jmp 0x140014aba
xor eax, eax
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140014ad4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa0
mov rsi, rdx
xor ebx, ebx
test rcx, rcx
jne 0x140014cf1
test rdx, rdx
je 0x140014cf1
mov rdx, qword [rdx]
mov ecx, r8d
call fcn.140013ab0
mov r12, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140014ced
mov rdx, rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x70], 0x30
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0x88], 0x240
lea rax, [rsp + 0x60]
mov qword [rsp + 0x80], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x90], xmm0
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rsp + 0x70]
mov edx, 0x20006
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
mov r15d, eax
test eax, eax
jne 0x140014cd2
mov r15d, 0xc0000022
mov dword [rsp + 0x40], r15d
mov rax, qword [rsi + 8]
test rax, rax
je 0x140014bcc
movzx ecx, word [rax + 2]
test cx, cx
je 0x140014bcc
lea rdx, [rcx + 0x18]
mov r8d, dword [str.sboxS]
mov ecx, dword [0x140033600]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
jmp 0x140014bcf
mov rdi, rbx
mov qword [rsp + 0xe8], rdi
test rdi, rdi
je 0x140014cc7
mov eax, dword [rsi + 0x20]
test eax, eax
je 0x140014c02
lea edx, [rax + 8]
mov r8d, dword [str.sboxS]
mov ecx, dword [0x140033600]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r14, rax
jmp 0x140014c05
mov r14, rbx
mov qword [rsp + 0x48], r14
test r14, r14
je 0x140014cb8
mov rax, qword [rsi + 8]
movzx edx, word [rax]
mov word [rdi], dx
mov rax, qword [rsi + 8]
movzx ecx, word [rax + 2]
mov word [rdi + 2], cx
lea rax, [rdi + 0x10]
mov qword [rdi + 8], rax
cmp dx, cx
jbe 0x140014c3b
mov word [rdi], cx
jmp 0x140014c3e
movzx ecx, dx
movzx r8d, cx
mov rdx, qword [rsi + 8]
mov rdx, qword [rdx + 8]
mov rcx, rax
call fcn.140028c00
mov rdx, qword [rsi + 0x18]
test rdx, rdx
je 0x140014c67
mov r8d, dword [rsi + 0x20]
mov rcx, r14
call fcn.140028c00
mov eax, dword [rsi + 0x20]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
mov r9d, dword [rsi + 0x14]
mov r8d, dword [rsi + 0x10]
mov rdx, rdi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov r15d, eax
mov dword [rsp + 0x40], eax
jmp 0x140014ca9
mov edx, dword [str.sboxS]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [str.sboxS]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov ebx, 0xc0000503
test r15d, r15d
cmovne ebx, r15d
mov edx, dword [str.sboxS]
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
jmp 0x140014cf3
xor eax, eax
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret