joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006c94
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r9d, r8d
jbe 0x140006cce
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp r10, rdx
ja 0x140006cc5
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140006cd0
inc r8d
add rax, 0x28
jmp 0x140006cac
xor eax, eax
ret

Function at 0x140006d45
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140079f20]
mov r8, rcx
mov rcx, r9
call sym._ValidateImageBase
test eax, eax
je 0x140006d71
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp sym._FindPESection
xor eax, eax
add rsp, 0x28
ret

Function at 0x14000ea80
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rbx
test rax, rax
jne 0x14000ead6
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rbx
mov qword [0x1400a0cc0], rax
lea rax, [sym.mingw_rand_s]
mov rcx, r12
mov qword [sym.init_rand_s], rax
add rsp, 0x28
pop rbx
pop r12
jmp rax

Function at 0x14000fad0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx], 0
mov rbx, rcx
jne 0x14000fb00
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14000faf7
mov rax, qword [rsp + 0x20]
mov qword [rbx], rax
jmp 0x14000fb00
mov qword [rbx], 0xffffffffffffffff
jmp 0x14000fb31
cmp qword [rbx], 0
jle 0x14000fb31
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x14000fb31
mov rax, qword [rbx]
mov ecx, 0x3e8
cqo
idiv rcx
mov rcx, rax
mov rax, qword [rsp + 0x28]
cqo
idiv rcx
jmp 0x14000fb39
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140010392
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x140072158], eax
inc eax
jne 0x1400103ac
call sym.abort
nop
add rsp, 0x28
ret
Function at 0x140010534
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
mov rbx, rcx
test rcx, rcx
je 0x1400105d2
call sym.pthread_spin_destroy
dec eax
jne 0x1400105cb
xor eax, eax
lea rdi, [rsp + 0x25]
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x4d]
mov ecx, 0x43
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x4c]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
mov edx, 0x27
lea rcx, [rsp + 0x25]
cmp byte [rcx + rdx], 0
mov eax, edx
je 0x1400105aa
inc rdx
cmp rdx, 0x6b
jne 0x140010597
jmp 0x1400105c0
cmp edx, 0x6a
je 0x1400105c0
inc eax
movsxd rdx, edx
cdqe
mov byte [rsp + rdx + 0x25], 0xa
mov byte [rsp + rax + 0x25], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x140072158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x140010797
call sym.pop_pthread_mem
cmp qword [sym.__dyn_tls_pthread], 0
mov rbx, rax
je 0x140010797
test rax, rax
je 0x140010797
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call sym.replace_spin_keys.constprop.0
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rsi
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rsi
mov r8, qword [rsp + 0x48]
lea r9, [rbx + 0x28]
mov rdx, r12
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x14001075b
call sym.abort
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x140072158]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
mov al, 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 0x140010756
mov r12, rbx
mov rax, r12
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
Function at 0x140010ee5
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push r13
push r12
push rbx
sub rsp, 0x28
test edx, edx
jne 0x140010f23
test r8, r8
jne 0x14001106d
mov rcx, qword [0x1400a0d00]
test rcx, rcx
je 0x14001106d
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov qword [0x1400a0d00], 0
jmp 0x14001106d
cmp edx, 1
jne 0x140010f46
lea rdx, [sym.SetThreadName_VEH]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov qword [0x1400a0d00], rax
jmp 0x14001106d
cmp edx, 3
jne 0x14001106d
mov ecx, dword [0x140072158]
cmp ecx, 0xffffffff
je 0x14001106d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x14001106d
test byte [rax + 0x40], 0x30
lea r13, [rax + 0x38]
lea r14, [rax + 0x68]
je 0x140010fe6
mov rcx, qword [rax + 0x1d8]
call sym._pthread_cleanup_dest
mov rcx, qword [r12 + 0x28]
test rcx, rcx
je 0x140010fbb
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x140010fa9
call rbx
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
mov rcx, r13
call sym.pthread_mutex_destroy
mov rcx, r14
call sym.replace_spin_keys.constprop.0
mov rcx, r12
call sym.push_pthread_mem
mov ecx, dword [0x140072158]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x14001106d
cmp dword [rax + 0xbc], 0
mov rcx, qword [rax + 0x30]
jne 0x140011049
test rcx, rcx
je 0x140010ffe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r12 + 0x30], 0
mov rcx, qword [r12 + 0x1d8]
mov dword [r12 + 0xbc], 1
call sym._pthread_cleanup_dest
test byte [r12 + 0x44], 4
je 0x14001105d
mov rcx, qword [r12 + 0x28]
mov dword [r12], 0xdeadbeef
test rcx, rcx
je 0x140010fb2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140010fb2
test rcx, rcx
je 0x140011054
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r12 + 0x30], 0
mov rcx, r13
call sym.pthread_mutex_destroy
mov rcx, r14
call sym.replace_spin_keys.constprop.0
mov eax, 1
add rsp, 0x28
pop rbx
pop r12
pop r13
pop r14
ret
Function at 0x14001107e
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push r12
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x20], rcx
call sym._fpreset
lea rcx, [0x140072148]
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x20]
lea r12, [rax + 0x38]
mov rcx, r12
call sym.pthread_mutex_lock
call sym._pthread_once_raw.constprop.0.isra.0
mov rdx, qword [rbp + 0x20]
mov ecx, dword [0x140072158]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rbx, qword [rbp + 0x20]
mov rcx, r12
mov dword [rbx + 0x70], eax
call sym.pthread_mutex_unlock
mov rax, qword [rbp + 0x20]
mov rdx, rbp
lea rcx, [rax + 0xd0]
call sym._setjmp
test eax, eax
jne 0x140011162
lea rcx, [0x140072148]
mov r12d, pe_nt_image_headers64
call sym.pthread_mutex_unlock
mov rax, qword [rbp + 0x20]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x14001111d
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rdx + 8]
call rax
mov r12, rax
nop
nop
lea rcx, [0x140072148]
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x20]
mov qword [rax + 8], r12
mov rcx, qword [rax + 0x1d8]
call sym._pthread_cleanup_dest
mov rax, qword [rbp + 0x20]
lea r12, [rax + 0x38]
mov rcx, r12
call sym.pthread_mutex_lock
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x30]
mov rbx, qword [rax + 8]
test rcx, rcx
jne 0x140011170
jmp 0x140011176
lea rcx, [0x140072148]
call sym.pthread_mutex_lock
jmp 0x14001113f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x20]
cmp qword [rax + 0x28], 0
mov qword [rax + 0x30], 0
jne 0x1400111bc
mov rax, qword [rbp + 0x20]
mov rcx, r12
mov dword [rax], 0xdeadbeef
call sym.pthread_mutex_unlock
mov rcx, r12
call sym.pthread_mutex_destroy
mov rcx, qword [rbp + 0x20]
call sym.push_pthread_mem
mov ecx, dword [0x140072158]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x1400111e2
mov rcx, r12
call sym.pthread_mutex_unlock
mov rcx, r12
call sym.pthread_mutex_destroy
mov rax, qword [rbp + 0x20]
mov qword [rax + 0x38], 0xffffffffffffffff
mov dword [rax + 0xbc], 1
lea r12, [0x140072148]
mov rcx, r12
call sym.pthread_mutex_unlock
test eax, eax
jne 0x1400111ff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400111e9
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__endthreadex]
nop
Function at 0x140011359
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r13, rcx
call sym.__pthread_self_lite
mov qword [rax + 8], r13
mov rcx, qword [rax + 0x1d8]
mov r12, rax
call sym._pthread_cleanup_dest
test byte [r12 + 0x40], 0x30
jne 0x140011397
lea rcx, [r12 + 0xd0]
mov edx, 1
call qword [sym.imp.msvcrt.dll_longjmp]
mov ecx, dword [0x140072158]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x140011437
cmp qword [rax + 0x28], 0
mov rcx, qword [rax + 0x30]
jne 0x1400113db
mov dword [rax], 0xdeadbeef
test rcx, rcx
je 0x1400113cb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r12 + 0x30], 0
mov r13d, dword [r12 + 8]
jmp 0x140011421
mov dword [rax + 0xbc], 1
mov r13d, dword [rax + 8]
test rcx, rcx
je 0x1400113f4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r12 + 0x30], 0
test byte [r12 + 0x44], 4
je 0x140011437
mov dword [r12], 0xdeadbeef
mov rcx, qword [r12 + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [r12 + 0x28], 0
mov rcx, r12
call sym.push_pthread_mem
mov ecx, dword [0x140072158]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, r13d
call qword [sym.imp.msvcrt.dll__endthreadex]
nop
Function at 0x14001167f
Capabilities:
Hijack thread execution

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x4f8
mov rsi, rcx
call sym.__pth_gpointer_locked
mov rbx, rax
test rax, rax
je 0x1400117f2
mov rcx, qword [rax + 0x28]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400117f2
lea r13, [rsp + 0x20]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x1400117f2
lea r12, [rbx + 0x38]
mov rcx, r12
call sym.pthread_mutex_lock
call sym.pthread_self
cmp rax, rsi
mov al, byte [rbx + 0x40]
jne 0x140011734
test al, 3
jne 0x140011747
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
lock inc dword [0x1400a0d48]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140011704
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [rbx + 0x44]
mov edx, eax
and edx, 3
cmp edx, 3
jne 0x140011820
and eax, 0xfffffffe
mov rcx, r12
mov dword [rbx + 0x44], eax
mov al, byte [rbx + 0x40]
and eax, 0xfffffff3
or eax, 4
mov byte [rbx + 0x40], al
call sym.pthread_mutex_unlock
call sym._pthread_invoke_cancel
mov edx, dword [rbx + 0x44]
and edx, 3
cmp edx, 3
jne 0x1400117f9
test al, 0xc
je 0x14001175e
mov rcx, r12
call sym.pthread_mutex_unlock
test byte [rbx + 0x40], 0xc
jne 0x1400117f2
jmp 0x140011828
test al, 0xf
jne 0x1400117f2
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x50], 0x100001
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor edx, edx
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140011820
mov rcx, qword [rbx + 0x28]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rax, [sym._pthread_invoke_cancel]
mov rcx, qword [rbx + 0x28]
mov rdx, r13
mov qword [rsp + 0x118], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov al, byte [rbx + 0x40]
and dword [rbx + 0x44], 0xfffffffe
and eax, 0xfffffff0
or eax, 5
mov byte [rbx + 0x40], al
lock inc dword [0x1400a0d48]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400117de
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, r12
call sym.pthread_mutex_unlock
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x140011820
mov eax, 3
jmp 0x14001182a
test al, 3
jne 0x140011747
and eax, 0xfffffffc
or eax, 1
mov byte [rbx + 0x40], al
lock inc dword [0x1400a0d48]
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140011820
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, r12
call sym.pthread_mutex_unlock
xor eax, eax
add rsp, 0x4f8
pop rbx
pop rsi
pop r12
pop r13
ret
Function at 0x140011838
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push r14
push r13
push r12
sub rsp, 0x20
lea r14, [0x140072148]
mov r13, rcx
mov rcx, r14
mov r12d, edx
call sym.pthread_mutex_lock
mov rcx, r13
call sym.__pthread_get_pointer
test rax, rax
je 0x140011889
cmp qword [rax + 0x1d8], r13
jne 0x140011889
test byte [rax + 0x40], 0xc
jne 0x140011889
cmp dword [rax + 0xbc], 0
jne 0x140011889
mov rax, qword [rax + 0x28]
dec rax
cmp rax, 0xfffffffffffffffd
jbe 0x140011899
mov rcx, r14
mov r12d, 3
call sym.pthread_mutex_unlock
jmp 0x1400118c8
mov rcx, r14
call sym.pthread_mutex_unlock
test r12d, r12d
je 0x1400118c8
sub r12d, 2
cmp r12d, 0x15
ja 0x1400118c2
mov rcx, r13
add rsp, 0x20
pop r12
pop r13
pop r14
jmp sym.pthread_cancel
mov r12d, 0x16
mov eax, r12d
add rsp, 0x20
pop r12
pop r13
pop r14
ret
Function at 0x140011a67
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov r13, rdx
mov rsi, r8
mov rdi, r9
call sym.pop_pthread_mem
mov r12, rax
mov eax, 0xb
test r12, r12
je 0x140011c7d
test rbx, rbx
je 0x140011aa6
mov rax, qword [r12 + 0x1d8]
mov qword [rbx], rax
mov dword [r12 + 0xbc], 0
mov dword [r12 + 0x44], 1
mov qword [r12 + 0x28], 0xffffffffffffffff
mov qword [r12 + 8], rdi
mov rdi, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [r12 + 0x10], rsi
xor esi, esi
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call rdi
mov qword [r12 + 0x30], rax
test rax, rax
jne 0x140011b06
mov eax, esi
neg eax
sbb ecx, ecx
inc esi
and ecx, 0x14
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 5
jne 0x140011ad7
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call sym.replace_spin_keys.constprop.0
cmp qword [r12 + 0x30], 0
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x140011bdf
xor esi, esi
test r13, r13
je 0x140011b79
mov eax, dword [r13]
mov rsi, qword [r13 + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
je 0x140011b6d
call sym.__pthread_self_lite
mov eax, dword [rax + 0xc0]
jmp 0x140011b71
mov eax, dword [r13 + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [sym.pthread_create_wrapper]
mov r9, r12
mov edx, esi
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov r13, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x140011bfd
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x140011bbb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call sym.pthread_mutex_destroy
mov rcx, r14
call sym.replace_spin_keys.constprop.0
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rbx, rbx
je 0x140011beb
mov qword [rbx], 0
mov rcx, r12
call sym.push_pthread_mem
mov eax, 0xb
jmp 0x140011c7d
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jl 0x140011c2d
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x140011c2d
mov edx, 0xf
cmp eax, 0xe
jg 0x140011c2d
mov edx, 2
cmp eax, edx
cmovle edx, eax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [r12 + 0x44], 4
mov rax, qword [sym.imp.KERNEL32.dll_ResumeThread]
je 0x140011c69
mov qword [r12 + 0x28], 0
mov rcx, r13
call rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140011c73
mov qword [r12 + 0x28], r13
mov rcx, r13
call rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret

Function at 0x1400176b0
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
or edx, 0xffffffff
test rax, rax
jle 0x1400176da
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x14004bcc0
Capabilities:
Read file on windows

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
mov rcx, rbx
call method.std::__basic_file_char_.fd__
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call sym.read
movsxd r12, eax
inc eax
jne 0x14004bcf9
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 4
je 0x14004bcd2
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
ret

Function at 0x1400581e0
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rbx, rcx
test rax, rax
je 0x140058200
mov rcx, qword [rcx]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
jmp rax
mov esi, 4
lea rdi, [rsp + 0x2c]
mov ecx, dword [rbx + 0x10]
mov r8d, esi
mov rdx, rdi
call sym.read
test eax, eax
jle 0x140058232
cdqe
add rdi, rax
sub rsi, rax
jne 0x14005820a
mov eax, dword [rsp + 0x2c]
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret
inc eax
je 0x140058242
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 4
je 0x14005820a
jmp 0x140058236
Function at 0x14003e510
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
mov qword [rax], 0
mov rax, qword [rsp + 8]
mov qword [rax + 8], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x6a09e667
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xbb67ae85
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x3c6ef372
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0xa54ff53a
mov eax, 4
imul rax, rax, 4
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x510e527f
mov eax, 4
imul rax, rax, 5
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x9b05688c
mov eax, 4
imul rax, rax, 6
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x1f83d9ab
mov eax, 4
imul rax, rax, 7
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x50], 0x5be0cd19
ret

Function at 0x14003fd10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x60], 0
je 0x14003fd2e
cmp qword [rsp + 0x68], 0
jne 0x14003fd35
xor eax, eax
jmp 0x14003fe61
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov dword [rsp], 0
jmp 0x14003fdd6
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x18]
cmp dword [rsp], eax
jae 0x14003fe5f
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
movzx edx, byte [rax]
cmp dl, byte [rax + rcx]
jne 0x14003fe1e
inc rax
test dl, dl
jne 0x14003fe0b
xor eax, eax
jmp 0x14003fe23
sbb eax, eax
or eax, 1
test eax, eax
jne 0x14003fe5a
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x38]
movzx eax, word [rcx + rax*2]
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
jmp 0x14003fe61
jmp 0x14003fdce
xor eax, eax
add rsp, 0x58
ret
Function at 0x140004160
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
lea rcx, str._s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s_s
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140004173
add rsp, 0x28
ret

Function at 0x140004230
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400f3010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ecx, reloc.WS2_32.dll_recv
call fcn.14006e3c0
lea rcx, [0x14013f692]
mov qword [rax], rcx
lea rcx, [0x140004180]
mov qword [rax + 8], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140004320]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400042df
cmp dword [rsp + 0x38], 0
jne 0x1400042aa
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x1400042cd
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14006e3a0
add rsp, 0x68
ret
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3