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

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x1400e00e8]
test ecx, ecx
je 0x14007cc0f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14007cc28
cmp byte [rax + 8], 0
je 0x14007cc28
add rax, 9
jmp 0x14007ccd0
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14007cc00
mov ecx, dword [0x1400e00e8]
test ecx, ecx
je 0x14007ccb1
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14007ccce
mov rdi, rax
test rax, rax
jne 0x14007cc8e
mov rax, qword [0x14017f268]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14007cce7
mov rdi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x1400e00e8]
test ecx, ecx
je 0x14007ccd7
dec ecx
mov rdx, rdi
call fcn.1400dd78c
xor ecx, ecx
test rsi, rsi
je 0x14007cca4
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rdi + 9]
mov byte [rdi + 8], 1
mov byte [rdi + 9], cl
jmp 0x14007ccd0
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14007cc43
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
jmp 0x14007cc86
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2
Function at 0x14007cd00
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 [0x1400e0108]
test ecx, ecx
je 0x14007ce10
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14007cd32
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14007ce0a
mov ecx, dword [0x1400e0108]
test ecx, ecx
je 0x14007ce39
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14007ce56
mov rdi, rax
test rax, rax
jne 0x14007cdbc
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 [0x14017f268]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14007ce75
mov rdi, rax
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov ecx, dword [0x1400e0108]
test ecx, ecx
je 0x14007ce62
dec ecx
mov rdx, rdi
call fcn.1400dd78c
test rsi, rsi
je 0x14007ce32
mov rax, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
je 0x14007ce32
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x14007ce0a
test rcx, rcx
je 0x14007ce0a
lock dec qword [rcx]
jne 0x14007ce0a
lea rcx, [rsp + 0x28]
call dbg.drop_slow<std::sync::mpmc::context::Inner, alloc::alloc::Global>
add rdi, 0x10
jmp 0x14007ce58
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14007cd24
jmp 0x14007cd32
call sym.std::sync::mpmc::context::Context::new::hecdaf09487166125
jmp 0x14007cdd2
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14007cd51
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
jmp 0x14007cdb4
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x14007cea0
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 [0x1400e0128]
test ecx, ecx
je 0x14007cfb6
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14007ced2
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x14007cfb0
mov ecx, dword [0x1400e0128]
test ecx, ecx
je 0x14007cfd8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14007cff5
mov rdi, rax
test rax, rax
jne 0x14007cf5c
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 [0x14017f268]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14007d014
mov rdi, rax
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov ecx, dword [0x1400e0128]
test ecx, ecx
je 0x14007d001
dec ecx
mov rdx, rdi
call fcn.1400dd78c
test rsi, rsi
je 0x14007cf76
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x14007cf78
mov rax, qword [rsi + 8]
jmp 0x14007cf78
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x14007cfb0
test rcx, rcx
je 0x14007cfb0
lock dec qword [rcx]
jne 0x14007cfb0
lea rcx, [rsp + 0x28]
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
add rdi, 0x10
jmp 0x14007cff7
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 sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14007cec4
jmp 0x14007ced2
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 sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14007cef1
xor edi, edi
mov rax, rdi
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____
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
jmp 0x14007cf54
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x14007d040
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1400e0148]
test ecx, ecx
je 0x14007d073
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x14007d08c
mov rcx, rax
cmp qword [rax + 8], 0
je 0x14007d08c
add rcx, 0x10
jmp 0x14007d189
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x14007d060
mov ecx, dword [0x1400e0148]
test ecx, ecx
je 0x14007d16a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14007d187
mov rdi, rax
test rax, rax
jne 0x14007d102
mov rax, qword [0x14017f268]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x14007d1a6
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::Cell__u64__u64___
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1400e0148]
test ecx, ecx
je 0x14007d193
dec ecx
mov rdx, rdi
call fcn.1400dd78c
test rsi, rsi
je 0x14007d11f
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x14007d154
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x14007d14f
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14007d154
call dbg.fallback_rng
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
jmp 0x14007d189
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14007d0ab
xor ecx, ecx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__u64__u64___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h2de08b4a932e6024
mov ecx, eax
jmp 0x14007d0fa
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x1400c43a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400c441a
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 0x1400c4410
cmp r11, r10
ja 0x1400c44b3
cmp r10, rdx
ja 0x1400c44c7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400c4412
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400c43f0
jmp 0x1400c4487
ja 0x1400c441a
mov r11, r10
cmp rax, r8
jne 0x1400c43c2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400c448b
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 0x1400c4460
mov r8, r10
sub ecx, r9d
jns 0x1400c447e
jmp 0x1400c448d
cmp r10, rdx
je 0x1400c4499
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400c448d
xor al, 1
cmp r8, rdx
jne 0x1400c4440
jmp 0x1400c448d
xor eax, eax
jmp 0x1400c448d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valueassertion_failed:__buf.is_empty__
lea r8, [0x140172088]
mov edx, 0x2b
call dbg.panic
ud2
lea r8, [0x1401720a0]
mov rcx, r11
mov rdx, r10
call dbg.slice_index_order_fail
ud2
lea r8, [0x1401720a0]
mov rcx, r10
call dbg.slice_end_index_len_fail
ud2
Function at 0x1400de690
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 0x1400de700
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401942c4]
mov rbx, rcx
test esi, esi
jle 0x1400de830
mov rax, qword [0x1401942c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400de74b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400de7d5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400de730
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400de852
mov rax, qword [0x1401942c8]
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 [0x1401942c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400de837
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400de7ce
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400de7e0
add dword [0x1401942c4], 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 [0x1401942c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400de7ce
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 0x1400de758
mov rax, qword [0x1401942c8]
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 0x1400dede0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140194320]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140194300]
test rbx, rbx
je 0x1400dee3c
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 0x1400dee33
test eax, eax
jne 0x1400dee33
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400dee18
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 0x1400df050
Capabilities:
Parse pe header

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

Function at 0x1400df080
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 0x1400df0cd
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 0x1400df0c4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400df0cf
add rax, 0x28
cmp rax, r9
jne 0x1400df0b0
xor eax, eax
ret

Function at 0x1400df0d0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400df160
mov rdx, qword [0x14017f1b0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400df14e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400df14e
cmp word [rax + 0x18], 0x20b
jne 0x1400df14e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400df160
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400df139
add rbx, 0x28
cmp rbx, rdi
je 0x1400df160
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400df130
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 0x1400df170
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14017f1b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400df190
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400df198
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400df190
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400df1ed
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 0x1400df1e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400df190
add rax, 0x28
cmp rax, r9
jne 0x1400df1d0
xor eax, eax
ret

Function at 0x1400df1f0
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x14017f1b0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400df250
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400df258
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400df250
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400df2a0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400df297
test rcx, rcx
je 0x1400df250
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400df288
xor eax, eax
ret

Function at 0x1400df2b0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x14017f1b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400df310
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400df318
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400df310
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400df310
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 0x1400df364
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400df370
add rdx, 0x28
cmp rdx, r9
jne 0x1400df350
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14017f1b0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400df3a2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400df3b0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400df3a2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400df3a2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400df3a2
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 0x1400df405
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400df418
add rdx, 0x28
cmp r10, rdx
jne 0x1400df3f0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400df427
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400df437
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400df40e
test ecx, ecx
jg 0x1400df420
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400010fa
Capabilities:
Parse pe header

Disassembly:
jmp 0x140108be0
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1401089ab
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401089ab
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401089ab
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401089ab
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401089ab
cmp dword [rcx + 0x84], 0xe
jbe 0x1401089ab
cmp dword [rcx + 0xf8], 0
je 0x1401089ab
mov ecx, ebx
call fcn.140108b3c
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1401086bc
cmp dword [rbp + 0x20], 0
je 0x1401089f8
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140108a30
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140108944

Function at 0x1400012bc
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14011b5a4
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x140142e78]
mov ecx, 5
lea r8, [0x140142e70]
lea rdx, str.FlsGetValue
call fcn.14011ab9c
mov ecx, ebx
test rax, rax
je 0x14011b5de
add rsp, 0x20
pop rbx
jmp qword [case.0x1400bbb12.0]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x140001523
Capabilities:
Check if file exists

Disassembly:
jmp 0x140024b40
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x140024d6e
xor edx, edx
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rbx + rax*2], dx
jne 0x140024b70
test rax, rax
je 0x140024ba4
xor ecx, ecx
movzx r8d, word [rbx + rcx*2]
cmp r8w, 0x5c
je 0x140024d6e
cmp r8w, 0x2f
je 0x140024d6e
inc edx
mov ecx, edx
cmp rcx, rax
jb 0x140024b80
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.14000224d
mov rsi, rax
test rax, rax
je 0x140024c9e
mov qword [rsp + 0x50], r14
call fcn.1400024eb
mov r14, rax
test rax, rax
je 0x140024c8b
mov rcx, rsi
call fcn.14001e4b0
test eax, eax
je 0x140024c74
lea rax, str.system32_
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x20]
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
nop word [rax + rax]
mov rdx, qword [rdi]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rdx + rbx*2], bp
jne 0x140024c20
mov r8, rbx
mov rcx, rsi
call fcn.140003661
test eax, eax
je 0x140024c48
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
jb 0x140024c10
jmp 0x140024c57
lea rdx, [rsi + rbx*2]
mov rcx, r14
call fcn.140022d50
mov rbp, rax
lea rax, [rsp + 0x30]
cmp rdi, rax
jne 0x140024c82
mov rcx, rsi
call fcn.14001e440
test eax, eax
je 0x140024c82
mov rbp, rsi
xor esi, esi
jmp 0x140024c82
mov rdx, rsi
mov rcx, r14
call fcn.140022d50
mov rbp, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r14, qword [rsp + 0x50]
jmp 0x140024d3a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
jne 0x140024d43
mov rcx, rbx
call fcn.14001e310
mov rdi, rax
test rax, rax
je 0x140024d43
mov ecx, 0x37e4
call fcn.140021c40
test eax, eax
je 0x140024cd8
xor ecx, ecx
call fcn.140002de7
jmp 0x140024cdd
call fcn.1400024eb
mov rbx, rax
test rax, rax
je 0x140024d31
mov rdx, rdi
mov rcx, rax
call fcn.140022d50
mov rbp, rax
test rax, rax
je 0x140024d28
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140024d0a
test al, 0x50
je 0x140024d28
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140024d1d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x140024d43
xor ecx, ecx
jmp 0x140024d50
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140024d56
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x48]
mov rax, rbp
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rbp
ret