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

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rsi, rcx
mov ecx, dword [0x004ef090]
test ecx, ecx
je 0x4aacd2
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x4aaceb
add rax, 8
jmp 0x4aad97
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x4aacc9
je 0x4aad0c
xor edi, edi
test rsi, rsi
je 0x4aad13
mov r14, qword [rsi]
mov qword [rsi], 0
test r14, r14
cmovne edi, dword [rsi + 0x10]
cmovne r14, qword [rsi + 8]
jmp 0x4aad16
xor eax, eax
jmp 0x4aad97
xor r14d, r14d
mov rax, qword [0x0051dd78]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x4aadc2
mov rbx, rax
mov rsi, rax
lea rax, dbg.destroy_value_core::cell::Cell__u64__u64___
mov qword [rsi], rax
mov qword [rsi + 8], r14
mov byte [rsi + 0x10], dil
mov ecx, dword [0x004ef090]
test ecx, ecx
je 0x4aada2
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x004ef090]
test ecx, ecx
je 0x4aadb2
dec ecx
add rbx, 8
mov rdx, rsi
call fcn.004ecacc
test rdi, rdi
je 0x4aad94
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
jmp 0x4aad5c
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
jmp 0x4aad70
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
int3

Function at 0x4aade0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rsi, rcx
mov ecx, dword [0x004ef0b0]
test ecx, ecx
je 0x4aae10
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x4aae29
add rax, 8
jmp 0x4aaec6
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x4aae07
je 0x4aaec4
xor edi, edi
test rsi, rsi
je 0x4aae45
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, edi
mov edi, eax
mov rax, qword [0x0051dd78]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x4aaeef
mov rbx, rax
mov rsi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rsi], rax
mov byte [rsi + 8], dil
mov ecx, dword [0x004ef0b0]
test ecx, ecx
je 0x4aaecf
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x004ef0b0]
test ecx, ecx
je 0x4aaedf
dec ecx
add rbx, 8
mov rdx, rsi
call fcn.004ecacc
test rdi, rdi
je 0x4aaebf
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov rax, rbx
jmp 0x4aaec6
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x4aae87
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x4aae9b
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
int3
Function at 0x4aaf00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rsi, rcx
mov ecx, dword [0x004ef0d0]
test ecx, ecx
je 0x4aaf30
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x4aaf49
add rax, 8
jmp 0x4aafe6
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x4aaf27
je 0x4aafe4
xor edi, edi
test rsi, rsi
je 0x4aaf65
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, edi
mov edi, eax
mov rax, qword [0x0051dd78]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x4ab00f
mov rbx, rax
mov rsi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rsi], rax
mov byte [rsi + 8], dil
mov ecx, dword [0x004ef0d0]
test ecx, ecx
je 0x4aafef
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, dword [0x004ef0d0]
test ecx, ecx
je 0x4aafff
dec ecx
add rbx, 8
mov rdx, rsi
call fcn.004ecacc
test rdi, rdi
je 0x4aafdf
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov rax, rbx
jmp 0x4aafe6
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x4aafa7
lea rcx, dbg.destroy_value_u8_
call dbg.init
mov ecx, eax
jmp 0x4aafbb
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
int3
Function at 0x4ab020
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rsi, rcx
mov ecx, dword [0x004ef110]
test ecx, ecx
je 0x4ab052
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x4ab06b
add rax, 8
jmp 0x4ab131
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 dbg.init
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x4ab049
je 0x4ab087
test rsi, rsi
je 0x4ab08e
mov r14, qword [rsi]
mov qword [rsi], 0
test r14, r14
je 0x4ab091
mov r14, qword [rsi + 8]
jmp 0x4ab091
xor eax, eax
jmp 0x4ab131
xor r14d, r14d
lea rsi, 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 [rbp - 0x10], rsi
mov qword [rbp - 8], r14
mov rax, qword [0x0051dd78]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x4ab15c
mov rbx, rax
mov rdi, rax
mov qword [rax], rsi
mov qword [rax + 8], r14
mov ecx, dword [0x004ef110]
test ecx, ecx
je 0x4ab13c
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rsi, rax
mov ecx, dword [0x004ef110]
test ecx, ecx
je 0x4ab14c
dec ecx
add rbx, 8
mov rdx, rdi
call fcn.004ecacc
test rsi, rsi
je 0x4ab12e
mov rax, qword [rsi + 8]
test rax, rax
je 0x4ab11b
lock dec qword [rax]
jne 0x4ab11b
mov rcx, rsi
add rcx, 8
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call sym.__rust_dealloc
mov rax, rbx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
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 dbg.init
mov ecx, eax
jmp 0x4ab0db
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 dbg.init
mov ecx, eax
jmp 0x4ab0ef
lea rsi, [rbp - 8]
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2
Function at 0x4ab190
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rsi, rcx
mov ecx, dword [0x004ef150]
test ecx, ecx
je 0x4ab1c2
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x4ab1db
add rax, 8
jmp 0x4ab2a1
lea rcx, dbg.destroy_value_core::cell::once::OnceCell_std::thread::Thread__
call dbg.init
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x4ab1b9
je 0x4ab1f7
test rsi, rsi
je 0x4ab1fe
mov r14, qword [rsi]
mov qword [rsi], 0
test r14, r14
je 0x4ab201
mov r14, qword [rsi + 8]
jmp 0x4ab201
xor eax, eax
jmp 0x4ab2a1
xor r14d, r14d
lea rsi, dbg.destroy_value_core::cell::once::OnceCell_std::thread::Thread__
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], r14
mov rax, qword [0x0051dd78]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x4ab2cc
mov rbx, rax
mov rdi, rax
mov qword [rax], rsi
mov qword [rax + 8], r14
mov ecx, dword [0x004ef150]
test ecx, ecx
je 0x4ab2ac
dec ecx
call sub.kernel32.dll_TlsGetValue
mov rsi, rax
mov ecx, dword [0x004ef150]
test ecx, ecx
je 0x4ab2bc
dec ecx
add rbx, 8
mov rdx, rdi
call fcn.004ecacc
test rsi, rsi
je 0x4ab29e
mov rax, qword [rsi + 8]
test rax, rax
je 0x4ab28b
lock dec qword [rax]
jne 0x4ab28b
mov rcx, rsi
add rcx, 8
call dbg.drop_slow<std::thread::Inner, alloc::alloc::Global>
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call sym.__rust_dealloc
mov rax, rbx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, dbg.destroy_value_core::cell::once::OnceCell_std::thread::Thread__
call dbg.init
mov ecx, eax
jmp 0x4ab24b
lea rcx, dbg.destroy_value_core::cell::once::OnceCell_std::thread::Thread__
call dbg.init
mov ecx, eax
jmp 0x4ab25f
lea rsi, [rbp - 8]
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2

Function at 0x4aec10
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
test rdx, rdx
je 0x4aec2a
mov r8d, edx
and r8d, 3
cmp rdx, 4
jae 0x4aec2e
xor eax, eax
jmp 0x4aeca5
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 0x4aec40
test r8, r8
je 0x4aeccf
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 0x4aecb0
and eax, 0xfffffff
pop rbp
ret
Function at 0x4aece0
Capabilities:
Hash data using djb2

Disassembly:
push rbp
mov rbp, rsp
test rdx, rdx
je 0x4aed00
mov r8d, edx
and r8d, 7
cmp rdx, 8
jae 0x4aed07
mov eax, 0x1505
jmp 0x4aed8d
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 0x4aed10
test r8, r8
je 0x4aedb9
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 0x4aeda0
pop rbp
ret
Function at 0x4dfa20
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 0x4dfaaa
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 0x4dfaa0
cmp r11, r10
ja 0x4dfb26
cmp r10, rdx
ja 0x4dfb38
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x4dfaa2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x4dfa80
jmp 0x4dfb07
ja 0x4dfaaa
mov r11, r10
cmp rax, r8
jne 0x4dfa47
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x4dfb0b
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 0x4dfae0
mov r8, r10
sub ecx, r9d
jns 0x4dfafe
jmp 0x4dfb0d
cmp r10, rdx
je 0x4dfb1a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x4dfb0d
xor al, 1
cmp r8, rdx
jne 0x4dfac0
jmp 0x4dfb0d
xor eax, eax
jmp 0x4dfb0d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x00512c40]
call sym.core::option::unwrap_failed::hec1ab125882a5e1e
lea r8, [0x00512c58]
mov rcx, r11
mov rdx, r10
call dbg.slice_index_order_fail
lea r8, [0x00512c58]
mov rcx, r10
call dbg.slice_end_index_len_fail
int3
Function at 0x4e6750
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 0x4e67b2
test cl, 0x20
jne 0x4e67f4
mov r8d, eax
sar r8b, 7
mov ecx, eax
xor cl, r8b
sub cl, r8b
cmp cl, 0x64
jb 0x4e6865
add cl, cl
add cl, 0x38
movzx ecx, cl
lea r8, [0x005120bc]
movzx ecx, word [rcx + r8]
mov word [rbp - 0x23], cx
mov r8d, 0x24
mov cl, 1
jmp 0x4e6870
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 0x4e67c0
jmp 0x4e6832
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 0x4e6800
mov ecx, pe_nt_image_headers64
sub rcx, r8
cmp rcx, 0x80
ja 0x4e68d1
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r9
lea r8, str.0x0b00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899assertion_failed:_curr___19
mov r9d, 2
mov rcx, rdx
mov dl, 1
jmp 0x4e68c1
mov r8d, 0x26
cmp cl, 0xa
jae 0x4e687a
or cl, 0x30
mov byte [rbp + r8 - 0x48], cl
jmp 0x4e6893
movzx ecx, cl
lea r8, [0x005120bc]
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 dbg.pad_integral
nop
add rsp, 0xb8
pop rsi
pop rbp
ret
lea r8, str.librarycore_src_fmt_num.rs0o
mov edx, pe_nt_image_headers64
call dbg.slice_start_index_len_fail
int3
Function at 0x4ed730
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00535784]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4ed8b8
mov rax, qword [0x00535788]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4ed77c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4ed805
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4ed760
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4ed8ed
mov rax, qword [0x00535788]
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 [0x00535788]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4ed8d0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4ed7fe
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4ed860
add dword [0x00535784], 1
cmp edi, 8
jae 0x4ed833
test dil, 4
jne 0x4ed8a4
test edi, edi
je 0x4ed828
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4ed8bf
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 0x4ed828
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 0x4ed84c
jmp 0x4ed828
add rsi, qword [0x00535788]
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 0x4ed7fe
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
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 0x4ed828
xor esi, esi
jmp 0x4ed787
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4ed828
mov rax, qword [0x00535788]
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, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x4ee040
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00535a60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00535a40]
test rbx, rbx
je 0x4ee094
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 0x4ee08b
test rsi, rsi
je 0x4ee08b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4ee070
lea rcx, [0x00535a60]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4ee2d0
Capabilities:
Parse pe header

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

Function at 0x4ee2f0
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 0x4ee331
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 0x4ee328
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4ee333
add rax, 0x28
cmp rax, r9
jne 0x4ee314
xor eax, eax
ret

Function at 0x4ee3d0
Capabilities:
Enumerate pe sections

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

Function at 0x4ee540
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0051dd00]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x4ee560
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4ee558
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 0x4ee5bd
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 0x4ee5b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4ee5c4
add rax, 0x28
cmp rax, r9
jne 0x4ee5a0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x4ee5e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x0051dd00]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x4ee64e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4ee64e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x4ee64e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4ee64e
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 0x4ee645
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x4ee655
add rcx, 0x28
cmp rcx, rax
jne 0x4ee630
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x4ee668
jmp 0x4ee64e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x4ee676
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x4ee64e
test r9d, r9d
jg 0x4ee660
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x4ee700
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
nop
nop
nop
nop
nop
nop
Function at 0x10000129c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1000036f8]
lea rdx, [0x100003700]
call qword [sym.imp.API_MS_WIN_Service_Core_L1_1_0.dll_SetServiceStatus]
test eax, eax
jne 0x1000012e6
mov dword [0x100003704], 1
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp qword [0x1000036f8], 0
mov dword [0x10000370c], eax
je 0x1000012dd
call fcn.10000129c
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_ExitProcess]
inc dword [0x100003714]
add rsp, 0x28
ret

Function at 0x1000014b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x100003740], rdi
je 0x1000014fe
cmp rax, rdi
jne 0x1000014f1
mov edi, 1
mov r12d, edi
jmp 0x100001503
mov ecx, 0x3e8
call qword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x1000014d5
mov edi, 1
mov eax, dword [0x100003738]
cmp eax, edi
jne 0x100001519
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x100001576
mov eax, dword [0x100003738]
test eax, eax
jne 0x100001570
mov dword [0x100003738], edi
lea r13, [0x1000011a0]
lea rsi, [0x100001188]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x100001562
test eax, eax
jne 0x100001562
mov rcx, qword [rsi]
test rcx, rcx
je 0x100001557
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x100001540
test eax, eax
je 0x100001576
mov eax, 0xff
jmp 0x100001648
mov dword [0x100003164], edi
mov eax, dword [0x100003738]
cmp eax, edi
jne 0x10000159d
lea rdx, [0x100001180]
lea rcx, [0x100001170]
call sub.msvcrt.dll__initterm
mov dword [0x100003738], 2
test r12d, r12d
jne 0x1000015ab
xor eax, eax
xchg qword [0x100003740], rax
cmp qword [0x100003748], 0
je 0x1000015d4
lea rcx, [0x100003748]
call fcn.10000189c
test eax, eax
je 0x1000015d4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100003748]
mov r8, qword [0x100003148]
mov rdx, qword [0x100003150]
mov ecx, dword [0x100003140]
call fcn.100001440
mov dword [0x100003160], eax
cmp dword [0x100003144], 0
jne 0x100001604
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100003164], 0
jne 0x100001619
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100003160]
jmp 0x100001648
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.100135000
add rsp, 0x28
jmp 0x1000014b0

Function at 0x100001908
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100001955
cmp rcx, 0xffffffffffffffff
je 0x100001955
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000194d
cmp dword [rcx + 0x3c], edx
jl 0x10000194d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000194d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100001955
mov rax, rdx
add rsp, 0x18
ret