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

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov rsi, rcx
mov ecx, dword [0x1400a90e0]
test ecx, ecx
je 0x140066f32
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140066e55
cmp qword [rax + 8], 0
jne 0x140066f2c
mov ecx, dword [0x1400a90e0]
test ecx, ecx
je 0x140066f64
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140066f81
test rax, rax
jne 0x140066edb
mov qword [rbp - 0x10], 0
lea rax, sym.std::sys::thread_local::os_local::destroy_value::h3b95812a681ed8d4
mov qword [rbp - 0x18], rax
mov rax, qword [0x14062a7c8]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140066fa4
mov rcx, qword [rbp - 8]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400a90e0]
test ecx, ecx
je 0x140066f8b
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.1400a64dc
mov rax, rdi
test rsi, rsi
je 0x140066f54
mov rcx, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
je 0x140066f54
mov r8, qword [rax + 8]
mov rdx, qword [rax + 0x10]
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x10], rdx
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
test r8, r8
je 0x140066f2c
test rdx, rdx
je 0x140066f2c
lock dec qword [rdx]
jne 0x140066f2c
lea rcx, [rbp - 0x10]
mov rsi, rax
call sym.alloc::sync::Arc_T_A_::drop_slow::h2abb8d0ae7b3533e
mov rax, rsi
add rax, 0x10
jmp 0x140066f83
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h3b95812a681ed8d4
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140066e4a
jmp 0x140066e55
mov rsi, rax
call sym.std::sync::mpmc::context::Context::new::h7ff74aa247c03544
mov rcx, rax
mov rax, rsi
jmp 0x140066ef1
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h3b95812a681ed8d4
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140066e74
xor eax, eax
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h3b95812a681ed8d4
mov rdi, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
mov rax, rdi
jmp 0x140066ecd
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::hac6683127b8aa11c
ud2
Function at 0x140066fd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov rsi, rcx
mov ecx, dword [0x1400a9100]
test ecx, ecx
je 0x1400670e8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140067005
cmp qword [rax + 8], 0
jne 0x1400670e2
mov ecx, dword [0x1400a9100]
test ecx, ecx
je 0x14006710a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140067127
test rax, rax
jne 0x14006708b
mov qword [rbp - 0x10], 0
lea rax, sym.std::sys::thread_local::os_local::destroy_value::hf13de20a5d8f60eb
mov qword [rbp - 0x18], rax
mov rax, qword [0x14062a7c8]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14006714a
mov rcx, qword [rbp - 8]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400a9100]
test ecx, ecx
je 0x140067131
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.1400a64dc
mov rax, rdi
test rsi, rsi
je 0x1400670a5
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x1400670a7
mov rcx, qword [rsi + 8]
jmp 0x1400670a7
xor ecx, ecx
mov r8, qword [rax + 8]
mov rdx, qword [rax + 0x10]
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x10], rdx
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
test r8, r8
je 0x1400670e2
test rdx, rdx
je 0x1400670e2
lock dec qword [rdx]
jne 0x1400670e2
lea rcx, [rbp - 0x10]
mov rsi, rax
call sym.alloc::sync::Arc_T_A_::drop_slow::h3350d1a16dd8b830
mov rax, rsi
add rax, 0x10
jmp 0x140067129
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::hf13de20a5d8f60eb
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140066ffa
jmp 0x140067005
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::hf13de20a5d8f60eb
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140067024
xor eax, eax
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::hf13de20a5d8f60eb
mov rdi, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
mov rax, rdi
jmp 0x14006707d
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::hac6683127b8aa11c
ud2
Function at 0x140067170
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rsi, rcx
mov ecx, dword [0x1400a9120]
test ecx, ecx
je 0x140067265
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400671a5
cmp qword [rax + 8], 0
jne 0x14006725f
mov ecx, dword [0x1400a9120]
test ecx, ecx
je 0x140067287
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400672a4
test rax, rax
jne 0x14006721b
mov rax, qword [0x14062a7c8]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400672c7
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h908add47baca57a6
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x1400a9120]
test ecx, ecx
je 0x1400672ae
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.1400a64dc
mov rax, rdi
test rsi, rsi
je 0x140067234
mov rcx, qword [rsi]
movups xmm0, xmmword [rsi + 8]
mov qword [rsi], 0
cmp rcx, 1
je 0x140067253
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
mov edx, 0x10
mov rsi, rax
call sub.bcryptprimitives.dll_ProcessPrng
mov rax, rsi
movaps xmm0, xmmword [rbp - 0x10]
mov qword [rax + 8], 1
movups xmmword [rax + 0x10], xmm0
add rax, 0x10
jmp 0x1400672a6
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h908add47baca57a6
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14006719a
jmp 0x1400671a5
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h908add47baca57a6
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400671c4
xor eax, eax
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h908add47baca57a6
mov rdi, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
mov rax, rdi
jmp 0x14006720d
mov ecx, 8
mov edx, 0x20
call sym.alloc::alloc::handle_alloc_error::hac6683127b8aa11c
int3
Function at 0x1400672e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov rsi, rcx
mov ecx, dword [0x1400a9140]
test ecx, ecx
je 0x1400673f8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140067315
cmp qword [rax + 8], 0
jne 0x1400673f2
mov ecx, dword [0x1400a9140]
test ecx, ecx
je 0x14006741a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140067437
test rax, rax
jne 0x14006739b
mov qword [rbp - 0x10], 0
lea rax, sym.std::sys::thread_local::os_local::destroy_value::h7e7befca05c88b99
mov qword [rbp - 0x18], rax
mov rax, qword [0x14062a7c8]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14006745a
mov rcx, qword [rbp - 8]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400a9140]
test ecx, ecx
je 0x140067441
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.1400a64dc
mov rax, rdi
test rsi, rsi
je 0x1400673b5
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x1400673b7
mov rcx, qword [rsi + 8]
jmp 0x1400673b7
xor ecx, ecx
mov r8, qword [rax + 8]
mov rdx, qword [rax + 0x10]
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x10], rdx
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
test r8, r8
je 0x1400673f2
test rdx, rdx
je 0x1400673f2
lock dec qword [rdx]
jne 0x1400673f2
lea rcx, [rbp - 0x10]
mov rsi, rax
call sym.alloc::sync::Arc_T_A_::drop_slow::hf2a241d43703bb56
mov rax, rsi
add rax, 0x10
jmp 0x140067439
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h7e7befca05c88b99
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14006730a
jmp 0x140067315
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h7e7befca05c88b99
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140067334
xor eax, eax
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h7e7befca05c88b99
mov rdi, rax
call sym.std::sys::pal::windows::thread_local_key::StaticKey::init::haa087f69fbeb5f15
mov ecx, eax
mov rax, rdi
jmp 0x14006738d
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::hac6683127b8aa11c
ud2
Function at 0x140099730
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x1400997ba
mov rax, rdx
mov rdx, qword [rbp + 0x50]
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 0x1400997b0
cmp r11, r10
ja 0x140099836
cmp r10, rdx
ja 0x140099848
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x1400997b2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140099790
jmp 0x140099817
ja 0x1400997ba
mov r11, r10
cmp rax, r8
jne 0x140099757
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14009981b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1400997f0
mov r8, r10
sub ecx, r9d
jns 0x14009980e
jmp 0x14009981d
cmp r10, rdx
je 0x14009982a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14009981d
xor al, 1
cmp r8, rdx
jne 0x1400997d0
jmp 0x14009981d
xor eax, eax
jmp 0x14009981d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x14061f580]
call sym.core::option::unwrap_failed::h511674c62460528b
lea r8, [0x14061f598]
mov rcx, r11
mov rdx, r10
call sym.core::slice::index::slice_index_order_fail::hf943cfe51be07c4a
lea r8, [0x14061f598]
mov rcx, r10
call sym.core::slice::index::slice_end_index_len_fail::ha4157f6c56c31a58
int3
Function at 0x1400a02e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
movzx eax, byte [rcx]
mov ecx, dword [rdx + 0x34]
test cl, 0x10
jne 0x1400a0342
test cl, 0x20
jne 0x1400a0384
mov r8d, eax
sar r8b, 7
mov ecx, eax
xor cl, r8b
sub cl, r8b
cmp cl, 0x64
jb 0x1400a03f5
add cl, cl
add cl, 0x38
movzx ecx, cl
lea r8, [0x14061ea0e]
movzx ecx, word [rcx + r8]
mov word [rbp - 0x23], cx
mov r8d, 0x24
mov cl, 1
jmp 0x1400a0400
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop dword [rax + rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x57]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x1400a0350
jmp 0x1400a03c2
lea r9, [rbp + 0x38]
xor r8d, r8d
mov ecx, eax
nop dword [rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x37]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x1400a0390
mov ecx, pe_nt_image_headers64
sub rcx, r8
cmp rcx, 0x81
jae 0x1400a0461
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r9
lea r8, [0x14061ea0c]
mov r9d, 2
mov rcx, rdx
mov dl, 1
jmp 0x1400a0451
mov r8d, 0x26
cmp cl, 0xa
jae 0x1400a040a
or cl, 0x30
mov byte [rbp + r8 - 0x48], cl
jmp 0x1400a0423
movzx ecx, cl
lea r8, [0x14061ea0e]
movzx ecx, word [r8 + rcx*2]
mov word [rbp - 0x23], cx
mov r8d, 0x25
lea rcx, [r8 + rbp]
add rcx, 0xffffffffffffffb8
mov r9d, 0x27
sub r9, r8
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rcx
not al
shr al, 7
mov r8d, 1
mov rcx, rdx
mov edx, eax
xor r9d, r9d
call sym.core::fmt::Formatter::pad_integral::hd7d09bba8c9ff4c9
nop
add rsp, 0xb8
pop rsi
pop rbp
ret
lea r8, str.librarycore_src_fmt_num.rs
mov edx, pe_nt_image_headers64
call sym.core::slice::index::slice_start_index_len_fail::hc4490513dd7cd116
int3
Function at 0x1400a7330
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400a8002
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14063f2c8]
test eax, eax
je 0x1400a809a
lea rax, [0x14063f2a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14063f2d0]
mov qword [rbp - 8], rax
jmp 0x1400a807e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400a8072
cmp qword [rbp - 0x10], 0
je 0x1400a8072
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400a8038
lea rax, [0x14063f2a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400a809b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400a81a0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400a81c8
mov eax, 0
jmp 0x1400a8216
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400a81f1
mov eax, 0
jmp 0x1400a8216
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400a8211
mov eax, 0
jmp 0x1400a8216
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140421da0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push rbp
push rax
push rcx
push rdx
lea rcx, section.UPX1
mov rdx, rcx
mov rsi, 0x10
mov al, byte [rdx]
xor al, 0x3c
mov byte [rdx], al
inc rdx
mov al, byte [rdx]
xor al, 0xe8
mov byte [rdx], al
inc rdx
dec rsi
jne 0x140421db8
mov rsi, rcx
lea rdx, [rcx - 0x37e000]
mov rdi, rdx
pop rdx
pop rcx
pop rax
lea rax, [rdi + 0x402874]
push qword [rax]
mov dword [rax], 0xdb45d633
push rax
push rdi
xor ebx, ebx
xor ecx, ecx
or rbp, 0xffffffffffffffff
call fcn.140421e4d
add ebx, ebx
je 0x140421e03
repz ret
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
repz ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004bda00]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004bda10]
mov dword [rax], 1
mov rax, qword [0x004bda20]
mov dword [rax], 1
mov rax, qword [0x004bd9f0]
mov dword [rax], 1
mov rax, qword [0x004bd8c0]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x004bd9e0]
mov dword [0x004e400c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x004bd9a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004bcd10]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067
Function at 0x4015b4
Capabilities:
Create process on windows
Execute command

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0x100
lea rbp, [rsp + 0x80]
call dbg.__main
mov rdx, rbp
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp], 0x70
mov dword [rbp + 4], 0x400
mov qword [rbp + 8], 0
lea rax, str.runas
mov qword [rbp + 0x10], rax
lea rax, str.powershell.exe
mov qword [rbp + 0x18], rax
lea rax, [rbp + 0x7e]
mov rcx, rax
call fcn.0046e400
lea rdx, [rbp + 0x7e]
lea rax, [rbp - 0x20]
mov r8, rdx
lea rdx, str.netsh_interface_tcp_set_global_timestampsenabled
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea rax, [rbp + 0x7e]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp - 0x20]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov qword [rbp + 0x20], rax
mov dword [rbp + 0x30], 0
mov rax, rbp
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
sete al
test al, al
je 0x40168c
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Exec_failed:__d_n
call dbg.printf
mov ebx, 1
jmp 0x40174c
lea rax, [rbp + 0x7f]
mov rcx, rax
call fcn.0046e400
lea rdx, [rbp + 0x7f]
lea rax, [rbp - 0x40]
mov r8, rdx
lea rdx, str.netsh_interface_tcp_show_global
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea rax, [rbp + 0x7f]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov qword [rbp + 0x20], rax
mov rax, rbp
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
sete al
test al, al
je 0x401704
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.Exec_failed:__d_n
call dbg.printf
mov ebx, 1
jmp 0x401740
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.004a1930
lea rcx, str.powershell_netsh_interface_tcp_show_global__findstr__RFC_1323_
call sym.system
lea rax, [rbp - 0x60]
mov rdx, rax
mov rcx, qword [0x004bd2f0]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____char__std::char_traits_char___std.allocator_char____std::basic_ostream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char
mov ebx, 0
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp - 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
mov eax, ebx
jmp 0x4017c3
add rsp, 0x100
pop rbx
pop rdi
pop rbp
ret
Function at 0x40c410
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x40c480
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x004e4634]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x40c628
mov rax, qword [0x004e4638]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x40c4cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x40c557
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x40c4b0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x40c662
mov rax, qword [0x004e4638]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004e4638]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40c671
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40c550
sub eax, 4
and eax, 0xfffffffb
jne 0x40c5e0
add dword [0x004e4634], 1
cmp ebx, 8
jae 0x40c588
test bl, 4
jne 0x40c630
test ebx, ebx
je 0x40c579
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x40c650
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x40c579
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x40c5ba
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x004e4638]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40c550
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 edi, edi
jmp 0x40c4d7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x40c579
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x40c579
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x004e4638]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]