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

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1400a00e0]
test ecx, ecx
je 0x14005e9a3
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005e8bf
cmp qword [rax + 8], 0
jne 0x14005e99d
mov ecx, dword [0x1400a00e0]
test ecx, ecx
je 0x14005e9d5
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005e9f2
test rax, rax
jne 0x14005e949
mov qword [rsp + 0x28], 0
lea rax, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
mov qword [rsp + 0x20], rax
mov rax, qword [str.1__r_]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005ea14
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400a00e0]
test ecx, ecx
je 0x14005e9fb
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.14009db84
mov rax, rdi
test rsi, rsi
je 0x14005e9c5
mov rcx, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
je 0x14005e9c5
mov r8, qword [rax + 8]
mov rdx, qword [rax + 0x10]
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x28], rdx
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
test r8, r8
je 0x14005e99d
test rdx, rdx
je 0x14005e99d
lock dec qword [rdx]
jne 0x14005e99d
lea rcx, [rsp + 0x28]
mov rsi, rax
call dbg.drop_slow<std::sync::mpmc::context::Inner, alloc::alloc::Global>
mov rax, rsi
add rax, 0x10
jmp 0x14005e9f4
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005e8b4
jmp 0x14005e8bf
mov rsi, rax
call sym.std::sync::mpmc::context::Context::new::h52887c5962e8c9c3
mov rcx, rax
mov rax, rsi
jmp 0x14005e95f
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005e8de
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
mov rdi, rax
call dbg.init
mov ecx, eax
mov rax, rdi
jmp 0x14005e93b
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x14005ea40
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1400a0100]
test ecx, ecx
je 0x14005eb59
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005ea6f
cmp qword [rax + 8], 0
jne 0x14005eb53
mov ecx, dword [0x1400a0100]
test ecx, ecx
je 0x14005eb7b
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005eb98
test rax, rax
jne 0x14005eaf9
mov qword [rsp + 0x28], 0
lea rax, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
mov qword [rsp + 0x20], rax
mov rax, qword [str.1__r_]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005ebba
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rax], xmm0
mov ecx, dword [0x1400a0100]
test ecx, ecx
je 0x14005eba1
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.14009db84
mov rax, rdi
test rsi, rsi
je 0x14005eb13
mov rcx, qword [rsi]
mov qword [rsi], 0
test rcx, rcx
je 0x14005eb15
mov rcx, qword [rsi + 8]
jmp 0x14005eb15
xor ecx, ecx
mov r8, qword [rax + 8]
mov rdx, qword [rax + 0x10]
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x28], rdx
mov qword [rax + 8], 1
mov qword [rax + 0x10], rcx
test r8, r8
je 0x14005eb53
test rdx, rdx
je 0x14005eb53
lock dec qword [rdx]
jne 0x14005eb53
lea rcx, [rsp + 0x28]
mov rsi, rax
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
mov rax, rsi
add rax, 0x10
jmp 0x14005eb9a
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, 2
jae 0x14005ea64
jmp 0x14005ea6f
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
jne 0x14005ea8e
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
mov rdi, rax
call dbg.init
mov ecx, eax
mov rax, rdi
jmp 0x14005eaeb
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x14005ebf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1400a0120]
test ecx, ecx
je 0x14005ece2
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14005ec1f
cmp qword [rax + 8], 0
jne 0x14005ecdc
mov ecx, dword [0x1400a0120]
test ecx, ecx
je 0x14005ed04
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14005ed21
test rax, rax
jne 0x14005ec95
mov rax, qword [str.1__r_]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14005ed43
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
mov qword [rax], rcx
mov qword [rax + 8], 0
mov ecx, dword [0x1400a0120]
test ecx, ecx
je 0x14005ed2a
dec ecx
mov rdx, rax
mov rdi, rax
call fcn.14009db84
mov rax, rdi
test rsi, rsi
je 0x14005ecae
mov rcx, qword [rsi]
movups xmm0, xmmword [rsi + 8]
mov qword [rsi], 0
cmp rcx, 1
je 0x14005ecd0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
mov edx, 0x10
mov rsi, rax
call sub.bcryptprimitives.dll_ProcessPrng
mov rax, rsi
movaps xmm0, xmmword [rsp + 0x20]
mov qword [rax + 8], 1
movups xmmword [rax + 0x10], xmm0
add rax, 0x10
jmp 0x14005ed23
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14005ec14
jmp 0x14005ec1f
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call dbg.init
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14005ec3e
xor eax, eax
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
mov rdi, rax
call dbg.init
mov ecx, eax
mov rax, rdi
jmp 0x14005ec87
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
int3
Function at 0x140092f70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x140092fea
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140092fe0
cmp r11, r10
ja 0x140093075
cmp r10, rdx
ja 0x140093087
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140092fe2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140092fc0
jmp 0x140093057
ja 0x140092fea
mov r11, r10
cmp rax, r8
jne 0x140092f92
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14009305b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140093030
mov r8, r10
sub ecx, r9d
jns 0x14009304e
jmp 0x14009305d
cmp r10, rdx
je 0x140093069
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14009305d
xor al, 1
cmp r8, rdx
jne 0x140093010
jmp 0x14009305d
xor eax, eax
jmp 0x14009305d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1400bc220]
call sym.core::option::unwrap_failed::hc0851016c6838662
lea r8, [0x1400bc238]
mov rcx, r11
mov rdx, r10
call dbg.slice_index_order_fail
lea r8, [0x1400bc238]
mov rcx, r10
call dbg.slice_end_index_len_fail
int3
Function at 0x140097b00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
sub rsp, 0xb0
movzx eax, byte [rcx]
mov ecx, dword [rdx + 0x34]
test cl, 0x10
jne 0x140097b5a
test cl, 0x20
jne 0x140097ba4
mov r8d, eax
sar r8b, 7
mov ecx, eax
xor cl, r8b
sub cl, r8b
cmp cl, 0x64
jb 0x140097c25
add cl, cl
add cl, 0x38
movzx ecx, cl
lea r8, [0x1400bb6a6]
movzx ecx, word [rcx + r8]
mov word [rsp + 0x55], cx
mov r8d, 0x24
mov cl, 1
jmp 0x140097c30
lea r9, [rsp + 0xb0]
xor r8d, r8d
mov ecx, eax
nop word [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 0x140097b70
jmp 0x140097bf2
lea r9, [rsp + 0xb0]
xor r8d, r8d
mov ecx, eax
nop word cs:[rax + 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 0x140097bc0
mov ecx, pe_nt_image_headers64
sub rcx, r8
cmp rcx, 0x81
jae 0x140097c92
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r9
lea r8, [0x1400bb6a2]
mov r9d, 2
mov rcx, rdx
mov dl, 1
jmp 0x140097c83
mov r8d, 0x26
cmp cl, 0xa
jae 0x140097c3a
or cl, 0x30
mov byte [rsp + r8 + 0x30], cl
jmp 0x140097c54
movzx ecx, cl
lea r8, [0x1400bb6a6]
movzx ecx, word [r8 + rcx*2]
mov word [rsp + 0x55], cx
mov r8d, 0x25
lea rcx, [rsp + r8]
add rcx, 0x30
mov r9d, 0x27
sub r9, r8
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rcx
not al
shr al, 7
lea r8, str.librarycore_src_num_f32.rs
mov rcx, rdx
mov edx, eax
xor r9d, r9d
call dbg.pad_integral
nop
add rsp, 0xb0
pop rsi
ret
lea r8, str.librarycore_src_fmt_num.rs
mov edx, pe_nt_image_headers64
call dbg.slice_start_index_len_fail
int3
Function at 0x14009e930
Capabilities:
Write file on windows

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

Function at 0x14009e9a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400d61f4]
mov rbx, rcx
test esi, esi
jle 0x14009ead0
mov rax, qword [0x1400d61f8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14009e9eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14009ea75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14009e9d0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14009eaf2
mov rax, qword [0x1400d61f8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400d61f8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14009ead7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14009ea6e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14009ea80
add dword [0x1400d61f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400d61f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14009ea6e
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 esi, esi
jmp 0x14009e9f8
mov rax, qword [0x1400d61f8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14009f080
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400d6260]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400d6240]
test rbx, rbx
je 0x14009f0dc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14009f0d3
test eax, eax
jne 0x14009f0d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14009f0b8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14009f2f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14009f308
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14009f310
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14009f320
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14009f36d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x14009f364
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14009f36f
add rax, 0x28
cmp rax, r9
jne 0x14009f350
xor eax, eax
ret

Function at 0x14009f370
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14009f400
mov rdx, qword [0x1400c7110]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14009f3ee
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14009f3ee
cmp word [rax + 0x18], 0x20b
jne 0x14009f3ee
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14009f400
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14009f3d9
add rbx, 0x28
cmp rbx, rdi
je 0x14009f400
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14009f3d0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14009f410
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c7110]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14009f430
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14009f438
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14009f430
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14009f48d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14009f484
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14009f430
add rax, 0x28
cmp rax, r9
jne 0x14009f470
xor eax, eax
ret

Function at 0x14009f490
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c7110]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14009f4af
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14009f4b8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14009f4af
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x14009f4d0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400c7110]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14009f4f0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14009f4f8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14009f4f0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14009f540
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14009f537
test rcx, rcx
je 0x14009f4f0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x14009f528
xor eax, eax
ret

Function at 0x14009f550
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c7110]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14009f56f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14009f578
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14009f590
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c7110]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14009f5b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14009f5b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14009f5b0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x14009f5b0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14009f604
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14009f610
add rdx, 0x28
cmp rdx, r9
jne 0x14009f5f0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x14009f620
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400c7110]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14009f642
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14009f650
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14009f642
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14009f642
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14009f642
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14009f6a5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14009f6b8
add rdx, 0x28
cmp r10, rdx
jne 0x14009f690
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14009f6c7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14009f6d7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14009f6ae
test ecx, ecx
jg 0x14009f6c0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140002118
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002162
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002162
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002162
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002162
cmp dword [rcx + 0x84], 0xe
jbe 0x140002162
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002164
xor al, al
add rsp, 0x28
ret
Function at 0x180007e80
Capabilities:
Hash data with md5

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1801878e0]
xor rax, rsp
mov qword [rbp], rax
mov rbx, r9
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x40], esi
lea rcx, [rsp + 0x48]
call fcn.18000b0c0
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180002da0
nop
mov rax, qword [rsp + 0x60]
cmp rax, 0x10
jb 0x180007f28
inc rax
mov rcx, qword [rsp + 0x48]
cmp rax, 0x1000
jb 0x180007f23
test cl, 0x1f
je 0x180007ef6
call fcn.18008185c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180007f05
call fcn.18008185c
int3
sub rcx, rax
cmp rcx, 8
jae 0x180007f14
call fcn.18008185c
int3
cmp rcx, 0x27
jbe 0x180007f20
call fcn.18008185c
int3
mov rcx, rax
call fcn.18005e5ac
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x58], rsi
mov byte [rsp + 0x48], 0
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rdx, qword [rsp + 0x70]
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x30], rsi
mov byte [rsp + 0x20], 0
cmp byte [rdx], 0
jne 0x180007f68
mov r8, rsi
jmp 0x180007f7a
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x180007f70
lea rcx, [rsp + 0x20]
call fcn.1800023a0
mov byte [rbp - 8], 0
mov qword [rbp - 0x60], rsi
mov dword [rbp - 0x70], 0x67452301
mov dword [rbp - 0x6c], 0xefcdab89
mov dword [rbp - 0x68], 0x98badcfe
mov dword [rbp - 0x64], 0x10325476
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.18000e1f0
mov rax, qword [rsp + 0x38]
cmp rax, 0x10
jb 0x18000801f
inc rax
mov rcx, qword [rsp + 0x20]
cmp rax, 0x1000
jb 0x18000801a
test cl, 0x1f
je 0x180007fed
call fcn.18008185c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180007ffc
call fcn.18008185c
int3
sub rcx, rax
cmp rcx, 8
jae 0x18000800b
call fcn.18008185c
int3
cmp rcx, 0x27
jbe 0x180008017
call fcn.18008185c
int3
mov rcx, rax
call fcn.18005e5ac
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.18000ed60
cmp qword [rdi + 0x18], 0x10
jb 0x180008037
mov rcx, qword [rdi]
jmp 0x18000803a
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharUpperA]
nop
mov rax, qword [rbp - 0x78]
cmp rax, 0x10
jb 0x180008098
inc rax
mov rcx, qword [rsp + 0x70]
cmp rax, 0x1000
jb 0x180008093
test cl, 0x1f
je 0x180008066
call fcn.18008185c
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x180008075
call fcn.18008185c
int3
sub rcx, rax
cmp rcx, 8
jae 0x180008084
call fcn.18008185c
int3
cmp rcx, 0x27
jbe 0x180008090
call fcn.18008185c
int3
mov rcx, rax
call fcn.18005e5ac
mov rax, rdi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.18005ef00
add rsp, 0x118
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180008540
Capabilities:
Get common file path
Get file version info

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [0x1801878e0]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
xor ebx, ebx
call fcn.18007f510
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rbx + 0x25]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x180008595
xor eax, eax
jmp 0x180008634
lea rdx, [0x1800ca070]
mov qword [rsp + 0x270], rsi
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x18000862a
mov ecx, esi
mov qword [rsp + 0x278], rdi
call fcn.18005f60c
mov r9, rax
mov dword [rsp + 0x38], ebx
mov r8d, esi
mov qword [rsp + 0x30], rbx
xor edx, edx
lea rcx, [rsp + 0x40]
mov rdi, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x18000861a
lea r9, [rsp + 0x38]
mov rcx, rdi
lea r8, [rsp + 0x30]
lea rdx, [0x1800ca08c]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x18000861a
mov rax, qword [rsp + 0x30]
mov ebx, dword [rax + 8]
mov rcx, rdi
call fcn.18005e6b0
mov rdi, qword [rsp + 0x278]
mov rsi, qword [rsp + 0x270]
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18005ef00
add rsp, 0x260
pop rbx
ret

Function at 0x180008a70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1801878e0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor ebx, ebx
mov rsi, r8
mov rdi, rdx
mov dword [rsp + 0x30], ebx
mov r14, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov rbp, r9
lea r8d, [rbx + 0x64]
call fcn.18007f510
lea r8, [rsp + 0x38]
mov dword [rsp + 0x40], 0x64
mov rdx, rsi
mov qword [rsp + 0x38], rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x180008b01
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov rdx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180008b0c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov qword [r14 + 0x10], rbx
mov byte [r14], bl
cmp byte [rsp + 0x50], bl
je 0x180008b39
lea rax, [rsp + 0x50]
or rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x180008b30
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.1800023a0
mov rax, r14
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.18005ef00
add rsp, 0xd0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret