joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c0a20
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 [0x1401290c8]
test ecx, ecx
je 0x1400c0a50
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400c0a69
cmp qword [rax + 8], 0
je 0x1400c0a69
add rax, 0x10
jmp 0x1400c0b31
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::hcf9bc6fc43076be8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400c0a40
mov ecx, dword [0x1401290c8]
test ecx, ecx
je 0x1400c0b12
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400c0b2f
mov rdi, rax
test rax, rax
jne 0x1400c0adb
mov rax, qword [0x14016e368]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400c0b48
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::Cell__usize__bool___
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1401290c8]
test ecx, ecx
je 0x1400c0b38
dec ecx
mov rdx, rdi
call fcn.1401256d4
xor ecx, ecx
test rsi, rsi
je 0x1400c0afb
mov rax, qword [rsi]
mov qword [rsi], 0
cmp rax, 1
jne 0x1400c0afb
mov rdx, qword [rsi + 8]
mov ecx, dword [rsi + 0x10]
jmp 0x1400c0afd
xor edx, edx
mov qword [rdi + 8], 1
lea rax, [rdi + 0x10]
mov qword [rdi + 0x10], rdx
mov byte [rdi + 0x18], cl
jmp 0x1400c0b31
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::hcf9bc6fc43076be8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400c0a88
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::hcf9bc6fc43076be8
mov ecx, eax
jmp 0x1400c0ad3
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x1400c0b60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1401290e8]
test ecx, ecx
je 0x1400c0b94
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400c0bad
mov rbx, rax
cmp qword [rax + 8], 0
je 0x1400c0bad
add rbx, 0x10
jmp 0x1400c0c98
lea rcx, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
call sym.std::sys::windows::thread_local_key::StaticKey::init::hcf9bc6fc43076be8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400c0b81
mov ecx, dword [0x1401290e8]
test ecx, ecx
je 0x1400c0c79
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400c0c96
mov rdi, rax
test rax, rax
jne 0x1400c0c23
mov rax, qword [0x14016e368]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400c0cb6
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x1401290e8]
test ecx, ecx
je 0x1400c0ca3
dec ecx
mov rdx, rdi
call fcn.1401256d4
test rsi, rsi
je 0x1400c0c44
mov rax, qword [rsi]
mov qword [rsi], 0
mov rdx, rax
test rax, rax
je 0x1400c0c48
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
jmp 0x1400c0c48
xor eax, eax
xor edx, edx
lea rbx, [rdi + 0x10]
cmp qword [rdi + 8], 0
mov rcx, qword [rdi + 0x18]
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
je 0x1400c0c98
test rcx, rcx
je 0x1400c0c98
lock dec qword [rcx]
jne 0x1400c0c98
call dbg.drop_slow<std::thread::Inner>
jmp 0x1400c0c98
lea rcx, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
call sym.std::sys::windows::thread_local_key::StaticKey::init::hcf9bc6fc43076be8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400c0bcc
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::RefCell_core::option::Option_std::sys_common::thread_info::ThreadInfo___
call sym.std::sys::windows::thread_local_key::StaticKey::init::hcf9bc6fc43076be8
mov ecx, eax
jmp 0x1400c0c1b
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x1400c0ce0
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 [0x140129108]
test ecx, ecx
je 0x1400c0d0f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400c0d28
cmp byte [rax + 8], 0
je 0x1400c0d28
add rax, 9
jmp 0x1400c0dd0
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::hcf9bc6fc43076be8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400c0d00
mov ecx, dword [0x140129108]
test ecx, ecx
je 0x1400c0db1
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400c0dce
mov rdi, rax
test rax, rax
jne 0x1400c0d8e
mov rax, qword [0x14016e368]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400c0de7
mov rdi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x140129108]
test ecx, ecx
je 0x1400c0dd7
dec ecx
mov rdx, rdi
call fcn.1401256d4
xor ecx, ecx
test rsi, rsi
je 0x1400c0da4
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 0x1400c0dd0
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::hcf9bc6fc43076be8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400c0d43
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::hcf9bc6fc43076be8
mov ecx, eax
jmp 0x1400c0d86
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2
Function at 0x1400c0e00
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 [0x140129128]
test ecx, ecx
je 0x1400c0e2f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400c0e48
cmp byte [rax + 8], 0
je 0x1400c0e48
add rax, 9
jmp 0x1400c0ef0
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::hcf9bc6fc43076be8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400c0e20
mov ecx, dword [0x140129128]
test ecx, ecx
je 0x1400c0ed1
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400c0eee
mov rdi, rax
test rax, rax
jne 0x1400c0eae
mov rax, qword [0x14016e368]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400c0f07
mov rdi, rax
lea rax, dbg.destroy_value_u8_
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x140129128]
test ecx, ecx
je 0x1400c0ef7
dec ecx
mov rdx, rdi
call fcn.1401256d4
xor ecx, ecx
test rsi, rsi
je 0x1400c0ec4
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 0x1400c0ef0
lea rcx, dbg.destroy_value_u8_
call sym.std::sys::windows::thread_local_key::StaticKey::init::hcf9bc6fc43076be8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400c0e63
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::hcf9bc6fc43076be8
mov ecx, eax
jmp 0x1400c0ea6
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
ud2
Function at 0x1400c0f20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140129148]
test ecx, ecx
je 0x1400c0f54
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400c0f6d
mov rbx, rax
cmp qword [rax + 8], 0
je 0x1400c0f6d
add rbx, 0x10
jmp 0x1400c1048
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::hcf9bc6fc43076be8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400c0f41
mov ecx, dword [0x140129148]
test ecx, ecx
je 0x1400c1029
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400c1046
mov rdi, rax
test rax, rax
jne 0x1400c0fdf
mov rax, qword [0x14016e368]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400c1066
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::Cell_core::option::Option_std::sync::mpmc::context::Context___
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x140129148]
test ecx, ecx
je 0x1400c1053
dec ecx
mov rdx, rdi
call fcn.1401256d4
test rsi, rsi
je 0x1400c1022
mov rax, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
je 0x1400c1022
lea rbx, [rdi + 0x10]
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 8], 0
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
je 0x1400c1048
test rcx, rcx
je 0x1400c1048
lock dec qword [rcx]
jne 0x1400c1048
call dbg.drop_slow<std::sync::mpmc::context::Inner>
jmp 0x1400c1048
call sym.std::sync::mpmc::context::Context::new::hf9d6636d1d7cf321
jmp 0x1400c0ff5
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::hcf9bc6fc43076be8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400c0f8c
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
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::hcf9bc6fc43076be8
mov ecx, eax
jmp 0x1400c0fd7
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x1400c1090
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140129168]
test ecx, ecx
je 0x1400c10c4
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400c10dd
mov rbx, rax
cmp qword [rax + 8], 0
je 0x1400c10dd
add rbx, 0x10
jmp 0x1400c11b7
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______
call sym.std::sys::windows::thread_local_key::StaticKey::init::hcf9bc6fc43076be8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400c10b1
mov ecx, dword [0x140129168]
test ecx, ecx
je 0x1400c1198
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400c11b5
mov rdi, rax
test rax, rax
jne 0x1400c114f
mov rax, qword [0x14016e368]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400c11d5
mov rdi, rax
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______
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x140129168]
test ecx, ecx
je 0x1400c11c2
dec ecx
mov rdx, rdi
call fcn.1401256d4
test rsi, rsi
je 0x1400c1169
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x1400c116b
mov rax, qword [rsi + 8]
jmp 0x1400c116b
xor eax, eax
lea rbx, [rdi + 0x10]
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 8], 0
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
je 0x1400c11b7
test rcx, rcx
je 0x1400c11b7
lock dec qword [rcx]
jne 0x1400c11b7
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>>
jmp 0x1400c11b7
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______
call sym.std::sys::windows::thread_local_key::StaticKey::init::hcf9bc6fc43076be8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400c10fc
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
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______
call sym.std::sys::windows::thread_local_key::StaticKey::init::hcf9bc6fc43076be8
mov ecx, eax
jmp 0x1400c1147
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x1400c1200
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 [0x140129188]
test ecx, ecx
je 0x1400c1233
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x1400c124c
mov rcx, rax
cmp qword [rax + 8], 0
je 0x1400c124c
add rcx, 0x10
jmp 0x1400c1349
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::hcf9bc6fc43076be8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x1400c1220
mov ecx, dword [0x140129188]
test ecx, ecx
je 0x1400c132a
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400c1347
mov rdi, rax
test rax, rax
jne 0x1400c12c2
mov rax, qword [0x14016e368]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x1400c1366
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::Cell__usize__bool___
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x140129188]
test ecx, ecx
je 0x1400c1353
dec ecx
mov rdx, rdi
call fcn.1401256d4
test rsi, rsi
je 0x1400c12df
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x1400c1314
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 0x1400c130f
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x1400c1314
call dbg.fallback_rng
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
jmp 0x1400c1349
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::hcf9bc6fc43076be8
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x1400c126b
xor ecx, ecx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::hcf9bc6fc43076be8
mov ecx, eax
jmp 0x1400c12ba
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x14010c650
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14010c6ca
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 0x14010c6c0
cmp r10, r11
jb 0x14010c763
cmp r10, rdx
ja 0x14010c777
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14010c6c2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14010c6a0
jmp 0x14010c737
ja 0x14010c6ca
mov r11, r10
cmp rax, r8
jne 0x14010c672
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14010c73b
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 0x14010c710
mov r8, r10
sub ecx, r9d
jns 0x14010c72e
jmp 0x14010c73d
cmp r10, rdx
je 0x14010c749
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14010c73d
xor al, 1
cmp r8, rdx
jne 0x14010c6f0
jmp 0x14010c73d
xor eax, eax
jmp 0x14010c73d
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, [0x1401610c8]
mov edx, 0x2b
call dbg.panic
ud2
lea r8, [0x1401610e0]
mov rcx, r11
mov rdx, r10
call dbg.slice_index_order_fail
ud2
lea r8, [0x1401610e0]
mov rcx, r10
call dbg.slice_end_index_len_fail
ud2
Function at 0x1401270c0
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 0x140127130
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401862c4]
mov rbx, rcx
test esi, esi
jle 0x140127260
mov rax, qword [0x1401862c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14012717b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140127205
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140127160
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140127282
mov rax, qword [0x1401862c8]
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 [0x1401862c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140127267
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1401271fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140127210
add dword [0x1401862c4], 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 [0x1401862c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1401271fe
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 0x140127188
mov rax, qword [0x1401862c8]
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 0x1401277f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140186320]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140186300]
test rbx, rbx
je 0x14012784c
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 eax, eax
jne 0x140127843
test rsi, rsi
je 0x140127843
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140127828
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 0x140127a60
Capabilities:
Parse pe header

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

Function at 0x140127a90
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 0x140127add
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 0x140127ad4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140127adf
add rax, 0x28
cmp rax, r9
jne 0x140127ac0
xor eax, eax
ret

Function at 0x140127ae0
Capabilities:
Parse pe header

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

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

Function at 0x140127c00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14016e2b0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140127c1f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140127c28
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140127c1f
movzx ecx, word [rax + 6]
mov eax, ecx
ret