joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002adc8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
cmp qword [rdx + 0x18], 0x10
mov rdi, rdx
mov rbp, qword [rdx + 0x10]
mov r15, rcx
mov r8, rdx
jb 0x14002adfb
mov r8, qword [rdx]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
test rbp, rbp
je 0x14002ae2a
movzx eax, byte [rcx + r8]
movabs r9, 0x100000001b3
xor rdx, rax
inc rcx
imul rdx, r9
cmp rcx, rbp
jb 0x14002ae0c
mov r12, qword [r15 + 0x30]
mov rax, qword [r15 + 0x18]
and r12, rdx
mov rsi, qword [r15 + 8]
add r12, r12
mov rbx, qword [rax + r12*8]
cmp qword [rax + r12*8], rsi
jne 0x14002ae4b
mov rax, rsi
jmp 0x14002ae53
mov rax, qword [rax + r12*8 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x14002aec7
cmp qword [rdi + 0x18], 0x10
lea r14, [rbx + 0x10]
mov rdx, rdi
jb 0x14002ae69
mov rdx, qword [rdi]
cmp qword [r14 + 0x18], 0x10
mov rcx, r14
mov r13, qword [r14 + 0x10]
jb 0x14002ae7a
mov rcx, qword [r14]
cmp r13, rbp
jne 0x14002ae8b
mov r8, r13
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14002ae94
mov rbx, qword [rbx]
mov rax, qword [r15 + 0x18]
jmp 0x14002ae40
cmp qword [r14 + 0x18], 0x10
jb 0x14002ae9e
mov r14, qword [r14]
cmp qword [rdi + 0x18], 0x10
mov rcx, rdi
jb 0x14002aeab
mov rcx, qword [rdi]
cmp rbp, r13
jne 0x14002aebf
mov r8, rbp
mov rdx, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14002aec2
mov rbx, rsi
mov rax, rbx
jmp 0x14002aecd
mov rbx, rsi
mov rax, rsi
cmp rax, rsi
jne 0x14002af46
mov rbx, qword [rsi]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x70], rdi
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rdi, qword [rbx + 8]
mov r8, rdi
call fcn.14002b260
mov rdx, rax
movabs rcx, 0x492492492492491
mov rax, qword [r15 + 0x10]
sub rcx, rax
cmp rcx, 1
jae 0x14002af1b
lea rcx, str.list_T__too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
inc rax
mov rcx, r15
mov qword [r15 + 0x10], rax
mov qword [rbx + 8], rdx
mov qword [rdi], rdx
lea rdx, [rsp + 0x30]
mov r9, qword [r15 + 8]
mov r9, qword [r9]
lea r8, [r9 + 0x10]
call fcn.1400299a8
mov rbx, qword [rsp + 0x30]
lea r11, [rsp + 0x40]
mov rbp, qword [r11 + 0x40]
lea rax, [rbx + 0x30]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x141b99058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141b991df
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 0x141b99089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b9906f
add dl, dl
jne 0x141b99096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b990f6
xor eax, eax
add dl, dl
jne 0x141b990a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b991ad
add dl, dl
jne 0x141b990b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b990c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b990d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b990dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141b990ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141b9907e
mov eax, 1
add dl, dl
jne 0x141b99106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b99113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b990fb
sub eax, ebx
mov ebx, 1
jne 0x141b9914c
mov ecx, 1
add dl, dl
jne 0x141b9912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b9913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b99123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b9907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141b99168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b99175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b9915d
cmp eax, 0x7d00
jae 0x141b9919b
cmp eax, 0x500
jb 0x141b99196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b9907e
cmp eax, 0x7f
ja 0x141b9919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b9907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141b991d2
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 0x141b9907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
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.140030090
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.14003af70
mov rcx, r14
call int.14003b060
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.140030090
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.140034490
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.140030090
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 0x14000d350
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 0x14000d435
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 0x14000d3d6
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x14000d3cf
mov qword [rsi], rdi
call fcn.14000d450
mov r14, rax
mov r15, qword [rsp + 0x58]
call fcn.14000d460
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.14000d450
mov r14, rax
mov r15, qword [rsp + 0x58]
mov r12, qword [rsi]
call fcn.14000d460
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.14000d460
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 0x14000d380
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
pop rbx
scasd eax, dword [rdi]
pop rdx
mov ebx, 0xa30a2951
invalid
and eax, 0x96201391
add byte [rdi + 0x25], dl
fdiv qword [rsi]
stosd dword [rdi], eax
cmp al, 0xa2
sub al, 0x35
jle 0x1400bf8db
invalid
movabs byte [0x60b940ccc47e352c], al
stosd dword [rdi], eax
add al, 0xaf
invalid
int3
and esp, esi
adc al, byte [rbx + rax*4 - 0x4d5eac69]
mov dl, 0xf0
mov dl, 0xf0
mov fs, word [rcx + 0x29]
mov eax, 0x2d0c0fc0
or al, 0x2d
pop rbp
xor al, 0xb4
jl 0x1400bf912
invalid
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.140030090
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.14002ef24
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.14002eec4
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.140030090
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140064d74]
call fcn.14002ef24
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.14002eec4
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.140030090
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.14002ef24
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.14002eec4
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.140036b30
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.14002ef24
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.14002eec4
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.140030090
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.14002ef24
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.14002eec4
jmp 0x140019745
int3
mov r12d, 0x100000
jmp 0x14001976d