joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400c4450]
mov dword [rax], 1
mov rax, qword [0x1400c4460]
mov dword [rax], 1
mov rax, qword [0x1400c4470]
mov dword [rax], 1
mov rax, qword [0x1400c4410]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001768
Capabilities:
Create process on windows
Terminate process

Disassembly:
push rbp
push rdi
sub rsp, 0xa8
lea rbp, [rsp + 0xa0]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
lea rdx, [rbp - 0x80]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x80], 0x70
lea rax, str.runas
mov qword [rbp - 0x70], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x68], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x78], 0
mov dword [rbp - 0x50], 1
lea rax, [rbp - 0x80]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
sete al
test al, al
je 0x140001867
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0x4c7
jne 0x140001825
lea rax, str.The_operation_was_cancelled_by_the_user.
mov rdx, rax
mov rax, qword [0x1400c3db0]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
jmp 0x14000185d
lea rax, str.Error_running_as_admin:
mov rdx, rax
mov rax, qword [0x1400c3db0]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov eax, dword [rbp - 4]
mov edx, eax
call method.std::ostream.operator___unsigned_long_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov ecx, 1
call sym.exit
nop
add rsp, 0xa8
pop rdi
pop rbp
ret
Function at 0x140001872
Capabilities:
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x40], 0
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x140001920
lea rax, str.Error_creating_registry_key:
mov rdx, rax
mov rax, qword [0x1400c3db0]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov eax, dword [rbp - 4]
mov edx, eax
call method.std::ostream.operator___long_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov eax, 0
jmp 0x1400019c9
mov rax, qword [rbp + 0x28]
mov rcx, rax
call sym.strlen
lea ecx, [rax + 1]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp + 0x20]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp + 0x28]
mov qword [rsp + 0x20], rcx
mov r9d, 1
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x1400019b4
lea rax, str.Error_setting_registry_value:
mov rdx, rax
mov rax, qword [0x1400c3db0]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov eax, dword [rbp - 4]
mov edx, eax
call method.std::ostream.operator___long_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 0
jmp 0x1400019c9
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 1
add rsp, 0x60
pop rbp
ret
Function at 0x1400019cf
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
sub rsp, 0x1a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x140], rcx
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0x1c
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
call rax
not eax
shr eax, 0x1f
test al, al
je 0x140001aa6
lea rax, [rbp + 0x10e]
mov qword [rbp + 0x118], rax
nop
nop
lea rcx, [rbp + 0x10e]
lea rdx, [rbp - 0x30]
lea rax, [rbp + 0xe0]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp - 0x50]
lea rdx, [rbp + 0xe0]
lea r8, str.ProgramscursorCursor.exe
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char_____char_const_
lea rax, [rbp + 0xe0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x10e]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
nop
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x140]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x140001b37
lea rax, [rbp + 0x10f]
mov qword [rbp + 0x110], rax
nop
nop
lea rdx, [rbp + 0x10f]
mov rax, qword [rbp + 0x140]
mov r8, rdx
lea rdx, [0x1400be0f3]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0x10f]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
jmp 0x140001b37
mov rax, qword [rbp + 0x140]
add rsp, 0x1a8
pop rbx
pop rbp
ret

Function at 0x140001b48
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xffffffff
je 0x140001b86
mov eax, dword [rbp - 4]
and eax, 0x10
test eax, eax
jne 0x140001b86
mov eax, 1
jmp 0x140001b8b
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x14000c3a0
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 0x14000d072
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400ef168]
test eax, eax
je 0x14000d10a
lea rax, [0x1400ef140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400ef170]
mov qword [rbp - 8], rax
jmp 0x14000d0ee
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 0x14000d0e2
cmp qword [rbp - 0x10], 0
je 0x14000d0e2
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 0x14000d0a8
lea rax, [0x1400ef140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000d10b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000d210
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 0x14000d238
mov eax, 0
jmp 0x14000d286
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 0x14000d261
mov eax, 0
jmp 0x14000d286
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 0x14000d281
mov eax, 0
jmp 0x14000d286
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000d28c
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 0x14000d30a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14000d301
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 0x14000d301
mov rax, qword [rbp - 8]
jmp 0x14000d31f
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 0x14000d2d4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140019419
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 0x140019534
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 0x14001944e
movzx eax, byte [rbp - 0x70]
and eax, 0x1e
test al, al
je 0x140019589
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 0x140019d44
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 [0x1400c43a0]
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 0x140019da8
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 0x14001a058
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 [0x1400c43a0]
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 0x14001a0fb
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 0x14001a117
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 [0x1400c43a0]
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 0x14001a15e
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 0x14001a30d
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [0x1400c43a0]
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 0x14001a346
mov rax, qword [rbp - 8]
jmp 0x14001a36e
mov ecx, 0x640
call sym.__MCF_malloc_0
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14001a362
mov eax, 0
jmp 0x14001a36e
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.__MCF_thread_attach_foreign
add rsp, 0x30
pop rbp
ret
Function at 0x14001bddd
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [0x1400ba230]
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 0x14001be63
cmp qword [rbp - 8], 0xffffffffffffff81
je 0x14001be63
mov rax, qword [rbp - 8]
add rax, 0x20
mov r8d, 0
mov edx, 0
mov rcx, rax
call sym.__MCF_dtor_queue_finalize
mov rax, qword [rbp - 8]
add rax, 0x618
mov rcx, rax
call sym.__MCF_tls_table_finalize
mov rax, qword [0x1400ba230]
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 0x14001be64
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14001c340
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
cmp ecx, 1
ja 0x14001c376
lock sub dword [rdx - 0x60], 1
jne 0x14001c370
mov rax, qword [rdx - 0x48]
lea rbx, [rdx + 0x40]
test rax, rax
je 0x14001c363
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 0x14001c4d0
Capabilities:
Write file on windows

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

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
mov edx, 1
mov rbx, rcx
lock cmpxchg qword [0x1400ba920], rdx
jne 0x14001cdd5
mov rax, qword [0x1400ba928]
mov r11, qword [rbx - 0x10]
lea r9, [rbx - 0x10]
test rax, rax
je 0x14001cd80
lea r8, [r9 + r11]
cmp r8, rax
jb 0x14001cd80
mov rdx, qword [rax + 8]
cmp rax, r8
je 0x14001cdb0
lea r10, [0x1400ba928]
test rdx, rdx
jne 0x14001cd43
jmp 0x14001cd5b
mov rcx, qword [rdx + 8]
lea r10, [rax + 8]
mov rax, rdx
test rcx, rcx
je 0x14001cd58
mov rdx, rcx
cmp rdx, r8
jb 0x14001cd30
cmp r8, rdx
jne 0x14001cd58
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 0x14001cda8
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 0x14001cd8b
mov qword [rbx - 8], rax
mov qword [0x1400ba928], r9
mov eax, 1
xor edx, edx
lock cmpxchg qword [0x1400ba920], rdx
jne 0x14001cdc4
add rsp, 0x20
pop rbx
ret
add rdx, r11
mov qword [rax], rdx
jmp 0x14001cd8b
add r11, qword [rax]
mov qword [rbx - 8], rdx
mov qword [rbx - 0x10], r11
mov qword [0x1400ba928], r9
jmp 0x14001cd8b
lea rcx, [0x1400ba920]
add rsp, 0x20
pop rbx
jmp sym._MCF_mutex_unlock_slow
xor edx, edx
lea rcx, [0x1400ba920]
call sym._MCF_mutex_lock_slow
jmp 0x14001ccee

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

Function at 0x14001e6e0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1400bd0d0], 0
jne 0x14001e7e3
mov byte [0x1400bd0d0], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x14001e7b8
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.ucrtbase.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 0x14001e7a9
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1400be321]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x1400b6f47
jmp 0x1400b6f3f
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x14001e777
mov ecx, 2
call qword [sym.imp.ucrtbase.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 0x1400b6f3a
mov ecx, 2
call qword [sym.imp.ucrtbase.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