joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140038770
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x188
mov rsi, rcx
mov r13, qword [0x1400db108]
mov rax, qword [r13]
xor rax, rsp
mov qword [rsp + 0x180], rax
test dl, dl
je 0x140038801
lea rax, [0x140039660]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rdi, [0x1400ddf00]
lea r8, [0x1400ddf14]
mov rcx, rsi
mov rdx, rdi
mov r9d, 1
call fcn.140037b00
lea rax, [0x1400396d0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 1
lea r8, [0x1400ddf27]
mov rcx, rsi
mov rdx, rdi
mov r9d, 1
call fcn.140037b00
jmp 0x14003880c
cmp qword [rsi + 0x18], 0
je 0x14003896c
mov rax, qword [rsi]
mov rdi, qword [rax]
mov dword [rsp + 0x20], 1
mov rbp, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r8d, 0x10000
mov rcx, rdi
xor edx, edx
mov r9d, 0x2000
call rbp
mov r14, rax
mov r12, qword [rsi + 0x18]
shl r12, 6
lea rbx, [r12 + 0x60]
mov rcx, rbx
call fcn.140037910
mov r15, rax
mov edx, r15d
and edx, 0xfffff000
add rdx, r14
and r15d, 0xfff
add r12, 0x105f
and r12, 0xfffffffffffff000
mov dword [rsp + 0x20], 0x40
mov rcx, rdi
mov r8, r12
mov r9d, 0x1000
call rbp
mov r14, rax
test rax, rax
jne 0x1400388b7
lea rdx, str._var_tmp_build_firefox_c932accff593_security_sandbox_chromium_sandbox_win_src_interception.cc
lea r9, str.thunk_base
lea r12, [rsp + 0x48]
mov rcx, r12
mov r8d, 0x188
call fcn.140003410
mov rcx, r12
call fcn.1400036b0
add r14, r15
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x50], 0x20
lea rcx, [0x14010bff0]
mov r8d, 0x150
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea r9, [rsp + 0x48]
mov rcx, rsi
mov rdx, r14
mov r8, rbx
call fcn.140038bf0
test eax, eax
jne 0x14003896e
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
mov r9d, 0x20
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, eax
mov eax, 0x2a
test ecx, ecx
je 0x14003896e
cmp qword [rsp + 0x40], 0x20
jne 0x14003896e
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, r14
mov r8, rbx
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rsi]
lea rdx, str.g_originals
lea r8, [0x14010bff0]
mov r9d, 0x150
call fcn.140055340
jmp 0x14003896e
xor eax, eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
mov rdx, qword [r13]
cmp rdx, rcx
jne 0x140038996
add rsp, 0x188
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400addd0
int3
Function at 0x14003b1c0
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
mov r14, qword [rsp + 0xc8]
mov rbx, qword [0x1400db108]
mov rax, qword [rbx]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [r14], 0xffffffffffffffff
mov eax, 5
cmp ecx, 3
jne 0x14003b2b8
mov edi, dword [rsp + 0xc0]
mov r11d, dword [rsp + 0xb8]
mov ecx, dword [rsp + 0xb0]
mov eax, dword [rsp + 0xa8]
mov r10d, dword [rsp + 0xa0]
test byte [r8], 1
je 0x14003b229
mov r8, qword [r8 + 0x10]
jmp 0x14003b22d
add r8, 2
mov rsi, qword [rdx]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x38], 0
mov rcx, r8
mov edx, r9d
mov r8d, r10d
mov r9d, eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp rax, 0xffffffffffffffff
je 0x14003b2a2
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rcx, rax
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
cmp eax, 1
sbb rcx, rcx
or rcx, qword [rsp + 0x48]
jmp 0x14003b2a9
mov rcx, 0xffffffffffffffff
mov qword [r14], rcx
xor eax, eax
cmp rcx, 0xffffffffffffffff
sete al
lea eax, [rax + rax*4]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
mov rdx, qword [rbx]
cmp rdx, rcx
jne 0x14003b2d2
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400addd0
int3
Function at 0x1400409d0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov r15, qword [0x1400db108]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov ebx, 0xc000000d
test r9d, r9d
jne 0x140040ba8
mov rdi, r8
mov rsi, rdx
call fcn.14004cf80
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.140055f10
mov ebx, 0xc0000022
test al, al
je 0x140040ba8
call fcn.14004d0a0
test rax, rax
je 0x140040ba8
mov r14, rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x1000
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea rcx, [rsp + 0x50]
mov rdx, rax
call fcn.140008150
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + 1]
cmp rax, 2
jb 0x140040aa7
mov qword [rsp + 0x20], 0x1000
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140040b6a
mov rax, qword [rsp + 0x50]
mov ebx, 0xc000000d
inc rax
cmp rax, 2
jb 0x140040b62
mov r8d, 0x1000
mov rdx, rdi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0xb0], 0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, r14
call fcn.140051000
mov qword [rsp + 0x38], rsi
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x38]
lea r9, [rsp + 0x30]
mov rcx, rdi
mov edx, 0x1e
call fcn.140040be0
mov ebx, 0xc0000022
test eax, eax
jne 0x140040b58
mov ebx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140040b6f
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x140040b6f
mov ebx, 0xc000000d
mov rsi, qword [rsp + 0x50]
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140040ba8
mov rdi, qword [rsp + 0xe8]
call fcn.140007ee0
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov r8, rdi
mov r9, rax
call fcn.14002a080
mov rcx, qword [rsp + 0x50]
call fcn.14002a010
mov rax, qword [rsp + 0xb8]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x140040bcc
mov eax, ebx
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400addd0
int3
Function at 0x140044a20
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x300
mov rdi, r9
mov r15, r8
mov rbx, rdx
mov r14, rcx
mov rsi, qword [rsp + 0x390]
mov r13, qword [rsp + 0x380]
mov r12, qword [0x1400db108]
mov rax, qword [r12]
xor rax, rsp
mov qword [rsp + 0x2f8], rax
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x80], r8
call fcn.14004cf80
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.140055f30
test al, al
je 0x140044aeb
mov rax, qword [rsp + 0x388]
mov rcx, qword [rsp + 0x378]
mov edx, dword [rsp + 0x370]
mov r8d, dword [rsp + 0x368]
mov r9, qword [rsp + 0x360]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r8d
mov rcx, rbx
mov rdx, r15
mov r8, rdi
call r14
mov edi, 1
test eax, eax
jne 0x140044c26
lea rcx, [0x1400debfe]
mov rdx, rbx
call fcn.140004560
call fcn.14004cf80
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov rcx, rax
call fcn.140055f10
xor edi, edi
test al, al
je 0x140044c26
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, 0x18
mov rcx, rsi
mov r8d, 1
call fcn.14004d360
test al, al
je 0x140044c1e
call fcn.14004d0a0
test rax, rax
je 0x140044c1e
mov r14, rax
mov qword [rsp + 0x78], 0
lea r15, [rsp + 0xf0]
mov ecx, 0x104
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x102
ja 0x140044b7b
mov qword [rsp + 0x78], r15
lea r15, [rsp + 0x68]
mov rcx, r15
mov rdx, r14
call fcn.140051000
xorps xmm0, xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
movaps xmmword [rsp + 0xb0], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xe0], 0
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], rsi
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x380]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x88]
lea r9, [rsp + 0x80]
mov rcx, r15
mov edx, 0xd
call fcn.140044c90
test eax, eax
je 0x140044c4f
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x2f8]
xor rax, rsp
mov rcx, qword [r12]
cmp rcx, rax
jne 0x140044c83
mov eax, edi
add rsp, 0x300
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, dword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
cmp dword [rsp + 0x98], 0
jne 0x140044c26
mov rdx, qword [rsp + 0x88]
lea rcx, [0x1400debfe]
call fcn.1400047c0
mov edi, 1
jmp 0x140044c26
call fcn.1400addd0
int3
Function at 0x140046030
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov edi, ecx
mov r12, qword [0x1400db108]
mov rax, qword [r12]
xor rax, rsp
mov qword [rsp + 0xc0], rax
lea eax, [rdi - 7]
mov ebp, 5
cmp eax, 0xfffffffe
jb 0x1400461f1
mov rbx, r8
mov r15, rdx
mov r13, qword [rsp + 0x130]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0xb0], 0
mov dword [rsp + 0x50], 0x68
test byte [r9], 1
je 0x1400460c4
mov r9, qword [r9 + 0x10]
jmp 0x1400460c8
add r9, 2
mov rcx, r9
call qword [sym.imp.mozglue.dll__wcsdup]
mov rsi, rax
movzx eax, byte [r13]
test al, 1
je 0x1400460e7
mov rax, qword [r13 + 8]
mov r13, qword [r13 + 0x10]
jmp 0x1400460ee
add r13, 2
shr rax, 1
mov r14, qword [rsp + 0x138]
test rax, rax
cmove r13, rax
test byte [rbx], 1
je 0x140046108
mov rbx, qword [rbx + 0x10]
jmp 0x14004610c
add rbx, 2
mov r15, qword [r15]
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebp, 5
test eax, eax
je 0x1400461e4
cmp edi, 6
mov ebx, 0x1fffff
mov r13d, 0x101c01
cmove r13d, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [r14]
mov dword [rsp + 0x20], r13d
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov rcx, rax
mov r8, r15
mov r9, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14004621b
cmp edi, 6
mov edi, 0x100c43
cmove edi, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [r14 + 8]
add r14, 8
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0
mov rcx, rax
mov r8, r15
mov r9, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea ebp, [rcx + rcx*4]
test rsi, rsi
je 0x1400461f1
mov rcx, rsi
call sub.mozglue.dll_free
mov rax, qword [rsp + 0xc0]
xor rax, rsp
mov rcx, qword [r12]
cmp rcx, rax
jne 0x14004622c
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
jne 0x1400461e9
jmp 0x1400461f1
call fcn.1400addd0
int3
Function at 0x140046240
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rax, r8
mov r8, rdx
mov rdi, rcx
mov rsi, qword [rsp + 0x90]
mov edx, dword [rsp + 0x80]
mov r10, qword [rsp + 0x88]
mov qword [rsi], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x30], r10
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r9
xor edx, edx
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x1400462d4
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rdi]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
xor ecx, ecx
test eax, eax
sete cl
lea eax, [rcx + rcx*4]
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x40
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x1400504e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
sub rsp, 0x28
mov edx, 4
call sub.ADVAPI32.dll_SystemFunction036
test al, al
setne al
add rsp, 0x28
ret

Function at 0x140054cd0
Capabilities:
Terminate process

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
call fcn.14002b560
test al, al
je 0x140054d01
mov rcx, qword [rsi]
mov edx, 0x32
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsi]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsi + 0x38]
mov qword [rsi + 0x38], 0
test rdi, rdi
je 0x140054d22
mov rcx, rdi
call fcn.140051350
mov rcx, rdi
call fcn.1400acb10
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x140054d34
mov qword [rsi + 0x60], rcx
call fcn.1400acb10
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x50], 0
test rcx, rcx
je 0x140054d4a
call sub.mozglue.dll_free
mov rdi, qword [rsi + 0x38]
mov qword [rsi + 0x38], 0
test rdi, rdi
je 0x140054d6b
mov rcx, rdi
call fcn.140051350
mov rcx, rdi
call fcn.1400acb10
mov rdi, qword [rsi + 0x28]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140054da7
lea rbx, [rsi + 0x28]
mov r14, qword [rsp + 0x48]
call fcn.140007ee0
mov rcx, rdi
mov rdx, rbx
mov r8, r14
mov r9, rax
call fcn.14002a080
mov rcx, qword [rbx]
call fcn.14002a010
mov qword [rbx], 0
mov rdi, qword [rsi + 0x20]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140054de3
lea rbx, [rsi + 0x20]
mov r14, qword [rsp + 0x48]
call fcn.140007ee0
mov rcx, rdi
mov rdx, rbx
mov r8, r14
mov r9, rax
call fcn.14002a080
mov rcx, qword [rbx]
call fcn.14002a010
mov qword [rbx], 0
mov rdi, qword [rsi + 0x18]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140054e1f
lea rbx, [rsi + 0x18]
mov r14, qword [rsp + 0x48]
call fcn.140007ee0
mov rcx, rdi
mov rdx, rbx
mov r8, r14
mov r9, rax
call fcn.14002a080
mov rcx, qword [rbx]
call fcn.14002a010
mov qword [rbx], 0
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14002b430
Function at 0x140055770
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.14002b560
test al, al
je 0x140055792
mov rcx, qword [rsi]
xor edx, edx
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x20
pop rsi
ret

Function at 0x1400582f0
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 r15, qword [0x1400db108]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r12, [rsp + 0x34]
mov qword [rsp + 0x20], r12
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14005838a
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
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 [rsp + 0x28]
mov r9d, dword [rsp + 0x34]
mov qword [rsp + 0x20], r12
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14005838a
test ebp, ebp
setne cl
cmp r14, rsi
sete al
and al, cl
jmp 0x14005838c
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
mov rdx, qword [r15]
cmp rdx, rcx
jne 0x1400583ab
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400addd0
int3
Function at 0x140058550
Capabilities:
Patch process command line

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
movaps xmmword [rsp + 0xa0], xmm6
mov rsi, rcx
mov r14, qword [0x1400db108]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp qword [0x14010af40], 0
je 0x1400586a8
cmp qword [0x14010af40], 0
je 0x1400586f5
mov rcx, qword [0x14010af40]
lea rdx, str.NtQueryInformationProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400586fb
xorps xmm6, xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
mov qword [rsp + 0x20], 0
xor edi, edi
lea r8, [rsp + 0x60]
mov rcx, rsi
xor edx, edx
mov r9d, 0x30
call rax
test eax, eax
jne 0x1400586fe
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x28], 0
mov rdx, qword [rsp + 0x68]
lea r15, [rsp + 0x28]
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x30]
mov r9d, 0x28
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xor edi, edi
test eax, eax
je 0x1400586fe
cmp qword [rsp + 0x28], 0x28
jne 0x1400586fe
mov rbx, qword [rsp + 0x40]
mov word [rsp + 0x96], 0
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x96]
mov r9d, 2
mov rcx, rsi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xor edi, edi
test eax, eax
je 0x1400586fe
cmp qword [rsp + 0x28], 2
jne 0x1400586fe
movzx eax, byte [rsp + 0x96]
movzx ecx, byte [rsp + 0x97]
xor al, 0x4d
xor cl, 0x5a
xor edx, edx
or cl, al
cmovne rbx, rdx
mov rdi, rbx
jmp 0x1400586fe
lea rcx, [0x1400df9c0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
mov rax, qword [0x1400db868]
add rax, 0x10
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdi
lea rcx, [rsp + 0x60]
call fcn.140029b50
test al, al
jne 0x1400586dc
int3
xor eax, eax
lock cmpxchg qword [0x14010af40], rdi
cmp qword [0x14010af40], 0
jne 0x14005859a
int3
int3
mov rax, qword [rsp + 0x98]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x14005872b
mov rax, rdi
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400addd0
int3
Function at 0x140058f90
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, qword [0x1400db108]
mov rax, qword [rsi]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rcx, [0x1400dfbf0]
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
je 0x1400590c4
movaps xmm0, xmmword [str.kernel32]
movaps xmmword [rsp + 0x30], xmm0
movabs rax, 0x6c006c0064002e
mov qword [rsp + 0x40], rax
mov word [rsp + 0x48], 0
cmp qword [0x14010ac30], 0
jne 0x140058ffb
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14010ac30], rax
mov qword [rsp + 0x28], 0
lea rax, [0x14010ac08]
mov qword [rsp + 0x30], rax
lea rdi, [0x14010ac18]
mov qword [rsp + 0x38], rdi
lea rax, [0x1400dfc0b]
mov qword [rsp + 0x40], rax
lea rax, [0x1400590f0]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x50], 0
lea rcx, [0x14010ac10]
lea rdx, [0x140059170]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400590c4
cmp qword [rsp + 0x28], 0
je 0x1400590c4
mov qword [rsp + 0x28], 0
lea rax, [0x14010ac58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rdi
lea rax, [0x1400dfc17]
mov qword [rsp + 0x40], rax
lea rax, [0x140059110]
mov qword [rsp + 0x48], rax
mov byte [rsp + 0x50], 0
lea rcx, [0x14010ac60]
lea rdx, [0x14005eb40]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400590c4
cmp qword [rsp + 0x28], 0
jne 0x1400590c9
call fcn.14002a0c0
mov rax, qword [rsp + 0x60]
xor rax, rsp
mov rcx, qword [rsi]
cmp rcx, rax
jne 0x1400590e0
add rsp, 0x68
pop rdi
pop rsi
ret
call fcn.1400addd0
int3
Function at 0x14005b990
Capabilities:
Get system information on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov r14, qword [0x1400db108]
mov rax, qword [r14]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov sil, 1
test dl, dl
je 0x14005ba7e
mov rbx, qword [rcx + 8]
movsx rdi, dl
movzx eax, byte [0x140109030]
test al, al
je 0x14005ba9f
add rdi, rbx
mov r8d, dword [0x14010b220]
mov rax, rbx
shr rax, 0x20
je 0x14005b9ed
mov rax, rbx
xor edx, edx
div r8
mov rcx, rax
jmp 0x14005b9f6
mov eax, ebx
xor edx, edx
div r8d
mov ecx, eax
mov rax, rdi
shr rax, 0x20
je 0x14005ba0e
mov rax, rdi
xor edx, edx
div r8
cmp rcx, rax
jne 0x14005ba1a
jmp 0x14005ba7e
mov eax, edi
xor edx, edx
div r8d
cmp rcx, rax
je 0x14005ba7e
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0x38]
mov rcx, 0xffffffffffffffff
mov rdx, rdi
xor r8d, r8d
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
js 0x14005ba6e
xor esi, esi
cmp qword [rsp + 0x68], 0
je 0x14005ba7e
cmp dword [rsp + 0x48], 0
je 0x14005ba7e
cmp dword [rsp + 0x58], 0x1000
jne 0x14005ba7e
cmp dword [rsp + 0x5c], 1
setne sil
jmp 0x14005ba7e
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov ecx, eax
call sub.ntdll.dll_RtlSetLastWin32Error
xor esi, esi
mov rax, qword [rsp + 0x70]
xor rax, rsp
mov rcx, qword [r14]
cmp rcx, rax
jne 0x14005ba9a
mov eax, esi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400addd0
lea rcx, [0x140109030]
call fcn.1400ac804
test eax, eax
je 0x14005b9cd
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x3c]
mov dword [0x14010b220], eax
lea rcx, [0x140109030]
call fcn.1400ac8df
jmp 0x14005b9cd
Function at 0x14005bae0
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebp, r9d
mov r14, r8
mov rdi, rdx
mov rsi, rcx
mov r15, qword [0x1400db108]
mov rax, qword [r15]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx eax, byte [0x140109038]
test al, al
je 0x14005bbca
mov ebx, dword [0x14010b224]
mov dword [rsp + 0x20], ebp
lea rcx, [rsp + 0x30]
mov rdx, rdi
mov r8d, ebx
mov r9, r14
call fcn.14005bc50
movzx eax, byte [0x140108fe8]
test al, al
je 0x14005bc04
lea rcx, [0x14010ac78]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [0x14010aca0]
lea rdx, [rsp + 0x30]
call fcn.14005be10
test rax, rax
je 0x14005bb8b
mov r14, rax
lea r8, [rsp + 0x30]
mov rcx, rax
mov edx, ebx
call fcn.14005c440
test eax, eax
je 0x14005bb8b
mov qword [rsi], rdi
mov qword [rsi + 8], r14
mov byte [rsi + 0x10], 1
jmp 0x14005bb99
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
lea rcx, [0x14010ac78]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rsp + 0x60]
xor rax, rsp
mov rcx, qword [r15]
cmp rcx, rax
jne 0x14005bc48
mov rax, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x140109038]
call fcn.1400ac804
test eax, eax
je 0x14005bb19
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x58]
mov dword [0x14010b224], eax
lea rcx, [0x140109038]
call fcn.1400ac8df
jmp 0x14005bb19
lea rcx, [0x140108fe8]
call fcn.1400ac804
test eax, eax
je 0x14005bb45
lea rcx, [0x14010ac78]
mov edx, 0xfa0
mov r8d, 0x1000000
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
mov byte [0x14010b100], 1
lea rcx, [0x140108fe8]
call fcn.1400ac8df
jmp 0x14005bb45
call fcn.1400addd0
int3