joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466e50
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 [0x004a9100]
test ecx, ecx
je 0x466f68
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x466e85
cmp qword [rax + 8], 0
jne 0x466f62
mov ecx, dword [0x004a9100]
test ecx, ecx
je 0x466f8a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x466fa7
test rax, rax
jne 0x466f0b
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 [0x022826d8]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x466fca
mov rcx, qword [rbp - 8]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rax], xmm0
mov ecx, dword [0x004a9100]
test ecx, ecx
je 0x466fb1
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.004a635c
mov rax, rdi
test rsi, rsi
je 0x466f25
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x466f27
mov rcx, qword [rsi + 8]
jmp 0x466f27
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 0x466f62
test rdx, rdx
je 0x466f62
lock dec qword [rdx]
jne 0x466f62
lea rcx, [rbp - 0x10]
mov rsi, rax
call sym.alloc::sync::Arc_T_A_::drop_slow::h3350d1a16dd8b830
mov rax, rsi
add rax, 0x10
jmp 0x466fa9
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 0x466e7a
jmp 0x466e85
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 0x466ea4
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 0x466efd
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::hac6683127b8aa11c
ud2
Function at 0x466ff0
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 [0x004a9120]
test ecx, ecx
je 0x4670e5
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x467025
cmp qword [rax + 8], 0
jne 0x4670df
mov ecx, dword [0x004a9120]
test ecx, ecx
je 0x467107
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x467124
test rax, rax
jne 0x46709b
mov rax, qword [0x022826d8]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x467147
lea rcx, sym.std::sys::thread_local::os_local::destroy_value::h908add47baca57a6
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x004a9120]
test ecx, ecx
je 0x46712e
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.004a635c
mov rax, rdi
test rsi, rsi
je 0x4670b4
mov rcx, qword [rsi]
movups xmm0, xmmword [rsi + 8]
mov qword [rsi], 0
cmp rcx, 1
je 0x4670d3
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 0x467126
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 0x46701a
jmp 0x467025
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 0x467044
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 0x46708d
mov ecx, 8
mov edx, 0x20
call sym.alloc::alloc::handle_alloc_error::hac6683127b8aa11c
int3
Function at 0x467160
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 [0x004a9140]
test ecx, ecx
je 0x467278
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x467195
cmp qword [rax + 8], 0
jne 0x467272
mov ecx, dword [0x004a9140]
test ecx, ecx
je 0x46729a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x4672b7
test rax, rax
jne 0x46721b
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 [0x022826d8]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x4672da
mov rcx, qword [rbp - 8]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rax], xmm0
mov ecx, dword [0x004a9140]
test ecx, ecx
je 0x4672c1
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.004a635c
mov rax, rdi
test rsi, rsi
je 0x467235
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x467237
mov rcx, qword [rsi + 8]
jmp 0x467237
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 0x467272
test rdx, rdx
je 0x467272
lock dec qword [rdx]
jne 0x467272
lea rcx, [rbp - 0x10]
mov rsi, rax
call sym.alloc::sync::Arc_T_A_::drop_slow::hf2a241d43703bb56
mov rax, rsi
add rax, 0x10
jmp 0x4672b9
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 0x46718a
jmp 0x467195
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 0x4671b4
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 0x46720d
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::hac6683127b8aa11c
ud2
Function at 0x46a6e0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
test rdx, rdx
je 0x46a6fa
mov r8d, edx
and r8d, 3
cmp rdx, 4
jae 0x46a6fe
xor eax, eax
jmp 0x46a775
xor eax, eax
pop rbp
ret
and rdx, 0xfffffffffffffffc
xor eax, eax
nop word cs:[rax + rax]
shl eax, 4
movzx r9d, byte [rcx]
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
shl eax, 4
movzx r9d, byte [rcx + 1]
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
shl eax, 4
movzx r9d, byte [rcx + 2]
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
shl eax, 4
movzx r9d, byte [rcx + 3]
add rcx, 4
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
add rdx, 0xfffffffffffffffc
jne 0x46a710
test r8, r8
je 0x46a79f
xor edx, edx
nop dword [rax]
shl eax, 4
movzx r9d, byte [rcx + rdx]
add r9d, eax
mov eax, r9d
shr eax, 0x18
and eax, 0xfffffff0
xor eax, r9d
inc rdx
cmp r8, rdx
jne 0x46a780
and eax, 0xfffffff
pop rbp
ret

Function at 0x46a7b0
Capabilities:
Hash data using djb2

Disassembly:
push rbp
mov rbp, rsp
test rdx, rdx
je 0x46a7d0
mov r8d, edx
and r8d, 7
cmp rdx, 8
jae 0x46a7d7
mov eax, 0x1505
jmp 0x46a85d
mov eax, 0x1505
pop rbp
ret
and rdx, 0xfffffffffffffff8
mov eax, 0x1505
mov r9d, eax
shl r9d, 5
add r9d, eax
movzx eax, byte [rcx]
add eax, r9d
movzx r9d, byte [rcx + 1]
add r9d, eax
shl eax, 5
add r9d, eax
movzx eax, byte [rcx + 2]
add eax, r9d
shl r9d, 5
add eax, r9d
movzx r9d, byte [rcx + 3]
add r9d, eax
shl eax, 5
add r9d, eax
movzx eax, byte [rcx + 4]
add eax, r9d
shl r9d, 5
add eax, r9d
movzx r9d, byte [rcx + 5]
add r9d, eax
shl eax, 5
add r9d, eax
movzx r10d, byte [rcx + 6]
add r10d, r9d
shl r9d, 5
add r10d, r9d
movzx eax, byte [rcx + 7]
add eax, r10d
shl r10d, 5
add rcx, 8
add eax, r10d
add rdx, 0xfffffffffffffff8
jne 0x46a7e0
test r8, r8
je 0x46a889
xor edx, edx
nop word cs:[rax + rax]
mov r9d, eax
shl r9d, 5
add r9d, eax
movzx eax, byte [rcx + rdx]
add eax, r9d
inc rdx
cmp r8, rdx
jne 0x46a870
pop rbp
ret
Function at 0x4995b0
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 0x49963a
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 0x499630
cmp r11, r10
ja 0x4996b6
cmp r10, rdx
ja 0x4996c8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x499632
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x499610
jmp 0x499697
ja 0x49963a
mov r11, r10
cmp rax, r8
jne 0x4995d7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x49969b
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 0x499670
mov r8, r10
sub ecx, r9d
jns 0x49968e
jmp 0x49969d
cmp r10, rdx
je 0x4996aa
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x49969d
xor al, 1
cmp r8, rdx
jne 0x499650
jmp 0x49969d
xor eax, eax
jmp 0x49969d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x02277540]
call sym.core::option::unwrap_failed::h511674c62460528b
lea r8, [0x02277558]
mov rcx, r11
mov rdx, r10
call sym.core::slice::index::slice_index_order_fail::hf943cfe51be07c4a
lea r8, [0x02277558]
mov rcx, r10
call sym.core::slice::index::slice_end_index_len_fail::ha4157f6c56c31a58
int3
Function at 0x4a0160
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 0x4a01c2
test cl, 0x20
jne 0x4a0204
mov r8d, eax
sar r8b, 7
mov ecx, eax
xor cl, r8b
sub cl, r8b
cmp cl, 0x64
jb 0x4a0275
add cl, cl
add cl, 0x38
movzx ecx, cl
lea r8, [0x022769ce]
movzx ecx, word [rcx + r8]
mov word [rbp - 0x23], cx
mov r8d, 0x24
mov cl, 1
jmp 0x4a0280
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 0x4a01d0
jmp 0x4a0242
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 0x4a0210
mov ecx, pe_nt_image_headers64
sub rcx, r8
cmp rcx, 0x81
jae 0x4a02e1
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r9
lea r8, [0x022769cc]
mov r9d, 2
mov rcx, rdx
mov dl, 1
jmp 0x4a02d1
mov r8d, 0x26
cmp cl, 0xa
jae 0x4a028a
or cl, 0x30
mov byte [rbp + r8 - 0x48], cl
jmp 0x4a02a3
movzx ecx, cl
lea r8, [0x022769ce]
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, [0x022769b0]
mov edx, pe_nt_image_headers64
call sym.core::slice::index::slice_start_index_len_fail::hc4490513dd7cd116
int3
Function at 0x4a7360
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x02296784]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4a74e8
mov rax, qword [0x02296788]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4a73ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4a7435
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4a7390
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4a751d
mov rax, qword [0x02296788]
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 [0x02296788]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4a7500
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4a742e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4a7490
add dword [0x02296784], 1
cmp edi, 8
jae 0x4a7463
test dil, 4
jne 0x4a74d4
test edi, edi
je 0x4a7458
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4a74ef
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4a7458
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x4a747c
jmp 0x4a7458
add rsi, qword [0x02296788]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4a742e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x02282558]
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4a7458
xor esi, esi
jmp 0x4a73b7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4a7458
mov rax, qword [0x02296788]
lea rcx, [0x02282520]
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, [0x02282500]
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x4a7c70
Capabilities:
Get thread local storage value

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

Function at 0x4a7f00
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x4a7f10
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0
Function at 0x4a7f20
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 0x4a7f61
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 0x4a7f58
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4a7f63
add rax, 0x28
cmp rax, r9
jne 0x4a7f44
xor eax, eax
ret

Function at 0x4a8000
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x02282660]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4a806d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4a806d
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 0x4a806d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4a8064
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4a806f
add rax, 0x28
cmp rax, r9
jne 0x4a8050
xor eax, eax
add rsp, 0x28
ret

Function at 0x4a8170
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x02282660]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x4a8190
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4a8188
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 0x4a81ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4a81e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4a81f4
add rax, 0x28
cmp rax, r9
jne 0x4a81d0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x4a8210
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x02282660]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x4a827e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4a827e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x4a827e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4a827e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x4a8275
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x4a8285
add rcx, 0x28
cmp rcx, rax
jne 0x4a8260
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x4a8298
jmp 0x4a827e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x4a82a6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x4a827e
test r9d, r9d
jg 0x4a8290
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x4a8330
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, [0x022824e0]
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
nop
nop
nop
nop
nop
nop
Function at 0x1400015f0
Capabilities:
Terminate process

Disassembly:
push rdi
sub rsp, 0x260
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp byte [rdx], 0
mov r9, rdx
mov rdi, rcx
jne 0x1400016f6
mov qword [rsp + 0x280], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], 0
mov r9d, 0x400
mov ebx, eax
mov dword [rsp + 0x28], 0xff
lea rax, [rsp + 0x150]
mov r8d, ebx
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rdx, [rsp + 0x40]
call fcn.140001790
movzx ecx, byte [rax + 6]
test cl, cl
je 0x14000168d
xor byte [rax], 0x38
xor byte [rax + 1], 0x39
xor byte [rax + 2], 0x3a
xor byte [rax + 3], 0x3b
xor byte [rax + 4], 0x3c
xor byte [rax + 5], 0x3d
xor cl, 0x3e
mov byte [rax + 6], cl
lea r9, [rsp + 0x150]
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400013d0
lea rcx, [0x14000b758]
call fcn.140005b10
mov r8, rax
lea rdx, [rsp + 0x50]
mov r9d, 0x10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 3
lea rcx, [rsp + 0x48]
call fcn.140005d20
mov rcx, rax
call fcn.140005d30
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov rbx, qword [rsp + 0x280]
lea rdx, [rsp + 0x40]
call fcn.140001790
movzx ecx, byte [rax + 6]
test cl, cl
je 0x140001725
xor byte [rax], 0x38
xor byte [rax + 1], 0x39
xor byte [rax + 2], 0x3a
xor byte [rax + 3], 0x3b
xor byte [rax + 4], 0x3c
xor byte [rax + 5], 0x3d
xor cl, 0x3e
mov byte [rax + 6], cl
mov r8, rdi
lea rcx, [rsp + 0x50]
mov rdx, rax
call fcn.1400013d0
lea rcx, [0x14000b758]
call fcn.140005b10
mov r8, rax
lea rdx, [rsp + 0x50]
mov r9d, 0x10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 3
lea rcx, [rsp + 0x48]
call fcn.140005d20
mov rcx, rax
call fcn.140005d30
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x1400017c0
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor edi, edi
mov word [rsp + 0x74], 0x500
lea rax, [rsp + 0x68]
mov dword [rsp + 0x78], edi
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x48], edi
mov ebx, edi
mov dword [rsp + 0x40], edi
mov r9d, 0x220
mov dword [rsp + 0x38], edi
mov r8d, 0x20
mov dword [rsp + 0x30], edi
mov dl, 2
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000184c
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140001854
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140001869
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rsp + 0x68], rdi
test ebx, ebx
jne 0x140001892
mov eax, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140006350
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
lea rdx, [0x1400095d8]
mov dword [rsp + 0x60], ebx
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x1400018b0
Capabilities:
Create process on windows
Create thread

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov dword [rsp + 0x30], 0
call fcn.1400017c0
mov dword [rsp + 0x30], eax
jmp 0x1400018e0
test eax, eax
jne 0x1400019b1
mov r8d, 0x104
lea rdx, [rsp + 0xb0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1400019b1
mov dword [rsp + 0x40], 0x70
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x44], xmm0
movups xmmword [rsp + 0x54], xmm0
movups xmmword [rsp + 0x64], xmm0
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
mov qword [rsp + 0xa4], rax
mov dword [rsp + 0xac], eax
lea rax, str.runas
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x70], 1
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x1400019b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x1400019b1
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [fcn.1400018b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140006350
add rsp, 0x1d8
ret
Function at 0x140006e8c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006ed6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006ed6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006ed6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006ed6
cmp dword [rcx + 0x84], 0xe
jbe 0x140006ed6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006ed8
xor al, al
add rsp, 0x28
ret