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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14000175c
mov eax, 0
jmp 0x14000189e
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001788
mov eax, 0
jmp 0x14000189e
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0xf8]
test eax, eax
je 0x1400017a0
mov eax, 0
jmp 0x14000189e
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
add rax, 0x108
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x50]
mov edx, eax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 0x30]
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001819
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x50]
mov eax, eax
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001827
mov eax, 0
jmp 0x14000189e
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x54]
mov ecx, eax
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov dword [rbp - 0x14], 0
jmp 0x14000188a
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x10]
mov r8d, eax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x14]
mov edx, eax
mov rax, qword [rbp - 0x20]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 8]
add rax, rcx
mov rcx, rax
call sym.memcpy
add qword [rbp - 0x10], 0x28
add dword [rbp - 0x14], 1
mov rax, qword [rbp - 0x28]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0x14], eax
jl 0x14000184c
mov rax, qword [rbp - 8]
add rsp, 0x50
pop rbp
ret

Function at 0x140001e20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001e90
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400300b4]
mov rbx, rcx
test esi, esi
jle 0x140001fc0
mov rax, qword [0x1400300b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001edb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001f65
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001ec0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001fe2
mov rax, qword [0x1400300b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400300b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001fc7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001f5e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001f70
add dword [0x1400300b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400300b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001f5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001ee8
mov rax, qword [0x1400300b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002550
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140030120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140030100]
test rbx, rbx
je 0x1400025ac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400025a3
test rsi, rsi
je 0x1400025a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002588
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400027c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400027d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400027e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400027f0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000283d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002834
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000283f
add rax, 0x28
cmp rax, r9
jne 0x140002820
xor eax, eax
ret

Function at 0x140002840
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400028d0
mov rdx, qword [0x14002d780]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400028be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400028be
cmp word [rax + 0x18], 0x20b
jne 0x1400028be
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400028d0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400028a9
add rbx, 0x28
cmp rbx, rdi
je 0x1400028d0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400028a0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400028e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14002d780]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002900
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002908
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002900
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000295d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002954
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002900
add rax, 0x28
cmp rax, r9
jne 0x140002940
xor eax, eax
ret

Function at 0x140002960
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14002d780]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000297f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002988
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000297f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400029a0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14002d780]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400029c0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400029c8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400029c0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002a10
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002a07
test rcx, rcx
je 0x1400029c0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400029f8
xor eax, eax
ret
Function at 0x140002a20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14002d780]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002a3f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002a48
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002a60
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14002d780]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002a80
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002a88
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002a80
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002a80
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002ad4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002ae0
add rdx, 0x28
cmp r9, rdx
jne 0x140002ac0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002af0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14002d780]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002b12
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002b20
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002b12
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002b12
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002b12
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002b75
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002b88
add rdx, 0x28
cmp rdx, r10
jne 0x140002b60
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002b97
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002ba7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002b7e
test ecx, ecx
jg 0x140002b90
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x180005ce0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180005d4f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180005d4f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180005d4f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180005d4f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180005d4f
cmp dword [rcx + 0x84], 0xe
jbe 0x180005d4f
cmp dword [rcx + 0xf8], 0
je 0x180005d4f
mov ecx, ebx
call fcn.180005e00
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180005bdc
nop
cmp dword [rbp + 0x20], 0
je 0x180005d9d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180005da8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180005ce0
Function at 0x18000d5d8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000d608
xor eax, eax
jmp 0x18000d6cb
mov rbp, rbx
cmp word [rax], si
je 0x18000d62d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000d614
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000d610
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000d4f8
movsxd r14, eax
test eax, eax
jne 0x18000d66b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000d601
mov rcx, r14
call fcn.18000e4d4
mov rdi, rax
test rax, rax
jne 0x18000d684
xor ecx, ecx
call fcn.18000be0c
jmp 0x18000d660
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000d4f8
test eax, eax
jne 0x18000d6b5
mov rcx, rdi
call fcn.18000be0c
jmp 0x18000d6bf
xor ecx, ecx
call fcn.18000be0c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1800141b8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800141ce
mov al, 1
jmp 0x18001422e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800141df
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18001422c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800122b0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18001422c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18001422c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18001422c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18001422e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x180016614
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x18001668d
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x18001668d
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
cmp r9w, r11w
jae 0x18001668d
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x180016681
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x18001669f
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x18001666f
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 0x18001668f

Function at 0x180016b50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180016b78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180016b78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140059700
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rdi, rdx
mov rbx, rcx
xorps xmm0, xmm0
lea rdx, [0x1404556ac]
lea rcx, [0x140444054]
movdqa xmmword [rbp + 7], xmm0
call fcn.1400f43c8
and qword [rbp + 0x1f], 0
lea rcx, [rbp - 0x39]
and qword [rbp + 0x47], 0
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x27], xmm0
xor eax, eax
movdqa xmmword [rbp + 0x37], xmm1
mov qword [rbp - 0x39], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x14005979f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14005978a
lea rdx, [0x14045ae50]
lea rcx, [0x14042ebbc]
call fcn.1400f4710
mov ebx, 0x80004005
jmp 0x140059798
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov ecx, ebx
jmp 0x1400598af
lea rax, [0x14000585c]
mov qword [rbp - 0x31], 3
mov qword [rbp - 0x29], rax
lea rdx, [0x140452048]
lea rax, [rbp + 0x77]
lea rcx, [0x1404388e4]
mov qword [rbp - 0x21], rax
call fcn.1400f3670
lea rax, [rbp + 7]
lea rdx, [0x140455e88]
mov qword [rbp - 0x19], rax
lea rcx, [0x14043276c]
call fcn.1400f4080
lea rdx, [0x140458974]
mov qword [rbp - 0x11], rbx
lea rcx, [0x140434abc]
call fcn.1400f50fc
xor r9d, r9d
lea rdx, [rbp - 0x31]
mov ecx, 0xb9
lea r8d, [r9 + 0x28]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x77]
test ebx, ebx
jns 0x140059833
lea rdx, [0x14045c138]
lea rcx, [0x14042e04c]
call fcn.1400f43c8
jmp 0x140059798
mov rcx, qword [rbp + 0x37]
mov rdx, rdi
call fcn.14007ab14
lea rdx, [0x1404596c8]
mov ebx, eax
lea rcx, [0x14042c02c]
call fcn.1400f39cc
test ebx, ebx
js 0x140059798
lea rdx, [0x14045b688]
lea rcx, [0x14042eca4]
call fcn.1400f4a68
mov rcx, qword [rbp + 0x3f]
lea rdx, [rdi + 8]
call fcn.14007ab14
mov ebx, eax
test eax, eax
jns 0x14005989a
lea rdx, [0x14045b550]
lea rcx, [0x140437090]
call fcn.1400f3d28
jmp 0x140059798
mov rcx, qword [rbp + 0x47]
lea rdx, [rdi + 0x10]
call fcn.14007ab14
mov ebx, eax
test eax, eax
jns 0x1400598b4
mov ecx, eax
call fcn.14007ac40
cmp dword [0x140451890], 5
jbe 0x140059935
lea rdx, [0x14045b6a8]
lea rcx, [0x14042ecac]
call fcn.1400f4dac
movabs rdx, 0x400000000000
test qword [0x1404518a0], rdx
je 0x140059935
mov rax, qword [0x1404518a8]
and rax, rdx
cmp rax, qword [0x1404518a8]
jne 0x140059935
mov rcx, qword [rbp - 0x39]
call fcn.140079a88
mov qword [rbp - 9], rax
lea rdx, [0x14044533d]
lea rax, [rbp - 9]
mov dword [rbp + 0x7f], ebx
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
mov qword [rbp - 1], 0x1000000
call fcn.1400014e0
mov ecx, ebx
call fcn.14007ace8
lea rdx, [0x140454fd4]
lea rcx, [0x140431b84]
call fcn.1400f3318
and qword [rbp - 0x21], 0
lea rax, [0x14000315c]
xor r9d, r9d
mov qword [rbp - 0x29], rax
lea rax, [rbp + 7]
mov qword [rbp - 0x31], 3
lea rdx, [rbp - 0x31]
mov qword [rbp - 0x19], rax
mov ecx, 0xb9
lea r8d, [r9 + 0x28]
call sub.ntdll.dll_NtQuerySystemInformation
lea r11, [rsp + 0xd0]
mov eax, ebx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14005b24c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x80
and dword [rbp - 0x30], 0
lea rcx, [rbp + 0x38]
and dword [rbp - 0x2c], 0
xor eax, eax
and qword [rbp - 0x28], 0
mov rdi, rdx
mov qword [rbp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x14005b2fb
lea rdx, [0x14045992c]
lea rcx, [0x14043ee60]
call fcn.1400f3318
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jne 0x14005b2a8
mov ebx, 0x80004005
jmp 0x14005b2dc
lea rdx, [0x1404589c8]
lea rcx, [0x14043e190]
call fcn.1400f39cc
lea rdx, [0x140456cd0]
lea rcx, [0x140433118]
call fcn.1400f4dac
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
mov ecx, ebx
call fcn.14007ac40
lea rdx, [0x140453438]
lea rcx, [0x14043c7f0]
call fcn.1400f3d28
jmp 0x14005b3d0
test rdi, rdi
jne 0x14005b30c
mov ebx, 0x80070057
mov ecx, ebx
jmp 0x14005b3cb
lea rax, [0x140003b1c]
mov qword [rbp - 0x20], 3
mov qword [rbp - 0x18], rax
lea rdx, [rbp - 0x20]
xor r9d, r9d
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
mov ecx, 0xb9
lea rax, [rbp - 0x30]
mov qword [rbp - 8], rax
lea r8d, [r9 + 0x20]
call sub.ntdll.dll_NtQuerySystemInformation
mov ebx, dword [rbp + 0x20]
test ebx, ebx
js 0x14005b305
cmp dword [rbp - 0x2c], 0
jg 0x14005b385
lea rdx, [0x14045a3b0]
lea rcx, [0x140436150]
call fcn.1400f43c8
mov ebx, 0x8000ffff
mov ecx, ebx
call fcn.14007ac40
lea rdx, [0x140453680]
lea rcx, [0x140430378]
call fcn.1400f50fc
jmp 0x14005b3d0
mov rax, qword [rbp - 0x28]
lea rdx, [0x1404557e8]
lea rcx, [0x140444158]
mov rbx, qword [rax]
call fcn.1400f3318
lea rdx, [0x140459ca8]
lea rcx, [0x14043f0f0]
call fcn.1400f4a68
mov r8d, 0x7fffffff
mov rdx, rdi
mov rcx, rbx
call fcn.14006b1f0
mov ebx, eax
test eax, eax
jns 0x14005b3d0
mov ecx, eax
call fcn.14007ac40
cmp dword [0x140451890], 5
jbe 0x14005b468
lea rdx, [0x1404552e8]
lea rcx, [0x140431e00]
call fcn.1400f3670
movabs rdx, 0x400000000000
test qword [0x1404518a0], rdx
je 0x14005b468
mov rax, qword [0x1404518a8]
and rax, rdx
cmp rax, qword [0x1404518a8]
jne 0x14005b468
mov rcx, qword [rbp + 0x38]
call fcn.140079a88
lea rdx, [0x140455cc0]
mov qword [rbp - 0x40], rax
lea rcx, [0x14043bae0]
call fcn.1400f4710
lea rax, [rbp - 0x40]
mov dword [rbp + 0x30], ebx
mov qword [rsp + 0x30], rax
lea rdx, [0x1404451a3]
lea rax, [rbp + 0x30]
mov qword [rbp - 0x38], 0x1000000
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
call fcn.1400014e0
mov ecx, ebx
call fcn.14007ace8
lea rdx, [0x14045acf8]
lea rcx, [0x14043ffe0]
call fcn.1400f4080
xor edx, edx
lea rcx, [rbp - 0x30]
call fcn.14007a644
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x14005b4aa
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
add rsp, 0x80
pop rdi
pop rbx
pop rbp
ret