joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005b960
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 [0x1400be0d8]
test ecx, ecx
je 0x14005ba70
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005b992
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14005ba6a
mov ecx, dword [0x1400be0d8]
test ecx, ecx
je 0x14005ba99
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005bab6
mov rdi, rax
test rax, rax
jne 0x14005ba1c
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 [0x1400edd48]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005bad5
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 [0x1400be0d8]
test ecx, ecx
je 0x14005bac2
dec ecx
mov rdx, rdi
call fcn.1400bbcd4
test rsi, rsi
je 0x14005ba92
mov rax, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
je 0x14005ba92
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 0x14005ba6a
test rcx, rcx
je 0x14005ba6a
lock dec qword [rcx]
jne 0x14005ba6a
lea rcx, [rsp + 0x28]
call dbg.drop_slow<std::sync::mpmc::context::Inner, alloc::alloc::Global>
add rdi, 0x10
jmp 0x14005bab8
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::hf708679f60708267
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005b984
jmp 0x14005b992
call sym.std::sync::mpmc::context::Context::new::h9c58b1fd9ec3e954
jmp 0x14005ba32
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::hf708679f60708267
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005b9b1
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::hf708679f60708267
mov ecx, eax
jmp 0x14005ba14
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x14005bb00
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 [0x1400be0f8]
test ecx, ecx
je 0x14005bc16
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005bb32
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14005bc10
mov ecx, dword [0x1400be0f8]
test ecx, ecx
je 0x14005bc38
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005bc55
mov rdi, rax
test rax, rax
jne 0x14005bbbc
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 [0x1400edd48]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005bc74
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 [0x1400be0f8]
test ecx, ecx
je 0x14005bc61
dec ecx
mov rdx, rdi
call fcn.1400bbcd4
test rsi, rsi
je 0x14005bbd6
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x14005bbd8
mov rax, qword [rsi + 8]
jmp 0x14005bbd8
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 0x14005bc10
test rcx, rcx
je 0x14005bc10
lock dec qword [rcx]
jne 0x14005bc10
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 0x14005bc57
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::hf708679f60708267
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005bb24
jmp 0x14005bb32
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::hf708679f60708267
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005bb51
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::hf708679f60708267
mov ecx, eax
jmp 0x14005bbb4
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x14005bca0
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 [0x1400be118]
test ecx, ecx
je 0x14005bcd3
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005bcec
mov rcx, rax
cmp qword [rax + 8], 0
je 0x14005bcec
add rcx, 0x10
jmp 0x14005bde9
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::hf708679f60708267
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005bcc0
mov ecx, dword [0x1400be118]
test ecx, ecx
je 0x14005bdca
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005bde7
mov rdi, rax
test rax, rax
jne 0x14005bd62
mov rax, qword [0x1400edd48]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005be06
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 [0x1400be118]
test ecx, ecx
je 0x14005bdf3
dec ecx
mov rdx, rdi
call fcn.1400bbcd4
test rsi, rsi
je 0x14005bd7f
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x14005bdb4
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 0x14005bdaf
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14005bdb4
call dbg.fallback_rng
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
jmp 0x14005bde9
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::hf708679f60708267
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005bd0b
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::hf708679f60708267
mov ecx, eax
jmp 0x14005bd5a
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x1400a2b60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400a2bda
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 0x1400a2bd0
cmp r11, r10
ja 0x1400a2c73
cmp r10, rdx
ja 0x1400a2c87
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400a2bd2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400a2bb0
jmp 0x1400a2c47
ja 0x1400a2bda
mov r11, r10
cmp rax, r8
jne 0x1400a2b82
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400a2c4b
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 0x1400a2c20
mov r8, r10
sub ecx, r9d
jns 0x1400a2c3e
jmp 0x1400a2c4d
cmp r10, rdx
je 0x1400a2c59
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400a2c4d
xor al, 1
cmp r8, rdx
jne 0x1400a2c00
jmp 0x1400a2c4d
xor eax, eax
jmp 0x1400a2c4d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400df2b1]
lea r8, [0x1400e1620]
mov edx, 0x2b
call dbg.panic
ud2
lea r8, [0x1400e1638]
mov rcx, r11
mov rdx, r10
call dbg.slice_index_order_fail
ud2
lea r8, [0x1400e1638]
mov rcx, r10
call dbg.slice_end_index_len_fail
ud2
Function at 0x1400adab0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
mov byte [rsp + 0x23], r8b
mov r14, rdx
mov rsi, rcx
mov rax, rdx
shld rax, rcx, 0x3f
mov r8, rdx
shr r8, 1
add r8, rax
adc r8, 0
movabs r10, 0xcccccccccccccccd
mov rax, r8
mul r10
mov rcx, qword [rsp + 0x150]
xor r13d, r13d
cmp rsi, 0xa
mov rax, r14
sbb rax, 0
movabs r11, 0xcccccccccccccccc
mov byte [rsp + 0x24], r9b
jb 0x1400adbd2
shr rdx, 2
lea rax, [rdx + rdx*4]
sub r8, rax
mov eax, esi
and eax, 1
lea rax, [rax + r8*2]
test rax, rax
jne 0x1400adbd2
xor r13d, r13d
nop
mov r9, r14
mov rdi, rsi
mov rsi, r14
shld rsi, rdi, 0x3f
shr r14, 1
mov r8, rsi
add r8, r14
adc r8, 0
mov rax, r8
mul r10
shr rdx, 2
lea rax, [rdx + rdx*4]
sub r8, rax
sub rsi, r8
sbb r14, 0
mov r8, rsi
imul r8, r11
mov rax, rsi
mul r10
add rdx, r8
imul r14, r10
add r14, rdx
inc r13
mov rdx, r14
mov rsi, rax
shld rdx, rax, 0x3f
mov r8, r14
shr r8, 1
add r8, rdx
adc r8, 0
mov rax, r8
mul r10
cmp rdi, 0x64
sbb r9, 0
jb 0x1400adbd2
shr rdx, 2
lea rax, [rdx + rdx*4]
sub r8, rax
mov eax, esi
and eax, 1
lea rax, [rax + r8*2]
test rax, rax
je 0x1400adb40
cmp qword [rcx + 0x10], 0
je 0x1400adc5c
mov r15, qword [rcx + 0x18]
cmp rsi, 0xa
mov rax, r14
sbb rax, 0
jb 0x1400adc63
xor ebx, ebx
mov r12d, 0x63
mov rdi, rsi
mov rcx, r14
mov rbp, r14
nop
mov r8, rcx
shld r8, rdi, 0x3f
shr rbp, 1
mov r9, r8
add r9, rbp
adc r9, 0
mov rax, r9
mul r10
shr rdx, 2
lea rax, [rdx + rdx*4]
sub r9, rax
sub r8, r9
sbb rbp, 0
mov r9, r8
imul r9, r11
mov rax, r8
mul r10
add rdx, r9
imul rbp, r10
add rbp, rdx
inc rbx
cmp r12, rdi
mov edx, 0
sbb rdx, rcx
mov rdi, rax
mov rcx, rbp
jb 0x1400adc00
jmp 0x1400adc65
xor edi, edi
jmp 0x1400add8b
xor ebx, ebx
xor eax, eax
mov rdi, r15
sub rdi, rbx
cmovb rdi, rax
mov r9, rbx
sub r9, r15
cmovb r9, rax
cmp r9, 2
jb 0x1400adcf9
add r9, r13
cmp rbx, r15
mov r12, r15
cmovb r12, rbx
not r12
add r12, rbx
mov rcx, qword [rsp + 0x150]
nop dword [rax]
shrd rsi, r14, 1
shr r14, 1
mov r8, rsi
add r8, r14
adc r8, 0
mov rax, r8
mul r10
shr rdx, 2
lea rax, [rdx + rdx*4]
sub r8, rax
sub rsi, r8
sbb r14, 0
mov r8, rsi
imul r8, r11
mov rax, rsi
mul r10
add rdx, r8
imul r14, r10
add r14, rdx
mov rsi, rax
dec r12
jne 0x1400adca0
dec r9
mov r13, r9
cmp rbx, r15
ja 0x1400add0a
jmp 0x1400add8b
mov rcx, qword [rsp + 0x150]
cmp rbx, r15
jbe 0x1400add8b
mov r8, r14
shld r8, rsi, 0x3f
mov rbx, r14
shr rbx, 1
mov r9, r8
add r9, rbx
adc r9, 0
mov rax, r9
mul r10
shr rdx, 2
lea rax, [rdx + rdx*4]
sub r9, rax
sub r8, r9
sbb rbx, 0
imul r11, r8
mov rax, r8
mul r10
mov r8, rax
mov r9, rdx
add r9, r11
imul rbx, r10
lea rax, [r9 + rbx]
lea r10, [rax + rax*4]
mov edx, 0xa
mov rax, r8
mul rdx
lea rdx, [rdx + r10*2]
sub rsi, rax
sbb r14, rdx
inc r13
xor eax, eax
mov edx, 4
cmp rdx, rsi
sbb rax, r14
adc r8, 0
adc rbx, r9
mov rsi, r8
mov r14, rbx
cmp rsi, 0x64
mov rax, r14
sbb rax, 0
jb 0x1400ade42
mov qword [rsp + 0x28], rdi
xor ebx, ebx
lea r12, [rsp + 0x30]
lea r15, [0x1400e07cc]
mov edi, 0x270f
nop word cs:[rax + rax]
mov ebx, 0x28
mov rax, r13
cmp rsi, 9
jbe 0x1400ade78
Function at 0x1400bcac0
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 0x1400bcb30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400ff2b4]
mov rbx, rcx
test esi, esi
jle 0x1400bcc60
mov rax, qword [0x1400ff2b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400bcb7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400bcc05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400bcb60
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400bcc82
mov rax, qword [0x1400ff2b8]
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 [0x1400ff2b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400bcc67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400bcbfe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400bcc10
add dword [0x1400ff2b4], 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 [0x1400ff2b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400bcbfe
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 0x1400bcb88
mov rax, qword [0x1400ff2b8]
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 0x1400bd1f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400ff320]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400ff300]
test rbx, rbx
je 0x1400bd24c
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 eax, eax
jne 0x1400bd243
test rsi, rsi
je 0x1400bd243
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400bd228
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 0x1400bd460
Capabilities:
Parse pe header

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

Function at 0x1400bd490
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 0x1400bd4dd
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 0x1400bd4d4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400bd4df
add rax, 0x28
cmp rax, r9
jne 0x1400bd4c0
xor eax, eax
ret

Function at 0x1400bd4e0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400bd570
mov rdx, qword [0x1400edc90]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400bd55e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400bd55e
cmp word [rax + 0x18], 0x20b
jne 0x1400bd55e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400bd570
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400bd549
add rbx, 0x28
cmp rbx, rdi
je 0x1400bd570
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400bd540
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 0x1400bd580
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400edc90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400bd5a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400bd5a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400bd5a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400bd5fd
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 0x1400bd5f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400bd5a0
add rax, 0x28
cmp rax, r9
jne 0x1400bd5e0
xor eax, eax
ret

Function at 0x1400bd600
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x1400edc90]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400bd660
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400bd668
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400bd660
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400bd6b0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400bd6a7
test rcx, rcx
je 0x1400bd660
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400bd698
xor eax, eax
ret

Function at 0x1400bd6c0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1400edc90]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400bd720
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400bd728
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400bd720
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400bd720
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 0x1400bd774
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400bd780
add rdx, 0x28
cmp r9, rdx
jne 0x1400bd760
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400edc90]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400bd7b2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400bd7c0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400bd7b2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400bd7b2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400bd7b2
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 0x1400bd815
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400bd828
add rdx, 0x28
cmp rdx, r10
jne 0x1400bd800
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400bd837
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400bd847
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400bd81e
test ecx, ecx
jg 0x1400bd830
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
xor rsi, rsi
movabs r10, 0x9a4a4577b257c8d
fxch st(5)
mov rbp, rsp
and bp, 0xf190
mov sil, 0x40
fxsave64 [rbp]
add rbp, 8
mov r12, qword [rbp]
dec rsi
xor qword [r12 + rsi*8 + 0x27], r10
test rsi, rsi
jne 0x140004027
jno 0x14000406a
cmpsb byte [rsi], byte [rdi]
lahf
cmpsd dword [rsi], dword [rdi]
push 0x647c8d09
sub dl, byte [rsi]
hlt
rol ch, 0x73
xchg edx, eax
xor dword [0x161c9d651], ebx
invalid
test byte [rax + 0x4c], cl
mov ch, 0x28
cmp dl, byte [rsi + 0x65]
in al, 0xdf
cmp eax, 0xf6dc3374
test byte [rdx + 0x7a6d40cf], al
xchg edx, eax
and eax, 0x27779571
je 0x14000405b
invalid

Function at 0x140001b68
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001bb2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001bb2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001bb2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001bb2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001bb2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001bb4
xor al, al
add rsp, 0x28
ret
Function at 0x1406e7478
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406e75ff
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406e74a9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406e748f
add dl, dl
jne 0x1406e74b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406e7516
xor eax, eax
add dl, dl
jne 0x1406e74c5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406e75cd
add dl, dl
jne 0x1406e74d6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e74e3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e74f0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e74fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406e750a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406e749e
mov eax, 1
add dl, dl
jne 0x1406e7526
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e7533
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406e751b
sub eax, ebx
mov ebx, 1
jne 0x1406e756c
mov ecx, 1
add dl, dl
jne 0x1406e754e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406e755b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406e7543
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406e749e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406e7588
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406e7595
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406e757d
cmp eax, 0x7d00
jae 0x1406e75bb
cmp eax, 0x500
jb 0x1406e75b6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406e749e
cmp eax, 0x7f
ja 0x1406e75be
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406e749e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406e75f2
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 0x1406e749e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20