joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140060110
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 [0x1400a2110]
test ecx, ecx
je 0x14006013f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140060158
cmp byte [rax + 8], 0
je 0x140060158
add rax, 9
jmp 0x140060200
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140060130
mov ecx, dword [0x1400a2110]
test ecx, ecx
je 0x1400601e1
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400601fe
mov rdi, rax
test rax, rax
jne 0x1400601be
mov rax, qword [0x1406a0788]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140060217
mov rdi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x1400a2110]
test ecx, ecx
je 0x140060207
dec ecx
mov rdx, rdi
call fcn.1400a027c
xor ecx, ecx
test rsi, rsi
je 0x1400601d4
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 0x140060200
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140060173
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::h6a94beccf240c3a3
mov ecx, eax
jmp 0x1400601b6
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
int3
Function at 0x140060230
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 [0x1400a2130]
test ecx, ecx
je 0x14006025f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140060278
cmp byte [rax + 8], 0
je 0x140060278
add rax, 9
jmp 0x140060320
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140060250
mov ecx, dword [0x1400a2130]
test ecx, ecx
je 0x140060301
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14006031e
mov rdi, rax
test rax, rax
jne 0x1400602de
mov rax, qword [0x1406a0788]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140060337
mov rdi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x1400a2130]
test ecx, ecx
je 0x140060327
dec ecx
mov rdx, rdi
call fcn.1400a027c
xor ecx, ecx
test rsi, rsi
je 0x1400602f4
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 0x140060320
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140060293
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::h6a94beccf240c3a3
mov ecx, eax
jmp 0x1400602d6
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
int3
Function at 0x140060350
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 [0x1400a2150]
test ecx, ecx
je 0x14006044c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140060382
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x140060446
mov ecx, dword [0x1400a2150]
test ecx, ecx
je 0x140060475
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140060492
mov rdi, rax
test rax, rax
jne 0x1400603f8
mov rax, qword [0x1406a0788]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400604b1
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 [0x1400a2150]
test ecx, ecx
je 0x14006049e
dec ecx
mov rdx, rdi
call fcn.1400a027c
test rsi, rsi
je 0x14006046e
mov rax, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
je 0x14006046e
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 0x140060446
test rcx, rcx
je 0x140060446
lock dec qword [rcx]
jne 0x140060446
lea rcx, [rsp + 0x30]
call dbg.drop_slow<std::sync::mpmc::context::Inner, alloc::alloc::Global>
add rdi, 0x10
jmp 0x140060494
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::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140060374
jmp 0x140060382
call sym.std::sync::mpmc::context::Context::new::ha223b89a47f34037
jmp 0x14006040e
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::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400603a1
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::h6a94beccf240c3a3
mov ecx, eax
jmp 0x1400603f0
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
int3
Function at 0x1400604d0
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 [0x1400a2170]
test ecx, ecx
je 0x1400605d2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140060502
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x1400605cc
mov ecx, dword [0x1400a2170]
test ecx, ecx
je 0x1400605f4
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140060611
mov rdi, rax
test rax, rax
jne 0x140060578
mov rax, qword [0x1406a0788]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140060630
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 [0x1400a2170]
test ecx, ecx
je 0x14006061d
dec ecx
mov rdx, rdi
call fcn.1400a027c
test rsi, rsi
je 0x140060592
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x140060594
mov rax, qword [rsi + 8]
jmp 0x140060594
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 0x1400605cc
test rcx, rcx
je 0x1400605cc
lock dec qword [rcx]
jne 0x1400605cc
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 0x140060613
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::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x1400604f4
jmp 0x140060502
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::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140060521
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::h6a94beccf240c3a3
mov ecx, eax
jmp 0x140060570
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
int3
Function at 0x140060640
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 [0x1400a2190]
test ecx, ecx
je 0x140060673
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14006068c
mov rcx, rax
cmp qword [rax + 8], 0
je 0x14006068c
add rcx, 0x10
jmp 0x140060789
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140060660
mov ecx, dword [0x1400a2190]
test ecx, ecx
je 0x14006076a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140060787
mov rdi, rax
test rax, rax
jne 0x140060702
mov rax, qword [0x1406a0788]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400607a6
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 [0x1400a2190]
test ecx, ecx
je 0x140060793
dec ecx
mov rdx, rdi
call fcn.1400a027c
test rsi, rsi
je 0x14006071f
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x140060754
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 0x14006074f
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140060754
call dbg.fallback_rng
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
jmp 0x140060789
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400606ab
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::h6a94beccf240c3a3
mov ecx, eax
jmp 0x1400606fa
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
int3
Function at 0x140095530
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400955aa
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 0x1400955a0
cmp r11, r10
ja 0x140095641
cmp r10, rdx
ja 0x140095653
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400955a2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140095580
jmp 0x140095617
ja 0x1400955aa
mov r11, r10
cmp rax, r8
jne 0x140095552
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14009561b
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 0x1400955f0
mov r8, r10
sub ecx, r9d
jns 0x14009560e
jmp 0x14009561d
cmp r10, rdx
je 0x140095629
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14009561d
xor al, 1
cmp r8, rdx
jne 0x1400955d0
jmp 0x14009561d
xor eax, eax
jmp 0x14009561d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1406939c1]
lea r8, [0x140695810]
mov edx, 0x2b
call dbg.panic
lea r8, [0x140695828]
mov rcx, r11
mov rdx, r10
call dbg.slice_index_order_fail
lea r8, [0x140695828]
mov rcx, r10
call dbg.slice_end_index_len_fail
int3
Function at 0x1400a1070
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 0x1400a10e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1406af234]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x1400a1270
mov rax, qword [0x1406af238]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x1400a112c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x1400a11b5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x1400a1110
mov rcx, rdi
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x1400a12c2
mov rax, qword [0x1406af238]
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 [0x1406af238]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400a12a5
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400a11ae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400a1220
add dword [0x1406af234], 1
cmp ebx, 8
jae 0x1400a11e1
test bl, 4
jne 0x1400a1280
test ebx, ebx
je 0x1400a11d6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x1400a1294
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 0x1400a11d6
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 0x1400a11fa
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 [0x1406af238]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400a11ae
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 0x1400a1137
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x1400a11d6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x1400a11d6
mov rax, qword [0x1406af238]
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 0x1400a1890
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1406af2a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1406af280]
test rbx, rbx
je 0x1400a18e4
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 0x1400a18db
test rsi, rsi
je 0x1400a18db
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400a18c0
lea rcx, [0x1406af2a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400a1b30
Capabilities:
Parse pe header

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

Function at 0x1400a1b50
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 0x1400a1b91
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 0x1400a1b88
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400a1b93
add rax, 0x28
cmp rax, r9
jne 0x1400a1b74
xor eax, eax
ret

Function at 0x1400a1c40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1406a06c0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400a1caf
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400a1caf
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 0x1400a1cad
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 0x1400a1ca4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400a1caf
add rdx, 0x28
cmp rdx, r9
jne 0x1400a1c90
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret

Function at 0x1400a1db0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x1406a06c0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x1400a1e1f
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400a1e1f
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 0x1400a1e1d
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 0x1400a1e14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400a1e24
add rax, 0x28
cmp rax, r9
jne 0x1400a1e00
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x1400a1e40
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x1406a06c0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x1400a1eb3
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400a1eb3
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1400a1eb3
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400a1eb3
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 0x1400a1ea7
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x1400a1ec0
add rdx, 0x28
cmp rdx, r10
jne 0x1400a1e93
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jne 0x1400a1ed8
jmp 0x1400a1eb0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x1400a1ee6
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400a1eb0
test r8d, r8d
jg 0x1400a1ed0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x1800015a0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800015d6
xor eax, eax
lea r8, [0x1800014b0]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1800015d6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret
Function at 0x180011df0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x180092040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x180011e3f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1800e5760]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x180011e7d
cmp rsi, r14
jb 0x180011e75
cmp rsi, r15
jae 0x180011e75
cmp qword [rsi + 8], 0
jne 0x180012047
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180011e60
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180011f12
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180011f09
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180011f09
cmp dword [rsp + 0x40], 0x10000
je 0x180011f8b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180011f09
sub rbx, rbp
cmp rbx, r14
jae 0x180011ed0
test rsi, rsi
jne 0x180011ff0
cmp rdi, r15
ja 0x18001202f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18001202f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18001202f
cmp dword [rsp + 0x40], 0x10000
je 0x180011fc1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180011f42
jmp 0x18001202f
test rbx, rbx
je 0x180011f09
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180011ff0
cmp rbx, r14
jae 0x180011eb0
jmp 0x180011f12
test rdi, rdi
je 0x18001202f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180011ff0
cmp rdi, r15
jbe 0x180011f20
jmp 0x18001202f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180012000
mov rax, qword [0x1800e5760]
mov qword [rsi], rax
mov qword [0x1800e5760], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180060ad0
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x1800129c0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180092040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180012aeb
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180012ae2
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180012ac4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180012ac4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180012ac4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180012a82
mov rcx, qword [0x1800e4f68]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180012ae2
jmp 0x180012ab7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180012ab7
mov rcx, qword [0x1800e4f68]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180012ae2
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180012a30
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180012b43
cmp dword [rbx + 0xc], esi
jbe 0x180012b43
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180012b3c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180012810
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180012b00
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180060ad0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret