joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180024260
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x180024288
add rsp, 0x20
pop r14
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x1800242fc
test rax, rax
jle 0x1800242dc
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x1800242fc
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1800242fc
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
Function at 0x180024540
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x1800f9b98]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x18002458f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x180102280]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800245cd
cmp rsi, r14
jb 0x1800245c5
cmp rsi, r15
jae 0x1800245c5
cmp qword [rsi + 8], 0
jne 0x180024797
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800245b0
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180024662
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180024659
nop word [rax + rax]
mov r8d, Ordinal_50
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180024659
cmp dword [rsp + 0x40], 0x10000
je 0x1800246db
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180024659
sub rbx, rbp
cmp rbx, r14
jae 0x180024620
test rsi, rsi
jne 0x180024740
cmp rdi, r15
ja 0x18002477f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18002477f
mov r8d, Ordinal_50
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18002477f
cmp dword [rsp + 0x40], 0x10000
je 0x180024711
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180024692
jmp 0x18002477f
test rbx, rbx
je 0x180024659
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180024740
cmp rbx, r14
jae 0x180024600
jmp 0x180024662
test rdi, rdi
je 0x18002477f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180024740
cmp rdi, r15
jbe 0x180024670
jmp 0x18002477f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180024750
mov rax, qword [0x180102280]
mov qword [rsi], rax
mov qword [0x180102280], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800c73c0
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x180024fd0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18010227c]
mov ebx, edi
test ecx, ecx
je 0x18002510b
mov rax, qword [0x180102270]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180025028
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180025000
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18002510b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.180025370
mov r8d, dword [0x18010227c]
cmp ebx, r8d
jae 0x180025098
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180102270]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180025091
mov edx, esi
mov ecx, ebx
call fcn.180025240
mov edi, eax
test eax, eax
jne 0x180025098
mov r8d, dword [0x18010227c]
inc ebx
cmp ebx, r8d
jb 0x180025060
cmp qword [rsp + 0x20], 0
je 0x18002510b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800250f7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800250e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x1800250c0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180100cb8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180025240
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1800f9b98]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180102270]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1800252b3
mov eax, 0xa
jmp 0x180025346
test esi, esi
je 0x1800252d5
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800252f8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800252f8
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800252f1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800252f8
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800c73c0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180025370
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1800f9b98]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18002549a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_35
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x180025491
nop word [rax + rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180025474
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180025474
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180025474
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180025432
mov dword [rbx + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x180100cb8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180025491
jmp 0x180025467
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180025467
mov rcx, qword [0x180100cb8]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180025491
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_35
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1800253e0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x1800254f3
cmp dword [rbx + 0xc], esi
jbe 0x1800254f3
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800254ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180025870
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x1800254b0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800c73c0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180025a20
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rcx
je 0x180025a8f
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rcx + 0xc], ebx
jbe 0x180025a78
mov qword [rsp + 0x38], rsi
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180025a6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x180025a40
mov rsi, qword [rsp + 0x38]
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x180100cb8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180029c30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov edx, dword [rcx]
mov r10d, 0x270
mov r9, rcx
xorps xmm1, xmm1
cmp edx, r10d
jne 0x180029c91
lea r8, [rcx + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x180029c50
mov edx, dword [r9]
jmp 0x180029d78
cmp edx, 0x4e0
jb 0x180029d78
lea r10, [rcx + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, eax
lea r10, [r10 + 4]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x180029cb0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, eax
lea r10, [r10 + 4]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x180029d00
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
xor edx, edx
mov dword [r9 + 0x9c0], ecx
mov dword [r9], edx
mov eax, edx
xorps xmm0, xmm0
mov ecx, dword [r9 + rax*4 + 4]
lea eax, [rdx + 1]
mov dword [r9], eax
mov eax, ecx
shr eax, 0xb
and eax, dword [r9 + 0x1384]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
cvtsi2ss xmm0, rax
subss xmm0, xmm1
addss xmm0, xmm1
mulss xmm0, dword [0x1800d21e0]
add rsp, 8
ret
Function at 0x18002cb70
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x18002cc3c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x18002cc3c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x18002cc55
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x18002cc2c
cmp byte [rax], 0x5c
jne 0x18002cc26
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x18002cc26
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x18002cc12
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x18002cc23
test r8b, 0x10
jne 0x18002cc26
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x18002cc26
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.1800302f0
test edi, edi
jne 0x18002cb90
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.18002e510
int3
Function at 0x18002e590
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, qword [rcx]
mov r10d, 0x270
mov ecx, dword [r9]
cmp ecx, r10d
jne 0x18002e5f1
lea r8, [r9 + 8]
nop dword [rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x18002e5b0
mov ecx, dword [r9]
jmp 0x18002e6d8
cmp ecx, 0x4e0
jb 0x18002e6d8
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, eax
lea r10, [r10 + 4]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x18002e610
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, eax
lea r10, [r10 + 4]
xor edx, r11d
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x18002e660
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x180030990
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1800309c4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1800309b0
ret

Function at 0x180031070
Capabilities:
Check for software breakpoints

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
cmp rcx, 0xf
jae 0x180031093
lea rcx, str._failsafe__find_func_start_got_too_small_address._n
call fcn.180001af0
xor eax, eax
add rsp, 0x20
pop rdi
ret
xor r9d, r9d
mov qword [rsp + 0x38], rbx
xor eax, eax
xor r8b, r8b
xor bl, bl
mov rdx, rdi
mov r10, rdx
mov r11d, r9d
cmp eax, 2
jl 0x1800310b4
test bl, bl
je 0x1800310fe
movzx ecx, byte [rdx]
cmp cl, 0xcc
je 0x1800310e9
cmp eax, 1
jle 0x1800310cb
test r8b, r8b
jne 0x1800310cb
cmp cl, 0xc3
je 0x1800310e0
xor r8b, r8b
lea r9d, [r11 - 1]
lea rdx, [r10 - 1]
xor eax, eax
mov r10, rdx
mov r11d, r9d
jmp 0x1800310b4
mov r8b, 1
movzx ebx, r8b
jmp 0x1800310ec
xor r8b, r8b
mov ecx, 1
dec r9d
add eax, ecx
dec rdx
cmp eax, 3
jl 0x1800310a5
mov rbx, qword [rsp + 0x38]
inc rax
add rax, rdi
movsxd rdx, r9d
add rax, rdx
add rsp, 0x20
pop rdi
ret
Function at 0x1800316e0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x60
mov rax, qword [0x1800f9b98]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ecx, ecx
xor esi, esi
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x180031735
xorps xmm0, xmm0
lea r8d, [rsi + 5]
movups xmmword [rbx], xmm0
lea rdx, str.error
mov qword [rbx + 0x10], rsi
mov rcx, rbx
mov qword [rbx + 0x18], rsi
call fcn.1800014f0
jmp 0x1800317db
mov ecx, 1
mov qword [rsp + 0x78], rdi
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
test rax, rax
jne 0x180031772
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
lea rdx, str.error
mov r8d, 5
mov qword [rbx + 0x18], rsi
mov rcx, rbx
call fcn.1800014f0
jmp 0x1800317d6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
xorps xmm0, xmm0
test rax, rax
je 0x180031750
xorps xmm1, xmm1
mov r8, 0xffffffffffffffff
movdqu xmmword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x30], xmm0
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], sil
jne 0x1800317a0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1800014f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
mov rdi, qword [rsp + 0x78]
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800c73c0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rsi
ret

Function at 0x180031a00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 0x10
mov rsi, rdx
jb 0x180031a1c
mov rcx, qword [rcx]
lea rdx, [0x1800d15e4]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
xor edx, edx
mov rcx, rax
mov rdi, rax
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ecx, eax
mov dword [rsi], ecx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r8d, dword [rsi]
mov r9, rdi
mov edx, 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180031b00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1800f9b98]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov dword [r9], 0x400
mov rdx, rcx
mov dword [rsp + 0x38], 3
mov rbx, r9
lea rax, [rsp + 0x30]
mov rsi, r8
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x180031b5a
xor al, al
jmp 0x180031b8c
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x28], rbx
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800c73c0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x180032240
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
call sub.MSVCP140.dll__Query_perf_frequency
mov rbx, rax
call sub.MSVCP140.dll__Query_perf_counter
cmp rbx, 0x989680
jne 0x180032262
imul rax, rax, 0x64
jmp 0x180032280
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
mov dword [0x1800f8524], eax
lea r9, [0x1800f8524]
mov r8d, eax
mov ecx, 1
nop word [rax + rax]
mov edx, r8d
shr edx, 0x1e
xor edx, r8d
imul r8d, edx, 0x6c078965
add r8d, ecx
mov dword [r9 + rcx*4], r8d
inc rcx
cmp rcx, 0x270
jb 0x1800322a0
mov rdx, rax
mov dword [0x1800f8520], 0x270
lea rcx, str.set_random_seed:__lld_n
add rsp, 0x20
pop rbx
jmp fcn.180001af0
Function at 0x180034d90
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1800f9b98]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov byte [0x1801011e9], 1
call fcn.180084550
call fcn.1800849e0
test rax, rax
je 0x180034eab
mov rbx, qword [rax + 0x1b0]
test rbx, rbx
je 0x180034eab
xor edx, edx
mov word [rbx + 0x179], 0
mov rcx, rbx
call fcn.180022bf0
cmp byte [0x1800faa3e], 0
movss xmm3, dword [0x1800d2220]
je 0x180034e22
movss xmm2, dword [0x1800f806c]
movss xmm1, dword [rbx + 0x1d0]
movaps xmm0, xmm1
mulss xmm1, xmm3
addss xmm0, xmm2
addss xmm1, xmm2
movss dword [rbx + 0x1cc], xmm0
movss dword [rbx + 0x1c4], xmm1
cmp byte [0x1800faa3f], 0
je 0x180034e5a
movss xmm2, dword [0x1800f8074]
movss xmm1, dword [rbx + 0x1e0]
movaps xmm0, xmm1
mulss xmm1, xmm3
addss xmm0, xmm2
addss xmm1, xmm2
movss dword [rbx + 0x1dc], xmm0
movss dword [rbx + 0x1d4], xmm1
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x180034e92
movss xmm2, dword [0x1800f8070]
movss xmm1, dword [rbx + 0x1f0]
movaps xmm0, xmm1
mulss xmm1, xmm3
addss xmm0, xmm2
addss xmm1, xmm2
movss dword [rbx + 0x1ec], xmm0
movss dword [rbx + 0x1e4], xmm1
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x180034eab
movss xmm0, dword [0x1800f807c]
movss dword [rbx + 0x1f4], xmm0
mov rax, qword [0x180100cc0]
lea r9, [rsp + 0x20]
mov edx, 6
mov dword [rsp + 0x20], 0
mov rbx, qword [rax + 0xa8]
mov rcx, rbx
lea r8d, [rdx + 0x3a]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180034f07
mov eax, dword [0x1800d2340]
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov edx, 6
mov dword [rbx], eax
mov rcx, rbx
movzx eax, word [0x1800d2344]
mov word [rbx + 4], ax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, qword [0x1801011d0]
mov edx, 0xfffffffc
mov rcx, qword [0x180100a40]
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
xor ecx, ecx
call fcn.1800257b0
test eax, eax
je 0x180034f80
nop dword [rax + rax]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r9d, 0x40012
lea r8, str.Internal
mov rcx, rax
lea rdx, str.Hooks_could_not_be_reverted
call qword [sym.imp.USER32.dll_MessageBoxW]
sub eax, 3
je 0x180034f60
cmp eax, 1
jne 0x180034f80
jmp 0x180034f75
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x180034f60
xor ecx, ecx
call fcn.1800257b0
test eax, eax
jne 0x180034f30
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800c73c0
add rsp, 0x30
pop rbx
ret