joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1807d90b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1807d9237
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 0x1807d90e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807d90c7
add dl, dl
jne 0x1807d90ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807d914e
xor eax, eax
add dl, dl
jne 0x1807d90fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807d9205
add dl, dl
jne 0x1807d910e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807d911b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807d9128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807d9135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1807d9142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1807d90d6
mov eax, 1
add dl, dl
jne 0x1807d915e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807d916b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807d9153
sub eax, ebx
mov ebx, 1
jne 0x1807d91a4
mov ecx, 1
add dl, dl
jne 0x1807d9186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1807d9193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807d917b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1807d90d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1807d91c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1807d91cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807d91b5
cmp eax, 0x7d00
jae 0x1807d91f3
cmp eax, 0x500
jb 0x1807d91ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1807d90d6
cmp eax, 0x7f
ja 0x1807d91f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1807d90d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1807d922a
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 0x1807d90d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
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.0x14002f18e.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.0x14002f18e.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.0x14002f18e.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.0x14002f18e.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 0x140002840
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
call fcn.140008ce0
test al, al
je 0x140002875
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 0x140002896
mov rcx, rdi
call fcn.140002aa0
mov rcx, rdi
call fcn.140052570
mov rcx, qword [rsi + 0x58]
test rcx, rcx
jne 0x1400028ff
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x1400028ae
call qword [sym.imp.mozglue.dll_free]
mov rdi, qword [rsi + 0x38]
test rdi, rdi
jne 0x140002a58
mov rax, qword [rsi + 0x28]
inc rax
cmp rax, 2
jae 0x14000292f
mov rax, qword [rsi + 0x20]
inc rax
cmp rax, 2
jae 0x140002992
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x1400029f5
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.1400073d0
mov rdx, qword [rsi + 0x68]
sub rdx, rcx
cmp rdx, 0x1000
jae 0x140002a6d
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 0x14000289f
lea rdi, [rsi + 0x28]
call fcn.140009d00
mov r12, rax
mov r14, qword [rsp + 0x58]
mov r15, qword [rdi]
call fcn.140009d10
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.0x14002f18e.0]
mov r14, qword [rdi]
call fcn.140009d10
mov rcx, qword [rax]
mov rbx, qword [rcx]
mov rcx, rax
mov rdx, r14
mov rax, rbx
call qword [case.0x14002f18e.0]
mov qword [rdi], 0
jmp 0x1400028c8
lea rdi, [rsi + 0x20]
call fcn.140009d00
mov r12, rax
mov r14, qword [rsp + 0x58]
mov r15, qword [rdi]
call fcn.140009d10
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.0x14002f18e.0]
mov r14, qword [rdi]
call fcn.140009d10
mov rcx, qword [rax]
mov rbx, qword [rcx]
mov rcx, rax
mov rdx, r14
mov rax, rbx
call qword [case.0x14002f18e.0]
mov qword [rdi], 0
jmp 0x1400028d9
lea rdi, [rsi + 0x18]
call fcn.140009d00
mov r12, rax
mov r14, qword [rsp + 0x58]
mov r15, qword [rdi]
call fcn.140009d10
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.0x14002f18e.0]
mov r14, qword [rdi]
call fcn.140009d10
mov rcx, qword [rax]
mov rbx, qword [rcx]
mov rcx, rax
mov rdx, r14
mov rax, rbx
call qword [case.0x14002f18e.0]
mov qword [rdi], 0
jmp 0x1400028ea
mov rcx, rdi
call fcn.140002aa0
mov rcx, rdi
call fcn.140052570
jmp 0x1400028bb
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x140002a8a
add rdx, 0x27
mov rcx, rax
jmp 0x140002913
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140002ef0
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 [0x140062018]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov ecx, dword [0x140062078]
cmp ecx, 0xffffffff
je 0x140002f2b
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140002f30
call fcn.140003160
mov eax, dword [0x140064658]
mov ecx, dword [0x1400624b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140002f8a
lea rcx, [0x140064658]
call fcn.14002e8cc
cmp dword [0x140064658], 0xffffffff
jne 0x140002f8a
mov ecx, 8
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rax], 0
mov qword [0x140064650], rax
lea rcx, [0x140064658]
call fcn.14002e86c
mov rbx, qword [0x140064650]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x140062e48]
inc rax
xor ecx, ecx
lea rdx, [0x140062e50]
lea edi, [rax + rcx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rdx + rsi*8], 0
jne 0x140003030
lea rax, [rdx + rsi*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x140062e48], 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 0x140003042
mov eax, dword [r15]
mov dword [rsp + 0x30], 0x100
mov dword [rsp + 0x2c], eax
cmp eax, 0xff
jg 0x140003087
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.14002fae0
nop
add rsp, 0x150
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
inc rcx
cmp rcx, 0x100
jne 0x140002fad
jmp 0x140002fdd
lea r8, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x2c]
lea rdx, [rsp + 0x30]
call fcn.14003a090
test rax, rax
je 0x140002ffa
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.140039e30
mov rcx, rdi
call fcn.140039ea0
jmp 0x140002ffa
lea r8, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x2c]
lea rdx, [rsp + 0x30]
call fcn.14003a090
test rax, rax
je 0x140003010
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.140039e30
mov rcx, rsi
call fcn.140039ea0
jmp 0x140003010
Function at 0x140008300
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rax, qword [0x140062018]
xor rax, rsp
mov qword [rsp + 0x138], rax
test rdx, rdx
je 0x140008353
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 0x140008373
add rdi, rbx
sub rsi, rbx
jne 0x140008331
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.14002fae0
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.140039de0
mov rcx, r14
call fcn.140039ea0
jmp 0x14000834b
Function at 0x140009c00
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 0x140009ced
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 0x140009c8e
lea rax, [r15 + 1]
cmp rax, 2
jb case.default.0x140009c87
mov qword [rsi], r15
call fcn.140009d00
mov rbx, rax
mov rbp, qword [rsp + 0x68]
call fcn.140009d10
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.0x14002f18e.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.140009d00
mov r14, rax
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsi]
call fcn.140009d10
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.0x14002f18e.0]
mov r14, qword [rsi]
call fcn.140009d10
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov rdx, r14
mov rax, r8
call qword [case.0x14002f18e.0]
mov qword [rsi], 0
jmp 0x140009c34
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor al, 0x85
imul ebx, esp, 0xffffff9e
invalid
in eax, dx
adc eax, esi
jnp 0x1400bc7c3
insd dword [rdi], dx
cld
fst qword [rbp - 0x27]
mov dl, 0xba
xchg esp, eax
ror dh, 1
retf
test eax, 0xe20da27e
sub ecx, edx
stosb byte [rdi], al
jb 0x1400bc7f2
invalid
Function at 0x14000d290
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 [0x140062018]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp byte [rcx + 0x6c], 0
je 0x14000d3fc
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.14000d680
mov rsi, qword [rsi]
test eax, eax
jne 0x14000d406
mov dword [rsp + 0x24], 0
test rsi, rsi
je 0x14000d417
cmp dword [rsi], 0
je 0x14000d40f
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 0x14000d3d7
lea r15, [rsi + rax]
add r15, 8
test rdi, rdi
je 0x14000d390
mov rax, qword [rdi]
cmp qword [rdi + 8], rax
je 0x14000d390
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 0x14000d3d7
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 0x14000d354
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 0x14000d3e7
mov rcx, qword [rsp + 0x28]
mov r8, r12
call fcn.14000d450
inc rbp
mov eax, dword [rsi]
cmp rbp, rax
jb 0x14000d326
jmp 0x14000d40f
mov r8d, 0x44
mov rdx, r12
call sub.ntdll.dll_memcpy
add qword [rbx + 0x38], 0x44
jmp 0x14000d3d7
mov dword [rsp + 0x24], 0x3f0
jmp 0x14000d417
mov dword [rsp + 0x24], eax
test rsi, rsi
je 0x14000d417
mov rcx, rsi
call sub.mozglue.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14002fae0
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 0x14000f450
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 [0x140062018]
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 0x14000f504
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 0x14000f504
test ebp, ebp
setne al
cmp r14, rsi
sete sil
and sil, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14002fae0
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 0x14000f4e6
Function at 0x140013ae0
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 [0x140062018]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r14, qword [rcx + 0x10]
mov ecx, edx
cmp r14, rcx
ja 0x140013c9e
lea rsi, [r15 + 8]
cmp rcx, 0x21
mov eax, 0x20
cmovae rax, rcx
mov rbx, rax
sub rbx, r14
jbe 0x140013b75
mov rcx, qword [r15 + 0x18]
sub rcx, r14
mov rax, r14
cmp rcx, rbx
jb 0x140013cc4
test rbx, rbx
jle 0x140013b72
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 0x140013d2a
mov rsi, qword [r15 + 0x40]
add rsi, r14
mov r12, qword [r15 + 8]
add r12, r14
mov eax, dword [0x140062d64]
mov ecx, dword [0x1400624b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140013ce0
add rbx, rsi
cmp rbx, rsi
jbe 0x140013d2a
mov eax, dword [0x140062d60]
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 0x140013d31
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 0x140013c8f
mov rcx, qword [r15 + 0x18]
sub rcx, rax
cmp rcx, rsi
jae 0x140013c5a
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
call fcn.140013d80
test al, al
je 0x140013d63
mov rax, qword [r15 + 0x10]
test rsi, rsi
jle 0x140013c89
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.14002fae0
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.140013d80
test al, al
je 0x140013d6e
mov rax, qword [r15 + 0x10]
jmp 0x140013b45
lea rcx, [0x140062d64]
mov rbp, r8
call fcn.14002e8cc
mov r8, rbp
cmp dword [0x140062d64], 0xffffffff
jne 0x140013bc3
lea rdi, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x140062d60], eax
lea rcx, [0x140062d64]
call fcn.14002e86c
mov r8, rbp
jmp 0x140013bc3
xor edi, edi
jmp 0x140013c1d
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 0x140013bed
jmp 0x140013c1d
int3
int3
Function at 0x140017480
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 [0x140062018]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x140062d64]
mov ecx, dword [0x1400624b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140017536
mov rbx, qword [rsi + 0x10]
test rbx, rbx
je 0x140017510
mov r15, qword [rsi + 8]
mov r14d, dword [0x140062d60]
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 0x140017507
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 0x1400174e8
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002fae0
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140062d64]
call fcn.14002e8cc
cmp dword [0x140062d64], 0xffffffff
jne 0x1400174c2
lea rdi, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x140062d60], eax
lea rcx, [0x140062d64]
call fcn.14002e86c
jmp 0x1400174c2
Function at 0x140017580
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 [0x140062018]
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 [0x140062d64]
mov ecx, dword [0x1400624b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400176b6
mov r12d, dword [0x140062d60]
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 0x140017695
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 0x1400176ff
mov qword [rsp + 0x20], r13
mov rdx, rdi
mov r8, r12
mov r9d, 0x40
call rbp
test eax, eax
je 0x1400176f7
mov r15d, dword [rsp + 0x30]
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 0x18]
je 0x140017709
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 0x14001763e
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14002fae0
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, [0x140062d64]
call fcn.14002e8cc
cmp dword [0x140062d64], 0xffffffff
jne 0x1400175eb
lea rbx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x140062d60], eax
lea rcx, [0x140062d64]
call fcn.14002e86c
jmp 0x1400175eb
mov dword [rsp + 0x30], 0
mov rcx, rsi
call fcn.140017480
jmp 0x140017695
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.1400362e0
test al, al
je 0x1400176ff
mov rax, qword [rsi + 0x10]
jmp 0x140017678
Function at 0x14001b510
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 [0x140062018]
xor rax, rsp
mov qword [rsp + 0x58], rax
test r9, r9
je 0x14001b67f
mov esi, dword [rsp + 0xc0]
test esi, esi
je 0x14001b67f
mov rbx, r9
mov r15d, r8d
mov eax, dword [0x140062d6c]
mov ecx, dword [0x1400624b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001b692
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 [0x140062d68]
cmovb rsi, rax
mov eax, dword [0x140062d78]
mov ecx, dword [0x1400624b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14001b5f9
lea rcx, [0x140062d78]
call fcn.14002e8cc
cmp dword [0x140062d78], 0xffffffff
jne 0x14001b5f9
lea r14, [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [r14 + 0x10]
mov qword [0x140062d70], rax
lea rcx, [0x140062d78]
call fcn.14002e86c
mov rax, qword [0x140062d70]
lea rcx, [rbx + rdi]
cmp rax, rcx
cmovb rcx, rax
add rbx, rdi
cmovb rcx, rax
mov edx, r15d
cmp rcx, rdx
jb 0x14001b67f
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 0x14001b67f
test rax, rax
je 0x14001b6d4
cmp rbp, 0xffffffffffffffff
je 0x14001b6d4
mov qword [r12], rbp
mov qword [r12 + 8], rax
mov byte [r12 + 0x10], 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002fae0
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 0x14001b660
lea rcx, [0x140062d6c]
call fcn.14002e8cc
cmp dword [0x140062d6c], 0xffffffff
jne 0x14001b573
lea r14, [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r14 + 0x28]
mov dword [0x140062d68], eax
lea rcx, [0x140062d6c]
call fcn.14002e86c
jmp 0x14001b573
int3