joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c87a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400c87ab
xor eax, eax
ret
lea r11, [0x1400f4bd0]
not ecx
cmp r8d, 8
jb 0x1400c8881
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400c87d0
test r8d, r8d
je 0x1400c88ad
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1400c8890
not ecx
mov eax, ecx
ret
Function at 0x1400cd438
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400cd482
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400cd482
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400cd482
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400cd482
cmp dword [rcx + 0x84], 0xe
jbe 0x1400cd482
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400cd484
xor al, al
add rsp, 0x28
ret

Function at 0x140b0f058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140b0f1df
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 0x140b0f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b0f06f
add dl, dl
jne 0x140b0f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b0f0f6
xor eax, eax
add dl, dl
jne 0x140b0f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b0f1ad
add dl, dl
jne 0x140b0f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b0f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b0f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b0f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b0f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b0f07e
mov eax, 1
add dl, dl
jne 0x140b0f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b0f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b0f0fb
sub eax, ebx
mov ebx, 1
jne 0x140b0f14c
mov ecx, 1
add dl, dl
jne 0x140b0f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b0f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b0f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b0f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b0f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b0f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b0f15d
cmp eax, 0x7d00
jae 0x140b0f19b
cmp eax, 0x500
jb 0x140b0f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b0f07e
cmp eax, 0x7f
ja 0x140b0f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b0f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b0f1d2
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 0x140b0f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000c640
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14000c6d0
cmp r11, r10
ja 0x14000c746
cmp r10, rdx
ja 0x14000c75a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14000c6d2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000c6b0
jmp 0x14000c734
ja 0x14000c6da
mov r11, r10
cmp rax, r8
jne 0x14000c674
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14000c710
mov rdi, r8
sub ecx, edx
jns 0x14000c72b
jmp 0x14000c736
cmp r8, rsi
je 0x14000c76b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14000c736
xor al, 1
cmp rdi, rsi
jne 0x14000c6f0
jmp 0x14000c736
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14002c8e0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14002c670
ud2
lea rcx, str.called__Option::unwrap____on_a__None__valueC:UsersBrent.cargo_registry_srcindex.crates.io_6f17d22bba15001fwinapi_util_0.1.8_srcwin.rs
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14002c6f0
ud2

Function at 0x14000cf90
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp - 8], 0
lea r9, [rbp - 8]
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rcx, qword [rbp - 8]
test eax, eax
je 0x14000cfd2
call sub.ole32.dll_CoTaskMemFree
mov byte [rsi + 0x18], 2
jmp 0x14000cfff
call sub.KERNEL32.dll_lstrlenW
movsxd r8, eax
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 0x28]
call fcn.14001d390
mov rcx, qword [rbp - 8]
call sub.ole32.dll_CoTaskMemFree
movups xmm0, xmmword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x1400101c0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, rcx
xor edi, edi
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x20
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
cmp eax, 0xc0000000
jb 0x14001024a
mov esi, eax
mov rcx, rbx
mov edx, 0x20
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x140010202
xor edi, edi
jmp 0x14001024a
xor esi, 0x80000000
je 0x1400101fe
movzx eax, byte [0x14003a240]
mov rcx, qword [0x14003a1c8]
test rcx, rcx
jne 0x140010232
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x140010255
mov rcx, rax
mov qword [0x14003a1c8], rax
mov r8d, 4
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140010255
mov rdi, rax
mov dword [rax], esi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov ecx, 4
mov edx, 4
call fcn.14002c450
ud2

Function at 0x140013fa0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.14000a030
cmp rax, rcx
je 0x140013fc5
cmp rdx, 4
jae 0x140013fc8
xor eax, eax
xor r8d, r8d
jmp 0x140014060
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14002e450]
movdqa xmm3, xmmword [0x14002e460]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140013ff0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140014077
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140014060
ret

Function at 0x140018ec0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret
Function at 0x14001a9d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1400326d0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14001aa43
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14001aa7a
test eax, eax
js 0x14001aa54
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14001aa6d
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x140032730]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140019cc0
mov rcx, rax
call fcn.1400194d0
mov ecx, 7
int 0x29
ud2

Function at 0x140020710
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x1400326d0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14002077c
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14002078b
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400207c3
cmp eax, 0x103
je 0x1400207cd
test eax, eax
js 0x1400207a8
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400207c3
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x140032730]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140019cc0
mov rcx, rax
call fcn.1400194d0
mov ecx, 7
int 0x29
ud2
Function at 0x140020e90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x508
movaps xmmword [rsp + 0x4f0], xmm6
mov rbx, rdx
mov rsi, rcx
mov eax, dword [rdx + 0x10]
movq xmm6, qword [rdx + 0x40]
movzx ebp, word [rdx + 0x44]
mov dword [rdx + 0x10], 0
cmp eax, 1
jne 0x140020ef2
mov r14, qword [rbx]
movd eax, xmm6
cmp ax, 0x2e
jne case.0x14001d77a.141
pextrw eax, xmm6, 1
test eax, eax
je 0x140020ef2
cmp ax, 0x2e
jne case.0x14001d77a.141
test bp, bp
jne case.0x14001d77a.141
lea r14, [rsp + 0x80]
mov r8d, 0x250
mov rcx, r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rdi, qword [rbx + 8]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140020fc8
mov r14, qword [rbx]
lea rbx, [rsp + 0x80]
mov r15, qword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x140020f4d
mov rcx, rdi
mov rdx, rbx
call r15
test eax, eax
je 0x140020fc8
cmp word [rsp + 0xac], 0x2e
jne 0x140020f76
movzx eax, word [rsp + 0xae]
test ax, ax
je 0x140020f40
cmp ax, 0x2e
jne 0x140020f76
cmp word [rsp + 0xb0], 0
je 0x140020f40
lock inc qword [r14]
jle 0x1400210cd
invalid
mov rdi, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rsp + 0x98]
add byte [rax], al
invalid
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x40], eax
movd xmm6, dword [rsp + 0xac]
and al, 0xac
add byte [rax], al
invalid
movzx ebp, word [rsp + 0xb0]
lea rdx, [rsp + 0xb2]
xchg esp, eax
and al, 0xb2
add byte [rax], al
add bl, ch
invalid
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne case.0x14001d77a.146
add dword [rax], 0
invalid
mov qword [rsi], 0
jmp 0x1400210b5
lock inc qword [r14]
jle 0x1400210cd
lea rdx, [rbx + 0x46]
mov rdi, qword [rbx + 0x14]
mov eax, dword [rbx + 0x3c]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rbx + 0x2c]
sub al, 0xf
sub dword [rsp + 0x30], eax
movups xmm0, xmmword [rbx + 0x1c]
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x2d2]
mov r8d, 0x21e
add al, byte [rax]
invalid
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x70], eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
sub byte [rsp + 0x30], cl
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x2d2]
mov r8d, 0x21e
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14002106d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
shl edi, 0x20
or rdi, 2
xor r14d, r14d
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rdi
jle 0x140021085
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x18], xmm0
movups xmmword [rsi + 0x28], xmm1
mov eax, dword [rsp + 0x70]
mov dword [rsi + 0x38], eax
movd dword [rsi + 0x3c], xmm6
mov word [rsi + 0x40], bp
lea rcx, [rsi + 0x42]
lea rdx, [rsp + 0x80]
mov r8d, 0x21e
call sub.VCRUNTIME140.dll_memcpy
cwde
mov dl, 0
add byte [rax - 0x39], cl
mov dword [rsi], 1
movaps xmm6, xmmword [rsp + 0x4f0]
add rsp, 0x508
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
ud2
Function at 0x14002c044
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002c08e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002c08e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002c08e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002c08e
cmp dword [rcx + 0x84], 0xe
jbe 0x14002c08e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002c090
xor al, al
add rsp, 0x28
ret
Function at 0x180002820
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
movsxd rax, dword [rcx + 0x3c]
xor r9d, r9d
mov rdi, rdx
mov r11, rcx
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov esi, dword [r8 + 0x1c]
mov r10d, dword [r8 + 0x20]
add rsi, rcx
mov ebp, dword [r8 + 0x24]
add r10, rcx
mov ebx, dword [r8 + 0x18]
add rbp, rcx
test ebx, ebx
je 0x1800028a3
nop dword [rax]
mov eax, dword [r10]
mov r8, rdi
add rax, r11
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180002893
inc rax
test ecx, ecx
jne 0x180002880
test edx, edx
je 0x1800028ba
inc r9d
add r10, 4
cmp r9d, ebx
jb 0x180002870
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
movzx ecx, word [rbp + r9*2]
mov eax, dword [rsi + rcx*4]
add rax, r11
jmp 0x1800028a5
Function at 0x180002080
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
movsxd r8, dword [rcx + 0x3c]
lea rdi, [rcx + 0x18]
add rdi, r8
xor r9d, r9d
mov rsi, rdx
mov r15, rcx
movzx eax, word [r8 + rcx + 0x14]
movzx r14d, word [r8 + rcx + 6]
add rdi, rax
test r14, r14
je 0x1800021df
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
xor ebp, ebp
cmp dword [rdi], 0x45474150
je 0x1800020e4
cmp dword [rdi], 0x7865742e
jne 0x1800021a9
cmp byte [rdi + 4], 0x74
jne 0x1800021a9
mov r10d, dword [rdi + 0xc]
xor r11d, r11d
mov ebx, dword [rdi + 8]
add r10, r15
add rbx, r10
mov rdx, rsi
cmp r10, rbx
jae 0x1800021a6
movzx r8d, byte [rdx]
test r8b, r8b
je 0x1800021d5
cmp r8b, 0x3f
je 0x180002177
mov ecx, r8d
and ecx, 0xffffffdf
lea eax, [rcx - 0x41]
cmp eax, 5
ja 0x180002126
add ecx, 0xffffffc9
jmp 0x180002136
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x180002134
lea ecx, [r8 - 0x30]
jmp 0x180002136
xor ecx, ecx
movsx r9d, byte [rdx + 1]
movzx eax, r9b
and al, 0xdf
sub al, 0x41
cmp al, 5
ja 0x180002152
mov eax, r9d
and eax, 0xffffffdf
sub eax, 0x37
jmp 0x180002162
lea eax, [r9 - 0x30]
cmp al, 9
ja 0x180002160
lea eax, [r9 - 0x30]
jmp 0x180002162
xor eax, eax
shl ecx, 4
or ecx, eax
movzx eax, byte [r10]
cmp eax, ecx
je 0x180002177
mov rdx, rsi
xor r11d, r11d
jmp 0x18000219a
test r11, r11
mov r9, r10
cmovne r9, r11
cmp byte [rdx + 2], 0
je 0x1800021d8
mov r11, r9
cmp r8b, 0x3f
jne 0x180002196
add rdx, 2
jmp 0x18000219a
add rdx, 3
inc r10
cmp r10, rbx
jb 0x180002100
xor r9d, r9d
inc rbp
add rdi, 0x28
cmp rbp, r14
jl 0x1800020c6
mov rbx, qword [rsp + 0x18]
mov rax, r9
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
mov r9, r11
test r9, r9
jne 0x1800021b9
jmp 0x1800021a9
mov rsi, qword [rsp + 0x28]
mov rax, r9
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret
Function at 0x1800022f0
Capabilities:
Attach user process memory
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x50
mov rbp, r8
mov rbx, rcx
call qword [sym.imp.ntoskrnl.exe_PsGetProcessPeb]
mov rdi, rax
test rax, rax
je 0x180002335
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rbx, qword [rdi + 0x18]
test rbx, rbx
jne 0x180002347
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rbx, qword [rbx + 0x10]
xor edi, edi
nop dword [rax]
mov rcx, qword [rbx + 0x50]
lea rdx, [0x180005590]
call qword [sym.imp.ntoskrnl.exe_wcsstr]
test rax, rax
jne 0x180002370
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180002350
jmp 0x1800023e9
mov r11, qword [rbx + 0x30]
mov r9, rdi
mov qword [rsp + 0x60], rsi
movsxd rax, dword [r11 + 0x3c]
mov esi, dword [rax + r11 + 0x88]
mov ebx, dword [rsi + r11 + 0x18]
test rbx, rbx
je 0x1800023e4
mov r10d, dword [rsi + r11 + 0x20]
add r10, r11
nop word [rax + rax]
mov eax, dword [r10]
mov r8, rbp
add rax, r11
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1800023c3
inc rax
test ecx, ecx
jne 0x1800023b0
test edx, edx
je 0x1800023d5
inc r9
add r10, 4
cmp r9, rbx
jb 0x1800023a0
jmp 0x1800023e4
mov ecx, dword [rsi + r11 + 0x1c]
add rcx, r11
mov edi, dword [rcx + r9*4]
add rdi, r11
mov rsi, qword [rsp + 0x60]
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rbx, qword [rsp + 0x68]
mov rax, rdi
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x180002610
Capabilities:
Access pe header
Check for software breakpoints

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov r14d, ecx
xor ecx, ecx
call fcn.180002b50
mov rbx, qword [0x180004038]
mov rsi, rax
test rbx, rbx
jne 0x180002726
test rax, rax
je 0x180002765
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
lea r10, [rax + 0x108]
movzx eax, word [rax + 6]
lea rcx, [rax + rax*4]
lea rbp, [r10 + rcx*8]
cmp r10, rbp
jae 0x180002765
movups xmm0, xmmword [0x180005878]
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10 + 0x24]
and eax, 0x2a000000
cmp eax, 0x28000000
jne 0x180002758
mov eax, dword [r10]
cmp eax, 0x54494e49
je 0x180002758
cmp eax, 0x45474150
je 0x180002758
mov edi, dword [r10 + 0xc]
movups xmmword [rsp + 0x20], xmm0
add rdi, rsi
je 0x180002758
mov r11d, dword [r10 + 8]
xor r8d, r8d
sub r11, 0xf
je 0x180002758
lea rax, [rsp + 0x20]
mov rbx, rdi
sub rbx, rax
nop dword [rax + rax]
xor eax, eax
lea r9, [rbx + r8]
nop word [rax + rax]
lea rcx, [rsp + 0x20]
add rcx, rax
movzx edx, byte [rcx]
cmp dl, 0xcc
je 0x180002706
cmp dl, byte [r9 + rcx]
jne 0x180002750
inc rax
cmp rax, 0xf
jb 0x1800026f0
mov eax, dword [r8 + rdi + 3]
lea rcx, [r8 + rdi]
lea rbx, [rcx + 7]
add rbx, rax
mov qword [0x180004038], rbx
lea rcx, [rsp + 0x58]
call fcn.180002b50
test rbx, rbx
je 0x18000276f
test rax, rax
je 0x18000276f
cmp r14, qword [rbx + 0x10]
ja 0x18000276f
mov rcx, qword [rbx]
movsxd rax, dword [rcx + r14*4]
sar rax, 4
add rax, rcx
jmp 0x180002771
inc r8
cmp r8, r11
jb 0x1800026e0
add r10, 0x28
cmp r10, rbp
jb 0x180002680
lea rcx, [rsp + 0x58]
call fcn.180002b50
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x180002b50
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
xor ebx, ebx
mov r14, rcx
cmp qword [0x180004040], rbx
mov dword [rsp + 0x48], ebx
je 0x180002b9b
test rcx, rcx
je 0x180002cbd
mov eax, dword [0x180004034]
mov dword [rcx], eax
mov rax, qword [0x180004040]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
xorps xmm0, xmm0
lea r8, [0x180005860]
mov edx, 0x7fff
mov rax, r8
movups xmmword [rsp + 0x20], xmm0
mov ecx, edx
cmp word [rax], bx
je 0x180002bc5
add rax, 2
sub rcx, 1
jne 0x180002bb4
jmp 0x180002bde
sub rdx, rcx
mov qword [rsp + 0x28], r8
add dx, dx
mov word [rsp + 0x20], dx
add dx, 2
mov word [rsp + 0x22], dx
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rdi, rax
test rax, rax
je 0x180002cd5
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x180002cd5
mov edx, eax
mov qword [rsp + 0x40], rsi
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.180002fc0
mov r8d, dword [rsp + 0x48]
lea r9, [rsp + 0x48]
mov rdx, rsi
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x180002caa
mov r8d, dword [rsi]
test r8d, r8d
je 0x180002caa
lea rcx, [rsi + 0x20]
nop
mov rdx, qword [rcx - 8]
cmp rdi, rdx
jb 0x180002c73
mov eax, dword [rcx]
add rax, rdx
cmp rdi, rax
jb 0x180002c83
inc ebx
add rcx, 0x128
cmp ebx, r8d
jb 0x180002c60
jmp 0x180002caa
mov eax, ebx
imul rcx, rax, 0x128
mov rax, qword [rcx + rsi + 0x18]
mov qword [0x180004040], rax
mov eax, dword [rcx + rsi + 0x20]
mov dword [0x180004034], eax
test r14, r14
je 0x180002caa
mov dword [r14], eax
test rsi, rsi
je 0x180002cb8
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
mov rsi, qword [rsp + 0x40]
mov rax, qword [0x180004040]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret