joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a5170
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 [0x1400e60d8]
test ecx, ecx
je 0x1400a519f
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400a51b8
cmp byte [rax + 8], 0
je 0x1400a51b8
add rax, 9
jmp 0x1400a5260
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h7d7bf06adc6e12db
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400a5190
mov ecx, dword [0x1400e60d8]
test ecx, ecx
je 0x1400a5241
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400a525e
mov rdi, rax
test rax, rax
jne 0x1400a521e
mov rax, qword [str.1p2_]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400a5277
mov rdi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x1400e60d8]
test ecx, ecx
je 0x1400a5267
dec ecx
mov rdx, rdi
call fcn.1400e474c
xor ecx, ecx
test rsi, rsi
je 0x1400a5234
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 0x1400a5260
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h7d7bf06adc6e12db
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400a51d3
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::h7d7bf06adc6e12db
mov ecx, eax
jmp 0x1400a5216
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2
Function at 0x1400a5290
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 [0x1400e60f8]
test ecx, ecx
je 0x1400a538c
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400a52c2
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x1400a5386
mov ecx, dword [0x1400e60f8]
test ecx, ecx
je 0x1400a53b5
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400a53d2
mov rdi, rax
test rax, rax
jne 0x1400a5338
mov rax, qword [str.1p2_]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400a53f1
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1400e60f8]
test ecx, ecx
je 0x1400a53de
dec ecx
mov rdx, rdi
call fcn.1400e474c
test rsi, rsi
je 0x1400a53ae
mov rax, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
je 0x1400a53ae
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x1400a5386
test rcx, rcx
je 0x1400a5386
lock dec qword [rcx]
jne 0x1400a5386
lea rcx, [rsp + 0x30]
call dbg.drop_slow<std::sync::mpmc::context::Inner, alloc::alloc::Global>
add rdi, 0x10
jmp 0x1400a53d4
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::h7d7bf06adc6e12db
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400a52b4
jmp 0x1400a52c2
call sym.std::sync::mpmc::context::Context::new::h897acfebdbebe8ec
jmp 0x1400a534e
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::h7d7bf06adc6e12db
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400a52e1
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::h7d7bf06adc6e12db
mov ecx, eax
jmp 0x1400a5330
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x1400a5410
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 [0x1400e6118]
test ecx, ecx
je 0x1400a5512
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400a5442
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x1400a550c
mov ecx, dword [0x1400e6118]
test ecx, ecx
je 0x1400a5534
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400a5551
mov rdi, rax
test rax, rax
jne 0x1400a54b8
mov rax, qword [str.1p2_]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400a5570
mov rdi, rax
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 [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1400e6118]
test ecx, ecx
je 0x1400a555d
dec ecx
mov rdx, rdi
call fcn.1400e474c
test rsi, rsi
je 0x1400a54d2
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x1400a54d4
mov rax, qword [rsi + 8]
jmp 0x1400a54d4
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x30], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x1400a550c
test rcx, rcx
je 0x1400a550c
lock dec qword [rcx]
jne 0x1400a550c
lea rcx, [rsp + 0x30]
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
add rdi, 0x10
jmp 0x1400a5553
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::h7d7bf06adc6e12db
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400a5434
jmp 0x1400a5442
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::h7d7bf06adc6e12db
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400a5461
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::h7d7bf06adc6e12db
mov ecx, eax
jmp 0x1400a54b0
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x1400a5590
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 [0x1400e6138]
test ecx, ecx
je 0x1400a55c3
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x1400a55dc
mov rcx, rax
cmp qword [rax + 8], 0
je 0x1400a55dc
add rcx, 0x10
jmp 0x1400a56d9
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h7d7bf06adc6e12db
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x1400a55b0
mov ecx, dword [0x1400e6138]
test ecx, ecx
je 0x1400a56ba
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x1400a56d7
mov rdi, rax
test rax, rax
jne 0x1400a5652
mov rax, qword [str.1p2_]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400a56f6
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::Cell__usize__bool___
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1400e6138]
test ecx, ecx
je 0x1400a56e3
dec ecx
mov rdx, rdi
call fcn.1400e474c
test rsi, rsi
je 0x1400a566f
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x1400a56a4
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 0x1400a569f
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400a56a4
call dbg.fallback_rng
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
jmp 0x1400a56d9
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h7d7bf06adc6e12db
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x1400a55fb
xor ecx, ecx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h7d7bf06adc6e12db
mov ecx, eax
jmp 0x1400a564a
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x1400d9a20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400d9a9a
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 0x1400d9a90
cmp r11, r10
ja 0x1400d9b33
cmp r10, rdx
ja 0x1400d9b47
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400d9a92
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400d9a70
jmp 0x1400d9b07
ja 0x1400d9a9a
mov r11, r10
cmp rax, r8
jne 0x1400d9a42
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400d9b0b
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 0x1400d9ae0
mov r8, r10
sub ecx, r9d
jns 0x1400d9afe
jmp 0x1400d9b0d
cmp r10, rdx
je 0x1400d9b19
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400d9b0d
xor al, 1
cmp r8, rdx
jne 0x1400d9ac0
jmp 0x1400d9b0d
xor eax, eax
jmp 0x1400d9b0d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140305be1]
lea r8, [0x140307a50]
mov edx, 0x2b
call dbg.panic
ud2
lea r8, str._z0_
mov rcx, r11
mov rdx, r10
call dbg.slice_index_order_fail
ud2
lea r8, str._z0_
mov rcx, r10
call dbg.slice_end_index_len_fail
ud2
Function at 0x1400e5190
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400e5200
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140327274]
mov rbx, rcx
test esi, esi
jle 0x1400e5330
mov rax, qword [0x140327278]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400e524b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400e52d5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400e5230
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400e5352
mov rax, qword [0x140327278]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140327278]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400e5337
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400e52ce
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400e52e0
add dword [0x140327274], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140327278]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400e52ce
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400e5258
mov rax, qword [0x140327278]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400e58e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1403272e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1403272c0]
test rbx, rbx
je 0x1400e593c
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400e5933
test eax, eax
jne 0x1400e5933
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400e5918
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400e5b50
Capabilities:
Parse pe header

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

Function at 0x1400e5b80
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400e5bcd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400e5bc4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400e5bcf
add rax, 0x28
cmp rax, r9
jne 0x1400e5bb0
xor eax, eax
ret

Function at 0x1400e5bd0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400e5c60
mov rdx, qword [0x140312920]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400e5c4e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400e5c4e
cmp word [rax + 0x18], 0x20b
jne 0x1400e5c4e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400e5c60
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400e5c39
add rbx, 0x28
cmp rbx, rdi
je 0x1400e5c60
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400e5c30
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x140312920]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400e5c90
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400e5c98
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400e5c90
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400e5ced
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400e5ce4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400e5c90
add rax, 0x28
cmp rax, r9
jne 0x1400e5cd0
xor eax, eax
ret

Function at 0x1400e5cf0
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x140312920]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400e5d50
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400e5d58
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400e5d50
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400e5da0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400e5d97
test rcx, rcx
je 0x1400e5d50
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400e5d88
xor eax, eax
ret

Function at 0x1400e5db0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140312920]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400e5e10
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400e5e18
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400e5e10
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400e5e10
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400e5e64
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400e5e70
add rdx, 0x28
cmp rdx, r9
jne 0x1400e5e50
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140312920]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400e5ea2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400e5eb0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400e5ea2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400e5ea2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400e5ea2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400e5f05
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400e5f18
add rdx, 0x28
cmp r10, rdx
jne 0x1400e5ef0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400e5f27
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400e5f37
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400e5f0e
test ecx, ecx
jg 0x1400e5f20
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14071a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14071a1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14071a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14071a06f
add dl, dl
jne 0x14071a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14071a0f6
xor eax, eax
add dl, dl
jne 0x14071a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14071a1ad
add dl, dl
jne 0x14071a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14071a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14071a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14071a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14071a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14071a07e
mov eax, 1
add dl, dl
jne 0x14071a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14071a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14071a0fb
sub eax, ebx
mov ebx, 1
jne 0x14071a14c
mov ecx, 1
add dl, dl
jne 0x14071a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14071a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14071a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14071a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14071a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14071a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14071a15d
cmp eax, 0x7d00
jae 0x14071a19b
cmp eax, 0x500
jb 0x14071a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14071a07e
cmp eax, 0x7f
ja 0x14071a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14071a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14071a1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14071a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140005880
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x1400058c2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x1400058ca
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x1400058db
jmp 0x1400058f2
xor r10d, r10d
jmp 0x14000597d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x1400058f2
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140005909
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140005929
add r11, r8
jmp 0x140005a5a
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x1400059f2
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x1400059a0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x140005a10
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x140005a22
jmp 0x140005a3c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x140005a3c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x140005a56
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret