joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140066620
Capabilities:
Resume thread

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
vzeroupper
lea rbp, [rsp + 0x90]
mov rbx, rcx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rbx
mov qword [rbp - 0x70], rcx
lea rcx, [rbp - 0x60]
call fcn.140005850
mov rcx, qword [rbp - 0x70]
call sub.KERNEL32.dll_ResumeThread
mov ebx, eax
lea rcx, [rbp - 0x60]
call fcn.1400058a0
mov rax, qword gs:[0x58]
mov ecx, dword [0x14012250c]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rcx, rdx
mov rsi, qword [rcx]
test rsi, rsi
je 0x1400666b8
mov qword [rbp - 0x68], rsi
call sub.KERNEL32.dll_GetLastError
mov rsi, qword [rbp - 0x68]
mov dword [rsi + 0x50], eax
cmp dword [0x14011c1e0], 0
jne 0x1400666ca
mov eax, ebx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rax, [0x1400a6e50]
call rax
mov rsi, rax
mov qword [rbp - 0x68], rsi
jmp 0x140066690
call fcn.1400047a0
jmp 0x1400666a5

Function at 0x140067440
Capabilities:
Terminate process

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
vzeroupper
lea rbp, [rsp + 0xa0]
mov rsi, rcx
mov ebx, edx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rsi
mov qword [rbp - 0x74], rcx
mov edx, ebx
mov dword [rbp - 0x6c], edx
lea rcx, [rbp - 0x60]
call fcn.140005850
mov rcx, qword [rbp - 0x74]
mov edx, dword [rbp - 0x6c]
call sub.KERNEL32.dll_TerminateProcess
mov ebx, eax
lea rcx, [rbp - 0x60]
call fcn.1400058a0
mov rax, qword gs:[0x58]
mov ecx, dword [0x14012250c]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rcx, rdx
mov rsi, qword [rcx]
test rsi, rsi
je 0x1400674e2
mov qword [rbp - 0x68], rsi
call sub.KERNEL32.dll_GetLastError
mov rsi, qword [rbp - 0x68]
mov dword [rsi + 0x50], eax
cmp dword [0x14011c1e0], 0
jne 0x1400674f4
mov eax, ebx
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rax, [0x1400a6e50]
call rax
mov rsi, rax
mov qword [rbp - 0x68], rsi
jmp 0x1400674ba
call fcn.1400047a0
jmp 0x1400674cf
Function at 0x140068bb0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
vzeroupper
lea rbp, [rsp + 0xd0]
vxorps xmm4, xmm4, xmm4
vmovdqa xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rdx
mov rsi, r8
mov rdi, r9
vxorps xmm0, xmm0, xmm0
vmovdqu xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1400a54a0
nop
test rbx, rbx
je 0x140068c0d
add rbx, 0xc
mov rdx, rbx
jmp 0x140068c0f
xor edx, edx
mov qword [rbp - 0x50], rdx
mov rcx, qword [rbp - 0x48]
mov rbx, qword [rbp + 0x30]
mov qword [rsp + 0x20], rbx
mov rbx, qword [rbp + 0x38]
mov qword [rsp + 0x28], rbx
mov rcx, qword [rcx + 8]
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x88], rdx
mov r8, rsi
mov qword [rbp - 0x90], r8
mov r9, rdi
mov qword [rbp - 0x98], r9
lea rcx, [rbp - 0x78]
call fcn.140005850
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x88]
mov r8, qword [rbp - 0x90]
mov r9, qword [rbp - 0x98]
call sub.ADVAPI32.dll_RegQueryValueExW
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.1400058a0
nop
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x140068c98
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1400a54e0
mov eax, ebx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14006a470
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
vzeroupper
lea rbp, [rsp + 0xb0]
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
xor ecx, ecx
mov dword [r9], ecx
mov qword [rbp - 0x40], r9
mov r14, r9
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x74], rcx
mov rdx, rsi
mov qword [rbp - 0x7c], rdx
mov r8d, edi
mov dword [rbp - 0x6c], r8d
mov r9, r14
mov qword [rbp - 0x84], r9
lea rcx, [rbp - 0x68]
call fcn.140005850
mov rcx, qword [rbp - 0x74]
mov rdx, qword [rbp - 0x7c]
mov r8d, dword [rbp - 0x6c]
mov r9, qword [rbp - 0x84]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x68]
call fcn.1400058a0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x14012250c]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x14006a53c
mov dword [rdi + 0x50], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x1400a6e50]
call rax
mov rdi, rax
jmp 0x14006a526

Function at 0x14006dea0
Capabilities:
Enumerate process modules

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x1400d5c38]
cmp qword [rcx - 8], 0
jne 0x14006dede
mov rcx, rbx
call fcn.14006dad0
test eax, eax
jne 0x14006decc
add rsp, 0x20
pop rbx
jmp fcn.14006ede0
mov rcx, rbx
mov edx, 1
add rsp, 0x20
pop rbx
jmp fcn.14006ed60
call fcn.14000103a
jmp 0x14006deb6
Function at 0x14006fe00
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
vzeroupper
lea rbp, [rsp + 0xc0]
vxorps xmm4, xmm4, xmm4
vmovdqu xmmword [rbp - 0x88], xmm4
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov esi, dword [0x1400d5c40]
jmp 0x14006fe48
mov rcx, rbx
call fcn.1400aa5f0
mov ecx, esi
mov qword [rbp - 0x98], rcx
lea rcx, [rbp - 0x70]
call fcn.140005850
mov rcx, qword [rbp - 0x98]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rbx, rax
lea rcx, [rbp - 0x70]
call fcn.1400058a0
test rbx, rbx
je 0x14006ffa8
mov qword [rbp - 0x40], rbx
xor r9d, r9d
mov dword [rbp - 0x48], r9d
lea r9, [rbp - 0x48]
mov qword [rbp - 0x98], r9
mov rdx, rbx
mov qword [rbp - 0xa0], rdx
mov r8d, esi
mov dword [rbp - 0x8c], r8d
mov ecx, 5
mov dword [rbp - 0x90], ecx
lea rcx, [rbp - 0x70]
call fcn.140005850
mov r9, qword [rbp - 0x98]
mov rdx, qword [rbp - 0xa0]
mov r8d, dword [rbp - 0x8c]
mov ecx, dword [rbp - 0x90]
call sub.ntdll.dll_NtQuerySystemInformation
mov esi, eax
lea rcx, [rbp - 0x70]
call fcn.1400058a0
cmp esi, 0xc0000004
je 0x14006ff08
test esi, esi
jl 0x14006ff3d
mov ecx, dword [rbp - 0x48]
add ecx, 0x2800
mov dword [0x1400d5c40], ecx
mov esi, dword [rbp - 0x48]
test esi, esi
jge 0x14006ff16
jmp 0x14006ff37
mov esi, dword [rbp - 0x48]
add esi, 0x2800
jmp 0x14006fe40
mov qword [rbp - 0x80], rbx
mov dword [rbp - 0x78], esi
lea rcx, [rbp - 0x80]
mov rdx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
call fcn.14006ffe0
mov qword [rbp - 0x88], rax
jmp 0x14006ff84
call fcn.14007fcb0
int3
lea rcx, [0x1400d99e0]
call fcn.140003a40
mov rbx, rax
call fcn.14006cec0
mov rdi, rax
mov rcx, rbx
mov edx, esi
call fcn.14008ac00
lea rcx, [0x1400d85c0]
call fcn.140003a40
mov rsi, rax
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call fcn.14007b390
mov rcx, rsi
call fcn.140003fb0
int3
mov rcx, rsp
call fcn.14006ffae
nop
mov rax, qword [rbp - 0x88]
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.1400801b0
int3
Function at 0x1400705f0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
vzeroupper
lea rbp, [rsp + 0xa0]
mov r8d, edx
mov dword [rbp - 0x64], r8d
mov rdx, rcx
mov qword [rbp - 0x70], rdx
xor ecx, ecx
mov qword [rbp - 0x78], rcx
mov r9d, 2
mov dword [rbp - 0x68], r9d
lea rcx, [rbp - 0x60]
call fcn.140005850
mov r8d, dword [rbp - 0x64]
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
mov r9d, dword [rbp - 0x68]
call sub.bcrypt.dll_BCryptGenRandom
mov ebx, eax
lea rcx, [rbp - 0x60]
call fcn.1400058a0
test ebx, ebx
jne 0x140070667
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp ebx, 0xc0000017
je 0x14007068f
lea rcx, [0x1400d85c0]
call fcn.140003a40
mov rbx, rax
mov rcx, rbx
call fcn.14007b340
mov rcx, rbx
call fcn.140003fb0
int3
lea rcx, [0x1400d8be8]
call fcn.140003a40
mov rbx, rax
mov rcx, rbx
call fcn.14007df40
mov rcx, rbx
call fcn.140003fb0
int3

Function at 0x140072960
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140072972
add rsp, 0x28
jmp fcn.140072d60
lea rcx, [0x1400d4ea0]
call fcn.140069f70
int3

Function at 0x1400a9ff0
Capabilities:
Access the windows event log

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
vzeroupper
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x48], rax
mov rbx, rcx
mov esi, edx
mov edi, r8d
mov r14d, r9d
mov r15, qword [rbp + 0x30]
mov r13, qword [rbp + 0x50]
lea r12, [r13 + 0x10]
xor ecx, ecx
test r13, r13
cmove r12, rcx
mov qword [rbp - 0x40], r12
lea r13, [r15 + 0x10]
test r15, r15
cmove r13, rcx
mov qword [rbp - 0x48], r13
call sub.KERNEL32.dll_SetLastError
mov qword [rsp + 0x20], r13
movsx rdx, word [rbp + 0x38]
mov dword [rsp + 0x28], edx
mov r15d, dword [rbp + 0x40]
mov dword [rsp + 0x30], r15d
mov r15, qword [rbp + 0x48]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x40], r12
movsx rdx, si
mov dword [rbp - 0x74], edx
movzx r8d, di
mov dword [rbp - 0x78], r8d
mov rcx, rbx
mov qword [rbp - 0x84], rcx
mov r9d, r14d
mov dword [rbp - 0x7c], r9d
lea rcx, [rbp - 0x70]
call fcn.140005850
mov edx, dword [rbp - 0x74]
mov r8d, dword [rbp - 0x78]
mov rcx, qword [rbp - 0x84]
mov r9d, dword [rbp - 0x7c]
call sub.ADVAPI32.dll_ReportEventW
mov ebx, eax
lea rcx, [rbp - 0x70]
call fcn.1400058a0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov rax, qword gs:[0x58]
mov ecx, dword [0x14012250c]
mov edx, 0x10
add rdx, qword [rax + rcx*8]
mov rdi, qword [rdx]
test rdi, rdi
je 0x1400aa110
mov dword [rdi + 0x50], esi
test ebx, ebx
setne al
movzx eax, al
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, rdx
lea rax, [0x1400a6e50]
call rax
mov rdi, rax
jmp 0x1400aa0f1
Function at 0x1400aa130
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xc8
vzeroupper
lea rbp, [rsp + 0x100]
xor eax, eax
mov qword [rbp - 0x78], rax
vxorps xmm4, xmm4, xmm4
vmovdqu ymmword [rbp - 0x70], ymm4
vmovdqa xmmword [rbp - 0x50], xmm4
mov qword [rbp - 0x40], rax
mov edi, edx
mov rbx, r8
mov rsi, r9
mov r14, qword [rbp + 0x30]
mov r15, qword [rbp + 0x38]
mov r13, qword [rbp + 0x40]
mov r12, qword [rbp + 0x48]
vxorps xmm0, xmm0, xmm0
vmovdqu xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1400a54a0
nop
lea rcx, [r12 + 0x10]
xor edx, edx
test r12, r12
cmove rcx, rdx
mov qword [rbp - 0x50], rcx
lea rdx, [r13 + 0x10]
xor r8d, r8d
test r13, r13
cmove rdx, r8
mov qword [rbp - 0x58], rdx
lea r8, [r15 + 0x10]
xor r9d, r9d
test r15, r15
cmove r8, r9
mov qword [rbp - 0x60], r8
lea r9, [r14 + 0x10]
xor eax, eax
test r14, r14
cmove r9, rax
mov qword [rbp - 0x68], r9
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x78], rbx
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rcx
mov rcx, qword [rax + 8]
mov qword [rbp - 0xac], rcx
mov edx, edi
mov dword [rbp - 0xa4], edx
mov r8, rbx
mov qword [rbp - 0xb4], r8
mov r9, rsi
mov qword [rbp - 0xbc], r9
lea rcx, [rbp - 0xa0]
call fcn.140005850
mov rcx, qword [rbp - 0xac]
mov edx, dword [rbp - 0xa4]
mov r8, qword [rbp - 0xb4]
mov r9, qword [rbp - 0xbc]
call sub.ADVAPI32.dll_RegEnumKeyExW
mov ebx, eax
lea rcx, [rbp - 0xa0]
call fcn.1400058a0
nop
xor ecx, ecx
mov qword [rbp - 0x78], rcx
xor ecx, ecx
mov qword [rbp - 0x70], rcx
xor ecx, ecx
mov qword [rbp - 0x68], rcx
xor ecx, ecx
mov qword [rbp - 0x60], rcx
xor ecx, ecx
mov qword [rbp - 0x58], rcx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
cmp byte [rbp - 0x40], 0
je 0x1400aa297
mov rcx, qword [rbp - 0x48]
cmp byte [rcx], cl
xor edx, edx
call fcn.1400a54e0
mov eax, ebx
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1400aa800
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
mov r8, qword [rcx + 0x18]
mov r10, qword [rcx + 0x20]
mov r9, rdx
shl r9, 0x11
xor r8, rax
xor r10, rdx
lea r11, [rdx + rdx*4]
rol r11, 7
lea r11, [r11 + r11*8]
xor rdx, r8
xor rax, r10
xor r8, r9
rol r10, 0x2d
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rdx
mov qword [rcx + 0x18], r8
mov qword [rcx + 0x20], r10
mov rax, r11
shr rax, 0x21
cmp rax, 0x7fffffff
je fcn.1400aa800
ret
Function at 0x1404999c0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1404999cd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1404999dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1404999c5
lea eax, [rcx + 1]
jmp 0x1404999eb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1404999fe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1404999e4
sub eax, 3
jb 0x140499a1e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140499a6d
sar eax, 1
movsxd rbp, eax
jb 0x140499a54
jmp 0x140499a2c
add ebx, ebx
jne 0x140499a2a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140499a54
inc ecx
add ebx, ebx
jne 0x140499a3a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140499a54
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140499a4d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140499a3c
add ecx, 2
jmp 0x140499a59
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140499982
jmp 0x1404999cd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x497000]
mov eax, dword [rdi]
or eax, eax
je 0x140499acd
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4991e4]
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 0x140499a7d
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 0x140499ac7
mov qword [rbx], rax
add rbx, 8
jmp 0x140499a9d
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 0x140499b11
cmp al, 0xef
ja 0x140499af9
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140499ad9
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140499ae8
mov eax, dword [rdi]
add rdi, 4
jmp 0x140499ae8
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 + 0x22f]
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 0x140499b65
sub rsp, 0xffffffffffffff80
jmp 0x140014c44
Function at 0x140001030
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx], 0x85b3b69
mov rbx, rcx
jne 0x140001087
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x140001087
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001087
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
je 0x140001087
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
jmp 0x14000108c
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret

Function at 0x140001094
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x85b3b69
mov rsi, rcx
je 0x1400010b8
mov eax, 0xc0000001
jmp 0x140001170
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 0x14000116e
test rbx, rbx
je 0x1400010f0
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 0x1400010e0
test rbx, rbx
je 0x14000116e
mov r8d, dword [rbx]
test r8d, r8d
je 0x140001163
mov edx, edi
shl rdx, 5
test byte [rdx + rbx + 0x10], 1
je 0x14000115c
cmp qword [rdx + rbx + 0x18], 0x200000
jne 0x14000115c
mov ecx, dword [0x140001d30]
mov r9b, byte [0x140001d34]
cmp dword [rdx + rbx + 0x20], ecx
jne 0x14000115c
cmp byte [rdx + rbx + 0x24], r9b
je 0x140001180
inc edi
cmp edi, r8d
jb 0x14000112a
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rsi + 8]
mov rax, qword [rdx + rbx + 8]
mov qword [rcx], rax
jmp 0x14000116e
Function at 0x140001190
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
cmp dword [rcx], 0x85b3b69
mov rbx, rcx
jne 0x1400012c0
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x1400012c0
and qword [rbp + 0x20], 0
lea rdx, [rbp + 0x20]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x1400012c0
mov rdi, qword [rcx + 0x28]
mov rsi, rcx
test rdi, rdi
jne 0x1400011f4
call fcn.1400012d8
mov ecx, eax
mov rdi, qword [rcx + rsi]
mov rcx, qword [rbp + 0x20]
mov rax, rdi
shr rax, 0x38
cmp al, 0x40
jne 0x14000124f
cmp byte [0x140003078], 0
jne 0x140001243
xorps xmm0, xmm0
lea rdx, [rbp - 0x30]
mov rcx, rsi
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rax, cr3
lea rcx, [rbp - 0x30]
mov qword [0x140003070], rax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp + 0x20]
mov byte [0x140003078], 1
mov rsi, qword [0x140003070]
test rsi, rsi
jne 0x140001252
mov rsi, rdi
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rbx + 8]
mov rcx, rsi
mov rdi, qword [rbx + 0x18]
call fcn.1400014e4
test rax, rax
je 0x1400012c0
mov ecx, eax
mov edx, 0x1000
and ecx, 0xfff
sub edx, ecx
mov rcx, qword [rbx + 0x10]
cmp edx, edi
cmovl edi, edx
and qword [rbp + 0x28], 0
cmp byte [rbx + 0x20], 0
movsxd r8, edi
je 0x1400012a4
mov rdx, rcx
lea r9, [rbp + 0x28]
mov rcx, rax
call fcn.1400016c4
jmp 0x1400012bc
lea rdx, [rbp + 0x28]
mov r9d, 1
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x1400012c5
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400024b0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.VirtualAlloc
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r9, [rsp + 0x30]
mov edx, 8
lea rcx, [0x1400181f8]
mov qword [0x1400181f8], rax
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x30]
lea rax, [0x1400024a0]
lea r9, [rsp + 0x30]
mov qword [0x1400181f8], rax
mov edx, 8
lea rcx, [0x1400181f8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
add rsp, 0x28
ret
Function at 0x140003970
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x30
xor edi, edi
mov dword [rbp - 0x10], 0x45777445
lea rcx, [rbp + 0x30]
mov dword [rbp + 0x28], edi
mov dword [rbp - 0xc], 0x746e6576
mov dword [rbp - 8], 0x74697257
mov word [rbp - 4], 0x65
mov dword [rbp + 0x30], 0x6c64746e
mov word [rbp + 0x34], 0x6c
mov dword [rbp + 0x20], 0xc3c03348
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140003a15
lea r9, [rbp + 0x28]
mov edx, 0x1000
mov r8d, 0x40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140003a15
mov ecx, dword [rbp + 0x20]
lea r9, [rbp + 0x28]
mov dword [rbx], ecx
mov edx, 0x1000
mov r8d, dword [rbp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne dil
mov eax, edi
add rsp, 0x30
pop rdi
pop rbx
pop rbp
ret
xor eax, eax
add rsp, 0x30
pop rdi
pop rbx
pop rbp
ret
Function at 0x140004cb0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140004cd4
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
je 0x140004d62
mov rdi, r15
mov qword [rsp + 0x40], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004d30
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140004d30
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call sub.msvcrt.dll_memcpy
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140004d4d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140004d55
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140004cf1
mov rbp, qword [rsp + 0x40]
sub r15, rdi
jmp 0x140004e42
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140004d79
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004d7b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004dad
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140004e3f
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004de8
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
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
cmp rsi, 0xfff
jbe 0x140004e1f
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.msvcrt.dll_fread]
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x140004e3f
cmp rsi, rax
ja 0x140004df1
test rsi, rsi
je 0x140004e3f
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call qword [sym.imp.msvcrt.dll_fread]
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x48]
mov rax, r15
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret