joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800b5f90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x1800b5fc7
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x1800b5fe8
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1800b5fea
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1800b6043
test ecx, ecx
jle 0x1800b6023
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1800b6043
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1800b6043
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1800b6070
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1800b6092
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1800b60a8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1800b60c4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800b60c6
xor ecx, ecx
mov qword [rsp + 0x20], rdi
movsxd rax, ecx
test ecx, ecx
je 0x1800b6100
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rbx, rdi
add r14, rdi
mov r8, rbx
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1800b61a7
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x1800b613b
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x1800b6181
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x1800b61c0
cmp rbx, rax
ja 0x1800b6150
mov r8, rdi
test rdi, rdi
je 0x1800b61a7
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rdi
sub r8, rax
sub rbp, r8
mov rdi, qword [rsp + 0x20]
mov rax, rbp
mov rbx, qword [rsp + 0x28]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rbp, rbx
jmp 0x1800b61aa
Function at 0x1800b65d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1801023b0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1800b65fd
xor eax, eax
jmp 0x1800b6752
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x1800b6628
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x1800b6628
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x1800b6752
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1800b6745
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1800b666b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1800b6696
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1800b674a
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1800b6705
sub eax, 1
je 0x1800b6705
cmp eax, 2
jne 0x1800b6745
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1800b674a
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1800b6733
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1800b6745
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x1800b674a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800c2600
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1800b7290
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1801023b0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1800b7363
cmp byte [rcx + 0x71], 0
je 0x1800b7363
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1800b735f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1800b7324
sub eax, 1
je 0x1800b7328
cmp eax, 2
jne 0x1800b735f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800c2600
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1800b7356
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1800b735f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1800b730c
xor al, al
jmp 0x1800b730c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800c2600
add rsp, 0x60
pop rbx
ret
Function at 0x1800bf9e0
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rax + 0xc], 0
mov rcx, qword [rsp + 0x40]
call fcn.1800bf7d0
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x1800bfab7
mov dword [rsp + 0x20], 0
jmp 0x1800bfa54
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x1800bfab7
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800bfab5
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, dword [rsp + 0x50]
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call fcn.1800bf5b0
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800bfa4a
add rsp, 0x30
pop rdi
ret

Function at 0x1800bfad0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, rsp
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
cmp qword [rax], 0
je 0x1800bfb74
mov dword [rsp + 0x20], 0
jmp 0x1800bfb0d
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc]
cmp dword [rsp + 0x20], eax
jae 0x1800bfb5d
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800bfb5b
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1800bfb03
mov rax, qword [rsp + 0x40]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x180107858]
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x30
pop rdi
ret
Function at 0x1800bfb80
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x80]
mov eax, dword [rsp + 0x80]
imul rax, rax, 0x38
mov rcx, qword [0x18010edb0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x1800bfc04
mov rax, qword [rsp + 0x50]
sub rax, 5
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800bfc2d
mov eax, 0xa
jmp 0x1800bfd67
cmp dword [rsp + 0x88], 0
je 0x1800bfc9b
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x50]
add rax, 5
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x1800bfc99
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x60]
mov byte [rax + 1], 0xf9
jmp 0x1800bfce7
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x1800bfccb
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 7
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1800bfce7
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1800c8cc0]
call fcn.1800c3340
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x1800c1250
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x10
mov rdi, rsp
mov ecx, 4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x20]
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x1800c12be
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x1800c12be
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x1800c12be
xor eax, eax
jmp 0x1800c1305
mov dword [rsp], 1
jmp 0x1800c12cf
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x1800c1300
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x20]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x1800c12fe
xor eax, eax
jmp 0x1800c1305
jmp 0x1800c12c7
mov eax, 1
add rsp, 0x10
pop rdi
ret
Function at 0x14000fc7c
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 0x14000fcda
test ecx, ecx
mov edx, 0xc0000011
cmove eax, edx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret

Function at 0x140011ab0
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 0x140011b92
mov rcx, qword [r15 + 0x18]
mov edx, ebx
mov rcx, qword [rcx + 0x90]
call sub.ntoskrnl.exe_wcsrchr
test rsi, rsi
je 0x140011b80
mov word [rsi], bx
mov rsi, rax
test rax, rax
je 0x140011c0c
mov word [rax], r12w
jmp 0x140011c0c
test edi, edi
js 0x140011bf7
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
movzx ebx, al
mov cr8, r13
mov rcx, qword [0x1400337b8]
mov dl, r13b
call qword [sym.imp.ntoskrnl.exe_ExAcquireResourceExclusiveLite]
mov rcx, qword [0x1400336c0]
xor r8d, r8d
lea edx, [r8 + 0x18]
call fcn.1400152d4
mov rcx, qword [rbp + 0x6f]
mov r8, rax
xor edx, edx
mov qword [rax + 0x10], rcx
lea rcx, [0x1400337c0]
call fcn.14000d49c
mov rcx, qword [0x1400337b8]
call qword [sym.imp.ntoskrnl.exe_ExReleaseResourceLite]
mov cr8, rbx
mov ebx, 0x5c
jmp 0x140011c01
cmp edi, 0xc0000035
cmove edi, r12d
test rsi, rsi
je 0x140011c16
mov word [rsi], bx
mov rsi, r12
cmp r14d, 0x40
jb 0x140011b31
cmp r14d, 0x40
jb 0x140011c23
mov edi, 0xc0000001
jmp 0x140011c27
test edi, edi
jns 0x140011c4e
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.140015238
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 0x1400142c0
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 0x14001436d
lea r8, [rbp - 9]
mov rcx, rdi
lea rdx, [rbp - 0x49]
call fcn.140014488
jmp 0x140014472
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rdx, [0x14002ae70]
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 0x14001445c
mov rcx, qword [rdi + 0x10]
xor r8d, r8d
mov edx, 0x800
call fcn.1400152d4
mov rdi, rax
test rax, rax
jne 0x1400143e5
mov ebx, 0xc000009a
jmp 0x14001444a
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 0x14001443d
movzx eax, word [rbp - 0x69]
cmp dword [rdi + 8], eax
jb 0x140014438
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 0x14001443d
mov ebx, 0xc0000035
mov edx, 0x800
mov rcx, rdi
call fcn.14000eef4
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test ebx, ebx
js 0x14001445c
mov al, 1
jmp 0x140014472
xor r9d, r9d
mov r8d, ebx
mov ecx, 0xc10204d9
lea edx, [r9 + 0x33]
call fcn.14001521c
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 0x14001491c
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 0x140014b68
test rcx, rcx
je 0x140014b68
mov rdx, qword [rcx]
mov ecx, eax
call fcn.140013b60
mov r12, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140014b64
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 0x140014b55
mov rax, qword [rsi + 8]
test rax, rax
je 0x1400149ef
movzx ecx, word [rax + 2]
test cx, cx
je 0x1400149ef
lea rdx, [rcx + 0x18]
mov r8d, dword [str.sboxS]
mov ecx, dword [0x1400335c0]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
jmp 0x1400149f2
mov rdi, rbx
mov qword [rsp + 0xd8], rdi
test rdi, rdi
je 0x140014b30
mov eax, dword [rsi + 0x20]
test eax, eax
je 0x140014a25
lea edx, [rax + 8]
mov r8d, dword [str.sboxS]
mov ecx, dword [0x1400335c0]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r15, rax
jmp 0x140014a28
mov r15, rbx
mov qword [rsp + 0x38], r15
test r15, r15
je 0x140014b21
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 0x140014a5e
mov word [rdi], cx
jmp 0x140014a61
movzx ecx, dx
movzx r8d, cx
mov rdx, qword [rsi + 8]
mov rdx, qword [rdx + 8]
mov rcx, rax
call fcn.140028b80
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x140014a82
mov eax, dword [rax]
jmp 0x140014a84
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 0x140014acd
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 0x140014af7
mov r8d, edx
mov rdx, r15
call fcn.140028b80
jmp 0x140014b12
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 0x140014b3c
mov ebx, 0xc0000503
jmp 0x140014b4a
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 0x140014b6a
xor eax, eax
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret