joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11878
Capabilities:
Create device object
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
lea rax, [0x00011658]
mov rdi, rcx
lea rdx, [0x00011e20]
mov qword [rcx + 0x70], rax
lea rax, [0x00011658]
mov qword [rcx + 0x80], rax
lea rax, [0x00011680]
mov qword [rcx + 0xe0], rax
lea rax, [0x000115cc]
mov qword [rcx + 0x68], rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r11, [rsp + 0x70]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], r11
mov r9d, 0x22
xor edx, edx
mov rcx, rdi
mov byte [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x119c4
mov dl, 0x10
mov cl, 1
call qword [sym.imp.ntoskrnl.exe_IoIsWdmVersionAvailable]
lea rcx, [rsp + 0x50]
lea rdx, [0x00011e40]
test al, al
jne 0x1191c
lea rdx, [0x00011ca0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
test eax, eax
jns 0x11947
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, ebx
jmp 0x119c4
call fcn.00011008
test al, al
jne 0x11959
lea rcx, [0x00011e80]
jmp 0x119bd
mov rax, qword [rdi + 0x28]
mov cl, 1
or dword [rax + 0x68], 0x20
call fcn.00011440
and qword [rsp + 0x30], 0
lea rax, [0x000112ec]
lea rcx, [rsp + 0x80]
xor r9d, r9d
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
test eax, eax
jns 0x119a8
lea rcx, [0x00011c60]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x119b6
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rcx, [0x00011ea0]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x15064
Capabilities:
Create device object
Create thread
Print debug messages

Disassembly:
sub rsp, 0x28
mov r8, rdx
mov r9, rcx
call fcn.00015008
mov rdx, r8
mov rcx, r9
add rsp, 0x28
jmp fcn.00011878
Function at 0x140001520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x140001552
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x140001552
cmp word [rax + rcx + 0x14], 0x78
jae 0x140001559
xor eax, eax
jmp 0x14000165e
mov rsi, r8
mov rdi, rdx
mov edx, dword [rax + rcx + 0x88]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [case.0x14002bdde.0]
test rax, rax
je 0x140001552
cmp rdi, 0xffff
mov qword [rsp + 0x20], rsi
jbe 0x140001654
mov r12, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [case.0x14002bdde.0]
mov r15, rax
mov eax, dword [r12 + 0x18]
test rax, rax
je 0x140001552
lea r14, [r15 + rax*4]
lea r13, [rdi + 1]
mov rbp, r15
mov rsi, r14
sub rsi, rbp
mov rax, rsi
sar rax, 2
shr rsi, 0x3f
add rsi, rax
and rsi, 0xfffffffffffffffe
mov edx, dword [rbp + rsi*2]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [case.0x14002bdde.0]
mov cl, byte [rdi]
test cl, cl
je 0x140001600
mov rdx, r13
cmp cl, byte [rax]
jne 0x140001602
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x1400015f0
xor ecx, ecx
lea rsi, [rsi*2]
add rsi, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x14000162f
movzx ecx, cl
lea rdx, [rsi + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs r14, rsi
cmp rbp, r14
jne 0x1400015bb
jmp 0x140001552
mov edx, dword [r12 + 0x24]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [case.0x14002bdde.0]
sub rsi, r15
sar rsi, 1
movzx edi, word [rax + rsi]
add di, word [r12 + 0x10]
mov rax, qword [rsp + 0x20]
mov word [rax], di
mov al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002930
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
call fcn.140008cc0
test al, al
je 0x140002965
mov rcx, qword [rsi]
mov edx, 0x32
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsi]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsi + 0x38]
mov qword [rsi + 0x38], 0
test rdi, rdi
je 0x140002986
mov rcx, rdi
call fcn.140002b90
mov rcx, rdi
call fcn.14004ed60
mov rcx, qword [rsi + 0x58]
test rcx, rcx
jne 0x1400029ef
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x14000299e
call qword [sym.imp.mozglue.dll_free]
mov rdi, qword [rsi + 0x38]
test rdi, rdi
jne 0x140002b48
mov rax, qword [rsi + 0x28]
inc rax
cmp rax, 2
jae 0x140002a1f
mov rax, qword [rsi + 0x20]
inc rax
cmp rax, 2
jae 0x140002a82
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x140002ae5
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.1400073a0
mov rdx, qword [rsi + 0x68]
sub rdx, rcx
cmp rdx, 0x1000
jae 0x140002b5d
lea rdi, [rsi + 0x58]
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64__unsigned_long_long_unsigned___int64__
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
jmp 0x14000298f
lea rdi, [rsi + 0x28]
call fcn.140009ce0
mov r12, rax
mov r14, qword [rsp + 0x58]
mov r15, qword [rdi]
call fcn.140009cf0
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x10]
mov qword [rsp + 0x20], r12
mov rcx, rax
mov rdx, r15
mov r8, rdi
mov r9, r14
mov rax, rbx
call qword [case.0x14002bdde.0]
mov r14, qword [rdi]
call fcn.140009cf0
mov rcx, qword [rax]
mov rbx, qword [rcx]
mov rcx, rax
mov rdx, r14
mov rax, rbx
call qword [case.0x14002bdde.0]
mov qword [rdi], 0
jmp 0x1400029b8
lea rdi, [rsi + 0x20]
call fcn.140009ce0
mov r12, rax
mov r14, qword [rsp + 0x58]
mov r15, qword [rdi]
call fcn.140009cf0
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x10]
mov qword [rsp + 0x20], r12
mov rcx, rax
mov rdx, r15
mov r8, rdi
mov r9, r14
mov rax, rbx
call qword [case.0x14002bdde.0]
mov r14, qword [rdi]
call fcn.140009cf0
mov rcx, qword [rax]
mov rbx, qword [rcx]
mov rcx, rax
mov rdx, r14
mov rax, rbx
call qword [case.0x14002bdde.0]
mov qword [rdi], 0
jmp 0x1400029c9
lea rdi, [rsi + 0x18]
call fcn.140009ce0
mov r12, rax
mov r14, qword [rsp + 0x58]
mov r15, qword [rdi]
call fcn.140009cf0
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x10]
mov qword [rsp + 0x20], r12
mov rcx, rax
mov rdx, r15
mov r8, rdi
mov r9, r14
mov rax, rbx
call qword [case.0x14002bdde.0]
mov r14, qword [rdi]
call fcn.140009cf0
mov rcx, qword [rax]
mov rbx, qword [rcx]
mov rcx, rax
mov rdx, r14
mov rax, rbx
call qword [case.0x14002bdde.0]
mov qword [rdi], 0
jmp 0x1400029da
mov rcx, rdi
call fcn.140002b90
mov rcx, rdi
call fcn.14004ed60
jmp 0x1400029ab
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x140002b7a
add rdx, 0x27
mov rcx, rax
jmp 0x140002a03
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140002fe0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x150
mov r14, rdx
mov r15, rcx
mov rax, qword [0x14005e018]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov ecx, dword [0x14005e070]
cmp ecx, 0xffffffff
je 0x14000301b
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140003020
call fcn.140003250
mov eax, dword [0x140060638]
mov ecx, dword [0x14005e488]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14000307a
lea rcx, [0x140060638]
call fcn.14002b51c
cmp dword [0x140060638], 0xffffffff
jne 0x14000307a
mov ecx, 8
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rax], 0
mov qword [0x140060630], rax
lea rcx, [0x140060638]
call fcn.14002b4bc
mov rbx, qword [0x140060630]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x14005ee20]
inc rax
xor ecx, ecx
lea rdx, [0x14005ee30]
lea edi, [rax + rcx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rdx + rsi*8], 0
jne 0x140003120
lea rax, [rdx + rsi*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x14005ee20], rdi
mov dword [r15], edi
mov eax, dword [rax + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x2c], eax
cmp eax, 0xffffffff
je 0x140003132
mov eax, dword [r15]
mov dword [rsp + 0x30], 0x100
mov dword [rsp + 0x2c], eax
cmp eax, 0xff
jg 0x140003177
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.14002c730
nop
add rsp, 0x150
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
inc rcx
cmp rcx, 0x100
jne 0x14000309d
jmp 0x1400030cd
lea r8, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x2c]
lea rdx, [rsp + 0x30]
call fcn.1400368d0
test rax, rax
je 0x1400030ea
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x196
mov r9, rax
call fcn.140036670
mov rcx, rdi
call fcn.1400366e0
jmp 0x1400030ea
lea r8, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x2c]
lea rdx, [rsp + 0x30]
call fcn.1400368d0
test rax, rax
je 0x140003100
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x197
mov r9, rax
call fcn.140036670
mov rcx, rsi
call fcn.1400366e0
jmp 0x140003100
Function at 0x1400082e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rax, qword [0x14005e018]
xor rax, rsp
mov qword [rsp + 0x138], rax
test rdx, rdx
je 0x140008333
mov rsi, rdx
mov rdi, rcx
mov r15d, 0xffffffff
cmp rsi, r15
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140008353
add rdi, rbx
sub rsi, rbx
jne 0x140008311
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.14002c730
nop
add rsp, 0x140
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rdx, str._builds_worker_checkouts_gecko_security_sandbox_chromium_base_rand_util_win.cc
lea r9, str.success
lea r14, [rsp + 0x20]
mov rcx, r14
mov r8d, 0x20
call fcn.140036620
mov rcx, r14
call fcn.1400366e0
jmp 0x14000832b
Function at 0x140009be0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x140009ccd
mov r15, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140009c6e
lea rax, [r15 + 1]
cmp rax, 2
jb case.default.0x140009c67
mov qword [rsi], r15
call fcn.140009ce0
mov rbx, rax
mov rbp, qword [rsp + 0x68]
call fcn.140009cf0
mov rcx, qword [rax]
mov rdi, qword [rcx + 8]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, r15
mov r8, rsi
mov r9, rbp
mov rax, rdi
call qword [case.0x14002bdde.0]
mov ecx, r13d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140009ce0
mov r14, rax
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsi]
call fcn.140009cf0
mov rcx, qword [rax]
mov r10, qword [rcx + 0x10]
mov qword [rsp + 0x20], r14
mov rcx, rax
mov rdx, r12
mov r8, rsi
mov r9, rdi
mov rax, r10
call qword [case.0x14002bdde.0]
mov r14, qword [rsi]
call fcn.140009cf0
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov rdx, r14
mov rax, r8
call qword [case.0x14002bdde.0]
mov qword [rsi], 0
jmp 0x140009c14
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
fisttp dword [rdi + rsi*4]
invalid
outsb dx, byte [rsi]
mov cl, 0xc
fimul dword [rsi - 0x49]
and al, 0x7f
jg 0x1400b417f
invalid
stosd dword [rdi], eax
or al, 0xf4
outsd dx, dword [rsi]
sub dword [rsp + rbp*2 - 0x43], edx
xchg r14d, eax
cld
mov edi, 0xd74279bd
mov eax, 0xb857fcd0
mov eax, 0x14e4b74e
scasb al, byte [rdi]
Function at 0x14000d270
Capabilities:
Compare security identifiers

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm6
mov rax, qword [0x14005e018]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp byte [rcx + 0x6c], 0
je 0x14000d3dc
mov rdi, rdx
mov rbx, rcx
lea rsi, [rsp + 0x30]
mov qword [rsi], 0
mov rcx, qword [rcx + 0x60]
mov edx, 2
mov r8, rsi
call fcn.14000d660
mov rsi, qword [rsi]
test eax, eax
jne 0x14000d3e6
mov dword [rsp + 0x24], 0
test rsi, rsi
je 0x14000d3f7
cmp dword [rsi], 0
je 0x14000d3ef
lea rax, [rbx + 0x30]
mov qword [rsp + 0x28], rax
xor ebp, ebp
xorps xmm6, xmm6
lea r12, [rsp + 0x30]
mov r14, qword [sym.imp.ADVAPI32.dll_EqualSid]
mov rax, rbp
shl rax, 4
test dword [rsi + rax + 0x10], 0xc0000020
jne 0x14000d3b7
lea r15, [rsi + rax]
add r15, 8
test rdi, rdi
je 0x14000d370
mov rax, qword [rdi]
cmp qword [rdi + 8], rax
je 0x14000d370
xor r13d, r13d
mov rdx, qword [r15]
mov rcx, r13
shl rcx, 6
lea rcx, [rcx + r13*4]
add rcx, rax
call r14
test eax, eax
jne 0x14000d3b7
inc r13d
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
sub rcx, rax
sar rcx, 2
movabs rdx, 0xf0f0f0f0f0f0f0f1
imul rcx, rdx
cmp rcx, r13
ja 0x14000d334
mov r8, qword [r15]
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x70], 0
mov ecx, 0x44
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_CopySid]
mov rcx, qword [rbx + 0x38]
mov rdx, qword [rbx + 0x40]
cmp rdx, rcx
jne 0x14000d3c7
mov rcx, qword [rsp + 0x28]
mov r8, r12
call fcn.14000d430
inc rbp
mov eax, dword [rsi]
cmp rbp, rax
jb 0x14000d306
jmp 0x14000d3ef
mov r8d, 0x44
mov rdx, r12
call sub.ntdll.dll_memcpy
add qword [rbx + 0x38], 0x44
jmp 0x14000d3b7
mov dword [rsp + 0x24], 0x3f0
jmp 0x14000d3f7
mov dword [rsp + 0x24], eax
test rsi, rsi
je 0x14000d3f7
mov rcx, rsi
call sub.mozglue.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14002c730
mov eax, dword [rsp + 0x24]
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000f430
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov r9d, dword [rsp + 0xa0]
mov rax, qword [0x14005e018]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r15, [rsp + 0x34]
mov qword [rsp + 0x20], r15
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14000f4e4
lea r12, [rsp + 0x28]
mov qword [rsp + 0x20], r12
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebp, eax
mov r14, qword [r12]
mov r9d, dword [rsp + 0x34]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14000f4e4
test ebp, ebp
setne al
cmp r14, rsi
sete sil
and sil, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14002c730
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x14000f4c6
Function at 0x140013c80
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov edi, edx
mov r15, rcx
mov rax, qword [0x14005e018]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r14, qword [rcx + 0x10]
mov ecx, edx
cmp r14, rcx
ja 0x140013e3e
lea rsi, [r15 + 8]
cmp rcx, 0x21
mov eax, 0x20
cmovae rax, rcx
mov rbx, rax
sub rbx, r14
jbe 0x140013d15
mov rcx, qword [r15 + 0x18]
sub rcx, r14
mov rax, r14
cmp rcx, rbx
jb 0x140013e64
test rbx, rbx
jle 0x140013d12
mov rdx, qword [r15 + 8]
lea rcx, [rdx + rax]
lea rbp, [rbx + rcx]
lea r8, [rdx + rax]
inc r8
cmp rbp, r8
cmova r8, rbp
sub r8, rcx
xor edx, edx
call sub.ntdll.dll_memset
mov rax, qword [r15 + 0x10]
add rax, rbx
mov qword [rsp + 0x40], rsi
mov qword [r15 + 0x10], rax
mov r8, qword [r15]
cmp qword [r8], 0
mov qword [rsp + 0x48], r14
je 0x140013eca
mov rsi, qword [r15 + 0x40]
add rsi, r14
mov r12, qword [r15 + 8]
add r12, r14
mov eax, dword [0x14005ed3c]
mov ecx, dword [0x14005e488]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140013e80
add rbx, rsi
cmp rbx, rsi
jbe 0x140013eca
mov eax, dword [0x14005ed38]
mov qword [rsp + 0x30], rax
dec eax
mov qword [rsp + 0x38], rax
lea rbp, [rsp + 0x50]
mov r13, qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov qword [rsp + 0x50], 0
mov r9, rbx
sub r9, rsi
mov rcx, qword [r8]
mov qword [rsp + 0x20], rbp
mov rdx, rsi
mov r14, r8
mov r8, r12
call r13
test eax, eax
je 0x140013ed1
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
lea rcx, [rdi + rbx]
inc rcx
mov rax, qword [r15 + 0x10]
mov rsi, rcx
sub rsi, rax
jbe 0x140013e2f
mov rcx, qword [r15 + 0x18]
sub rcx, rax
cmp rcx, rsi
jae 0x140013dfa
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
call fcn.140013f20
test al, al
je 0x140013f03
mov rax, qword [r15 + 0x10]
test rsi, rsi
jle 0x140013e29
mov rdx, qword [r15 + 8]
lea rcx, [rdx + rax]
lea r8, [rsi + rax]
add r8, rdx
add rax, rdx
inc rax
cmp r8, rax
cmovbe r8, rax
sub r8, rcx
xor edx, edx
call sub.ntdll.dll_memset
mov rax, qword [r15 + 0x10]
add rax, rsi
mov rcx, rax
add rdi, rbx
mov qword [r15 + 0x10], rcx
mov rax, qword [r15 + 8]
mov byte [rax + rdi], 0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002c730
mov eax, edi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rsi
mov rdx, rbx
call fcn.140013f20
test al, al
je 0x140013f0e
mov rax, qword [r15 + 0x10]
jmp 0x140013ce5
lea rcx, [0x14005ed3c]
mov rbp, r8
call fcn.14002b51c
mov r8, rbp
cmp dword [0x14005ed3c], 0xffffffff
jne 0x140013d63
lea rdi, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x14005ed38], eax
lea rcx, [0x14005ed3c]
call fcn.14002b4bc
mov r8, rbp
jmp 0x140013d63
xor edi, edi
jmp 0x140013dbd
mov rdx, qword [rsp + 0x38]
mov rax, rdx
not rax
and rax, rbx
mov rcx, rbx
sub rcx, qword [rsp + 0x30]
test ebx, edx
cmovne rcx, rax
xor edi, edi
mov rbx, rcx
cmp rcx, rsi
mov r8, r14
ja 0x140013d8d
jmp 0x140013dbd
int3
int3
Function at 0x140017330
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x14005e018]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x14005ed3c]
mov ecx, dword [0x14005e488]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400173e6
mov rbx, qword [rsi + 0x10]
test rbx, rbx
je 0x1400173c0
mov r15, qword [rsi + 8]
mov r14d, dword [0x14005ed38]
shl rbx, 4
xor edi, edi
lea r12, [rsp + 0x28]
mov r13, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rax, qword [rsi]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400173b7
mov rdx, qword [r15 + rdi + 8]
mov r9d, dword [r15 + rdi]
mov qword [rsp + 0x20], r12
mov r8, r14
call r13
add rdi, 0x10
cmp rbx, rdi
jne 0x140017398
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002c730
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14005ed3c]
call fcn.14002b51c
cmp dword [0x14005ed3c], 0xffffffff
jne 0x140017372
lea rdi, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x14005ed38], eax
lea rcx, [0x14005ed3c]
call fcn.14002b4bc
jmp 0x140017372
Function at 0x140017430
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15, r9
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x14005e018]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [rcx], rdx
mov qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 2
lea rax, [rcx + 0x20]
mov qword [rcx + 8], rax
mov eax, dword [0x14005ed3c]
mov ecx, dword [0x14005e488]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140017566
mov r12d, dword [0x14005ed38]
lea rax, [rdi + r15]
dec rax
xor edx, edx
div r12
mov rcx, rax
mov rax, rdi
xor edx, edx
div r12
inc rcx
sub rcx, rax
je 0x140017545
mov rdi, rax
lea rax, [rsi + 8]
mov qword [rsp + 0x28], rax
imul rdi, r12
cmp rcx, 2
mov ebx, 1
cmovae rbx, rcx
lea r13, [rsp + 0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [r14]
test rcx, rcx
je 0x1400175af
mov qword [rsp + 0x20], r13
mov rdx, rdi
mov r8, r12
mov r9d, 0x40
call rbp
test eax, eax
je 0x1400175a7
mov r15d, dword [rsp + 0x30]
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 0x18]
je 0x1400175b9
mov rcx, qword [rsi + 8]
shl rax, 4
mov dword [rcx + rax], r15d
mov qword [rcx + rax + 8], rdi
inc qword [rsi + 0x10]
add rdi, r12
dec rbx
jne 0x1400174ee
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14002c730
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14005ed3c]
call fcn.14002b51c
cmp dword [0x14005ed3c], 0xffffffff
jne 0x14001749b
lea rbx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x14005ed38], eax
lea rcx, [0x14005ed3c]
call fcn.14002b4bc
jmp 0x14001749b
mov dword [rsp + 0x30], 0
mov rcx, rsi
call fcn.140017330
jmp 0x140017545
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.140032b90
test al, al
je 0x1400175af
mov rax, qword [rsi + 0x10]
jmp 0x140017528
Function at 0x14001acf0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov r12, rdx
mov rax, qword [0x14005e018]
xor rax, rsp
mov qword [rsp + 0x58], rax
test r9, r9
je 0x14001ae5f
mov esi, dword [rsp + 0xc0]
test esi, esi
je 0x14001ae5f
mov rbx, r9
mov r15d, r8d
mov eax, dword [0x14005ed44]
mov ecx, dword [0x14005e488]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001ae72
mov edi, esi
xor esi, esi
mov rax, rbx
sub rax, rdi
cmovae rsi, rax
cmp rsi, 0x100001
mov eax, 0x100000
cmovb rsi, rax
cmp rbx, rdi
mov ebp, dword [0x14005ed40]
cmovb rsi, rax
mov eax, dword [0x14005ed50]
mov ecx, dword [0x14005e488]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14001add9
lea rcx, [0x14005ed50]
call fcn.14002b51c
cmp dword [0x14005ed50], 0xffffffff
jne 0x14001add9
lea r14, [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [r14 + 0x10]
mov qword [0x14005ed48], rax
lea rcx, [0x14005ed50]
call fcn.14002b4bc
mov rax, qword [0x14005ed48]
lea rcx, [rbx + rdi]
cmp rax, rcx
cmovb rcx, rax
add rbx, rdi
cmovb rcx, rax
mov edx, r15d
cmp rcx, rdx
jb 0x14001ae5f
mov rdi, rsi
neg rdi
lea rax, [rbp - 1]
and rax, rdi
add rax, rsi
xor ebx, ebx
sub rcx, rdx
cmovae rbx, rcx
neg rbp
and rbp, rbx
sub rbp, rax
jbe 0x14001ae5f
test rax, rax
je 0x14001aeb4
cmp rbp, 0xffffffffffffffff
je 0x14001aeb4
mov qword [r12], rbp
mov qword [r12 + 8], rax
mov byte [r12 + 0x10], 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002c730
mov rax, r12
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xorps xmm0, xmm0
movups xmmword [r12], xmm0
mov qword [r12 + 0x10], 0
jmp 0x14001ae40
lea rcx, [0x14005ed44]
call fcn.14002b51c
cmp dword [0x14005ed44], 0xffffffff
jne 0x14001ad53
lea r14, [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r14 + 0x28]
mov dword [0x14005ed40], eax
lea rcx, [0x14005ed44]
call fcn.14002b4bc
jmp 0x14001ad53
int3