joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401550
Capabilities:
Log keystrokes
Log keystrokes via polling
Write file on windows

Disassembly:
push rbp
sub rsp, 0x190
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x120], ecx
mov ecx, 0x14
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
mov ecx, 0x91
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
mov ecx, 0x90
mov rax, qword [sym.imp.USER32.dll_GetKeyState]
call rax
mov rax, rbp
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetKeyboardState]
call rax
mov dword [rbp + 0x10c], 0
cmp dword [rbp + 0x120], 0xd
je 0x4015ea
cmp dword [rbp + 0x120], 0x10
je 0x4016cc
cmp dword [rbp + 0x120], 8
jne 0x401606
lea rax, [rbp - 0x50]
lea rdx, str._BP_
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_wsprintfA]
call rax
mov dword [rbp + 0x10c], eax
jmp 0x4016d0
mov dword [rbp + 0x10c], 2
lea rax, [rbp - 0x50]
mov word [rax], 0xa0d
mov byte [rax + 2], 0
jmp 0x4016d0
mov edx, 0
mov ecx, dword [rbp + 0x120]
mov rax, qword [sym.imp.USER32.dll_MapVirtualKeyA]
call rax
mov ecx, eax
lea rdx, [rbp - 0x22]
mov rax, rbp
mov dword [rsp + 0x20], 0
mov r9, rdx
mov r8, rax
mov edx, ecx
mov ecx, dword [rbp + 0x120]
mov rax, qword [sym.imp.USER32.dll_ToAscii]
call rax
cmp eax, 1
jne 0x401670
movzx eax, word [rbp - 0x22]
movsx edx, al
lea rax, [rbp - 0x50]
mov r8d, edx
lea rdx, [0x00405005]
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_wsprintfA]
call rax
mov dword [rbp + 0x10c], eax
jmp 0x4016cf
mov edx, 0
mov ecx, dword [rbp + 0x120]
mov rax, qword [sym.imp.USER32.dll_MapVirtualKeyA]
call rax
movzx eax, ax
shl eax, 0x10
mov ecx, eax
lea rax, [rbp - 0x20]
mov r8d, 0x20
mov rdx, rax
mov rax, qword [sym.imp.USER32.dll_GetKeyNameTextA]
call rax
test eax, eax
jle 0x4016cf
lea rdx, [rbp - 0x20]
lea rax, [rbp - 0x50]
mov r8, rdx
lea rdx, str.__s_
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_wsprintfA]
call rax
mov dword [rbp + 0x10c], eax
jmp 0x4016cf
nop
jmp 0x4016d0
nop
cmp dword [rbp + 0x10c], 0
je 0x40174f
lea rax, [0x00408970]
mov rcx, qword [rax]
mov edx, dword [rbp + 0x10c]
lea rax, [rbp - 0x50]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rdx, rax
mov eax, dword [rbp + 0x10c]
cmp rdx, rax
je 0x40173d
mov ecx, 2
mov rax, qword [sym.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x20
mov edx, 1
lea rcx, str.Can_not_write_to_key_to_logfile.
call sym.fwrite
mov eax, 0xffffffff
jmp 0x401754
lea rax, [0x00408970]
mov rax, qword [rax]
mov rcx, rax
call sym.fflush
mov eax, 0
add rsp, 0x190
pop rbp
ret
Function at 0x40175d
Capabilities:
Register raw input devices
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x10], rcx
mov dword [rbp - 8], edx
mov qword [rbp], r8
mov qword [rbp + 8], r9
cmp dword [rbp - 8], 2
je 0x4018e8
cmp dword [rbp - 8], 0xff
je 0x401809
cmp dword [rbp - 8], 1
jne 0x4018f8
mov word [rbp - 0x50], 1
mov word [rbp - 0x4e], 6
mov dword [rbp - 0x4c], 0x100
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x50]
mov r8d, 0x10
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_RegisterRawInputDevices]
call rax
test eax, eax
jne 0x40191a
mov ecx, 2
mov rax, qword [sym.__acrt_iob_func]
call rax
mov r9, rax
mov r8d, 0x22
mov edx, 1
lea rcx, str.Can_not_register_raw_input_device.
call sym.fwrite
mov rax, 0xffffffffffffffff
jmp 0x401920
mov rax, qword [rbp + 8]
lea rdx, [rbp - 0x3c]
mov dword [rsp + 0x20], 0x18
mov r9, rdx
mov r8d, 0
mov edx, 0x10000003
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetRawInputData]
call rax
mov eax, dword [rbp - 0x3c]
mov ebx, eax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8, rbx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp - 0x38], rax
mov rax, qword [rbp + 8]
lea rdx, [rbp - 0x3c]
mov rcx, qword [rbp - 0x38]
mov dword [rsp + 0x20], 0x18
mov r9, rdx
mov r8, rcx
mov edx, 0x10000003
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetRawInputData]
call rax
test eax, eax
je 0x4018c5
mov rax, qword [rbp - 0x38]
mov eax, dword [rax]
cmp eax, 1
jne 0x4018c5
mov rax, qword [rbp - 0x38]
mov eax, dword [rax + 0x20]
cmp eax, 0x100
jne 0x4018c5
mov rax, qword [rbp - 0x38]
movzx eax, word [rax + 0x1e]
movzx eax, ax
mov ecx, eax
call sym.log_key
cmp eax, 0xffffffff
jne 0x4018c5
mov rcx, qword [rbp - 0x10]
mov rax, qword [sym.imp.USER32.dll_DestroyWindow]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rcx, rax
mov rax, qword [rbp - 0x38]
mov r8, rax
mov edx, 0
mov rax, qword [sym.imp.KERNEL32.dll_HeapFree]
call rax
jmp 0x40191b
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_PostQuitMessage]
call rax
jmp 0x40191b
mov rcx, qword [rbp + 8]
mov rdx, qword [rbp]
mov eax, dword [rbp - 8]
mov r9, rcx
mov r8, rdx
mov edx, eax
mov rcx, qword [rbp - 0x10]
mov rax, qword [sym.imp.USER32.dll_DefWindowProcA]
call rax
jmp 0x401920
nop
mov eax, 0
add rsp, 0x58
pop rbx
pop rbp
ret
Function at 0x4021e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402368
mov rax, qword [0x00408628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40222c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4022b5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x402210
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x40239d
mov rax, qword [0x00408628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402380
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4022ae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402310
add dword [0x00408624], 1
cmp edi, 8
jae 0x4022e3
test dil, 4
jne 0x402354
test edi, edi
je 0x4022d8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40236f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4022d8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4022fc
jmp 0x4022d8
add rsi, qword [0x00408628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4022ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4022d8
xor esi, esi
jmp 0x402237
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4022d8
mov rax, qword [0x00408628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x402af0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x402b44
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 0x402b3b
test rsi, rsi
je 0x402b3b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402b20
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402d80
Capabilities:
Parse pe header

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

Function at 0x402da0
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 0x402de1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402dd8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402de3
add rax, 0x28
cmp rax, r9
jne 0x402dc4
xor eax, eax
ret

Function at 0x402e80
Capabilities:
Enumerate pe sections

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

Function at 0x402ff0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00405640]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x403010
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403008
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40306d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403064
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403074
add rax, 0x28
cmp rax, r9
jne 0x403050
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x403090
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00405640]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x4030fe
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4030fe
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x4030fe
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4030fe
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x4030f5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x403105
add rcx, 0x28
cmp rcx, rax
jne 0x4030e0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x403118
jmp 0x4030fe
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x403126
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x4030fe
test r9d, r9d
jg 0x403110
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x403470
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x9742d0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x9742dd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x9742ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x9742d5
lea eax, [rcx + 1]
jmp 0x9742fb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x97430e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x9742f4
sub eax, 3
jb 0x97432e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x97437d
sar eax, 1
movsxd rbp, eax
jb 0x974364
jmp 0x97433c
add ebx, ebx
jne 0x97433a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x974364
inc ecx
add ebx, ebx
jne 0x97434a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x974364
call r11
adc ecx, ecx
add ebx, ebx
jne 0x97435d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x97434c
add ecx, 2
jmp 0x974369
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00974292
jmp 0x9742dd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x270c00
mov dl, 0x58
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x9743c9
cmp rsi, rcx
jae 0x9743d1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x9743b0
cmp al, 0x8f
ja 0x9743b0
cmp byte [rsi - 2], 0xf
je 0x9743b6
sub al, 0xe8
cmp al, 1
ja 0x97439a
cmp rsi, rcx
jae 0x9743d1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x9743a0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x9743d1
lodsb al, byte [rsi]
jmp 0x9743b0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x56d000]
mov eax, dword [rdi]
or eax, eax
je 0x97442e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x574000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x9743de
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x974428
mov qword [rbx], rax
add rbx, 8
jmp 0x9743fe
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x974472
cmp al, 0xef
ja 0x97445a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x97443a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x974449
mov eax, dword [rdi]
add rdi, 4
jmp 0x974449
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x9744c6
sub rsp, 0xffffffffffffff80
jmp 0x466460
Function at 0x140132e10
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140132e1d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140132e2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140132e15
lea eax, [rcx + 1]
jmp 0x140132e3b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140132e4e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140132e34
sub eax, 3
jb 0x140132e6e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140132ebd
sar eax, 1
movsxd rbp, eax
jb 0x140132ea4
jmp 0x140132e7c
add ebx, ebx
jne 0x140132e7a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140132ea4
inc ecx
add ebx, ebx
jne 0x140132e8a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140132ea4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140132e9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140132e8c
add ecx, 2
jmp 0x140132ea9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140132dd2
jmp 0x140132e1d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xc4600
mov dl, 0x1b
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140132f09
cmp rsi, rcx
jae 0x140132f11
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140132ef0
cmp al, 0x8f
ja 0x140132ef0
cmp byte [rsi - 2], 0xf
je 0x140132ef6
sub al, 0xe8
cmp al, 1
ja 0x140132eda
cmp rsi, rcx
jae 0x140132f11
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140132ee0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140132f11
lodsb al, byte [rsi]
jmp 0x140132ef0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x12f000]
mov eax, dword [rdi]
or eax, eax
je 0x140132f7a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1408ec]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140132f1e
jns 0x140132f53
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140132f5d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140132f74
mov qword [rbx], rax
add rbx, 8
jmp 0x140132f3e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x247]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140132fd2
sub rsp, 0xffffffffffffff80
jmp 0x1400a7e04
Function at 0x14000ec08
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x4b0
mov rax, qword [0x14001abd0]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
and qword [rsp + 0x30], 0
mov bl, 1
lea rdx, [0x1400155c0]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x40], 0x30
and qword [rsp + 0x48], 0
mov dword [rsp + 0x58], 0x240
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
and qword [rsp + 0x60], 0
and qword [rsp + 0x68], 0
lea r8, [rsp + 0x40]
mov edx, 0x20019
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x14000ecd9
lea rdx, [0x140015640]
lea rcx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x410
lea r9, [rsp + 0x90]
mov r8d, 2
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x14000ecd9
cmp byte [rsp + 0x9c], 0
setne bl
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000ece9
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, bl
jmp 0x14000ecef
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.140014b50
add rsp, 0x4b0
pop rbx
ret

Function at 0x14001449c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
sub rsp, 0xa8
and qword [rax + 0x20], 0
and qword [rax + 0x18], 0
lea rdx, [0x140015470]
lea rcx, [rax - 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x70], 0x30
and qword [rsp + 0x78], 0
mov dword [rsp + 0x88], 0x240
lea rax, [rsp + 0x40]
mov qword [rsp + 0x80], rax
and qword [rsp + 0x90], 0
and qword [rsp + 0x98], 0
lea r8, [rsp + 0x70]
mov edx, 0xf003f
lea rcx, [rsp + 0xc8]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x1400145ec
lea rdx, [0x140015500]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x70], 0x30
and qword [rsp + 0x78], 0
mov dword [rsp + 0x88], 0x240
lea rax, [rsp + 0x50]
mov qword [rsp + 0x80], rax
and qword [rsp + 0x90], 0
and qword [rsp + 0x98], 0
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x70]
mov edx, 0xf003f
lea rcx, [rsp + 0xc0]
call qword [sym.imp.ntoskrnl.exe_ZwCreateKey]
test eax, eax
js 0x1400145ec
lea rdx, [0x1400155a0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor eax, eax
cmp dword [0x140191e90], eax
setne al
mov dword [rsp + 0xb0], eax
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov rcx, qword [rsp + 0xc8]
test rcx, rcx
je 0x1400145ff
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x140014612
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x140014614
add rsp, 0xa8
ret
Function at 0x140014af8
Capabilities:
Register minifilter driver
Start minifilter driver

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.140199c88
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140198008

Function at 0x140199b7c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x14001abd0]
xor rax, rsp
mov qword [rbp + 0x4f], rax
and qword [rbp + 0xf], 0
and qword [rbp + 0x27], 0
and qword [rbp + 0x2f], 0
mov qword [rbp + 0x17], rcx
lea r8, [rbp + 7]
lea rcx, [rbp - 0x11]
mov edx, 0x20019
mov dword [rbp + 7], 0x30
mov dword [rbp + 0x1f], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x140199c6c
lea rdx, [0x14019a560]
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rbp - 0x11]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x37]
lea rdx, [rbp - 9]
mov r8d, 2
mov dword [rsp + 0x20], 0x14
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x140199c1b
mov eax, dword [rbp + 0x43]
mov dword [0x14001c040], eax
lea rdx, [0x14019a580]
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rbp - 0x11]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x37]
lea rdx, [rbp - 9]
mov r8d, 2
mov dword [rsp + 0x20], 0x14
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x140199c62
mov eax, dword [rbp + 0x43]
mov dword [0x14001c254], eax
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140014b50
add rsp, 0xa0
pop rbp
ret
Function at 0x140007170
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
xor esi, esi
lea ecx, [rsi + 0x10]
call fcn.1400816b0
mov qword [rax], rbx
lea rcx, [0x140007310]
mov qword [rax + 8], rcx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x140008c30]
xor edx, edx
xor ecx, ecx
call fcn.140088258
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400072d1
cmp dword [rbx + 0x1e8], esi
jne 0x1400072cb
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rbx + 0x1e0], xmm1
lea ecx, [rsi + 0x10]
call fcn.1400816b0
mov qword [rax], rbx
lea rcx, [0x140007e50]
mov qword [rax + 8], rcx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x140008c30]
xor edx, edx
xor ecx, ecx
call fcn.140088258
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400072fb
cmp dword [rbx + 0x1d8], esi
jne 0x1400072f5
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rbx + 0x1d0], xmm1
lea ecx, [rsi + 0x18]
call fcn.1400816b0
mov qword [rax], rdi
mov qword [rax + 8], rbx
lea rcx, [0x140007c40]
mov qword [rax + 0x10], rcx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x140008c60]
xor edx, edx
xor ecx, ecx
call fcn.140088258
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400072e6
cmp dword [rbx + 0x1f8], esi
jne 0x1400072e0
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rbx + 0x1f0], xmm1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call fcn.140088338
nop
mov dword [rsp + 0x38], esi
mov ecx, 6
call fcn.14007dcb0
nop
call fcn.140088338
nop
mov dword [rsp + 0x38], esi
mov ecx, 6
call fcn.14007dcb0
nop
call fcn.140088338
nop
mov dword [rsp + 0x38], esi
mov ecx, 6
call fcn.14007dcb0
int3