joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18008dba0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x18008dbe0
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180158b90]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18008dc1e
cmp rsi, r14
jb 0x18008dc16
cmp rsi, r15
jae 0x18008dc16
cmp qword [rsi + 8], 0
jne 0x18008dde7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x18008dc01
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x18008dcb2
nop dword [rax]
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x18008dca9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18008dca9
cmp dword [rsp + 0x70], 0x10000
je 0x18008dd2b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x18008dca9
sub rbx, rbp
cmp rbx, r14
jae 0x18008dc70
test rsi, rsi
jne 0x18008dd90
cmp rdi, r15
ja 0x18008ddcf
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18008ddcf
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18008ddcf
cmp dword [rsp + 0x70], 0x10000
je 0x18008dd61
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x18008dce2
jmp 0x18008ddcf
test rbx, rbx
je 0x18008dca9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18008dd90
cmp rbx, r14
jae 0x18008dc50
jmp 0x18008dcb2
test rdi, rdi
je 0x18008ddcf
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18008dd90
cmp rdi, r15
jbe 0x18008dcc0
jmp 0x18008ddcf
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x18008dda0
mov rax, qword [0x180158b90]
mov qword [rsi], rax
mov qword [0x180158b90], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x18008f05c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x18008f096
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18008f09b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18008f0e4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180094bf0]
cmp byte [rcx + rax], 0
je 0x18008f0e4
dec r8
sub rdx, 1
jne 0x18008f0ca
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x180027c24
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180027c24
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180027c93
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180027c93
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180027c93
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180027c93
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180027c93
cmp dword [rcx + 0x84], 0xe
jbe 0x180027c93
cmp dword [rcx + 0xf8], 0
je 0x180027c93
mov ecx, ebx
call fcn.180027b5c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180027db8
nop
cmp dword [rbp + 0x20], 0
je 0x180027ce1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180027bf0
int3

Function at 0x180029a80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180029aa8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180029aa8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800308a4
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800308d4
xor eax, eax
jmp 0x180030997
mov rbp, rbx
cmp word [rax], si
je 0x1800308f9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800308e0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800308dc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800307c4
movsxd r14, eax
test eax, eax
jne 0x180030937
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800308cd
mov rcx, r14
call fcn.180030b54
mov rdi, rax
test rax, rax
jne 0x180030950
xor ecx, ecx
call fcn.18002d030
jmp 0x18003092c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800307c4
test eax, eax
jne 0x180030981
mov rcx, rdi
call fcn.18002d030
jmp 0x18003098b
xor ecx, ecx
call fcn.18002d030
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140001530
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 0x140001644
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x140001644
cmp word [rax + rcx + 0x14], 0x78
jb 0x140001644
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 [0x14006a010]
test rax, rax
je 0x140001644
cmp rdi, 0xffff
mov qword [rsp + 0x20], rsi
jbe 0x14000166c
mov r14, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x14006a010]
mov r15, rax
mov eax, dword [r14 + 0x18]
test rax, rax
je 0x140001644
lea rsi, [r15 + rax*4]
lea r13, [rdi + 1]
mov rbp, r15
mov r12, rsi
sub r12, rbp
mov rax, r12
sar rax, 2
shr r12, 0x3f
add r12, rax
and r12, 0xfffffffffffffffe
mov edx, dword [rbp + r12*2]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x14006a010]
mov cl, byte [rdi]
test cl, cl
je 0x140001619
mov rdx, r13
cmp cl, byte [rax]
jne 0x14000161b
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x140001609
xor ecx, ecx
lea r12, [r12*2]
add r12, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x140001648
movzx ecx, cl
lea rdx, [r12 + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs rsi, r12
cmp rbp, rsi
jne 0x1400015d3
xor eax, eax
jmp 0x140001676
mov edx, dword [r14 + 0x24]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x14006a010]
sub r12, r15
sar r12, 1
movzx edi, word [rax + r12]
add di, word [r14 + 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 0x140006120
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x138], rax
test rdx, rdx
je 0x140006173
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 0x140006193
add rdi, rbx
sub rsi, rbx
jne 0x140006151
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.1400300d0
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.14003af10
mov rcx, r14
call fcn.14003b000
jmp 0x14000616b
Function at 0x14000a720
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 [0x140064030]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp byte [rcx + 0x6c], 0
je 0x14000a88d
mov rdi, rdx
mov rbx, rcx
lea r14, [rsp + 0x30]
mov qword [r14], 0
mov rcx, qword [rcx + 0x60]
mov edx, 2
mov r8, r14
call fcn.14000ab00
mov r14, qword [r14]
test eax, eax
jne 0x14000a897
mov dword [rsp + 0x24], 0
test r14, r14
je 0x14000a8a8
cmp dword [r14], 0
je 0x14000a8a0
lea rax, [rbx + 0x30]
mov qword [rsp + 0x28], rax
xor r13d, r13d
xorps xmm6, xmm6
lea r12, [rsp + 0x30]
mov rsi, qword [sym.imp.ADVAPI32.dll_EqualSid]
mov rax, r13
shl rax, 4
test dword [r14 + rax + 0x10], 0xc0000020
jne 0x14000a864
lea r15, [r14 + rax]
add r15, 8
test rdi, rdi
je 0x14000a820
mov rax, qword [rdi]
cmp qword [rdi + 8], rax
je 0x14000a820
xor ebp, ebp
mov rdx, qword [r15]
mov rcx, rbp
shl rcx, 6
lea rcx, [rcx + rbp*4]
add rcx, rax
call rsi
test eax, eax
jne 0x14000a864
inc ebp
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
sub rcx, rax
sar rcx, 2
movabs rdx, 0xf0f0f0f0f0f0f0f1
imul rcx, rdx
cmp rcx, rbp
ja 0x14000a7e6
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 rdx, qword [rbx + 0x38]
cmp rdx, qword [rbx + 0x40]
jne 0x14000a875
mov rcx, qword [rsp + 0x28]
mov r8, r12
call fcn.14000a8e0
inc r13
mov eax, dword [r14]
cmp r13, rax
jb 0x14000a7b8
jmp 0x14000a8a0
mov r8d, 0x44
mov rcx, rdx
mov rdx, r12
call sub.ntdll.dll_memcpy
add qword [rbx + 0x38], 0x44
jmp 0x14000a864
mov dword [rsp + 0x24], 0x3f0
jmp 0x14000a8a8
mov dword [rsp + 0x24], eax
test r14, r14
je 0x14000a8a8
mov rcx, r14
call sub.mozglue.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400300d0
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 0x14000a8e0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov rbp, qword [rsi + 8]
sub rbp, rcx
sar rbp, 2
movabs r9, 0xf0f0f0f0f0f0f0f1
mov rax, rdx
sub rax, rcx
movabs rdx, 0x7878787878787879
imul rdx
mov r15, rdx
imul rbp, r9
inc rbp
mov rdx, qword [rsi + 0x10]
sub rdx, rcx
sar rdx, 2
imul rdx, r9
mov rax, rdx
shr rax, 1
movabs rcx, 0x3c3c3c3c3c3c3c3
mov r9, rcx
sub r9, rax
add rax, rdx
cmp rax, rbp
cmovbe rax, rbp
cmp rdx, r9
cmova rax, rcx
cmp rax, rcx
ja 0x14000aa52
mov r12, r8
mov rcx, r15
shr rcx, 0x3f
sar r15, 5
add r15, rcx
mov rcx, rax
shl rcx, 6
lea rbx, [rcx + rax*4]
cmp rax, 0x3d
jae 0x14000aa57
test rax, rax
je 0x14000aa71
mov rcx, rbx
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov r14, rax
mov rax, r15
shl rax, 6
lea r13, [rax + r15*4]
lea rcx, [r14 + r13]
mov r8d, 0x44
mov qword [rsp + 0x20], rcx
mov rdx, r12
call sub.ntdll.dll_memcpy
mov r12, qword [rsi]
mov r15, qword [rsi + 8]
cmp r15, rdi
jne 0x14000aa79
cmp r12, rdi
je 0x14000a9ff
mov r13, r14
mov r8d, 0x44
mov rcx, r13
mov rdx, r12
call sub.ntdll.dll_memcpy
add r13, 0x44
add r12, 0x44
cmp r12, rdi
jne 0x14000a9de
mov rdi, qword [rsi]
test rdi, rdi
je 0x14000aa20
mov rdx, qword [rsi + 0x10]
sub rdx, rdi
cmp rdx, 0x1000
jae 0x14000aad7
mov rcx, rdi
call sub.mozglue.dll_void___cdecl_operator_delete_void____ptr64__unsigned_long_long_unsigned___int64__
mov qword [rsi], r14
mov rax, rbp
shl rax, 6
lea rax, [rax + rbp*4]
add rax, r14
mov qword [rsi + 8], rax
add rbx, r14
mov qword [rsi + 0x10], rbx
mov rax, qword [rsp + 0x20]
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140034430
lea rcx, [rbx + 0x27]
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x14000a9a4
xor r14d, r14d
jmp 0x14000a9a4
cmp r12, rdi
je 0x14000aaa3
mov r15, r14
mov r8d, 0x44
mov rcx, r15
mov rdx, r12
call sub.ntdll.dll_memcpy
add r15, 0x44
add r12, 0x44
cmp r12, rdi
jne 0x14000aa81
mov r15, qword [rsi + 8]
cmp r15, rdi
je 0x14000a9fc
lea r12, [r14 + r13]
add r12, 0x44
mov r8d, 0x44
mov rcx, r12
mov rdx, rdi
call sub.ntdll.dll_memcpy
add rdi, 0x44
add r12, 0x44
cmp rdi, r15
jne 0x14000aab4
jmp 0x14000a9fc
mov rax, qword [rdi - 8]
add rdi, 0xfffffffffffffff8
sub rdi, rax
cmp rdi, 0x20
jae 0x14000aaf4
add rdx, 0x27
mov rdi, rax
jmp 0x14000aa18
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000c760
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 [0x140064030]
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 0x14000c814
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 0x14000c814
test ebp, ebp
setne al
cmp r14, rsi
sete sil
and sil, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400300d0
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 0x14000c7f6
Function at 0x1400116a0
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 r14d, edx
mov rsi, rcx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r13, qword [rcx + 0x10]
mov ecx, edx
cmp r13, rcx
ja 0x140011860
lea rdi, [rsi + 8]
cmp rcx, 0x21
mov eax, 0x20
cmovae rax, rcx
mov rbx, rax
sub rbx, r13
jbe 0x140011736
mov rcx, qword [rsi + 0x18]
sub rcx, r13
mov rax, r13
cmp rcx, rbx
jb 0x140011887
test rbx, rbx
jle 0x140011733
mov rdx, qword [rsi + 8]
lea rcx, [rdx + rax]
lea r9, [rbx + rcx]
lea r8, [rdx + rax]
inc r8
cmp r9, r8
cmova r8, r9
sub r8, rcx
xor edx, edx
call sub.ntdll.dll_memset
mov rax, qword [rsi + 0x10]
add rax, rbx
mov qword [rsi + 0x10], rax
mov r8, qword [rsi]
cmp qword [r8], 0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], r13
je 0x1400118ee
mov r15, qword [rsi + 0x40]
add r15, r13
mov r12, qword [rsi + 8]
add r12, r13
mov eax, dword [0x140064d74]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400118a3
add rbx, r15
cmp rbx, r15
jbe 0x1400118ee
mov eax, dword [0x140064d70]
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, r15
mov rcx, qword [r8]
mov qword [rsp + 0x20], rbp
mov rdx, r15
mov rdi, r8
mov r8, r12
call r13
test eax, eax
je 0x1400118f6
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
lea rcx, [r14 + rdi]
inc rcx
mov rax, qword [rsi + 0x10]
mov rbx, rcx
sub rbx, rax
jbe 0x140011850
mov rcx, qword [rsi + 0x18]
sub rcx, rax
cmp rcx, rbx
jae 0x14001181b
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
call fcn.140011940
test al, al
je 0x140011929
mov rax, qword [rsi + 0x10]
test rbx, rbx
jle 0x14001184a
mov rdx, qword [rsi + 8]
lea rcx, [rdx + rax]
lea r8, [rbx + 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 [rsi + 0x10]
add rax, rbx
mov rcx, rax
add r14, rdi
mov qword [rsi + 0x10], rcx
mov rax, qword [rsi + 8]
mov byte [rax + r14], 0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400300d0
mov eax, r14d
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
mov rdx, rbx
call fcn.140011940
test al, al
je 0x140011934
mov rax, qword [rsi + 0x10]
jmp 0x140011706
lea rcx, [0x140064d74]
mov rdi, r8
call fcn.14002ef64
mov r8, rdi
cmp dword [0x140064d74], 0xffffffff
jne 0x140011784
lea r14, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r14 + 4]
mov dword [0x140064d70], eax
lea rcx, [0x140064d74]
call fcn.14002ef04
mov r8, rdi
jmp 0x140011784
xor r14d, r14d
jmp 0x1400117de
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 r14d, r14d
mov rbx, rcx
cmp rcx, r15
mov r8, rdi
ja 0x1400117ae
jmp 0x1400117de
int3
int3
Function at 0x1400154f0
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 [0x140064030]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x140064d74]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400155a6
mov rbx, qword [rsi + 0x10]
test rbx, rbx
je 0x140015580
mov r14, qword [rsi + 8]
mov edi, dword [0x140064d70]
shl rbx, 4
xor r15d, r15d
lea r12, [rsp + 0x28]
mov r13, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rax, qword [rsi]
mov rcx, qword [rax]
test rcx, rcx
je 0x140015577
mov rdx, qword [r14 + r15 + 8]
mov r9d, dword [r14 + r15]
mov qword [rsp + 0x20], r12
mov r8, rdi
call r13
add r15, 0x10
cmp rbx, r15
jne 0x140015558
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400300d0
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140064d74]
call fcn.14002ef64
cmp dword [0x140064d74], 0xffffffff
jne 0x140015532
lea rdi, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x140064d70], eax
lea rcx, [0x140064d74]
call fcn.14002ef04
jmp 0x140015532
Function at 0x1400155f0
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 r14, r8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140064030]
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 [0x140064d74]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140015726
mov ebx, dword [0x140064d70]
lea rax, [r14 + r15]
dec rax
xor edx, edx
div rbx
mov rcx, rax
mov rax, r14
xor edx, edx
div rbx
inc rcx
sub rcx, rax
je 0x140015705
mov r14, rax
lea rax, [rsi + 8]
mov qword [rsp + 0x28], rax
imul r14, rbx
cmp rcx, 2
mov r12d, 1
cmovae r12, rcx
lea r13, [rsp + 0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001576f
mov qword [rsp + 0x20], r13
mov rdx, r14
mov r8, rbx
mov r9d, 0x40
call rbp
test eax, eax
je 0x140015767
mov r15d, dword [rsp + 0x30]
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 0x18]
je 0x140015779
mov rcx, qword [rsi + 8]
shl rax, 4
mov dword [rcx + rax], r15d
mov qword [rcx + rax + 8], r14
inc qword [rsi + 0x10]
add r14, rbx
dec r12
jne 0x1400156ae
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400300d0
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, [0x140064d74]
call fcn.14002ef64
cmp dword [0x140064d74], 0xffffffff
jne 0x14001565b
lea rbx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x140064d70], eax
lea rcx, [0x140064d74]
call fcn.14002ef04
jmp 0x14001565b
mov dword [rsp + 0x30], 0
mov rcx, rsi
call fcn.1400154f0
jmp 0x140015705
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.140036ad0
test al, al
je 0x14001576f
mov rax, qword [rsi + 0x10]
jmp 0x1400156e8
Function at 0x1400196e0
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, 0x58
mov rsi, rdx
mov rax, qword [0x140064030]
xor rax, rsp
mov qword [rsp + 0x50], rax
test r9, r9
je 0x14001984f
mov ebp, dword [rsp + 0xc0]
test ebp, ebp
je 0x14001984f
mov rbx, r9
mov edi, r8d
mov eax, dword [0x140064d7c]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001985f
mov r13d, ebp
cmp r13, rbx
ja 0x1400198ac
xor eax, eax
mov rcx, rbx
sub rcx, r13
cmovae rax, rcx
cmp rax, 0x100001
mov r12d, 0x100000
cmovae r12, rax
mov r15d, dword [0x140064d78]
mov eax, dword [0x140064d88]
mov ecx, dword [0x1400644c0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x1400197cf
lea rcx, [0x140064d88]
call fcn.14002ef64
cmp dword [0x140064d88], 0xffffffff
jne 0x1400197cf
lea r14, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [r14 + 0x10]
mov qword [0x140064d80], rax
lea rcx, [0x140064d88]
call fcn.14002ef04
mov rax, qword [0x140064d80]
lea rcx, [rbx + r13]
cmp rax, rcx
cmovb rcx, rax
add rbx, r13
cmovb rcx, rax
mov edx, edi
cmp rcx, rdx
jb 0x14001984f
mov r8, r12
neg r8
lea rax, [r15 - 1]
and rax, r8
add rax, r12
xor r8d, r8d
sub rcx, rdx
cmovae r8, rcx
neg r15
and r15, r8
sub r15, rax
jbe 0x14001984f
test rax, rax
je 0x1400198a1
cmp r15, 0xffffffffffffffff
je 0x1400198a1
mov qword [rsi], r15
mov qword [rsi + 8], rax
mov byte [rsi + 0x10], 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400300d0
mov rax, rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x14001982e
lea rcx, [0x140064d7c]
call fcn.14002ef64
cmp dword [0x140064d7c], 0xffffffff
jne 0x140019745
lea r14, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r14 + 0x28]
mov dword [0x140064d78], eax
lea rcx, [0x140064d7c]
call fcn.14002ef04
jmp 0x140019745
int3
mov r12d, 0x100000
jmp 0x14001976d