joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002f670
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rdi, rdx
cmp rcx, rdx
je 0x14002f748
mov rbp, qword [rcx + 0x18]
mov rsi, qword [rdx + 0x18]
mov rcx, qword [rcx + 0x20]
cmp rbp, rsi
jb 0x14002f6d0
mov r8, qword [rdx + 0x20]
xor eax, eax
test rsi, rsi
je 0x14002f6b9
nop dword [rax + rax]
mov rdx, qword [r8 + rax*8]
xor qword [rcx + rax*8], rdx
add rax, 1
cmp rsi, rax
jne 0x14002f6a8
mov rax, rbx
mov dword [rbx + 0x28], 0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r9d, 1
mov rdx, rbp
mov r8, rsi
call method.CryptoPP::AllocatorWithCleanup_unsigned_long_long__true_::pointer_CryptoPP::StandardReallocate_unsigned_long_long__CryptoPP.AllocatorWithCleanup_unsigned_long_long__true____CryptoPP::AllocatorWithCleanup_unsigned_long_long__true___unsigned_long_lo
mov qword [rbx + 0x18], rsi
xor r9d, r9d
movabs rcx, 0x1fffffffffffffff
mov qword [rbx + 0x20], rax
mov rdx, qword [rdi + 0x20]
mov qword [rbx + 0x10], rcx
test rbp, rbp
je 0x14002f719
nop dword [rax + rax]
mov rcx, qword [rdx + r9*8]
xor qword [rax + r9*8], rcx
add r9, 1
cmp rbp, r9
jne 0x14002f708
lea rcx, [rbp*8]
add rdx, rcx
add rcx, rax
cmp rdx, rcx
je 0x14002f6b9
sub rsi, rbp
lea r8, [rsi*8]
call sym.memcpy
jmp 0x14002f6b9
lea rdx, [0x140249080]
call fcn.14002dd50
jmp 0x14002f6b9
Function at 0x14003b460
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov r10, rcx
test r8, r8
je 0x14003b4c2
cmp r8, 3
jbe 0x14003b4af
lea rbx, [r8 - 4]
mov rax, rbx
shr rax, 2
lea r11, [rcx + rax*4 + 4]
mov rcx, rdx
mov rax, r10
nop dword [rax]
mov r9d, dword [rcx]
xor dword [rax], r9d
add rax, 4
add rcx, 4
cmp rax, r11
jne 0x14003b488
and r8d, 3
je 0x14003b4c2
and rbx, 0xfffffffffffffffc
lea rdx, [rdx + rbx + 4]
lea r10, [r10 + rbx + 4]
xor eax, eax
movzx ecx, byte [rdx + rax]
xor byte [r10 + rax], cl
add rax, 1
cmp rax, r8
jb 0x14003b4b1
pop rbx
ret

Function at 0x14003b550
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov r9, rcx
mov r10, rdx
cmp r8, 7
jbe 0x14003b5f0
lea rbx, [r8 - 8]
xor ecx, ecx
mov rax, rbx
shr rax, 3
lea r11, [rax*8 + 8]
xor eax, eax
nop dword [rax + rax]
mov rdx, qword [r9 + rax]
xor rdx, qword [r10 + rax]
add rax, 8
or rcx, rdx
cmp rax, r11
jne 0x14003b580
mov rax, rbx
and r8d, 7
and rax, 0xfffffffffffffff8
lea r10, [r10 + rax + 8]
lea r9, [r9 + rax + 8]
mov rax, rcx
shr rax, 0x20
or eax, ecx
mov ecx, eax
shr ecx, 0x10
or cl, ah
or ecx, eax
shr eax, 0x18
or ecx, eax
movzx ecx, cl
test r8, r8
je 0x14003b5e7
xor edx, edx
nop word [rax + rax]
movzx eax, byte [r9 + rdx]
xor al, byte [r10 + rdx]
add rdx, 1
movzx eax, al
or ecx, eax
cmp rdx, r8
jne 0x14003b5d0
test ecx, ecx
sete al
pop rbx
ret
xor ecx, ecx
jmp 0x14003b5c3

Function at 0x14004da20
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push rbx
sub rsp, 0x20
mov edx, 1
mov rbx, rcx
call method.CryptoPP::Algorithm.Algorithm_bool_
lea rax, fcn.14004d1c0
lea rcx, [rbx + 8]
mov qword [rbx], rax
add rsp, 0x20
pop rbx
jmp method.CryptoPP::MicrosoftCryptoProvider.MicrosoftCryptoProvider__
Function at 0x14004da50
Capabilities:
Generate random numbers via winapi

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movzx eax, byte [0x140249240]
mov rsi, rdx
mov rbx, r8
test al, al
je 0x14004db70
mov rax, rbx
shr rax, 0x20
jne 0x14004da88
test ebx, ebx
setne dl
test rbx, rbx
setne al
cmp dl, al
je 0x14004db48
mov ecx, 0x5b6
lea rsi, [rsp + 0x30]
lea rdi, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x30
call sym.__cxa_allocate_exception
lea rdx, [rsp + 0x28]
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x30], rdi
mov rbx, rax
mov qword [rsp + 0x28], 0x12
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_create_unsigned_long_long__unsigned_long_long_
mov rdx, qword [rsp + 0x28]
mov ecx, 0x657a
movabs r9, 0x65746172656e6547
movabs r10, 0x6973206b636f6c42
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rdx
mov word [rax + 0x10], cx
mov rcx, rbx
mov qword [rax], r9
mov qword [rax + 8], r10
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rdx
mov byte [rax + rdx], 0
mov rdx, rsi
call method.CryptoPP::OS_RNG_Err.OS_RNG_Err_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rcx, qword [rsp + 0x30]
cmp rcx, rdi
je 0x14004db2c
mov rax, qword [rsp + 0x40]
lea rdx, [rax + 1]
call sym.operator_delete_void__unsigned_long_long_
lea r8, [method.CryptoPP::OS_RNG_Err.OS_RNG_Err__]
lea rdx, [0x1401dc0a0]
mov rcx, rbx
call sym.__cxa_throw
nop word [rax + rax]
mov rcx, qword [0x140249248]
mov r8, rsi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x14004dbdf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
lea rdi, [0x140249240]
mov rcx, rdi
call sym.__cxa_guard_acquire
test eax, eax
je 0x14004da6c
lea rcx, [0x140249248]
call method.CryptoPP::MicrosoftCryptoProvider.MicrosoftCryptoProvider__
lea rcx, [sym.__tcf_0_7]
call dbg.atexit
mov rcx, rdi
call sym.__cxa_guard_release
jmp 0x14004da6c
mov ecx, 0x30
lea rsi, [rsp + 0x30]
call sym.__cxa_allocate_exception
lea rdx, str.CryptGenRandom
mov rcx, rsi
mov rdi, rax
call fcn.14004d0e0
mov rdx, rsi
mov rcx, rdi
call method.CryptoPP::OS_RNG_Err.OS_RNG_Err_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rcx, rsi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_dispose__
lea r8, [method.CryptoPP::OS_RNG_Err.OS_RNG_Err__]
lea rdx, [0x1401dc0a0]
mov rcx, rdi
call sym.__cxa_throw
mov rbx, rax
jmp 0x14004dc39
mov rcx, rdi
call sym.__cxa_free_exception
mov rcx, rbx
call sym._Unwind_Resume
nop
nop word [rax + rax]

Function at 0x140053970
Capabilities:
Encode data using xor

Disassembly:
sub rcx, 8
jmp method.CryptoPP::Rijndael::Enc.ProcessAndXorBlock_unsigned_char_const__unsigned_char_const__unsigned_char__const
Function at 0x140053f90
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub rcx, 8
jmp method.CryptoPP::Rijndael::Dec.ProcessAndXorBlock_unsigned_char_const__unsigned_char_const__unsigned_char__const

Function at 0x140053fa0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
lea rcx, [0x14024a260]
mov r9, qword [0x1401cd890]
lea r10, [rcx + 0x400]
nop dword [rax]
movzx r8d, byte [r9]
add rcx, 4
add r9, 1
mov eax, r8d
lea edx, [r8 + r8]
shr al, 7
movzx eax, al
neg eax
and eax, 0x11b
xor eax, edx
mov edx, r8d
imul r8d, r8d, 0x10100
xor edx, eax
shl eax, 0x18
or eax, edx
or eax, r8d
mov edx, eax
mov dword [rcx - 4], eax
ror edx, 8
mov dword [rcx + 0x3fc], edx
mov edx, eax
rol eax, 8
rol edx, 0x10
mov dword [rcx + 0xbfc], eax
mov dword [rcx + 0x7fc], edx
cmp rcx, r10
jne 0x140053fb8
mov byte [0x140249251], 1
ret

Function at 0x140054020
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push rbx
lea r9, [0x140249260]
mov r10, qword [0x1401cd880]
lea r11, [r9 + 0x400]
nop word cs:[rax + rax]
movzx ebx, byte [r10]
mov ecx, ebx
mov edx, ebx
shr cl, 5
shr dl, 6
mov r8d, ecx
mov eax, ecx
and ecx, 4
and r8d, 2
imul ecx, ecx, 0x11b
and eax, 1
imul r8d, r8d, 0x11b
neg eax
and eax, 0x11b
xor eax, r8d
lea r8d, [rbx*8]
xor eax, r8d
lea r8d, [rbx + rbx]
xor eax, ecx
mov ecx, ebx
shr cl, 7
movzx ecx, cl
neg ecx
and ecx, 0x11b
xor ecx, r8d
mov r8d, edx
and edx, 2
imul edx, edx, 0x11b
and r8d, 1
neg r8d
and r8d, 0x11b
xor r8d, edx
lea edx, [rbx*4]
xor r8d, edx
mov edx, ebx
xor edx, ecx
xor r8d, eax
xor edx, eax
xor eax, ebx
xor ebx, r8d
shl eax, 0x10
shl ebx, 8
or eax, edx
or eax, ebx
xor ecx, r8d
add r9, 4
add r10, 1
shl ecx, 0x18
or eax, ecx
mov edx, eax
mov dword [r9 - 4], eax
ror edx, 8
mov dword [r9 + 0x3fc], edx
mov edx, eax
rol eax, 8
rol edx, 0x10
mov dword [r9 + 0xbfc], eax
mov dword [r9 + 0x7fc], edx
cmp r11, r9
jne 0x140054040
mov byte [0x140249250], 1
pop rbx
ret
Function at 0x140058cc0
Capabilities:
Hash data using sha384

Disassembly:
sub rsp, 0x48
movabs rax, 0xcbbb9d5dc1059ed8
movabs rdx, 0x629a292a367cd507
mov qword [rcx], rax
movabs rax, 0x9159015a3070dd17
mov qword [rcx + 8], rdx
movabs rdx, 0x152fecd8f70e5939
mov qword [rcx + 0x10], rax
movabs rax, 0x67332667ffc00b31
mov qword [rcx + 0x18], rdx
movabs rdx, 0x8eb44a8768581511
mov qword [rcx + 0x20], rax
movabs rax, 0xdb0c2e0d64f98fa7
mov qword [rcx + 0x28], rdx
movabs rdx, 0x47b5481dbefa4fa4
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rdx
add rsp, 0x48
ret

Function at 0x140058d40
Capabilities:
Hash data using sha512

Disassembly:
sub rsp, 0x48
movabs rax, 0x6a09e667f3bcc908
movabs rdx, 0xbb67ae8584caa73b
mov qword [rcx], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 8], rdx
movabs rdx, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x10], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x18], rdx
movabs rdx, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x20], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x28], rdx
movabs rdx, 0x5be0cd19137e2179
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rdx
add rsp, 0x48
ret

Function at 0x14005fd80
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [rcx + 0x18]
movzx edx, byte [rax]
cmp dl, 0x4c
je 0x14005fdf0
jg 0x14005fdb0
sub edx, 0x49
cmp dl, 1
ja 0x14005fe00
add rax, 1
mov qword [rcx + 0x18], rax
add rsp, 0x30
pop rsi
jmp sym.d_template_args_1
cmp dl, 0x58
jne 0x14005fe00
add rax, 1
mov esi, dword [rcx + 0x4c]
mov dword [rcx + 0x4c], 1
mov qword [rcx + 0x18], rax
mov qword [rsp + 0x28], rcx
call sym.d_expression_1
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rcx + 0x18]
mov dword [rcx + 0x4c], esi
cmp byte [rdx], 0x45
jne 0x14005fe10
add rdx, 1
mov qword [rcx + 0x18], rdx
add rsp, 0x30
pop rsi
ret
add rsp, 0x30
pop rsi
jmp sym.d_expr_primary
add rsp, 0x30
pop rsi
jmp sym.d_type
xor eax, eax
jmp 0x14005fdea
Function at 0x140069260
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 0x1400692d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14024b2e4]
mov rbx, rcx
test esi, esi
jle 0x140069400
mov rax, qword [0x14024b2e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14006931b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400693a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140069300
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140069422
mov rax, qword [0x14024b2e8]
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 [0x14024b2e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140069407
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14006939e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400693b0
add dword [0x14024b2e4], 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 [0x14024b2e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14006939e
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 0x140069328
mov rax, qword [0x14024b2e8]
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 0x1400699c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14024b340]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14024b320]
test rbx, rbx
je 0x140069a1c
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 0x140069a13
test eax, eax
jne 0x140069a13
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400699f8
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 0x140069c30
Capabilities:
Parse pe header

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

Function at 0x140069c60
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 0x140069cad
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 0x140069ca4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140069caf
add rax, 0x28
cmp rax, r9
jne 0x140069c90
xor eax, eax
ret

Function at 0x140069cb0
Capabilities:
Parse pe header

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

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

Function at 0x140069dd0
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x1401ce7e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140069e30
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140069e38
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140069e30
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140069e80
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140069e77
test rcx, rcx
je 0x140069e30
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140069e68
xor eax, eax
ret

Function at 0x140069e90
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x1401ce7e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140069f82
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140069f90
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140069f82
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140069f82
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140069f82
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 0x140069fe5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140069ff8
add rdx, 0x28
cmp r10, rdx
jne 0x140069fd0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14006a007
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14006a017
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140069fee
test ecx, ecx
jg 0x14006a000
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x14006b0a0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2d
lea rdx, [0x1401ccdc0]
call sym.write
mov ecx, 0x17
call sym.IsProcessorFeaturePresent
test eax, eax
je 0x14006b0d0
mov ecx, 8
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14006b0f0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov ecx, 2
mov r8d, 0x2c
lea rdx, global_msg.0
call sym.write
mov ecx, 0x17
call sym.IsProcessorFeaturePresent
test eax, eax
je 0x14006b120
mov ecx, 2
int 0x29
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1400742e0
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 0x140074328
mov rcx, rbx
mov qword [dbg.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 [0x14024bdc0], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x14007430e

Function at 0x1400772e0
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401b9568], eax
cmp eax, 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
ret

Function at 0x140077710
Capabilities:
Allocate thread local storage

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
call sym.pop_pthread_mem
mov rbx, rax
test rax, rax
je 0x1400778bc
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 0x1400778c8
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 sym.__pthread_self_lite.part.0.cold
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ecx, dword [0x1401b9568]
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 sym.__pthread_self_lite.part.0.cold
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sym.replace_spin_keys.part.0
nop
nop

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