joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e4b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400df900]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000e4d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000e4d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000e4d0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000e52d
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 0x14000e524
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000e4d0
add rax, 0x28
cmp rax, r9
jne 0x14000e510
xor eax, eax
ret

Function at 0x14000e530
Capabilities:
Parse pe header

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

Function at 0x14000e5f0
Capabilities:
Parse pe header

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

Function at 0x14000f500
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, str._buffer_overflow_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14000f530
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x14000f550
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, str._stack_smashing_detected_:_terminated_n
call sub.msvcrt.dll__write
mov ecx, 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
test eax, eax
je 0x14000f580
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14001aa90
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x14010d020], 1
je 0x14001ab08
lea rdi, [0x14010d020]
mov rcx, rdi
call fcn.14001a410
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.140019d10
mov esi, dword [0x14010d020]
test esi, esi
jne 0x14001ab18
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400d5308], eax
cmp eax, 0xffffffff
je 0x1400d4096
mov dword [0x14010d020], 1
mov rcx, rbp
call fcn.140019fe0
test rbx, rbx
je 0x14001ab08
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001a710
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14001aae8
mov ecx, 2
call qword [fcn.140017e90]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001aae8
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [0x28]
ud2

Function at 0x14001ab40
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call fcn.14001a820
mov rbx, rax
test rax, rax
je 0x14001ac3c
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.14001a300
cmp eax, 1
je 0x14001ac48
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400d409c
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400d5308]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400d409c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.14001a680
nop
nop

Function at 0x14001ac50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001aa90
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001ac70
add rsp, 0x28
ret
add rsp, 0x28
jmp fcn.14001ab40
Function at 0x14001b420
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, qword [0x1400dfa00]
mov rax, qword [rbp]
mov qword [rsp + 0x38], rax
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x14001b568
cmp eax, 1
je 0x14001b48d
call fcn.14001a410
lea r12, [rax + 8]
mov rdi, rax
mov rcx, r12
call fcn.140019d10
mov r13d, dword [rbx]
test r13d, r13d
je 0x14001b4b0
cmp r13d, 1
jne 0x14001b540
mov rcx, r12
call fcn.140019fe0
test rdi, rdi
je 0x14001b48d
mov rcx, rdi
call fcn.14001a710
xor eax, eax
mov rdx, qword [rsp + 0x38]
sub rdx, qword [rbp]
jne 0x14001b5bb
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x14001a7f0]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14001aa90
mov ecx, dword [0x1400d5308]
mov r13, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r13
test rax, rax
je 0x14001b5a8
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
mfence
call fcn.14001aa90
mov ecx, dword [0x1400d5308]
call r13
test rax, rax
je 0x14001b590
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
mfence
call rsi
call fcn.14001aa90
mov ecx, dword [0x1400d5308]
call r13
test rax, rax
je 0x14001b578
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x14001b478
mov ecx, 2
call qword [fcn.140017e90]
mov r9d, r13d
mov r8, rbx
lea rdx, str._once__p_is__ld_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x14001b478
mov eax, 0x16
jmp 0x14001b48f
call fcn.14001ab40
test rax, rax
jne 0x14001b523
jmp 0x1400d40ce
call fcn.14001ab40
test rax, rax
jne 0x14001b502
jmp 0x1400d40bf
call fcn.14001ab40
test rax, rax
jne 0x14001b4df
jmp 0x1400d40b5
call fcn.14000f550
nop
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2

Function at 0x14001b840
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.14001aa90
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001b8b8
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14001a310
cmp esi, dword [rbx + 0x48]
jae 0x14001b893
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14001b893
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14001a360
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14001ab40
mov rbx, rax
jmp 0x14001b86d
Function at 0x14001b8d0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14001aa90
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001b9d0
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.14001a310
cmp esi, dword [rbx + 0x48]
jae 0x14001b950
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.14001a360
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x14001b9dd
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x14001b9dd
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x14001b91f
call fcn.14001ab40
mov rbx, rax
jmp 0x14001b90a
mov rcx, r13
call fcn.14001a360
mov eax, 0xc
jmp 0x14001b93d

Function at 0x14001ba60
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001aa90
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001ba88
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001ab40
test rax, rax
jne 0x14001ba7a
add rsp, 0x28
ret

Function at 0x14001baf0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001aa90
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001bb18
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001ab40
test rax, rax
jne 0x14001bb0a
jmp 0x14001bb0e

Function at 0x14001bc30
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14010d028]
test eax, eax
jne 0x14001bc48
xor eax, eax
add rsp, 0x28
ret
call fcn.14001aa90
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001bc78
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001bc3e
test byte [rax + 0x40], 3
je 0x14001bc3e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001bc40
call fcn.14001ab40
test rax, rax
jne 0x14001bc5e
jmp 0x14001bc3e

Function at 0x14001bc90
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001aa90
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001bcd0
test ebx, ebx
jle 0x14001bcc0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.14001ab40
test rax, rax
jne 0x14001bcad
add rsp, 0x20
pop rbx
ret
Function at 0x14001bdc0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001aa90
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001be38
test byte [rbx + 0x40], 0xc
jne 0x14001bdef
mov eax, dword [0x14010d028]
test eax, eax
jne 0x14001be00
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140019d10
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001be23
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001be23
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001be4c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140019fe0
call fcn.14001ab40
mov rbx, rax
test rax, rax
jne 0x14001bddf
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001be6a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140019fe0
call fcn.14001bce0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001bef0
call fcn.1400199d0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001bf28
call fcn.14001aa90
mov ecx, dword [0x1400d5308]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001bf80
test esi, esi
je 0x14001bf06
call fcn.14001bdc0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001bf60
mov edx, edi
call fcn.140019aa0
call fcn.14001bdc0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001aa90
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001bf70
call fcn.14001bdc0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001bdc0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001aa90
mov ecx, dword [0x1400d5308]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001bec5
call fcn.14001ab40
mov rbx, rax
jmp 0x14001bec5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001bede
call fcn.14001ab40
jmp 0x14001bf06
call fcn.14001ab40
mov rbx, rax
jmp 0x14001bec1
Function at 0x14001be80
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001aa90
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001be38
test byte [rbx + 0x40], 0xc
jne 0x14001bdef
mov eax, dword [0x14010d028]
test eax, eax
jne 0x14001be00
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.140019d10
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001be23
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001be23
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001be4c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140019fe0
call fcn.14001ab40
mov rbx, rax
test rax, rax
jne 0x14001bddf
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001be6a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140019fe0
call fcn.14001bce0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001bef0
call fcn.1400199d0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001bf28
call fcn.14001aa90
mov ecx, dword [0x1400d5308]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001bf80
test esi, esi
je 0x14001bf06
call fcn.14001bdc0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001bf60
mov edx, edi
call fcn.140019aa0
call fcn.14001bdc0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001aa90
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001bf70
call fcn.14001bdc0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001bdc0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001aa90
mov ecx, dword [0x1400d5308]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14001bec5
call fcn.14001ab40
mov rbx, rax
jmp 0x14001bec5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001bede
call fcn.14001ab40
jmp 0x14001bf06
call fcn.14001ab40
mov rbx, rax
jmp 0x14001bec1

Function at 0x14001bf90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001aa90
mov ecx, dword [0x1400d5308]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001c000
test esi, esi
je 0x14001bfe0
call fcn.14001bdc0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c010
mov edx, esi
call fcn.140019aa0
call fcn.14001bdc0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001bdc0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001bdc0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001ab40
mov rbx, rax
jmp 0x14001bfb1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001bfca
Function at 0x140088160
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, qword [sym.imp.msvcrt.dll__read]
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, rdi
call fcn.140087f70
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call rbp
movsxd r13, eax
cmp eax, 0xffffffff
je 0x1400881b0
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
call r12
cmp dword [rax], 4
je 0x140088183
mov rax, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x14009c560
Capabilities:
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbp, qword [0x1400dfa00]
mov rax, qword [rbp]
mov qword [rsp + 0x28], rax
mov rax, qword [rcx + 8]
mov r13, rcx
test rax, rax
je 0x14009c5b0
mov rdx, qword [rsp + 0x28]
sub rdx, qword [rbp]
jne 0x14009c634
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp rax
mov rdi, qword [sym.imp.msvcrt.dll__read]
mov ebx, 4
lea rsi, [rsp + 0x24]
mov r12, qword [sym.imp.msvcrt.dll__errno]
nop dword [rax + rax]
mov ecx, dword [r13 + 0x10]
mov r8d, ebx
mov rdx, rsi
call rdi
test eax, eax
jle 0x14009c610
cdqe
add rsi, rax
sub rbx, rax
jne 0x14009c5d0
mov eax, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x28]
sub rdx, qword [rbp]
jne 0x14009c634
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
cmp eax, 0xffffffff
jne 0x14009c61d
call r12
cmp dword [rax], 4
je 0x14009c5d0
mov rax, qword [rsp + 0x28]
sub rax, qword [rbp]
jne 0x14009c634
lea rcx, str.random_device_could_not_be_read
call fcn.1400d3770
call fcn.14000f550
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400a8f60
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0x80000000
mov dword [rbp - 0x18], 0x7fffffff
mov qword [rbp - 8], 0
jmp 0x1400a8ff2
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov eax, dword [rax + rdx*4]
and eax, 0x80000000
mov ecx, eax
mov rax, qword [rbp - 8]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x7fffffff
or eax, ecx
mov dword [rbp - 0x24], eax
mov rax, qword [rbp - 8]
lea rdx, [rax + 0x18d]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
mov edx, dword [rbp - 0x24]
shr edx, 1
xor edx, eax
mov eax, dword [rbp - 0x24]
and eax, 1
test eax, eax
je 0x1400a8fd9
mov eax, 0x9908b0df
jmp 0x1400a8fde
mov eax, 0
xor eax, edx
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov dword [rax + rdx*4], ecx
add qword [rbp - 8], 1
cmp qword [rbp - 8], 0xe2
jbe 0x1400a8f84
mov qword [rbp - 0x10], 0xe3
jmp 0x1400a9074
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x80000000
mov ecx, eax
mov rax, qword [rbp - 0x10]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
and eax, 0x7fffffff
or eax, ecx
mov dword [rbp - 0x20], eax
mov rax, qword [rbp - 0x10]
lea rdx, [rax - 0xe3]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
mov edx, dword [rbp - 0x20]
shr edx, 1
xor edx, eax
mov eax, dword [rbp - 0x20]
and eax, 1
test eax, eax
je 0x1400a905b
mov eax, 0x9908b0df
jmp 0x1400a9060
mov eax, 0
xor eax, edx
mov ecx, eax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 0x10]
mov dword [rax + rdx*4], ecx
add qword [rbp - 0x10], 1
cmp qword [rbp - 0x10], 0x26e
jbe 0x1400a9006
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x9bc]
and eax, 0x80000000
mov edx, eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax]
and eax, 0x7fffffff
or eax, edx
mov dword [rbp - 0x1c], eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x630]
mov edx, dword [rbp - 0x1c]
shr edx, 1
xor edx, eax
mov eax, dword [rbp - 0x1c]
and eax, 1
test eax, eax
je 0x1400a90c1
mov eax, 0x9908b0df
jmp 0x1400a90c6
mov eax, 0
xor edx, eax
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x9bc], edx
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x9c0], 0
nop
add rsp, 0x30
pop rbp
ret
Function at 0x1400a90f0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov eax, dword [rbp + 0x18]
mov ecx, eax
call fcn.1400c6a50
mov rdx, qword [rbp + 0x10]
mov dword [rdx], eax
mov qword [rbp - 8], 1
jmp 0x1400a9168
mov rax, qword [rbp - 8]
lea rdx, [rax - 1]
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + rdx*4]
mov dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
shr eax, 0x1e
xor dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
imul eax, eax, 0x6c078965
mov dword [rbp - 0xc], eax
mov rax, qword [rbp - 8]
mov ecx, eax
call fcn.1400c6a80
add dword [rbp - 0xc], eax
mov eax, dword [rbp - 0xc]
mov ecx, eax
call fcn.1400c6a50
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp - 8]
mov dword [rdx + rcx*4], eax
add qword [rbp - 8], 1
cmp qword [rbp - 8], 0x26f
jbe 0x1400a9119
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x9c0], 0x270
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400a91c0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x9c0]
cmp rax, 0x26f
jbe 0x1400a91eb
mov rax, qword [rbp + 0x10]
mov rcx, rax
call fcn.1400a8f60
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x9c0]
lea rcx, [rax + 1]
mov rdx, qword [rbp + 0x10]
mov qword [rdx + 0x9c0], rcx
mov rdx, qword [rbp + 0x10]
mov eax, dword [rdx + rax*4]
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shr eax, 0xb
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shl eax, 7
and eax, 0x9d2c5680
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shl eax, 0xf
and eax, 0xefc60000
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
shr eax, 0x12
xor dword [rbp - 4], eax
mov eax, dword [rbp - 4]
add rsp, 0x30
pop rbp
ret
Function at 0x18000387c
Capabilities:
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18011a100]
xor rax, rsp
mov qword [rsp + 0x50], rax
xorps xmm1, xmm1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor eax, eax
mov rbx, rcx
mov qword [rcx + 0x10], rax
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm1
movups xmmword [rsp + 0x30], xmm1
movups xmmword [rsp + 0x40], xmm1
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov dword [rbx], eax
mov eax, dword [rsp + 0x48]
mov dword [rbx + 4], eax
mov rax, qword [rsp + 0x28]
mov qword [rbx + 8], rax
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x10], rax
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180059c00
add rsp, 0x60
pop rbx
ret