joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005d4b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x1400c00c8]
test ecx, ecx
je 0x14005d4df
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005d4f8
cmp byte [rax + 8], 0
je 0x14005d4f8
add rax, 9
jmp 0x14005d5a0
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14005d4d0
mov ecx, dword [0x1400c00c8]
test ecx, ecx
je 0x14005d581
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005d59e
mov rdi, rax
test rax, rax
jne 0x14005d55e
mov rax, qword [0x1400f14a8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005d5b7
mov rdi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x1400c00c8]
test ecx, ecx
je 0x14005d5a7
dec ecx
mov rdx, rdi
call fcn.1400bde3c
xor ecx, ecx
test rsi, rsi
je 0x14005d574
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rdi + 9]
mov byte [rdi + 8], 1
mov byte [rdi + 9], cl
jmp 0x14005d5a0
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005d513
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
jmp 0x14005d556
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2
Function at 0x14005d5d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1400c00e8]
test ecx, ecx
je 0x14005d6e0
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005d602
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14005d6da
mov ecx, dword [0x1400c00e8]
test ecx, ecx
je 0x14005d709
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005d726
mov rdi, rax
test rax, rax
jne 0x14005d68c
mov qword [rsp + 0x28], 0
lea rax, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400f14a8]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005d745
mov rdi, rax
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov ecx, dword [0x1400c00e8]
test ecx, ecx
je 0x14005d732
dec ecx
mov rdx, rdi
call fcn.1400bde3c
test rsi, rsi
je 0x14005d702
mov rax, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
je 0x14005d702
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x14005d6da
test rcx, rcx
je 0x14005d6da
lock dec qword [rcx]
jne 0x14005d6da
lea rcx, [rsp + 0x28]
call dbg.drop_slow<std::sync::mpmc::context::Inner, alloc::alloc::Global>
add rdi, 0x10
jmp 0x14005d728
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14005d5f4
jmp 0x14005d602
call sym.std::sync::mpmc::context::Context::new::hecdaf09487166125
jmp 0x14005d6a2
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005d621
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
jmp 0x14005d684
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x14005d770
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1400c0108]
test ecx, ecx
je 0x14005d886
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005d7a2
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14005d880
mov ecx, dword [0x1400c0108]
test ecx, ecx
je 0x14005d8a8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005d8c5
mov rdi, rax
test rax, rax
jne 0x14005d82c
mov qword [rsp + 0x28], 0
lea rax, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
mov qword [rsp + 0x20], rax
mov rax, qword [0x1400f14a8]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005d8e4
mov rdi, rax
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov ecx, dword [0x1400c0108]
test ecx, ecx
je 0x14005d8d1
dec ecx
mov rdx, rdi
call fcn.1400bde3c
test rsi, rsi
je 0x14005d846
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x14005d848
mov rax, qword [rsi + 8]
jmp 0x14005d848
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x14005d880
test rcx, rcx
je 0x14005d880
lock dec qword [rcx]
jne 0x14005d880
lea rcx, [rsp + 0x28]
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
add rdi, 0x10
jmp 0x14005d8c7
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14005d794
jmp 0x14005d7a2
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005d7c1
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
jmp 0x14005d824
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x14005d910
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1400c0128]
test ecx, ecx
je 0x14005d943
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14005d95c
mov rcx, rax
cmp qword [rax + 8], 0
je 0x14005d95c
add rcx, 0x10
jmp 0x14005da59
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14005d930
mov ecx, dword [0x1400c0128]
test ecx, ecx
je 0x14005da3a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005da57
mov rdi, rax
test rax, rax
jne 0x14005d9d2
mov rax, qword [0x1400f14a8]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005da76
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::Cell__u64__u64___
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1400c0128]
test ecx, ecx
je 0x14005da63
dec ecx
mov rdx, rdi
call fcn.1400bde3c
test rsi, rsi
je 0x14005d9ef
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x14005da24
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x14005da1f
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14005da24
call dbg.fallback_rng
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
jmp 0x14005da59
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005d97b
xor ecx, ecx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
jmp 0x14005d9ca
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x1400a4ac0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400a4b3a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x1400a4b30
cmp r11, r10
ja 0x1400a4bd3
cmp r10, rdx
ja 0x1400a4be7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400a4b32
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400a4b10
jmp 0x1400a4ba7
ja 0x1400a4b3a
mov r11, r10
cmp rax, r8
jne 0x1400a4ae2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400a4bab
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1400a4b80
mov r8, r10
sub ecx, r9d
jns 0x1400a4b9e
jmp 0x1400a4bad
cmp r10, rdx
je 0x1400a4bb9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400a4bad
xor al, 1
cmp r8, rdx
jne 0x1400a4b60
jmp 0x1400a4bad
xor eax, eax
jmp 0x1400a4bad
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valueassertion_failed:__buf.is_empty__
lea r8, [0x1400e42e8]
mov edx, 0x2b
call dbg.panic
ud2
lea r8, [0x1400e4300]
mov rcx, r11
mov rdx, r10
call dbg.slice_index_order_fail
ud2
lea r8, [0x1400e4300]
mov rcx, r10
call dbg.slice_end_index_len_fail
ud2
Function at 0x1400bec10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__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 sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400bec80
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140103294]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x1400bee10
mov rax, qword [0x140103298]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x1400beccc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x1400bed55
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x1400becb0
mov rcx, rdi
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x1400bee62
mov rax, qword [0x140103298]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140103298]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400bee45
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400bed4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400bedc0
add dword [0x140103294], 1
cmp ebx, 8
jae 0x1400bed81
test bl, 4
jne 0x1400bee20
test ebx, ebx
je 0x1400bed76
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x1400bee34
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x1400bed76
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x1400bed9a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x140103298]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400bed4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
xor esi, esi
jmp 0x1400becd7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x1400bed76
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x1400bed76
mov rax, qword [0x140103298]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call sym.__report_error
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x1400bf430
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140103300]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401032e0]
test rbx, rbx
je 0x1400bf484
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400bf47b
test rsi, rsi
je 0x1400bf47b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400bf460
lea rcx, [0x140103300]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400bf6d0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x1400bf6e0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x1400bf6f0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400bf731
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x1400bf728
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400bf733
add rax, 0x28
cmp rax, r9
jne 0x1400bf714
xor eax, eax
ret

Function at 0x1400bf7e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1400f13e0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400bf84f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400bf84f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x1400bf84d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x1400bf844
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400bf84f
add rdx, 0x28
cmp rdx, r9
jne 0x1400bf830
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x1400bf950
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x1400f13e0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x1400bf9bf
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400bf9bf
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x1400bf9bd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x1400bf9b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400bf9c4
add rax, 0x28
cmp rax, r9
jne 0x1400bf9a0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x1400bf9e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x1400f13e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x1400bfa53
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400bfa53
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1400bfa53
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400bfa53
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov rcx, r9
jb 0x1400bfa47
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x1400bfa60
add rdx, 0x28
cmp rdx, r10
jne 0x1400bfa33
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jne 0x1400bfa78
jmp 0x1400bfa50
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x1400bfa86
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400bfa50
test r8d, r8d
jg 0x1400bfa70
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x1400014a8
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x260
mov rsi, rcx
xor ebx, ebx
xor edx, edx
lea ecx, [rbx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400014d6
xor eax, eax
jmp 0x140001520
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rdi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x14000150b
lea rdx, [rsp + 0x4c]
mov rcx, rsi
call fcn.14008be58
test eax, eax
je 0x140001511
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400014ed
jmp 0x140001515
mov ebx, dword [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140007fc4
Capabilities:
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x60
and qword [rax - 0x30], 0
mov rsi, rdx
and qword [rax - 0x20], 0
lea rdx, str.ZwSetInformationFile
mov rbp, rcx
mov qword [rax - 0x18], 0xf
lea rcx, [rax - 0x30]
mov ebx, r9d
mov rdi, r8
call fcn.140003198
mov eax, dword [rsp + 0x90]
mov r9d, ebx
mov r8, rdi
mov dword [rsp + 0x20], eax
mov rdx, rsi
mov rcx, rbp
call sub.ntdll.dll_ZwSetInformationFile
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.14000837c
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140013430
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x90
mov rbx, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140013462
test rbx, rbx
je 0x14001346b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14001346b
add rsp, 0x90
pop rbx
ret
lea rdx, [0x1400c7fe0]
lea rcx, [rsp + 0x50]
call fcn.140012fdc
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140004a00
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140004710
lea rdx, [0x1400f1128]
lea rcx, [rsp + 0x38]
call fcn.140071378
int3

Function at 0x1400357a8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14001e01a
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14001dffd
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14001dfe8

Function at 0x140053150
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
je 0x14005316f
mov rax, rbx
add rsp, 0x20
pop rbx
ret
mov r9d, 0xc
lea r8, str.TLS_capacity_depleted
lea rcx, str.libslog_src_thread_specific.cpp
lea edx, [r9 + 0x1d]
call fcn.140063790
int3
Function at 0x140056c40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x60]
xor r15d, r15d
mov rax, qword [rsp + 0x68]
mov r13, rdx
mov r10, qword [rsp + 0x78]
mov qword [r14], r8
mov qword [r10], rax
mov rax, qword [r14]
cmp rax, r9
je 0x140056e06
mov r12, qword [rsp + 0x70]
lea r9d, [r15 + 1]
mov rsi, qword [r10]
mov r8d, 0x3ff
mov r11d, 0x2400
mov ebx, 0x2800
cmp rsi, r12
je 0x140056e06
movzx edx, word [r13]
xor bpl, bpl
movzx ecx, word [rax]
cmp r9w, dx
jae 0x140056cda
lea eax, [r11 + rcx]
cmp ax, r8w
ja 0x140056e26
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140056cf0
mov eax, ecx
add cx, bx
cmp cx, r8w
ja 0x140056cf0
shl eax, 0xa
mov bpl, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140056d03
movzx r8d, al
mov r11d, r15d
mov ebx, r15d
jmp 0x140056d4e
mov r8d, eax
cmp eax, 0x800
jae 0x140056d1d
shr r8d, 6
mov r11d, r9d
or r8b, 0xc0
mov ebx, r9d
jmp 0x140056d4e
cmp eax, 0x10000
jae 0x140056d37
shr r8d, 0xc
mov r11d, 2
or r8b, 0xe0
mov ebx, r11d
jmp 0x140056d4e
shr r8d, 0x12
mov r11d, 3
movzx ebx, bpl
or r8b, 0xf0
xor ebx, 1
add ebx, ebx
lea r9d, [rbx + 1]
mov rdi, r12
sub rdi, rsi
mov ecx, r9d
cmp rdi, rcx
jl 0x140056e06
test dx, dx
jne 0x140056d99
mov rcx, qword [rsp + 0x40]
test byte [rcx + 0x14], 2
je 0x140056d99
lea edx, [r9 + 3]
cmp rdi, rdx
jl 0x140056e06
mov byte [rsi], 0xef
inc qword [r10]
mov rcx, qword [r10]
mov byte [rcx], 0xbb
inc qword [r10]
mov rcx, qword [r10]
mov byte [rcx], 0xbf
inc qword [r10]
add qword [r14], 2
test bpl, bpl
jne 0x140056da8
cmp r11d, 3
jae 0x140056db4
mov rcx, qword [r10]
mov r9d, ebx
mov byte [rcx], r8b
inc qword [r10]
test r9d, r9d
je 0x140056de1
lea r8d, [r11 + r11*2]
add r8d, r8d
sub r8d, 6
mov edx, eax
mov ecx, r8d
dec r9d
shr edx, cl
mov rcx, qword [r10]
and dl, 0x3f
or dl, 0x80
mov byte [rcx], dl
inc qword [r10]
test r9d, r9d
jg 0x140056dc0
shr eax, 0xa
mov r9d, 1
test bpl, bpl
mov ecx, r9d
cmovne ecx, eax
mov word [r13], cx
mov rax, qword [r14]
cmp rax, qword [rsp + 0x58]
jne 0x140056c8f
mov rax, qword [rsp + 0x50]
cmp rax, qword [r14]
sete r15b
mov eax, r15d
mov rbx, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x48]
mov eax, 2
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14006c950
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov ecx, dword [0x140118718]
cmp ecx, 0xffffffff
je 0x14006c970
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x14006c98a
call fcn.14006dbe0
mov ecx, dword [0x140118718]
cmp ecx, 0xffffffff
jne 0x14006c984
xor eax, eax
jmp 0x14006c98a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rbx, [rax + 0x18]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14006b630
mov qword [rbx], rax
add rsp, 0x20
pop rbx
ret
Function at 0x14006d1c0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x140118718]
cmp ecx, 0xffffffff
je 0x14006d223
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14006d223
mov rcx, qword [rax + 0x28]
mov rdx, rcx
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x14006d208
cmp qword [rax + 0x20], rbx
jae 0x14006d1fc
mov rax, qword [rax + 0x10]
jmp 0x14006d202
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14006d1f0
cmp byte [rdx + 0x19], 0
jne 0x14006d223
cmp rbx, qword [rdx + 0x20]
jb 0x14006d223
cmp rdx, rcx
je 0x14006d223
lea rax, [rdx + 0x28]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret