joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ce50
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 rdi, rcx
mov esi, dword [0x004d0070]
test esi, esi
je 0x48cf12
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x48cf07
je 0x48cea4
xor ebx, ebx
test rdi, rdi
je 0x48cea8
mov r14, qword [rdi]
mov qword [rdi], 0
test r14, r14
cmovne ebx, dword [rdi + 0x10]
cmovne r14, qword [rdi + 8]
jmp 0x48ceab
xor eax, eax
jmp 0x48cf07
xor r14d, r14d
mov rax, qword [0x004fec58]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x48cf33
mov qword [rax], r14
mov byte [rax + 8], bl
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call fcn.004cd3d4
test rdi, rdi
je 0x48cf04
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os::destroy_value::h2c279e50529633ce
call sym.std::sys::thread_local::key::windows::LazyKey::init::h597144e332ffcf99
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x48ce83
jmp 0x48cf07
mov ecx, 8
mov edx, 0x18
call sym.alloc::alloc::handle_alloc_error::h526f0ddc898dc940
int3

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

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x004d0090]
test esi, esi
je 0x48cf86
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x48cfa1
add rax, 4
jmp 0x48d01d
lea rcx, sym.std::sys::thread_local::os::destroy_value::h5a1e325c1d09bf34
call sym.std::sys::thread_local::key::windows::LazyKey::init::h597144e332ffcf99
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x48cf7d
je 0x48d01b
xor r14d, r14d
test rdi, rdi
je 0x48cfbc
cmp byte [rdi], 0
mov byte [rdi], 0
movzx eax, byte [rdi + 1]
cmove eax, r14d
mov r14d, eax
mov rax, qword [0x004fec58]
movzx eax, byte [rax]
mov ecx, 8
mov edx, 4
call sym.__rust_alloc
test rax, rax
je 0x48d02a
mov rbx, rax
mov dword [rax], esi
add rax, 4
mov r15, rax
mov byte [rbx + 4], r14b
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rdx, rbx
call fcn.004cd3d4
test rdi, rdi
je 0x48d016
mov edx, 8
mov r8d, 4
mov rcx, rdi
call sym.__rust_dealloc
mov rax, r15
jmp 0x48d01d
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov ecx, 4
mov edx, 8
call sym.alloc::alloc::handle_alloc_error::h526f0ddc898dc940
int3
Function at 0x48d040
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rdi, rcx
mov esi, dword [0x004d00d0]
test esi, esi
je 0x48d112
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x48d109
je 0x48d08d
test rdi, rdi
je 0x48d091
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x48d093
mov rbx, qword [rdi + 8]
jmp 0x48d093
xor eax, eax
jmp 0x48d109
xor ebx, ebx
mov qword [rbp - 8], rbx
mov dword [rbp], esi
mov rax, qword [0x004fec58]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x48d133
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call fcn.004cd3d4
test rdi, rdi
je 0x48d106
mov rax, qword [rdi]
test rax, rax
je 0x48d0f3
lock dec qword [rax]
jne 0x48d0f3
mov rcx, rdi
call sym.alloc::sync::Arc_T_A_::drop_slow::hcef4d9ea6db501ca
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os::destroy_value::haa3306ec31336e60
call sym.std::sys::thread_local::key::windows::LazyKey::init::h597144e332ffcf99
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x48d071
jmp 0x48d109
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h526f0ddc898dc940
ud2

Function at 0x48d170
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 rdi, rcx
mov esi, dword [0x004d0110]
test esi, esi
je 0x48d221
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x48d218
je 0x48d1b9
test rdi, rdi
je 0x48d1bd
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x48d1bf
mov rbx, qword [rdi + 8]
jmp 0x48d1bf
xor eax, eax
jmp 0x48d218
xor ebx, ebx
mov rax, qword [0x004fec58]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x48d242
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call fcn.004cd3d4
test rdi, rdi
je 0x48d215
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os::destroy_value::hae0938d07776a6a0
call sym.std::sys::thread_local::key::windows::LazyKey::init::h597144e332ffcf99
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x48d19d
jmp 0x48d218
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h526f0ddc898dc940
int3
Function at 0x48d260
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov rdi, rcx
mov esi, dword [0x004d0130]
test esi, esi
je 0x48d332
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x48d329
je 0x48d2ad
test rdi, rdi
je 0x48d2b1
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x48d2b3
mov rbx, qword [rdi + 8]
jmp 0x48d2b3
xor eax, eax
jmp 0x48d329
xor ebx, ebx
mov qword [rbp - 8], rbx
mov dword [rbp], esi
mov rax, qword [0x004fec58]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x48d353
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call fcn.004cd3d4
test rdi, rdi
je 0x48d326
mov rax, qword [rdi]
test rax, rax
je 0x48d313
lock dec qword [rax]
jne 0x48d313
mov rcx, rdi
call sym.alloc::sync::Arc_T_A_::drop_slow::h2e9684c2aaf21016
mov edx, 0x10
mov r8d, 8
mov rcx, rdi
call sym.__rust_dealloc
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, sym.std::sys::thread_local::os::destroy_value::h09a9b347479260fe
call sym.std::sys::thread_local::key::windows::LazyKey::init::h597144e332ffcf99
mov esi, eax
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x48d291
jmp 0x48d329
mov ecx, 8
mov edx, 0x10
call sym.alloc::alloc::handle_alloc_error::h526f0ddc898dc940
ud2

Function at 0x490880
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
test rdx, rdx
je 0x49089a
mov r8d, edx
and r8d, 3
cmp rdx, 4
jae 0x49089e
xor eax, eax
jmp 0x490915
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 0x4908b0
test r8, r8
je 0x49093f
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 0x490920
and eax, 0xfffffff
pop rbp
ret
Function at 0x490950
Capabilities:
Hash data using djb2

Disassembly:
push rbp
mov rbp, rsp
test rdx, rdx
je 0x490970
mov r8d, edx
and r8d, 7
cmp rdx, 8
jae 0x490977
mov eax, 0x1505
jmp 0x4909fd
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 0x490980
test r8, r8
je 0x490a29
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 0x490a10
pop rbp
ret
Function at 0x4c06e0
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 0x4c076a
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 0x4c0760
cmp r10, r11
jb 0x4c07e6
cmp r10, rdx
ja 0x4c07f8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x4c0762
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x4c0740
jmp 0x4c07c7
ja 0x4c076a
mov r11, r10
cmp rax, r8
jne 0x4c0707
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x4c07cb
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 0x4c07a0
mov r8, r10
sub ecx, r9d
jns 0x4c07be
jmp 0x4c07cd
cmp r10, rdx
je 0x4c07da
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x4c07cd
xor al, 1
cmp r8, rdx
jne 0x4c0780
jmp 0x4c07cd
xor eax, eax
jmp 0x4c07cd
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x004f3b18]
call sym.core::option::unwrap_failed::h38ae581b954ce070
lea r8, [0x004f3b30]
mov rcx, r11
mov rdx, r10
call sym.core::slice::index::slice_index_order_fail::h786748ba81f41b02
lea r8, [0x004f3b30]
mov rcx, r10
call sym.core::slice::index::slice_end_index_len_fail::hdaa9bbd2fcad4cbb
int3
Function at 0x4c7040
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 0x4c70a2
test cl, 0x20
jne 0x4c70e4
mov r8d, eax
sar r8b, 7
mov ecx, eax
xor cl, r8b
sub cl, r8b
cmp cl, 0x64
jb 0x4c7155
add cl, cl
add cl, 0x38
movzx ecx, cl
lea r8, [0x004f2ee6]
movzx ecx, word [rcx + r8]
mov word [rbp - 0x23], cx
mov r8d, 0x24
mov cl, 1
jmp 0x4c7160
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 0x4c70b0
jmp 0x4c7122
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 0x4c70f0
mov ecx, pe_nt_image_headers64
sub rcx, r8
cmp rcx, 0x81
jae 0x4c71c1
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r9
lea r8, [0x004f2ee2]
mov r9d, 2
mov rcx, rdx
mov dl, 1
jmp 0x4c71b1
mov r8d, 0x26
cmp cl, 0xa
jae 0x4c716a
or cl, 0x30
mov byte [rbp + r8 - 0x48], cl
jmp 0x4c7183
movzx ecx, cl
lea r8, [0x004f2ee6]
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::h9400909576b89ecc
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::h8d3d56967d6340e8
int3
Function at 0x4ce050
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00519764]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4ce1d8
mov rax, qword [0x00519768]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4ce09c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4ce125
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4ce080
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4ce20d
mov rax, qword [0x00519768]
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 [0x00519768]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4ce1f0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4ce11e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4ce180
add dword [0x00519764], 1
cmp edi, 8
jae 0x4ce153
test dil, 4
jne 0x4ce1c4
test edi, edi
je 0x4ce148
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4ce1df
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 0x4ce148
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 0x4ce16c
jmp 0x4ce148
add rsi, qword [0x00519768]
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 0x4ce11e
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 0x4ce148
xor esi, esi
jmp 0x4ce0a7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4ce148
mov rax, qword [0x00519768]
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 0x4ce960
Capabilities:
Get thread local storage value

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

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

Function at 0x4cec10
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 0x4cec51
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 0x4cec48
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4cec53
add rax, 0x28
cmp rax, r9
jne 0x4cec34
xor eax, eax
ret

Function at 0x4cecf0
Capabilities:
Enumerate pe sections

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

Function at 0x4cee60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004febe0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x4cee80
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4cee78
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 0x4ceedd
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 0x4ceed4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4ceee4
add rax, 0x28
cmp rax, r9
jne 0x4ceec0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x4cef00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004febe0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x4cef6e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4cef6e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x4cef6e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4cef6e
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 0x4cef65
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x4cef75
add rcx, 0x28
cmp rcx, rax
jne 0x4cef50
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x4cef88
jmp 0x4cef6e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x4cef96
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x4cef6e
test r9d, r9d
jg 0x4cef80
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x4cf020
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 0x14060a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14060a1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14060a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14060a06f
add dl, dl
jne 0x14060a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14060a0f6
xor eax, eax
add dl, dl
jne 0x14060a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14060a1ad
add dl, dl
jne 0x14060a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14060a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14060a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14060a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14060a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14060a07e
mov eax, 1
add dl, dl
jne 0x14060a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14060a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14060a0fb
sub eax, ebx
mov ebx, 1
jne 0x14060a14c
mov ecx, 1
add dl, dl
jne 0x14060a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14060a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14060a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14060a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14060a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14060a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14060a15d
cmp eax, 0x7d00
jae 0x14060a19b
cmp eax, 0x500
jb 0x14060a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14060a07e
cmp eax, 0x7f
ja 0x14060a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14060a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14060a1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14060a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x401250
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
mov r11d, eax
mov eax, 1
cmp ecx, 5
ja 0x401278
jne 0x401276
shr r11w, 8
cmp r11b, al
jae 0x401278
xor eax, eax
add rsp, 0x28
ret

Function at 0x4017c8
Capabilities:
Move file

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov ecx, 0x400
mov rdi, rdx
call fcn.004171e0
mov edx, 0x400
mov rcx, rax
mov rbx, rax
call fcn.0041ae70
lea rcx, str._Extractor__Working_dir_is__s_n
mov rdx, rbx
call fcn.0040bd0c
mov rcx, rbx
call fcn.004171a0
mov rcx, rdi
call fcn.0040b4b0
test eax, eax
je 0x40185d
lea rcx, str._Rename__The_target_already_exists._Deleting._n
call fcn.0040bd0c
mov ecx, 0x104
call fcn.004171e0
lea rdx, str.Remove__s
mov r8, rdi
mov rcx, rax
mov rbx, rax
call fcn.00418380
mov rdx, rbx
mov rcx, rdi
call fcn.00418350
mov rcx, rbx
test eax, eax
jne 0x40186f
call fcn.0040b384
mov rcx, rbx
call fcn.004171a0
mov rdx, rdi
mov rcx, rsi
call fcn.00418350
xor ebx, ebx
jmp 0x401904
call fcn.004171a0
lea rcx, str._Rename__Unable_to_rename_folder__s_prior_to_deletion.
mov rdx, rdi
call fcn.0040bd0c
jmp 0x40191a
cmp ebx, 0xa
jge 0x401930
call fcn.00417690
lea rcx, str._Rename__Could_not_rename__s_to__s___d__n
mov r8, rdi
mov r9d, dword [rax]
mov rdx, rsi
call fcn.0040bd0c
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str._Rename__Windows___this_FS_seems_to_not_supported_renaming._Trying_alternative_method..._n
call fcn.0040bd0c
mov r8d, 3
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x401922
lea rdx, str.MoveFileEx
lea rcx, str.Extractor
call fcn.0040ace4
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdx, rdi
mov rcx, rsi
add ebx, 1
call fcn.00418350
test eax, eax
jne 0x401888
lea rcx, str._Rename__File__s_renamed_to__s_n
mov r8, rdi
mov rdx, rsi
call fcn.0040bd0c
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
lea rcx, str._Rename__MoveFileEx_worked._Assuming_success._n
call fcn.0040bd0c
xor eax, eax
test eax, eax
je 0x401908
call fcn.00417690
lea rcx, str._Rename___FAIL__Could_not_rename__s_to__s___d__n
mov r8, rdi
mov r9d, dword [rax]
mov rdx, rsi
call fcn.0040bd0c
lea rcx, str._Rename__Can_do_no_better_than_a_copy_on_this_filesystem_n
call fcn.0040bd0c
mov rcx, rdi
call fcn.0040bc24
lea rcx, str._Rename__Created_folder__s_n
mov rdx, rdi
call fcn.0040bd0c
mov rdx, rdi
mov rcx, rsi
call fcn.00401a30
test eax, eax
je 0x40198e
lea rcx, str._Rename__Copy_failed_too__Severe_filesystem_issues._n
call fcn.0040bd0c
jmp 0x40191a
lea rcx, str._Rename__Copied__s_to__s_n
jmp 0x40190f