joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000aba0
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 0x14000ac10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400e30c4]
mov rbx, rcx
test esi, esi
jle 0x14000ad40
mov rax, qword [0x1400e30c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000ac5b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000ace5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000ac40
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14000ad62
mov rax, qword [0x1400e30c8]
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 [0x1400e30c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000ad47
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000acde
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000acf0
add dword [0x1400e30c4], 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 [0x1400e30c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000acde
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 0x14000ac68
mov rax, qword [0x1400e30c8]
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 0x14000b2d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400e3120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e3100]
test rbx, rbx
je 0x14000b32c
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 0x14000b323
test rsi, rsi
je 0x14000b323
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b308
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 0x14000b540
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000b558
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000b560
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000b570
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 0x14000b5bd
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 0x14000b5b4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000b5bf
add rax, 0x28
cmp rax, r9
jne 0x14000b5a0
xor eax, eax
ret

Function at 0x14000b5c0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14000b650
mov rdx, qword [0x1400bd2f0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000b63e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000b63e
cmp word [rax + 0x18], 0x20b
jne 0x14000b63e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14000b650
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14000b629
add rbx, 0x28
cmp rbx, rdi
je 0x14000b650
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14000b620
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 0x14000b660
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000b6e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400bd2f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000b6ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000b708
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000b6ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x14000b720
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400bd2f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14000b740
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14000b748
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000b740
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14000b790
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000b787
test rcx, rcx
je 0x14000b740
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14000b778
xor eax, eax
ret

Function at 0x14000b7a0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1400bd2f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000b800
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000b808
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b800
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x14000b800
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 0x14000b854
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000b860
add rdx, 0x28
cmp r9, rdx
jne 0x14000b840
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400bd2f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14000b892
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14000b8a0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b892
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14000b892
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14000b892
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 0x14000b8f5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14000b908
add rdx, 0x28
cmp rdx, r10
jne 0x14000b8e0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000b917
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000b927
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000b8fe
test ecx, ecx
jg 0x14000b910
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x14000b9f0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14000ba20
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp dbg.__mingwthr_key_dtor
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x14000ba60
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x14000ba90
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000baa8
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x14000c450
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x1400e31a0], 0xffffffff
mov r8d, 0xffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x1400e31a8], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14000c4a0
lea rdx, [0x14000c360]
mov ecx, eax
mov dword [0x1400e3198], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x14000c4a8
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000c497
call sym.abort
nop
nop
Function at 0x14000c4b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1400bc710]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x14000c4e8
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14000c550
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x14000c560
mov esi, dword [0x1400e3198]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x14000c5d0
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x14000c618
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x14000c4d7
mov rcx, rbx
call fcn.14000c3b0
mov qword [rsi + r12*8 + 8], rax
jmp 0x14000c4d7
call fcn.14000c3b0
mov qword [rbx + 0x10], rax
jmp 0x14000c4d7
mov r10d, dword [rsi]
test r10d, r10d
je 0x14000c67a
mov r9d, dword [0x1400b4040]
test r9d, r9d
je 0x14000c6a8
lock add dword [0x1400e31a0], 1
jne 0x14000c6dc
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x14000c687
mov eax, dword [rsi]
test eax, eax
je 0x14000c4f1
lock sub dword [0x1400e31a0], 1
js 0x14000c4f1
mov rcx, qword [0x1400e31a8]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x14000c4f1
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sym.calloc
mov rsi, rax
test rax, rax
je 0x14000c703
mov qword [rax], rdi
mov ecx, dword [0x1400e3198]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14000c52b
call r13
jmp 0x14000c52b
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sym.realloc
mov rsi, rax
test rax, rax
je 0x14000c703
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sym.memset
jmp 0x14000c5f3
call fcn.14000c450
mov dword [0x1400b4040], 1
mov edx, dword [rsi]
test edx, edx
jne 0x14000c57c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x14000c4f1
mov rax, qword [0x1400e3190]
lea r12, [rax + 1]
mov qword [0x1400e3190], r12
mov qword [rbx + 0x10], r12
jmp 0x14000c597
lock add dword [0x1400b4044], 1
je 0x14000c661
mov r8d, dword [0x1400b4040]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x1400b4040]
test r8d, r8d
jne 0x14000c670
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x14000c6d0
jmp 0x14000c670
mov rcx, qword [0x1400e31a8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000c58a
lock sub dword [0x1400e31a0], 1
jmp 0x14000c58a
call sym.abort
nop
nop dword [rax]
Function at 0x140014ec0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rsi
test rax, rax
je 0x140014f08
mov rcx, rbx
mov qword [dbg.init_rand_s], rax
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rsi
mov qword [0x1400e3ca0], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x140014eee

Function at 0x140017490
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x1400174bc
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1400180f0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400b6f50], 0
jne 0x1400181f6
mov byte [0x1400b6f50], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x1400181cc
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [dbg.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x1400181bd
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1400b8c31]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x1400181b8
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x140018187
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x14001828b
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x1400181f1
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x1400181f1
Function at 0x140078450
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140078498
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007846a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14008c0b0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x14008c0d8
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x14008c120
cdqe
add rsi, rax
sub rbx, rax
jne 0x14008c0f0
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14008c12c
call rbp
cmp dword [rax], 4
je 0x14008c0f0
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop

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

Disassembly:
lea rcx, [0x1400b6f80]
jmp sym.__emutls_get_address

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

Disassembly:
lea rcx, [0x1400b6f80]
jmp sym.__emutls_get_address
Function at 0x180001960
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x18001b008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov byte [rsp + 0x70], 0
mov byte [rsp + 0x71], 0
mov byte [rsp + 0x72], 0
mov byte [rsp + 0x73], 0
mov byte [rsp + 0x74], 0
mov byte [rsp + 0x75], 5
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x180001a20
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x180001a15
mov dword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov al, byte [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180013f90
add rsp, 0x88
ret

Function at 0x180004f14
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x38], 0xfffffffffffffffe
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
call fcn.1800051d0
nop
lea rcx, [rsp + 0x30]
call fcn.180006a40
nop
lea rcx, [rsp + 0x40]
call fcn.18000487c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x20], 0x10
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
and ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0x10
je 0x180004f83
jmp 0x180004f9c
lea rcx, [rsp + 0x40]
call fcn.18000487c
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.180006b38
jmp 0x180004fae
lea rcx, [rsp + 0x40]
call fcn.18000487c
mov rcx, rax
call fcn.180006ab0
mov rax, qword [rsp + 0x70]
mov dword [rax + 0x18], 0x21
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x30]
call fcn.180006a98
nop
lea rcx, [rsp + 0x40]
call fcn.1800050fc
mov eax, dword [rsp + 0x2c]
add rsp, 0x58
ret

Function at 0x180006160
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rcx, qword [rsp + 0x58]
call fcn.180005230
mov dword [rsp + 0x30], eax
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1800061b3
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1800061b3
jmp 0x1800061e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8d, dword [rsp + 0x30]
mov edx, 0x23
mov rcx, qword [rsp + 0x60]
call fcn.180005e40
mov eax, 0x1f
jmp 0x1800061f0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x21
add rsp, 0x48
ret
Function at 0x180006ab0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
jne 0x180006ac8
mov eax, 0xffffffff
jmp 0x180006aee
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
jne 0x180006ae2
mov dword [rsp + 0x20], 0
jmp 0x180006aea
mov dword [rsp + 0x20], 0xffffffff
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x180006af4
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
jne 0x180006b0c
mov eax, 0xffffffff
jmp 0x180006b32
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp eax, 1
jne 0x180006b26
mov dword [rsp + 0x20], 0
jmp 0x180006b2e
mov dword [rsp + 0x20], 0xffffffff
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x180006bd4
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x3b0
mov rax, qword [0x18001b008]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
lea rax, [rsp + 0x290]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
cmp qword [rsp + 0x3c8], 0
jne 0x180006c2b
mov eax, 0xffffffff
jmp 0x180006db9
mov dword [rsp + 0x20], 0
lea r8, [0x180016210]
mov rdx, qword [rsp + 0x3c8]
lea rcx, [rsp + 0x290]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
jne 0x180006c69
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov eax, 0xffffffff
jmp 0x180006db9
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x290]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x180006c9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov eax, 0xffffffff
jmp 0x180006db9
mov dword [rsp + 0x24], 1
jmp 0x180006cbb
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 1
jne 0x180006dac
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea rax, str.................
mov qword [rsp + 0x38], rax
mov r8d, 1
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x180006d0e
mov r8d, 2
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x180006d10
jmp 0x180006ca7
lea rax, [rsp + 0x180]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x3c8]
lea rcx, [rsp + 0x180]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
jne 0x180006d49
jmp 0x180006ca7
lea rcx, [rsp + 0x180]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x180006d84
movzx eax, byte [rsp + 0x3d0]
test eax, eax
je 0x180006d84
mov r8, qword [rsp + 0x3d8]
lea rdx, [rsp + 0x180]
mov rcx, qword [rsp + 0x3c0]
call fcn.180006ba4
mov rax, qword [rsp + 0x3d8]
mov rax, qword [rax]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x180]
mov rcx, qword [rsp + 0x3d8]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x180006ca7
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.180013f90
add rsp, 0x3b0
pop rdi
ret