joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003320
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
cmp byte [rcx + 0x17], 0
js 0x14000337d
mov rcx, rdi
je 0x14000334c
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [rdi + 0x17], 0
js 0x140003389
mov word [rdi], 0
mov byte [rdi + 0x17], 0
cmp rdi, rsi
je 0x140003370
cmp byte [rdi + 0x17], 0
movzx r8d, byte [rsi + 0x17]
js 0x1400033b9
test r8b, r8b
jns 0x14000339b
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
mov rcx, rdi
call fcn.14000cb80
cmp byte [rsi + 0x17], 0
js 0x1400033ab
add rsp, 0x28
pop rdi
pop rsi
ret
cmp qword [rdi + 8], 0
je 0x14000334c
mov rcx, qword [rdi]
jmp 0x140003337
mov rax, qword [rdi]
mov word [rax], 0
mov qword [rdi + 8], 0
jmp 0x14000334c
mov rax, qword [rsi + 0x10]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
jmp 0x140003370
mov rcx, qword [rsi]
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14000f2f0
test r8b, r8b
jns 0x1400033c7
mov r8, qword [rsi + 8]
mov rdx, qword [rsi]
jmp 0x1400033ce
and r8d, 0x7f
mov rdx, rsi
mov rcx, rdi
call fcn.14000ca90
jmp 0x140003370

Function at 0x14000f8d8
Capabilities:
Parse pe header

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

Function at 0x140010478
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400104f0
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400104f0
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400104f0
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400104e4
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140010502
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400104d2
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400104f2

Function at 0x140026450
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140026478
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140026478
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140030900
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14002a088
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400309a1
cmp ebx, dword [rsp + 0x30]
je 0x14003099a
test esi, esi
je 0x14003099a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140030975
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140030982
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14003095f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140030986
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400309a3
mov eax, 1
jmp 0x1400309a3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140031110
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140031197
mov rsi, rbx
cmp word [rax], bp
je 0x140031156
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140031140
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003113c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002cc74
mov rdi, rax
test rax, rax
je 0x140031184
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140011f70
mov rbp, rdi
xor ecx, ecx
call fcn.14002974c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400354d8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400354ee
mov al, 1
jmp 0x14003554e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400354ff
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003554c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140031608
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003554c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003554c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003554c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003554e
xor al, al
add rsp, 0x20
pop rbx
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 0x140006110
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 0x140006163
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 0x140006183
add rdi, rbx
sub rsi, rbx
jne 0x140006141
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.140030050
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.14003ae90
mov rcx, r14
call fcn.14003af80
jmp 0x14000615b
Function at 0x14000a710
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 0x14000a87d
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.14000aaf0
mov r14, qword [r14]
test eax, eax
jne 0x14000a887
mov dword [rsp + 0x24], 0
test r14, r14
je 0x14000a898
cmp dword [r14], 0
je 0x14000a890
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 0x14000a854
lea r15, [r14 + rax]
add r15, 8
test rdi, rdi
je 0x14000a810
mov rax, qword [rdi]
cmp qword [rdi + 8], rax
je 0x14000a810
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 0x14000a854
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 0x14000a7d6
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 0x14000a865
mov rcx, qword [rsp + 0x28]
mov r8, r12
call fcn.14000a8d0
inc r13
mov eax, dword [r14]
cmp r13, rax
jb 0x14000a7a8
jmp 0x14000a890
mov r8d, 0x44
mov rcx, rdx
mov rdx, r12
call sub.ntdll.dll_memcpy
add qword [rbx + 0x38], 0x44
jmp 0x14000a854
mov dword [rsp + 0x24], 0x3f0
jmp 0x14000a898
mov dword [rsp + 0x24], eax
test r14, r14
je 0x14000a898
mov rcx, r14
call sub.mozglue.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140030050
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 0x14000a8d0
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 0x14000aa42
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 0x14000aa47
test rax, rax
je 0x14000aa61
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 0x14000aa69
cmp r12, rdi
je 0x14000a9ef
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 0x14000a9ce
mov rdi, qword [rsi]
test rdi, rdi
je 0x14000aa10
mov rdx, qword [rsi + 0x10]
sub rdx, rdi
cmp rdx, 0x1000
jae 0x14000aac7
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.1400343b0
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 0x14000a994
xor r14d, r14d
jmp 0x14000a994
cmp r12, rdi
je 0x14000aa93
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 0x14000aa71
mov r15, qword [rsi + 8]
cmp r15, rdi
je 0x14000a9ec
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 0x14000aaa4
jmp 0x14000a9ec
mov rax, qword [rdi - 8]
add rdi, 0xfffffffffffffff8
sub rdi, rax
cmp rdi, 0x20
jae 0x14000aae4
add rdx, 0x27
mov rdi, rax
jmp 0x14000aa08
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000c750
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 0x14000c804
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 0x14000c804
test ebp, ebp
setne al
cmp r14, rsi
sete sil
and sil, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140030050
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 0x14000c7e6
Function at 0x14000d340
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x14000d425
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14000d3c6
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x14000d3bf
mov qword [rsi], rdi
call fcn.14000d440
mov r14, rax
mov r15, qword [rsp + 0x58]
call fcn.14000d450
mov rcx, qword [rax]
mov r10, qword [rcx + 8]
mov qword [rsp + 0x20], r14
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
mov rax, r10
call qword [0x14006a010]
mov ecx, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.14000d440
mov r14, rax
mov r15, qword [rsp + 0x58]
mov r12, qword [rsi]
call fcn.14000d450
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, r15
mov rax, r10
call qword [0x14006a010]
mov r14, qword [rsi]
call fcn.14000d450
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov rdx, r14
mov rax, r8
call qword [0x14006a010]
mov qword [rsi], 0
jmp 0x14000d370
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140011690
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 0x140011850
lea rdi, [rsi + 8]
cmp rcx, 0x21
mov eax, 0x20
cmovae rax, rcx
mov rbx, rax
sub rbx, r13
jbe 0x140011726
mov rcx, qword [rsi + 0x18]
sub rcx, r13
mov rax, r13
cmp rcx, rbx
jb 0x140011877
test rbx, rbx
jle 0x140011723
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 0x1400118de
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 0x140011893
add rbx, r15
cmp rbx, r15
jbe 0x1400118de
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 0x1400118e6
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 0x140011840
mov rcx, qword [rsi + 0x18]
sub rcx, rax
cmp rcx, rbx
jae 0x14001180b
mov rcx, qword [rsp + 0x40]
mov rdx, rbx
call fcn.140011930
test al, al
je 0x140011919
mov rax, qword [rsi + 0x10]
test rbx, rbx
jle 0x14001183a
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.140030050
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.140011930
test al, al
je 0x140011924
mov rax, qword [rsi + 0x10]
jmp 0x1400116f6
lea rcx, [0x140064d74]
mov rdi, r8
call fcn.14002eee4
mov r8, rdi
cmp dword [0x140064d74], 0xffffffff
jne 0x140011774
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.14002ee84
mov r8, rdi
jmp 0x140011774
xor r14d, r14d
jmp 0x1400117ce
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 0x14001179e
jmp 0x1400117ce
int3
int3
Function at 0x1400154c0
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 0x140015576
mov rbx, qword [rsi + 0x10]
test rbx, rbx
je 0x140015550
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 0x140015547
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 0x140015528
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140030050
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140064d74]
call fcn.14002eee4
cmp dword [0x140064d74], 0xffffffff
jne 0x140015502
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.14002ee84
jmp 0x140015502
Function at 0x1400155c0
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 0x1400156f6
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 0x1400156d5
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 0x14001573f
mov qword [rsp + 0x20], r13
mov rdx, r14
mov r8, rbx
mov r9d, 0x40
call rbp
test eax, eax
je 0x140015737
mov r15d, dword [rsp + 0x30]
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 0x18]
je 0x140015749
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 0x14001567e
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140030050
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.14002eee4
cmp dword [0x140064d74], 0xffffffff
jne 0x14001562b
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.14002ee84
jmp 0x14001562b
mov dword [rsp + 0x30], 0
mov rcx, rsi
call fcn.1400154c0
jmp 0x1400156d5
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.140036a50
test al, al
je 0x14001573f
mov rax, qword [rsi + 0x10]
jmp 0x1400156b8
Function at 0x140019690
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 0x1400197ff
mov ebp, dword [rsp + 0xc0]
test ebp, ebp
je 0x1400197ff
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 0x14001980f
mov r13d, ebp
cmp r13, rbx
ja 0x14001985c
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 0x14001977f
lea rcx, [0x140064d88]
call fcn.14002eee4
cmp dword [0x140064d88], 0xffffffff
jne 0x14001977f
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.14002ee84
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 0x1400197ff
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 0x1400197ff
test rax, rax
je 0x140019851
cmp r15, 0xffffffffffffffff
je 0x140019851
mov qword [rsi], r15
mov qword [rsi + 8], rax
mov byte [rsi + 0x10], 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140030050
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 0x1400197de
lea rcx, [0x140064d7c]
call fcn.14002eee4
cmp dword [0x140064d7c], 0xffffffff
jne 0x1400196f5
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.14002ee84
jmp 0x1400196f5
int3
mov r12d, 0x100000
jmp 0x14001971d