joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003140
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 [0x140061018]
xor rax, rsp
mov qword [rsp + 0x148], rax
mov ecx, dword [0x140061078]
cmp ecx, 0xffffffff
je 0x14000317b
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140003180
call fcn.1400033b0
mov eax, dword [0x140063658]
mov ecx, dword [0x1400614b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x1400031da
lea rcx, [0x140063658]
call fcn.14002e2bc
cmp dword [0x140063658], 0xffffffff
jne 0x1400031da
mov ecx, 8
call sub.mozglue.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov qword [rax], 0
mov qword [0x140063650], rax
lea rcx, [0x140063658]
call fcn.14002e25c
mov rbx, qword [0x140063650]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [0x140061e48]
inc rax
xor ecx, ecx
lea rdx, [0x140061e50]
lea edi, [rax + rcx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rdx + rsi*8], 0
jne 0x140003280
lea rax, [rdx + rsi*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x140061e48], 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 0x140003292
mov eax, dword [r15]
mov dword [rsp + 0x30], 0x100
mov dword [rsp + 0x2c], eax
cmp eax, 0xff
jg 0x1400032d7
mov rcx, qword [rsp + 0x148]
xor rcx, rsp
call fcn.14002f4d0
nop
add rsp, 0x150
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
inc rcx
cmp rcx, 0x100
jne 0x1400031fd
jmp 0x14000322d
lea r8, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x2c]
lea rdx, [rsp + 0x30]
call fcn.140039a80
test rax, rax
je 0x14000324a
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.140039820
mov rcx, rdi
call fcn.140039890
jmp 0x14000324a
lea r8, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x2c]
lea rdx, [rsp + 0x30]
call fcn.140039a80
test rax, rax
je 0x140003260
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.140039820
mov rcx, rsi
call fcn.140039890
jmp 0x140003260
Function at 0x140008440
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rax, qword [0x140061018]
xor rax, rsp
mov qword [rsp + 0x138], rax
test rdx, rdx
je 0x140008493
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 0x1400084b3
add rdi, rbx
sub rsi, rbx
jne 0x140008471
mov rcx, qword [rsp + 0x138]
xor rcx, rsp
call fcn.14002f4d0
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.1400397d0
mov rcx, r14
call fcn.140039890
jmp 0x14000848b
Function at 0x140009d40
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 0x140009e2d
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 0x140009dce
lea rax, [r15 + 1]
cmp rax, 2
jb case.default.0x140009dc7
mov qword [rsi], r15
call fcn.140009e40
mov rbx, rax
mov rbp, qword [rsp + 0x68]
call fcn.140009e50
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.0x14002eb7e.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.140009e40
mov r14, rax
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsi]
call fcn.140009e50
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.0x14002eb7e.0]
mov r14, qword [rsi]
call fcn.140009e50
mov rcx, qword [rax]
mov r8, qword [rcx]
mov rcx, rax
mov rdx, r14
mov rax, r8
call qword [case.0x14002eb7e.0]
mov qword [rsi], 0
jmp 0x140009d74
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
sal dword [rax - 0xa], 0xea
lahf
or ecx, edi
out 0x6f, eax
cmc
invalid
and al, 0x40
add al, 0x56
invalid
stc
jg 0x1400ba628
sub bh, dl
jp 0x1400ba635
mov bh, 0x97
cmp ecx, eax
rol byte [rdi - 0x7f], cl
invalid
invalid
Function at 0x14000d3d0
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 [0x140061018]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp byte [rcx + 0x6c], 0
je 0x14000d53c
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.14000d7c0
mov rsi, qword [rsi]
test eax, eax
jne 0x14000d546
mov dword [rsp + 0x24], 0
test rsi, rsi
je 0x14000d557
cmp dword [rsi], 0
je 0x14000d54f
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 0x14000d517
lea r15, [rsi + rax]
add r15, 8
test rdi, rdi
je 0x14000d4d0
mov rax, qword [rdi]
cmp qword [rdi + 8], rax
je 0x14000d4d0
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 0x14000d517
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 0x14000d494
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 0x14000d527
mov rcx, qword [rsp + 0x28]
mov r8, r12
call fcn.14000d590
inc rbp
mov eax, dword [rsi]
cmp rbp, rax
jb 0x14000d466
jmp 0x14000d54f
mov r8d, 0x44
mov rdx, r12
call sub.ntdll.dll_memcpy
add qword [rbx + 0x38], 0x44
jmp 0x14000d517
mov dword [rsp + 0x24], 0x3f0
jmp 0x14000d557
mov dword [rsp + 0x24], eax
test rsi, rsi
je 0x14000d557
mov rcx, rsi
call sub.mozglue.dll_void___cdecl_operator_delete___void____ptr64_
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14002f4d0
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 0x14000f590
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 [0x140061018]
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 0x14000f644
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 0x14000f644
test ebp, ebp
setne al
cmp r14, rsi
sete sil
and sil, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14002f4d0
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 0x14000f626
Function at 0x140013c20
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 [0x140061018]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov r14, qword [rcx + 0x10]
mov ecx, edx
cmp r14, rcx
ja 0x140013dde
lea rsi, [r15 + 8]
cmp rcx, 0x21
mov eax, 0x20
cmovae rax, rcx
mov rbx, rax
sub rbx, r14
jbe 0x140013cb5
mov rcx, qword [r15 + 0x18]
sub rcx, r14
mov rax, r14
cmp rcx, rbx
jb 0x140013e04
test rbx, rbx
jle 0x140013cb2
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 0x140013e6a
mov rsi, qword [r15 + 0x40]
add rsi, r14
mov r12, qword [r15 + 8]
add r12, r14
mov eax, dword [0x140061d64]
mov ecx, dword [0x1400614b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140013e20
add rbx, rsi
cmp rbx, rsi
jbe 0x140013e6a
mov eax, dword [0x140061d60]
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 0x140013e71
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 0x140013dcf
mov rcx, qword [r15 + 0x18]
sub rcx, rax
cmp rcx, rsi
jae 0x140013d9a
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
call fcn.140013ec0
test al, al
je 0x140013ea3
mov rax, qword [r15 + 0x10]
test rsi, rsi
jle 0x140013dc9
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.14002f4d0
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.140013ec0
test al, al
je 0x140013eae
mov rax, qword [r15 + 0x10]
jmp 0x140013c85
lea rcx, [0x140061d64]
mov rbp, r8
call fcn.14002e2bc
mov r8, rbp
cmp dword [0x140061d64], 0xffffffff
jne 0x140013d03
lea rdi, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x140061d60], eax
lea rcx, [0x140061d64]
call fcn.14002e25c
mov r8, rbp
jmp 0x140013d03
xor edi, edi
jmp 0x140013d5d
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 0x140013d2d
jmp 0x140013d5d
int3
int3
Function at 0x140017530
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 [0x140061018]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x140061d64]
mov ecx, dword [0x1400614b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400175e6
mov rbx, qword [rsi + 0x10]
test rbx, rbx
je 0x1400175c0
mov r15, qword [rsi + 8]
mov r14d, dword [0x140061d60]
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 0x1400175b7
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 0x140017598
mov qword [rsi + 0x10], 0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002f4d0
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140061d64]
call fcn.14002e2bc
cmp dword [0x140061d64], 0xffffffff
jne 0x140017572
lea rdi, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x140061d60], eax
lea rcx, [0x140061d64]
call fcn.14002e25c
jmp 0x140017572
Function at 0x140017630
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 [0x140061018]
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 [0x140061d64]
mov ecx, dword [0x1400614b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140017766
mov r12d, dword [0x140061d60]
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 0x140017745
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 0x1400177af
mov qword [rsp + 0x20], r13
mov rdx, rdi
mov r8, r12
mov r9d, 0x40
call rbp
test eax, eax
je 0x1400177a7
mov r15d, dword [rsp + 0x30]
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 0x18]
je 0x1400177b9
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 0x1400176ee
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14002f4d0
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, [0x140061d64]
call fcn.14002e2bc
cmp dword [0x140061d64], 0xffffffff
jne 0x14001769b
lea rbx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x140061d60], eax
lea rcx, [0x140061d64]
call fcn.14002e25c
jmp 0x14001769b
mov dword [rsp + 0x30], 0
mov rcx, rsi
call fcn.140017530
jmp 0x140017745
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.140035cb0
test al, al
je 0x1400177af
mov rax, qword [rsi + 0x10]
jmp 0x140017728
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 [0x140061018]
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 [0x140061d6c]
mov ecx, dword [0x1400614b0]
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 [0x140061d68]
cmovb rsi, rax
mov eax, dword [0x140061d78]
mov ecx, dword [0x1400614b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14001b5f9
lea rcx, [0x140061d78]
call fcn.14002e2bc
cmp dword [0x140061d78], 0xffffffff
jne 0x14001b5f9
lea r14, [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [r14 + 0x10]
mov qword [0x140061d70], rax
lea rcx, [0x140061d78]
call fcn.14002e25c
mov rax, qword [0x140061d70]
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.14002f4d0
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, [0x140061d6c]
call fcn.14002e2bc
cmp dword [0x140061d6c], 0xffffffff
jne 0x14001b573
lea r14, [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [r14 + 0x28]
mov dword [0x140061d68], eax
lea rcx, [0x140061d6c]
call fcn.14002e25c
jmp 0x14001b573
int3
Function at 0x14001b6e0
Capabilities:
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, 0x58
mov r14, r9
mov rbx, r8
mov rsi, rcx
mov rax, qword [0x140061018]
xor rax, rsp
mov qword [rsp + 0x50], 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 [0x140061d64]
mov ecx, dword [0x1400614b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001b7fb
mov r12d, dword [0x140061d60]
lea rax, [rbx + r14]
dec rax
xor edx, edx
div r12
mov rcx, rax
mov rax, rbx
xor edx, edx
div r12
inc rcx
sub rcx, rax
je 0x14001b7da
mov rbx, rax
lea r14, [rsi + 8]
imul rbx, r12
cmp rcx, 2
mov edi, 1
cmovae rdi, rcx
lea r15, [rsp + 0x20]
mov r13, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, rbx
mov rdx, r12
mov r8d, 0x40
mov r9, r15
call r13
test eax, eax
je 0x14001b83c
mov ebp, dword [rsp + 0x20]
mov rax, qword [rsi + 0x10]
cmp rax, qword [rsi + 0x18]
je 0x14001b84e
mov rcx, qword [rsi + 8]
shl rax, 4
mov dword [rcx + rax], ebp
mov qword [rcx + rax + 8], rbx
inc qword [rsi + 0x10]
add rbx, r12
dec rdi
jne 0x14001b792
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002f4d0
mov rax, rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x140061d64]
call fcn.14002e2bc
cmp dword [0x140061d64], 0xffffffff
jne 0x14001b748
lea rdi, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov dword [0x140061d60], eax
lea rcx, [0x140061d64]
call fcn.14002e25c
jmp 0x14001b748
mov dword [rsp + 0x20], 0
mov rcx, rsi
call fcn.140051bf0
jmp 0x14001b7da
mov edx, 1
mov rcx, r14
call fcn.140035cb0
test al, al
je 0x14001b844
mov rax, qword [rsi + 0x10]
jmp 0x14001b7be
Function at 0x14001ba50
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, rdx
mov rax, qword [0x140061018]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, qword [rcx + 8]
test rax, rax
je 0x14001bc6b
mov rdi, rcx
mov ebp, dword [rcx + 0x18]
shl ebp, 7
mov edx, ebp
or edx, 0x7f
mov ecx, dword [rcx + 0x14]
cmp edx, ecx
jb 0x14001bb18
cmp ecx, dword [rdi + 0x10]
jae 0x14001bc6b
mov eax, dword [0x140061d64]
mov ecx, dword [0x1400614b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001bbe9
mov edx, dword [0x140061d60]
mov ecx, dword [rdi + 0x14]
add rcx, qword [rdi + 8]
mov r8d, 0x1000
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x14001bc6b
mov eax, dword [0x140061d64]
mov ecx, dword [0x1400614b0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001bc2a
mov eax, dword [0x140061d60]
add dword [rdi + 0x14], eax
mov rax, qword [rdi + 8]
mov ecx, ebp
add rcx, rax
lea r9, [rsp + 0x30]
mov qword [r9 - 8], rdi
mov dword [r9], 0
mov qword [r9 + 8], rcx
mov qword [r9 + 0x10], rcx
xorps xmm0, xmm0
movups xmmword [r9 + 0x18], xmm0
mov dword [r9 + 0x28], 0x80
mov byte [r9 + 0x2c], 1
mov edx, 0x80
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14001bc82
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14001bc8f
mov rdx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov ebx, dword [rsp + 0x30]
mov al, byte [rsp + 0x5c]
test rdx, rdx
je 0x14001bb98
test rbp, rbp
je 0x14001bb98
test ebx, ebx
je 0x14001bb98
test al, al
je 0x14001bb98
inc dword [rdi + 0x18]
mov qword [rsi], rcx
mov dword [rsi + 8], ebx
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], rbp
mov ecx, dword [rsp + 0x48]
mov dword [rsi + 0x20], ecx
mov ecx, dword [rsp + 0x4c]
mov dword [rsi + 0x24], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rsi + 0x28], ecx
mov ecx, dword [rsp + 0x54]
mov dword [rsi + 0x2c], ecx
mov ecx, dword [rsp + 0x58]
mov dword [rsi + 0x30], ecx
mov byte [rsi + 0x34], al
mov byte [rsi + 0x38], 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14002f4d0
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140061d64]
call fcn.14002e2bc
cmp dword [0x140061d64], 0xffffffff
jne 0x14001babe
lea rbx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x140061d60], eax
lea rcx, [0x140061d64]
call fcn.14002e25c
jmp 0x14001babe
lea rcx, [0x140061d64]
call fcn.14002e2bc
cmp dword [0x140061d64], 0xffffffff
jne 0x14001bb0b
lea rbx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbx + 4]
mov dword [0x140061d60], eax
lea rcx, [0x140061d64]
call fcn.14002e25c
jmp 0x14001bb0b
xorps xmm0, xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
jmp 0x14001bbd0
mov dword [rsp + 0x30], 0
jmp 0x14001bb63
mov ebx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov al, byte [rsp + 0x5c]
jmp 0x14001bb95