joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bef0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x14000cbc2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140100168]
test eax, eax
je 0x14000cc5a
lea rax, [0x140100140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140100170]
mov qword [rbp - 8], rax
jmp 0x14000cc3e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14000cc32
cmp qword [rbp - 0x10], 0
je 0x14000cc32
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000cbf8
lea rax, [0x140100140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000cc5b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000cd60
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14000cd88
mov eax, 0
jmp 0x14000cdd6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000cdb1
mov eax, 0
jmp 0x14000cdd6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14000cdd1
mov eax, 0
jmp 0x14000cdd6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000cddc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000ce5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000ce51
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14000ce51
mov rax, qword [rbp - 8]
jmp 0x14000ce6f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14000ce24
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140019249
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
lea rax, [rbp - 0x70]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rax, qword [rax]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x20]
mov qword [rax], rdx
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x78], rax
movzx eax, byte [rbp - 0x78]
and eax, 0xfffffffe
mov byte [rbp - 0x78], al
movzx eax, byte [rbp - 0x70]
shr al, 1
and eax, 0xf
mov edx, eax
movzx eax, byte [rbp - 0x70]
shr al, 1
and eax, 0xf
sub eax, 1
and eax, edx
and eax, 0xf
and eax, 0xf
lea edx, [rax + rax]
movzx eax, byte [rbp - 0x78]
and eax, 0xffffffe1
or eax, edx
mov byte [rbp - 0x78], al
mov rax, qword [rbp - 0x70]
shr rax, 9
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x58], 1
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x58]
cmp rdx, rax
cmovbe rax, rdx
mov qword [rbp - 8], rax
mov rax, qword [rbp - 0x70]
shr rax, 9
sub rax, qword [rbp - 8]
movabs rdx, 0x7fffffffffffff
and rax, rdx
shl rax, 9
mov rdx, rax
mov rax, qword [rbp - 0x78]
and eax, 0x1ff
or rax, rdx
mov qword [rbp - 0x78], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x78]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x30]
mov rax, qword [rax]
mov qword [rbp - 0x80], rax
mov rax, qword [rbp - 0x38]
mov rax, qword [rax]
mov qword [rbp - 0x40], rax
mov rcx, qword [rbp - 0x40]
mov r8, qword [rbp - 0x28]
lea rdx, [rbp - 0x80]
mov rax, qword [rdx]
lock cmpxchg qword [r8], rcx
mov rcx, rax
sete al
test al, al
jne 0x140019364
mov qword [rdx], rcx
mov byte [rbp - 0x41], al
mov rdx, qword [rbp - 0x80]
mov rax, qword [rbp - 0x30]
mov qword [rax], rdx
movzx eax, byte [rbp - 0x41]
xor eax, 1
test al, al
jne 0x14001927e
movzx eax, byte [rbp - 0x70]
and eax, 0x1e
test al, al
je 0x1400193b9
movzx eax, byte [rbp - 0x70]
shr al, 1
and eax, 0xf
movzx edx, al
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.do_spin_byte_ptr
mov qword [rbp - 0x60], rax
mov byte [rbp - 0x61], 1
movzx eax, byte [rbp - 0x61]
movzx edx, al
mov rax, qword [rbp - 0x60]
mov byte [rax], dl
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.__MCF_batch_release_common
nop
add rsp, 0xa0
pop rbp
ret
Function at 0x140019b74
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
call sym._MCF_thread_self_tid
mov edx, eax
mov rax, qword [rbp - 8]
add rax, 4
mov qword [rbp - 0x10], rax
mov dword [rbp - 0x14], edx
mov edx, dword [rbp - 0x14]
mov rax, qword [rbp - 0x10]
mov dword [rax], edx
fninit
mov rax, qword [0x1400d2470]
mov rax, qword [rax]
mov eax, dword [rax + 0xc]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x140019bd8
lea rax, str.do_win32_thread_thunk
mov rcx, rax
call sym.__MCF_runtime_failure
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rcx, rax
call rdx
mov eax, 0
add rsp, 0x40
pop rbp
ret
Function at 0x140019e88
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax]
test eax, eax
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 4]
test eax, eax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 8]
test rax, rax
mov rax, qword [0x1400d2470]
mov rax, qword [rax]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
test rax, rax
call sym._MCF_thread_self_tid
mov rdx, qword [rbp + 0x10]
mov dword [rdx + 4], eax
mov rax, qword [rbp + 0x10]
add rax, 8
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, 0xffffffffffffffff
mov rdx, 0xfffffffffffffffe
mov rcx, 0xffffffffffffffff
mov rax, qword [sym.imp.ntdll.dll_NtDuplicateObject]
call rax
test eax, eax
jns 0x140019f2b
lea rax, str.__MCF_thread_attach_foreign
mov rcx, rax
call sym.__MCF_runtime_failure
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 8]
test rax, rax
jne 0x140019f47
lea rax, str.__MCF_thread_attach_foreign
mov rcx, rax
call sym.__MCF_runtime_failure
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 1
mov edx, dword [rbp - 0xc]
mov rax, qword [rbp - 8]
mov dword [rax], edx
mov rax, qword [0x1400d2470]
mov rax, qword [rax]
mov eax, dword [rax + 0xc]
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x140019f8e
lea rax, str.__MCF_thread_attach_foreign
mov rcx, rax
call sym.__MCF_runtime_failure
mov rax, qword [rbp + 0x10]
add rsp, 0x50
pop rbp
ret

Function at 0x14001a13d
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [0x1400d2470]
mov rax, qword [rax]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
setne al
movzx eax, al
test eax, eax
je 0x14001a176
mov rax, qword [rbp - 8]
jmp 0x14001a19e
mov ecx, 0x640
call sym.__MCF_malloc_0
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14001a192
mov eax, 0
jmp 0x14001a19e
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.__MCF_thread_attach_foreign
add rsp, 0x30
pop rbp
ret

Function at 0x14001a753
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov rax, qword [0x1400d2470]
mov rax, qword [rax]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x14001a7c3
jmp 0x14001a7a2
mov rax, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x30]
mov qword [rbp - 0x10], rdx
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
mov rcx, rax
call rdx
nop
mov rax, qword [rbp - 8]
lea rdx, [rax + 0x20]
mov rcx, qword [rbp + 0x10]
lea rax, [rbp - 0x30]
mov r8, rcx
mov rcx, rax
call sym.__MCF_dtor_queue_pop
test eax, eax
je 0x14001a784
jmp 0x14001a7c4
nop
add rsp, 0x50
pop rbp
ret
Function at 0x14001be83
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov rax, qword [0x1400c8230]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
je 0x14001c01f
cmp qword [rbp - 8], 0xffffffffffffff81
je 0x14001c022
jmp 0x14001bedd
mov rax, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x50]
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
mov rcx, rax
call rdx
nop
mov rax, qword [rbp - 8]
lea rdx, [rax + 0x20]
lea rax, [rbp - 0x50]
mov r8d, 0
mov rcx, rax
call sym.__MCF_dtor_queue_pop
test eax, eax
je 0x14001bebf
jmp 0x14001bfe1
mov rax, qword [rbp - 8]
lea r8, [rax + 0x618]
lea rcx, [rbp - 0x70]
mov rax, qword [r8]
mov rdx, qword [r8 + 8]
mov qword [rcx], rax
mov qword [rcx + 8], rdx
mov rax, qword [r8 + 0x10]
mov qword [rcx + 0x10], rax
mov rax, qword [rbp - 8]
add rax, 0x618
pxor xmm0, xmm0
movups xmmword [rax], xmm0
movq qword [rax + 0x10], xmm0
jmp 0x14001bfc4
mov rax, qword [rbp - 0x68]
sub rax, 0x10
mov qword [rbp - 0x68], rax
mov rax, qword [rbp - 0x68]
mov rax, qword [rax]
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x14001bfc3
mov rax, qword [rbp - 0x68]
mov rax, qword [rax + 8]
test rax, rax
je 0x14001bfb5
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
test rax, rax
je 0x14001bfb5
mov rax, qword [rbp - 0x10]
add rax, 4
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
movzx eax, byte [rax]
test al, al
jne 0x14001bfb5
mov rax, qword [rbp - 0x68]
mov rax, qword [rax + 8]
mov rdx, qword [rbp - 0x10]
mov rdx, qword [rdx + 8]
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
mov rcx, rax
call rdx
nop
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sym._MCF_tls_key_drop_ref_nonnull
jmp 0x14001bfc4
nop
mov rdx, qword [rbp - 0x70]
mov rax, qword [rbp - 0x68]
cmp rdx, rax
jne 0x14001bf40
mov rax, qword [rbp - 0x70]
mov rcx, rax
call sym.__MCF_mfree
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x618]
test rax, rax
jne 0x14001bf00
mov rax, qword [0x1400c8230]
mov eax, dword [rax + 0xc]
mov rdx, 0xffffffffffffff81
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sym._MCF_thread_drop_ref_nonnull
jmp 0x14001c023
nop
jmp 0x14001c023
nop
add rsp, 0x90
pop rbp
ret

Function at 0x14001c4b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
cmp ecx, 1
ja 0x14001c4e6
lock sub dword [rdx - 0x60], 1
jne 0x14001c4e0
mov rax, qword [rdx - 0x48]
lea rbx, [rdx + 0x40]
test rax, rax
je 0x14001c4d3
mov rcx, rbx
call rax
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp sym.__cxa_free_exception
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rdx - 0x38]
call method.__cxxabiv1.__terminate_void______
nop

Function at 0x14001c640
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
call rcx
nop
jmp method.__cxxabiv1.__terminate_void________clone_.cold_
Function at 0x14001ce40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
mov edx, 1
mov rbx, rcx
lock cmpxchg qword [0x1400c8920], rdx
jne 0x14001cf45
mov rax, qword [0x1400c8928]
mov r11, qword [rbx - 0x10]
lea r9, [rbx - 0x10]
test rax, rax
je 0x14001cef0
lea r8, [r9 + r11]
cmp r8, rax
jb 0x14001cef0
mov rdx, qword [rax + 8]
cmp rax, r8
je 0x14001cf20
lea r10, [0x1400c8928]
test rdx, rdx
jne 0x14001ceb3
jmp 0x14001cecb
mov rcx, qword [rdx + 8]
lea r10, [rax + 8]
mov rax, rdx
test rcx, rcx
je 0x14001cec8
mov rdx, rcx
cmp rdx, r8
jb 0x14001cea0
cmp r8, rdx
jne 0x14001cec8
mov rdx, qword [r8 + 8]
add r11, qword [r8]
mov qword [rax + 8], rdx
mov rax, qword [r10]
mov rdx, qword [rax]
lea rcx, [rax + rdx]
cmp r9, rcx
je 0x14001cf18
mov rax, qword [rax + 8]
mov qword [rbx - 0x10], r11
mov qword [rbx - 8], rax
mov rax, qword [r10]
mov qword [rax + 8], r9
jmp 0x14001cefb
mov qword [rbx - 8], rax
mov qword [0x1400c8928], r9
mov eax, 1
xor edx, edx
lock cmpxchg qword [0x1400c8920], rdx
jne 0x14001cf34
add rsp, 0x20
pop rbx
ret
add rdx, r11
mov qword [rax], rdx
jmp 0x14001cefb
add r11, qword [rax]
mov qword [rbx - 8], rdx
mov qword [rbx - 0x10], r11
mov qword [0x1400c8928], r9
jmp 0x14001cefb
lea rcx, [0x1400c8920]
add rsp, 0x20
pop rbx
jmp sym._MCF_mutex_unlock_slow
xor edx, edx
lea rcx, [0x1400c8920]
call sym._MCF_mutex_lock_slow
jmp 0x14001ce5e

Function at 0x14001dc70
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 0x14001dc9c
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x14001e800
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400cb0d0], 0
jne 0x14001e903
mov byte [0x1400cb0d0], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x14001e8d8
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 [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___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 0x14001e8c9
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1400cc3d1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x1400c5287
jmp 0x1400c527f
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x14001e897
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___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
nop
jmp 0x1400c527a
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___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
nop
nop
nop
Function at 0x14007de90
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.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 0x14007ded8
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007deaa
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140090990
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 0x1400909b8
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.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 0x140090a00
cdqe
add rsi, rax
sub rbx, rax
jne 0x1400909d0
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x140090a0c
call rbp
cmp dword [rax], 4
je 0x1400909d0
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 0x1400a0530
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
xor edx, edx
test eax, eax
cmovs eax, edx
add rsp, 0x58
ret

Function at 0x1400a18c0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov rcx, rdx
test rdx, rdx
js 0x1400a18d8
add rsp, 0x28
jmp sym.operator_new_unsigned_long_long_
call method.std.__throw_bad_alloc__
nop
nop
nop

Function at 0x1400a4630
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
movabs rcx, 0x3fffffffffffffff
mov rax, qword [rdx]
cmp rcx, rax
jb 0x1400a468b
lea r9, [rax + 1]
cmp r8, rax
jae 0x1400a4669
add r8, r8
cmp rax, r8
jae 0x1400a4669
cmp rcx, r8
jae 0x1400a4678
movabs r9, 0x4000000000000000
mov qword [rdx], rcx
mov rcx, r9
add rsp, 0x28
jmp sym.operator_new_unsigned_long_long_
lea r9, [r8 + 1]
mov qword [rdx], r8
mov rcx, r9
add rsp, 0x28
jmp sym.operator_new_unsigned_long_long_
lea rcx, [0x1400cd830]
call method.std.__throw_length_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1400a5e80
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
mov rax, rdx
shr rax, 0x3e
jne 0x1400a5ea0
lea rcx, [rdx + rdx]
add rsp, 0x28
jmp sym.operator_new_unsigned_long_long_
test rdx, rdx
js 0x1400a5eb0
call method.std.__throw_bad_alloc__
nop word [rax + rax]
call method.std.__throw_bad_array_new_length__
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400a84b0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x28
movabs rax, 0x1fffffffffffffff
mov rcx, qword [rdx]
cmp rax, rcx
jb 0x1400a8511
cmp r8, rcx
jb 0x1400a84e0
add rcx, 1
add rcx, rcx
add rsp, 0x28
jmp sym.operator_new_unsigned_long_long_
add r8, r8
cmp rcx, r8
jae 0x1400a84cb
cmp rax, r8
jae 0x1400a8508
movabs rcx, 0x4000000000000000
mov qword [rdx], rax
add rsp, 0x28
jmp sym.operator_new_unsigned_long_long_
mov qword [rdx], r8
lea rcx, [r8 + 1]
jmp 0x1400a84cf
lea rcx, str.basic_string::_M_create
call method.std.__throw_length_error_char_const_
nop
nop
nop

Function at 0x1400c4750
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov eax, 1
test rcx, rcx
cmovne rax, rcx
mov rbx, rax
mov rcx, rbx
call sym.malloc
test rax, rax
je 0x1400c4777
add rsp, 0x20
pop rbx
ret
call method.std.get_new_handler__
test rax, rax
je sym.operator_new_unsigned_long_long___clone_cold_
call rax
jmp 0x1400c4764

Function at 0x1400c4910
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400c4935
call sym.__cxa_begin_catch
movabs rax, 0xb8b1aabcbcd4d500
add rax, qword [rbx]
cmp rax, 1
jbe 0x1400c493a
call method.std.terminate__
mov rcx, qword [rbx - 0x38]
call method.__cxxabiv1.__terminate_void______
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1400c4950
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rbx, rcx
call sym.__cxa_begin_catch
mov rax, qword [rbx - 0x10]
mov rcx, qword [rbx - 0x40]
mov rbp, qword [rbx - 0x18]
movsxd rsi, dword [rbx - 0x24]
mov qword [rsp + 0x30], rax
mov rdi, qword [rbx - 0x38]
call method.__cxxabiv1.__unexpected_void______
mov rcx, rax
jmp sym.__cxa_call_unexpected.cold

Function at 0x1400c4a50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, qword [0x1400c8930]
mov rdx, qword [0x1400c8938]
add rdx, rax
cmp rcx, rdx
jae 0x1400c4a70
cmp rax, rcx
jae 0x1400c4a70
jmp sym._anonymous_namespace_::pool::free_void___clone_constprop0_
jmp sym.free

Function at 0x1400c4a80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, qword [0x1400c8930]
mov rdx, qword [0x1400c8938]
add rdx, rax
sub rcx, 0xa0
cmp rcx, rdx
jae 0x1400c4ab0
cmp rax, rcx
jae 0x1400c4ab0
jmp sym._anonymous_namespace_::pool::free_void___clone_constprop0_
jmp sym.free
Function at 0x1400c4ef0
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
pxor xmm0, xmm0
lea rcx, str.GLIBCXX_TUNABLES
mov qword [0x1400c8920], 0
mov qword [0x1400c8938], 0
movabs rdi, 0x2e78786362696c67
movabs r12, 0x6c6f6f705f68652e
movups xmmword [0x1400c8928], xmm0
call sym.getenv
mov dword [rsp + 0x40], 0
mov rbx, rax
lea rax, str.obj_size
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], rax
lea rax, str.obj_count
mov qword [rsp + 0x48], 9
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], 0x100
test rbx, rbx
jne 0x1400c4f9d
jmp 0x1400c5044
mov rcx, rbx
mov edx, 0x3a
call sym.strchr
mov rbx, rax
test rax, rax
je 0x1400c5000
xor eax, eax
cmp byte [rbx], 0x3a
sete al
add rbx, rax
cmp qword [rbx], rdi
jne 0x1400c4f88
cmp qword [rbx + 7], r12
jne 0x1400c4f88
cmp byte [rbx + 0xf], 0x2e
jne 0x1400c4f88
add rbx, 0x10
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x60]
mov rsi, qword [rbp]
mov rcx, qword [rbp + 8]
test rsi, rsi
je 0x1400c4fe3
mov r8, rsi
mov rdx, rbx
call sym.memcmp
test eax, eax
jne 0x1400c4fed
cmp byte [rbx + rsi], 0x3d
je 0x1400c507a
add rbp, 0x18
cmp rbp, r13
jne 0x1400c4fc7
jmp 0x1400c4f88
mov eax, dword [rsp + 0x58]
mov edx, 0x1000
mov ecx, 6
cmp eax, edx
cmovle edx, eax
mov eax, dword [rsp + 0x40]
test eax, eax
cmove eax, ecx
movsxd rbx, eax
movsxd rax, edx
add rbx, 0x26
imul rbx, rax
shl rbx, 3
mov qword [0x1400c8938], rbx
jne 0x1400c5054
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov qword [0x1400c8938], 0x16000
mov ebx, 0x16000
mov rcx, rbx
call sym.malloc
mov qword [0x1400c8930], rax
test rax, rax
je 0x1400c50b1
xor edx, edx
mov qword [0x1400c8928], rax
mov qword [rax], rbx
mov qword [rax + 8], rdx
jmp 0x1400c5037
lea rdx, [rsp + 0x28]
lea rcx, [rbx + rsi + 1]
xor r8d, r8d
call sym.strtoul
mov rbx, qword [rsp + 0x28]
movzx edx, byte [rbx]
cmp dl, 0x3a
je 0x1400c50a1
test dl, dl
jne 0x1400c4f88
test eax, eax
js 0x1400c4f88
mov dword [rbp + 0x10], eax
jmp 0x1400c4f88
xor ecx, ecx
mov qword [0x1400c8938], rcx
jmp 0x1400c5037

Function at 0x1400c50c0
Capabilities:
Write file on windows

Disassembly:
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1400c50d0
Capabilities:
Write file on windows

Disassembly:
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1400c50e0
Capabilities:
Write file on windows

Disassembly:
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1400c50f0
Capabilities:
Write file on windows

Disassembly:
call sym.abort
call sym.__cxa_begin_catch
call method.std.terminate__
nop