joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400288c0
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x470
mov rax, qword [0x140075180]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov r14d, 2
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp word [rcx], r14w
je 0x140028901
cmp word [rcx], 0x17
jne 0x1400289a5
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
mov dword [rsi], eax
lea rcx, [rsp + 0x50]
mov esi, 0x401
mov r8d, esi
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], r14d
lea r8, [rsp + 0x50]
xor r14d, r14d
mov r9d, esi
mov dword [rsp + 0x28], r14d
mov edx, ebp
mov rcx, rbx
mov qword [rsp + 0x20], r14
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x1400289a5
lea rax, [rsp + 0x50]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r14b
jne 0x140028956
cmp rbx, qword [rdi + 0x18]
ja 0x14002898c
cmp qword [rdi + 0x18], 0x10
mov rsi, rdi
jb 0x140028972
mov rsi, qword [rdi]
mov r8, rbx
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x50]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rbx], r14b
jmp 0x1400289a1
mov r8b, byte [rsp + 0x40]
lea r9, [rsp + 0x50]
mov rdx, rbx
mov rcx, rdi
call fcn.14000a80c
mov al, 1
jmp 0x1400289a7
xor al, al
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140053580
add rsp, 0x470
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400289c8
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x1400289d4
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140075180]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov dword [rsp + 0x20], 0x80
mov rbx, rdx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140028a29
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.1400288c0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140053580
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret

Function at 0x1400289d4
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rcx, qword [rcx + 8]
jmp 0x1400289d4
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x140075180]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov dword [rsp + 0x20], 0x80
mov rbx, rdx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140028a29
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.1400288c0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140053580
mov rbx, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret
Function at 0x140049b6c
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
xor r15d, r15d
lea r12, [0x140000000]
movzx eax, byte [r15 + r12 + 0x60ed0]
mov edi, eax
mov r8d, eax
shr edi, 5
mov r11d, eax
shr r8d, 6
mov ebp, edi
lea edx, [rax + rax]
shr r11d, 7
xor edx, eax
and ebp, 4
mov r10d, edi
mov r9d, r8d
and edi, 1
and r10d, 2
imul ecx, edi, 0x1b000000
and r8d, 1
lea ebx, [rdx + rdx]
and r9d, 2
lea edx, [rdx*4]
xor ebx, eax
xor edx, eax
shl ebx, 0x19
shl edx, 8
mov esi, eax
xor rbx, rcx
mov r14d, eax
imul ecx, r10d, 0x1b000000
xor rbx, rcx
imul ecx, r8d, 0x1b000000
xor rbx, rcx
imul ecx, r9d, 0x1b000000
xor rbx, rcx
imul ecx, ebp, 0x1b000000
xor rbx, rcx
imul ecx, r11d, 0x1b000000
xor rbx, rcx
imul ecx, edi, 0x11b00
xor rdx, rcx
imul ecx, r10d, 0x11b00
xor rdx, rcx
imul ecx, r8d, 0x11b00
xor rdx, rcx
imul ecx, r9d, 0x11b00
xor rdx, rcx
imul ecx, ebp, 0x11b00
xor rdx, rcx
imul ecx, edi, 0x11b0000
or rbx, rdx
lea edx, [rax*8]
xor edx, eax
lea eax, [rax*4]
shl edx, 0x10
xor eax, r14d
xor rdx, rcx
imul ecx, r10d, 0x11b0000
xor rdx, rcx
imul ecx, ebp, 0x11b0000
xor rdx, rcx
imul ecx, edi, 0x11b
or rbx, rdx
lea edx, [rax + rax]
xor rdx, rcx
imul ecx, r10d, 0x11b
xor rdx, rcx
imul ecx, ebp, 0x11b
xor rdx, rcx
imul ecx, r11d, 0x11b
xor rdx, rcx
xor rdx, rsi
or rdx, rbx
shl rdx, 0x20
or rdx, rbx
or rdx, rsi
mov qword [r12 + r15*8 + 0x7b7b0], rdx
inc r15
cmp r15, 0x100
jl 0x140049b8f
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov byte [0x14007bfb1], 1
pop r15
pop r14
pop r12
ret

Function at 0x140049cf8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r11d, r11d
lea rbx, [0x140000000]
movzx r9d, byte [r11 + rbx + 0x60dd0]
mov edx, r9d
shr edx, 7
imul r10d, edx, 0x1b000000
lea r8d, [r9 + r9]
imul ecx, edx, 0x11b
mov eax, r8d
shl eax, 0x18
xor r10, rax
mov eax, r9d
shl eax, 8
or eax, r9d
shl eax, 8
or r10, rax
mov eax, r8d
xor rcx, rax
xor rcx, r9
or rcx, r10
shl rcx, 0x20
or rcx, r10
mov qword [rbx + r11*8 + 0x7afa0], rcx
inc r11
cmp r11, 0x100
jl 0x140049d07
and qword [0x14007b7a8], 0
and qword [0x14007b7a0], 0
mov rbx, qword [rsp + 8]
mov byte [0x14007bfb0], 1
ret
Function at 0x14004b7bc
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140075180]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x14007c0b0]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x14007bfc0], ecx
jg 0x14004b89e
mov eax, ebx
cmp rbx, rax
jne 0x14004b860
xor ecx, ecx
test rbx, rbx
setne cl
xor eax, eax
test ebx, ebx
setne al
cmp ecx, eax
jne 0x14004b860
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rcx, qword [0x14007bfb8]
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x14004b8e1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140053580
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.140003bd0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14004b4ec
lea rdx, [0x140071c28]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [0x14007bfc0]
call fcn.140053c3c
cmp dword [0x14007bfc0], 0xffffffff
jne 0x14004b808
lea rcx, [0x14007bfb8]
call fcn.14004b400
lea rcx, [0x140057160]
call fcn.140053b7c
nop
lea rcx, [0x14007bfc0]
call fcn.140053bd0
jmp 0x14004b808
mov ecx, eax
call fcn.14004b924
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, [0x14005f958]
lea rcx, [rsp + 0x20]
call fcn.140003bd0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14004b4ec
lea rdx, [0x140071c28]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x14004cd28
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
cmp r8, 8
jb 0x14004cd9b
mov rbp, r8
shr rbp, 3
imul rax, rbp, 0xfffffffffffffff8
add rdi, rax
mov r8d, 8
lea rcx, [rsp + 0x58]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 8
lea rcx, [rsp + 0x50]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x50]
add rsi, 8
xor rax, qword [rsp + 0x58]
add rbx, 8
or r14, rax
sub rbp, 1
jne 0x14004cd5a
mov rcx, r14
shr rcx, 0x20
or ecx, r14d
mov edx, ecx
mov eax, ecx
shr edx, 8
or edx, ecx
shr eax, 0x10
and edx, 0xff00
or edx, eax
movzx eax, cl
shr edx, 8
or edx, eax
test rdi, rdi
je 0x14004cddd
sub rsi, rbx
movzx ecx, byte [rsi + rbx]
movzx eax, byte [rbx]
inc rbx
xor ecx, eax
or edx, ecx
sub rdi, 1
jne 0x14004cdc9
mov rbx, qword [rsp + 0x40]
test edx, edx
mov rbp, qword [rsp + 0x48]
sete al
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14004cdf8
Capabilities:
Encode data using xor

Disassembly:
test r9, r9
je 0x14004cebe
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, r9
mov r15d, 4
mov rdi, r8
mov rsi, rdx
mov r14, rcx
cmp rbx, r15
jb 0x14004ce89
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r15
lea rcx, [rsp + 0x20]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r15
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x68]
lea rdx, [rsp + 0x24]
xor eax, dword [rsp + 0x20]
mov r8, r15
mov rcx, r14
mov dword [rsp + 0x24], eax
call sub.VCRUNTIME140.dll_memcpy
add r14, r15
add rsi, r15
add rdi, r15
sub rbp, 1
jne 0x14004ce3e
test rbx, rbx
je 0x14004cea6
sub rsi, rdi
sub r14, rdi
mov al, byte [rsi + rdi]
xor al, byte [rdi]
mov byte [r14 + rdi], al
inc rdi
sub rbx, 1
jne 0x14004ce94
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x14004cec0
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14004cf6d
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbx, r8
mov r14d, 4
mov rsi, rdx
mov rdi, rcx
cmp rbx, r14
jb 0x14004cf45
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r14
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r14
lea rcx, [rsp + 0x60]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x60]
lea rdx, [rsp + 0x20]
xor eax, dword [rsp + 0x68]
mov r8, r14
mov rcx, rdi
mov dword [rsp + 0x20], eax
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
add rsi, r14
sub rbp, 1
jne 0x14004cefd
test rbx, rbx
je 0x14004cf5b
sub rsi, rdi
mov al, byte [rsi + rdi]
xor byte [rdi], al
inc rdi
sub rbx, 1
jne 0x14004cf4d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140052e84
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm1, xmmword [rcx]
mov r9d, 4
shl edx, 2
mov r8, rcx
movdqu xmm0, xmmword [rcx + rdx*4]
movdqu xmmword [rcx], xmm0
movdqu xmmword [rcx + rdx*4], xmm1
add edx, 0xfffffffc
cmp edx, r9d
jbe 0x140052ed3
aesimc xmm0, xmmword [r8 + rdx*4]
mov ecx, r9d
add r9d, 4
aesimc xmm1, xmmword [r8 + rcx*4]
movdqu xmmword [r8 + rcx*4], xmm0
movdqu xmmword [r8 + rdx*4], xmm1
add edx, 0xfffffffc
cmp r9d, edx
jb 0x140052eaa
mov eax, r9d
aesimc xmm0, xmmword [r8 + rax*4]
movdqu xmmword [r8 + rax*4], xmm0
ret

Function at 0x140054560
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov eax, 0x5a4d
mov r12, r8
mov r8d, edx
mov rbp, rcx
cmp word [rcx], ax
je 0x1400010ef
lea rcx, [0x140001e80]
call sub.ntoskrnl.exe_DbgPrint
or eax, 0xffffffff
jmp 0x140001262
movsxd rsi, dword [rcx + 0x3c]
add rsi, rbp
cmp dword [rsi], 0x4550
je 0x140001107
lea rcx, [0x140001eb0]
jmp 0x1400010e2
mov edx, 0x20b
mov eax, 0x88
cmp word [rsi + 0x18], dx
lea ecx, [rax - 0x10]
cmovne eax, ecx
mov rcx, rsi
mov r13d, dword [rax + rsi]
mov edx, r13d
mov eax, dword [rax + rsi + 4]
mov dword [rsp + 0x98], eax
call fcn.1400019ec
or edi, 0xffffffff
cmp eax, edi
jne 0x140001148
lea rcx, [0x140001ee0]
jmp 0x14000125b
mov ebx, eax
mov rcx, rsi
add rbx, rbp
mov eax, dword [rbx + 0x18]
mov edx, dword [rbx + 0x1c]
mov dword [rsp + 0x80], eax
call fcn.1400019ec
mov edx, dword [rbx + 0x24]
mov rcx, rsi
mov r15d, eax
call fcn.1400019ec
mov edx, dword [rbx + 0x20]
mov rcx, rsi
mov r14d, eax
call fcn.1400019ec
cmp r15d, edi
je 0x140001254
cmp r14d, edi
je 0x140001254
cmp eax, edi
je 0x140001254
lea rcx, [r15 + rbp]
mov eax, eax
add rax, rbp
mov qword [rsp + 0x28], rcx
lea rcx, [r14 + rbp]
mov qword [rsp + 0x30], rax
xor r14d, r14d
mov qword [rsp + 0x20], rcx
mov ebx, edi
cmp dword [rsp + 0x80], r14d
jbe 0x140001241
mov edx, dword [rax + r14*4]
mov rcx, rsi
call fcn.1400019ec
cmp eax, edi
je 0x14000121c
mov rdx, qword [rsp + 0x28]
mov ecx, eax
mov rax, qword [rsp + 0x20]
add rcx, rbp
movzx eax, word [rax + r14*2]
mov r9d, dword [rdx + rax*4]
cmp r9d, r13d
jb 0x1400011ff
mov eax, dword [rsp + 0x98]
add eax, r13d
cmp r9d, eax
jb 0x14000121c
mov r10, r12
sub r10, rcx
movzx eax, byte [rcx]
movzx edx, byte [rcx + r10]
sub eax, edx
jne 0x140001218
inc rcx
test edx, edx
jne 0x140001205
test eax, eax
je 0x140001230
inc r14d
cmp r14d, dword [rsp + 0x80]
jae 0x140001241
mov rax, qword [rsp + 0x30]
jmp 0x1400011c3
mov edx, r9d
mov rcx, rsi
call fcn.1400019ec
mov ebx, eax
cmp eax, edi
jne 0x140001250
mov rdx, r12
lea rcx, [0x140001f50]
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
jmp 0x140001262
lea rcx, [0x140001f10]
call sub.ntoskrnl.exe_DbgPrint
mov eax, edi
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000127c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edx, dword [0x140003088]
mov rdi, rcx
mov r8, rcx
mov rcx, qword [0x140003080]
call fcn.1400010b4
mov edx, eax
mov eax, 0xffffffff
cmp rdx, rax
jne 0x1400012b4
or eax, 0xffffffff
jmp 0x140001310
mov r10, qword [0x140003080]
or ebx, 0xffffffff
mov esi, dword [0x140003088]
add r10, rdx
xor ecx, ecx
mov r8, r10
movsxd r9, ecx
lea rax, [r9 + rdx]
cmp rax, rsi
jae 0x1400012ff
mov r11b, byte [r8]
lea eax, [r11 + 0x3e]
cmp al, 1
jbe 0x1400012ff
cmp r11b, 0xb8
je 0x1400012f5
inc ecx
inc r8
cmp ecx, 0x20
jl 0x1400012cc
jmp 0x1400012ff
mov ebx, dword [r9 + r10 + 1]
cmp ebx, 0xffffffff
jne 0x14000130e
mov rdx, rdi
lea rcx, [0x140001f90]
call sub.ntoskrnl.exe_DbgPrint
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140001320
Capabilities:
Access pe header
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x140003010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, qword [0x140003098]
xor r12d, r12d
mov r15, rcx
test rbx, rbx
jne 0x140001490
lea rcx, [rbp - 0x30]
call fcn.1400014cc
mov rdi, rax
test rax, rax
je 0x1400013ca
cmp dword [rbp - 0x30], r12d
je 0x1400013ca
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov rsi, rax
mov r14d, r12d
movzx ecx, word [rax + 0x14]
lea rbx, [rax + 0x18]
add rbx, rcx
cmp r12w, word [rax + 6]
jae 0x1400013ca
mov rcx, qword [rbx]
lea rdx, [0x140001e70]
mov qword [rbp - 0x18], rcx
mov r8d, 5
lea rcx, [rbp - 0x18]
mov byte [rbp - 0x10], r12b
call sub.ntoskrnl.exe_strncmp
test eax, eax
je 0x1400013f1
movzx eax, word [rsi + 6]
add rbx, 0x28
inc r14d
cmp r14d, eax
jb 0x140001395
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140001be0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov dword [rbp - 0x28], 0xefc1f88b
mov esi, r12d
mov dword [rbp - 0x24], 0x20e78307
mov dword [rbp - 0x20], 0xfff25
mov byte [rbp - 0x1c], r12b
cmp dword [rbx + 8], 0xd
je 0x1400013ca
mov ecx, dword [rbx + 0xc]
lea rdx, [rbp - 0x28]
mov r14d, esi
mov r8d, 0xd
add rcx, r14
add rcx, rdi
call qword [sym.imp.ntoskrnl.exe_RtlCompareMemory]
cmp rax, 0xd
je 0x140001443
mov eax, dword [rbx + 8]
inc esi
sub eax, 0xd
cmp esi, eax
jb 0x140001413
jmp 0x1400013ca
mov edx, dword [rbx + 0xc]
add rdx, 0xd
add rdx, r14
add rdx, rdi
cmp byte [rdx], 0x4c
jne 0x1400013ca
cmp byte [rdx + 1], 0x8d
jne 0x1400013ca
cmp byte [rdx + 2], 0x15
jne 0x1400013ca
movsxd rax, dword [rdx + 3]
test eax, eax
je 0x1400013ca
lea rbx, [rax + 7]
add rbx, rdx
mov qword [0x140003098], rbx
test rbx, rbx
je 0x1400013ca
mov rdi, qword [rbx]
test rdi, rdi
je 0x1400013ca
mov rcx, r15
call fcn.14000127c
cmp eax, 0xffffffff
je 0x1400013ca
mov ecx, eax
cmp rcx, qword [rbx + 0x10]
jae 0x1400013ca
mov rax, qword [rbx]
mov eax, dword [rax + rcx*4]
sar eax, 4
cdqe
add rax, rdi
jmp 0x1400013cc
Function at 0x1400014cc
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
xor esi, esi
lea r9, [rax + 0x10]
and dword [rax + 0x10], esi
lea rdx, [rax + 0x10]
mov rdi, rcx
xor r8d, r8d
lea ecx, [rsi + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
cmp dword [rsp + 0x38], esi
je 0x14000156a
call fcn.14000157c
mov r8d, eax
xor ecx, ecx
mov eax, dword [rsp + 0x38]
lea edx, [rax + rax]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x14000156a
mov eax, dword [rsp + 0x38]
xor edx, edx
mov rcx, rbx
lea r8d, [rax + rax]
call fcn.140001c40
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
add r8d, r8d
lea ecx, [rsi + 0xb]
mov rdx, rbx
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x14000155a
mov rsi, qword [rbx + 0x18]
test rdi, rdi
je 0x14000155a
mov ecx, dword [rbx + 0x20]
mov dword [rdi], ecx
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rsi
jmp 0x14000156c
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14000157c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov edx, 0x14
mov dword [rbp - 0x50], 0x20707249
xor ecx, ecx
mov dword [rbp - 0x4c], 0x2b707249
mov dword [rbp - 0x48], 0x656c6946
mov dword [rbp - 0x44], 0x6174754d
mov dword [rbp - 0x40], 0x7346744e
mov dword [rbp - 0x3c], 0x616d6553
mov dword [rbp - 0x38], 0x52777445
mov dword [rbp - 0x34], 0x6e657645
mov dword [rbp - 0x30], 0x20646156
mov dword [rbp - 0x2c], 0x73646156
mov dword [rbp - 0x28], 0x61436d4d
mov dword [rbp - 0x24], 0x20206f49
mov dword [rbp - 0x20], 0x74696157
mov dword [rbp - 0x1c], 0x65536d4d
mov dword [rbp - 0x18], 0x43504c41
mov dword [rbp - 0x14], 0x47777445
mov dword [rbp - 0x10], 0x206c644d
mov dword [rbp - 0xc], 0x65726854
mov dword [rbp - 8], 0x63536343
mov dword [rbp - 4], 0x4b677844
call fcn.140001990
mov eax, eax
mov eax, dword [rbp + rax*4 - 0x50]
add rsp, 0x70
pop rbp
ret
Function at 0x14000162c
Capabilities:
Allocate or change rwx memory
Attach user process memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x140003010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, r8
mov qword [rbp - 0x11], r8
mov rsi, rdx
mov dword [rsp + 0x28], 0x40
xor r14d, r14d
mov dword [rsp + 0x20], 0x3000
xor r8d, r8d
mov qword [rbp - 0x21], r14
lea rdx, [rbp - 0x21]
mov qword [rbp - 0x29], r14
lea r9, [rbp - 0x11]
mov rbx, rcx
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x140001797
mov r8, qword [sym.imp.ntoskrnl.exe_PsProcessType]
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], r14
xor r9d, r9d
mov edx, 0x1fffff
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov r8, qword [r8]
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
test eax, eax
js 0x140001797
mov rcx, qword [rbp - 0x29]
lea rdx, [rbp - 1]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov qword [rbp - 9], r14
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
mov r9, qword [rbp - 0x21]
mov rdx, rsi
mov r8, qword [rbp - 0x29]
mov rcx, rax
lea rax, [rbp - 9]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], r14b
mov qword [rsp + 0x20], rdi
call sub.ntoskrnl.exe_MmCopyVirtualMemory
lea rcx, [rbp - 1]
mov edi, eax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test edi, edi
jns 0x14000171b
mov eax, edi
jmp 0x140001797
mov rax, qword [0x140003090]
mov qword [rbp - 0x19], r14
test rax, rax
je 0x140001792
mov rcx, qword [rbp - 0x21]
mov r9, rbx
mov qword [rsp + 0x50], r14
xor r8d, r8d
mov qword [rsp + 0x48], r14
mov edx, 0x1fffff
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x19]
call qword [0x1400020d0]
mov edi, eax
test eax, eax
js 0x140001779
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x140001717
mov r9d, 0x8000
lea r8, [rbp - 0x11]
lea rdx, [rbp - 0x21]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ZwFreeVirtualMemory]
jmp 0x140001717
mov eax, 0xc0000001
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140001be0
add rsp, 0xc0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1400017b4
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x140003010]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rdx, [0x140001e30]
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rbp + 0xf], 0
lea rax, [rbp - 9]
xorps xmm0, xmm0
mov qword [rbp + 0x17], rax
movdqu xmmword [rbp + 0x27], xmm0
mov dword [rbp + 7], 0x30
mov dword [rbp + 0x1f], 0x240
call qword [sym.imp.ntoskrnl.exe_KeGetCurrentIrql]
test al, al
je 0x14000181c
mov eax, 0xc0000001
jmp 0x14000191f
and dword [rsp + 0x50], 0
lea r9, [rbp - 0x19]
and qword [rsp + 0x48], 0
lea r8, [rbp + 7]
mov dword [rsp + 0x40], 0x20
lea rcx, [rbp - 0x29]
mov dword [rsp + 0x38], 1
mov edx, 0x80000000
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
js 0x14000191d
mov rcx, qword [rbp - 0x29]
lea r8, [rbp + 0x37]
and dword [rbp + 0x37], 0
lea rdx, [rbp - 0x19]
xor eax, eax
mov dword [rsp + 0x20], 5
xorps xmm0, xmm0
mov dword [rbp + 0x4b], eax
movups xmmword [rbp + 0x3b], xmm0
lea r9d, [rax + 0x18]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov ebx, eax
test eax, eax
js 0x140001913
mov eax, dword [rbp + 0x3f]
mov cl, 1
mov edx, eax
mov dword [0x140003088], eax
call fcn.14000193c
and qword [rsp + 0x40], 0
lea rcx, [rbp - 0x21]
and dword [rbp - 0x1d], 0
xor r9d, r9d
and dword [rbp - 0x21], 0
xor r8d, r8d
mov qword [rsp + 0x38], rcx
xor edx, edx
mov ecx, dword [0x140003088]
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbp - 0x29]
mov qword [rsp + 0x28], rax
mov qword [0x140003080], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
jns 0x14000191d
mov rcx, qword [0x140003080]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000191d
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140001be0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rbp
ret

Function at 0x1400019ec
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
movzx r9d, word [rcx + 0x14]
xor r10d, r10d
movzx ebx, word [rcx + 6]
add r9, 0x18
add r9, rcx
test ebx, ebx
je 0x140001a28
mov r11d, dword [r9 + 0xc]
cmp r11d, edx
ja 0x140001a1c
mov ecx, dword [r9 + 8]
add ecx, r11d
cmp ecx, edx
ja 0x140001a31
add r9, 0x28
inc r10d
cmp r10d, ebx
jl 0x140001a08
or eax, 0xffffffff
mov rbx, qword [rsp + 8]
ret
mov eax, dword [r9 + 0x14]
sub eax, r11d
add edx, eax
or eax, 0xffffffff
cmp edx, r8d
cmovb eax, edx
jmp 0x140001a2b