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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140041040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140006173
cmp byte [rcx + 0x71], 0
je 0x140006173
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000616f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140006134
sub eax, 1
je 0x140006138
cmp eax, 2
jne 0x14000616f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002e680
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140006166
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000616f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000611c
xor al, al
jmp 0x14000611c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002e680
add rsp, 0x60
pop rbx
ret

Function at 0x140009280
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140041040]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x20], rax
cmp rax, 0xffffffffffffffff
je 0x140009311
xor edx, edx
mov r8d, 0x238
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140009311
cmp dword [rsp + 0x38], edi
je 0x14000930d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400092f3
jmp 0x140009311
mov esi, dword [rsp + 0x50]
cmp rbx, 0xffffffffffffffff
je 0x140009320
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14002e680
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140009350
Capabilities:
Get explorer pid

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140041040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_GetShellWindow]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call fcn.140009280
cmp eax, dword [rsp + 0x20]
jne 0x1400093dd
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.___Pausing_to_allow_for_debugging
call fcn.1400063d0
lea rdx, [0x1400065b0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.___Press_enter_to_close
call fcn.1400063d0
lea rdx, [0x1400065b0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14002e680
add rsp, 0x38
ret
Function at 0x14002cb70
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140041040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14002cc82
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14002cc82
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
mov qword [rsp + 0x58], r8
mov ecx, dword [rax + rdx + 0xb0]
test ecx, ecx
jne 0x14002cbe9
mov qword [rdi], r8
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r8
jmp 0x14002cc8d
lea rbx, [rdx + rcx]
mov ebp, dword [rax + rdx + 0xb4]
add rbp, rbx
mov rcx, qword [rsp + 0x50]
cmp rbx, rbp
jae 0x14002cc70
mov edx, dword [rbx + 4]
test edx, edx
je 0x14002cc70
mov eax, dword [rbx]
add rax, rsi
mov qword [rsp + 0x28], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x30], rax
lea rax, [rdx - 8]
shr rax, 1
mov dword [rsp + 0x38], eax
cmp rcx, r8
je 0x14002cc49
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x38]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x50], rcx
jmp 0x14002cc65
lea r8, [rsp + 0x28]
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.14002d390
mov r8, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, rbp
jb 0x14002cc01
mov rax, qword [rsp + 0x48]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], r8
jmp 0x14002cc8d
mov qword [rcx], r8
mov qword [rcx + 8], r8
mov qword [rcx + 0x10], r8
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14002e680
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14002e430
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140041040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edi, edi
lea r9, [rsp + 0x20]
mov rsi, rcx
mov dword [rsp + 0x20], edi
xor r8d, r8d
xor edx, edx
mov ebx, edi
lea ecx, [rdi + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14002e4c1
test rbx, rbx
je 0x14002e489
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0xb
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14002e473
test eax, eax
jns 0x14002e4e2
test rbx, rbx
je 0x14002e4e7
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x14002e5ad
test rbx, rbx
jne 0x14002e4ee
xor eax, eax
jmp 0x14002e5ad
mov qword [rsp + 0x68], rbp
cmp dword [rbx], edi
jbe 0x14002e595
nop dword [rax + rax]
mov eax, edi
imul rcx, rax, 0x128
movzx edx, word [rcx + rbx + 0x2e]
lea rbp, [rcx + rbx]
add rcx, 0x30
add rdx, rcx
lea rcx, [rsp + 0x28]
add rdx, rbx
call fcn.140005e70
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x14002e533
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0xf
lea rcx, [rsp + 0x28]
cmova rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x14002e5ca
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14002e58b
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e586
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e613
call fcn.14002e6a0
inc edi
cmp edi, dword [rbx]
jb 0x14002e500
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14002e680
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
mov rdi, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14002e61f
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e61a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002e61a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002e6a0
mov rax, rdi
jmp 0x14002e5a8
Function at 0x14002f248
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002f292
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002f292
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002f292
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002f292
cmp dword [rcx + 0x84], 0xe
jbe 0x14002f292
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002f294
xor al, al
add rsp, 0x28
ret
Function at 0x180001f10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1800575c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor ecx, ecx
mov dword [rsp + 0x40], ecx
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx], rcx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rcx
mov ecx, 0x20
call fcn.180024a94
mov rcx, rax
mov qword [rbx], rax
add rax, 0x20
mov qword [rbx + 0x10], rax
lea rdx, [rcx + 0x20]
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
mov qword [rbx + 8], rdx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x68], 0x69646f73
mov dword [rsp + 0x6c], 0x63206d75
mov dword [rsp + 0x70], 0x726f6c68
mov dword [rsp + 0x74], 0x21656469
mov r8, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x180001fad
mov r8, qword [rdi]
mov rcx, qword [rbx]
sub rdx, rcx
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x30], 0x4000000
mov qword [rsp + 0x28], 2
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [rdi + 0x10]
call fcn.180003870
test eax, eax
jne 0x180002005
mov rax, rbx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180024a40
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret
lea rdx, str.Key_derivation_failed
lea rcx, [rsp + 0x50]
call fcn.180001300
lea rdx, [0x1800563c8]
lea rcx, [rsp + 0x50]
call fcn.180026ab0
int3
Function at 0x180003d90
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12d, dword [rsp + 0x80]
xor ebx, ebx
mov r14, rcx
mov edi, ebx
mov ecx, r12d
mov ebp, ebx
mov esi, ebx
mov r15, r9
mov r13, r8
call fcn.180003d80
movabs rax, 0xaaaaaaaaaaaaaaab
mov rcx, r15
mul r15
shr rdx, 1
lea rax, [rdx + rdx*2]
lea r11, [rdx*4]
mov qword [rsp + 0x60], r11
sub rcx, rax
je 0x180003e0e
test r12b, 2
jne 0x180003dff
add r11, 4
jmp 0x180003e09
shr rcx, 1
add r11, 2
add r11, rcx
mov qword [rsp + 0x60], r11
cmp qword [rsp + 0x68], r11
ja 0x180003e1f
call fcn.180004180
mov r11, qword [rsp + 0x60]
and r12d, 4
test r15, r15
je 0x180003f16
test r12d, r12d
je 0x180003eb0
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbp + r13]
add rbx, 8
shl esi, 8
inc rbp
add esi, eax
cmp rbx, 6
jb 0x180003e82
nop dword [rax + rax]
mov eax, esi
sub rbx, 6
mov rcx, rbx
shr eax, cl
and eax, 0x3f
mov ecx, eax
call fcn.1800039f0
mov byte [r14 + rdi], al
inc rdi
cmp rbx, 6
jae 0x180003e60
cmp rbp, r15
jb 0x180003e40
test rbx, rbx
je 0x180003f16
mov ecx, 6
sub cl, bl
shl esi, cl
and esi, 0x3f
mov ecx, esi
call fcn.1800039f0
jmp 0x180003f0f
movzx eax, byte [rbp + r13]
add rbx, 8
shl esi, 8
inc rbp
add esi, eax
cmp rbx, 6
jb 0x180003ef2
nop dword [rax + rax]
mov eax, esi
sub rbx, 6
mov rcx, rbx
shr eax, cl
and eax, 0x3f
mov ecx, eax
call fcn.180003980
mov byte [r14 + rdi], al
inc rdi
cmp rbx, 6
jae 0x180003ed0
cmp rbp, r15
jb 0x180003eb0
test rbx, rbx
je 0x180003f16
mov ecx, 6
sub cl, bl
shl esi, cl
and esi, 0x3f
mov ecx, esi
call fcn.180003980
mov byte [rdi + r14], al
inc rdi
cmp rdi, r11
jae 0x180003f2f
mov r8, r11
lea rcx, [r14 + rdi]
sub r8, rdi
mov dl, 0x3d
mov rdi, r11
call fcn.18003d600
mov rax, qword [rsp + 0x68]
nop dword [rax]
nop dword [rax + rax]
mov byte [r14 + rdi], 0
inc rdi
cmp rdi, rax
jb 0x180003f40
mov rbx, qword [rsp + 0x70]
mov rax, r14
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180005fd0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, dword [rdx]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x28], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x3c], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x30], eax
mov eax, dword [rdx + 0x10]
mov dword [rcx + 0x1c], eax
mov eax, dword [rdx + 0x14]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x24], eax
mov eax, dword [rdx + 0x1c]
mov dword [rcx + 0x38], eax
mov dword [rcx], 0x61707865
mov dword [rcx + 4], 0x3320646e
mov dword [rcx + 8], 0x79622d32
mov dword [rcx + 0xc], 0x6b206574
ret
Function at 0x180007da0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov qword [0x180057038], rax
cmp rax, 0x10
jae 0x180007dc5
call fcn.180004180
mov edx, 0x10
lea rcx, [0x1800587e0]
call fcn.180004920
xor eax, eax
add rsp, 0x58
ret

Function at 0x1800081d0
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
je 0x1800083f6
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x830
mov rax, qword [0x1800575c0]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x1800083d6
mov r11d, dword [rdx + 0x20]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x850], rdi
mov ecx, r11d
mov rdi, qword [rdx]
shl rcx, 0xa
mov rdx, qword [rdi + 8]
add rdx, 0xfffffffffffffc00
add rdx, rcx
mov ecx, 8
lea rax, [rax + 0x80]
movups xmm0, xmmword [rdx]
lea rdx, [rdx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm1, xmmword [rdx - 0x70]
movups xmmword [rax - 0x70], xmm1
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rax - 0x60], xmm0
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rax - 0x50], xmm1
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rax - 0x40], xmm0
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rax - 0x30], xmm1
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rax - 0x20], xmm0
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rax - 0x10], xmm1
sub rcx, 1
jne 0x180008235
mov r10d, dword [rbx + 0x24]
mov r9d, 1
cmp r10d, r9d
jbe 0x180008377
nop dword [rax + rax]
lea eax, [r9 + 1]
mov r9d, eax
lea r8, [rsp + 0x20]
imul eax, r11d
lea edx, [rax - 1]
xor eax, eax
shl rdx, 0xa
add rdx, qword [rdi + 8]
lea rcx, [rdx + 0x3f8]
cmp r8, rcx
ja 0x1800082f6
lea rcx, [rsp + 0x418]
cmp rcx, rdx
jb 0x1800082f6
nop word [rax + rax]
mov rcx, qword [rdx + rax*8]
xor qword [rsp + rax*8 + 0x20], rcx
inc rax
cmp rax, 0x80
jl 0x1800082e0
jmp 0x18000836e
lea rcx, [rsp + 0x20]
sub rcx, rdx
lea r8, [rsp + 0x30]
sub r8, rdx
lea rax, [rdx + 0x20]
mov edx, 0x10
nop
movdqu xmm0, xmmword [rcx + rax - 0x20]
movdqu xmm1, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmmword [rcx + rax - 0x60], xmm1
movdqu xmm0, xmmword [r8 + rax - 0x60]
movdqu xmm1, xmmword [rax - 0x50]
xorps xmm1, xmm0
movdqu xmmword [r8 + rax - 0x60], xmm1
movdqu xmm0, xmmword [rcx + rax - 0x40]
movdqu xmm1, xmmword [rax - 0x40]
xorps xmm1, xmm0
movdqu xmmword [rcx + rax - 0x40], xmm1
movdqu xmm0, xmmword [r8 + rax - 0x40]
movdqu xmm1, xmmword [rax - 0x30]
xorps xmm1, xmm0
movdqu xmmword [r8 + rax - 0x40], xmm1
sub rdx, 1
jne 0x180008310
cmp r9d, r10d
jb 0x1800082a0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x420]
call fcn.180008900
mov edx, dword [rsi + 8]
lea r8, [rsp + 0x420]
mov rcx, qword [rsi]
mov r9d, 0x400
call fcn.18000fe60
mov edx, 0x400
lea rcx, [rsp + 0x20]
call fcn.180007de0
mov edx, 0x400
lea rcx, [rsp + 0x420]
call fcn.180007de0
mov edx, dword [rsi + 0x5c]
mov rcx, rbx
call fcn.180008400
mov rdi, qword [rsp + 0x850]
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.180024a40
mov rbx, qword [rsp + 0x858]
add rsp, 0x830
pop rsi
ret
Function at 0x180009530
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.1800095b0
mov eax, 0xffffffff
cmp rbx, rax
jbe 0x180009554
call fcn.180004180
mov edx, ebx
mov rcx, rdi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x180009567
call fcn.180004180
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180009a00
Capabilities:
Hash data using sha512

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movabs rax, 0x6a09e667f3bcc908
mov rbx, rdx
mov qword [rcx], rax
mov rdi, rcx
movabs rax, 0xbb67ae8584caa73b
xor edx, edx
mov qword [rcx + 8], rax
mov r8d, 0x129
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x38], rax
add rcx, 0x40
call fcn.18003d600
mov rax, qword [rbx]
xor qword [rdi], rax
mov rax, qword [rbx + 8]
xor qword [rdi + 8], rax
mov rax, qword [rbx + 0x10]
xor qword [rdi + 0x10], rax
mov rax, qword [rbx + 0x18]
xor qword [rdi + 0x18], rax
mov rax, qword [rbx + 0x20]
xor qword [rdi + 0x20], rax
mov rax, qword [rbx + 0x28]
xor qword [rdi + 0x28], rax
mov rax, qword [rbx + 0x30]
xor qword [rdi + 0x30], rax
mov rax, qword [rbx + 0x38]
xor qword [rdi + 0x38], rax
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x180011820
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x10
mov rax, qword [0x1800575c0]
xor rax, rsp
mov qword [rsp + 8], rax
xor r8d, r8d
lea r14, [0x18003f620]
mov dword [rsp], r8d
mov r9, rcx
mov word [r11 - 0x14], r8w
xor eax, eax
movzx r10d, byte [r11 - 0x13]
movzx r11d, r8b
movzx ebx, byte [rsp + 3]
movzx edi, byte [rsp + 2]
movzx esi, byte [rsp + 1]
movzx ebp, byte [rsp]
nop dword [rax]
movzx edx, byte [r9 + rax]
movzx ecx, dl
xor cl, byte [rax + r14]
or cl, bpl
movzx ebp, cl
movzx ecx, dl
xor cl, byte [rax + r14 + 0x20]
or cl, sil
movzx esi, cl
movzx ecx, dl
xor cl, byte [rax + r14 + 0x40]
or cl, dil
movzx edi, cl
movzx ecx, dl
xor cl, byte [rax + r14 + 0x60]
or cl, bl
movzx ebx, cl
movzx ecx, dl
xor cl, byte [rax + r14 + 0x80]
or cl, r11b
movzx r11d, cl
movzx ecx, dl
xor cl, byte [rax + r14 + 0xa0]
xor dl, byte [rax + r14 + 0xc0]
or cl, r10b
or dl, r8b
movzx r10d, cl
inc rax
movzx r8d, dl
cmp rax, 0x1f
jb 0x180011880
movzx ecx, byte [rax + r9]
movzx r9d, byte [rax + r14 + 0xc0]
and cl, 0x7f
movzx r8d, cl
movzx ecx, dl
xor r9d, r8d
movzx edx, byte [rax + r14 + 0xa0]
or r9d, ecx
xor edx, r8d
dec r9d
or edx, r10d
dec edx
or r9d, edx
movzx edx, byte [rax + r14 + 0x80]
xor edx, r8d
or edx, r11d
dec edx
or r9d, edx
movzx edx, byte [rax + r14 + 0x60]
xor edx, r8d
or edx, ebx
dec edx
or r9d, edx
movzx edx, byte [rax + r14 + 0x40]
xor edx, r8d
or edx, edi
dec edx
or r9d, edx
movzx edx, byte [rax + r14 + 0x20]
movzx eax, byte [rax + r14]
xor edx, r8d
xor eax, r8d
or edx, esi
or eax, ebp
dec edx
dec eax
or r9d, edx
or eax, r9d
shr eax, 8
and eax, 1
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.180024a40
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x10
pop r14
ret
Function at 0x180012210
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov dword [rcx], 0x61707865
mov dword [rcx + 4], 0x3320646e
mov dword [rcx + 8], 0x79622d32
mov dword [rcx + 0xc], 0x6b206574
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
mov eax, dword [rdx + 0x10]
mov dword [rcx + 0x20], eax
mov eax, dword [rdx + 0x14]
mov dword [rcx + 0x24], eax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x28], eax
mov eax, dword [rdx + 0x1c]
mov dword [rcx + 0x2c], eax
ret
Function at 0x180016f10
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x38
movdqu xmm0, xmmword [rdx]
movdqu xmm2, xmmword [r8 + 0x60]
movaps xmmword [rsp + 0x20], xmm6
movaps xmmword [rsp + 0x10], xmm7
movdqu xmm7, xmmword [rdx + 0x10]
movaps xmmword [rsp], xmm8
movdqa xmm8, xmm2
xorps xmm7, xmmword [r8 + 0x50]
xorps xmm8, xmm0
xorps xmm7, xmmword [r8 + 0x20]
xorps xmm8, xmmword [r8 + 0x10]
movdqu xmm0, xmmword [r8 + 0x20]
andps xmm0, xmmword [r8 + 0x30]
andps xmm2, xmmword [r8 + 0x70]
xorps xmm8, xmm0
movdqu xmmword [rcx], xmm8
xorps xmm7, xmm2
movdqu xmmword [rcx + 0x10], xmm7
movdqu xmm6, xmmword [r8 + 0x70]
movdqu xmm5, xmmword [r8 + 0x30]
movdqu xmm0, xmmword [r8 + 0x60]
movdqu xmm1, xmmword [r8 + 0x50]
aesenc xmm1, xmmword [r8 + 0x60]
aesenc xmm0, xmm6
aesenc xmm6, xmmword [r8]
movdqu xmmword [r8 + 0x70], xmm0
xorps xmm6, xmm8
movdqu xmm0, xmmword [r8 + 0x40]
aesenc xmm0, xmmword [r8 + 0x50]
movaps xmm8, xmmword [rsp]
movdqu xmmword [r8 + 0x50], xmm0
movdqu xmm0, xmmword [r8 + 0x20]
aesenc xmm0, xmm5
aesenc xmm5, xmmword [r8 + 0x40]
movdqu xmmword [r8 + 0x30], xmm0
xorps xmm5, xmm7
movdqu xmm0, xmmword [r8]
aesenc xmm0, xmmword [r8 + 0x10]
movaps xmm7, xmmword [rsp + 0x10]
movdqu xmmword [r8 + 0x60], xmm1
movdqu xmm1, xmmword [r8 + 0x10]
aesenc xmm1, xmmword [r8 + 0x20]
movdqu xmmword [r8], xmm6
movaps xmm6, xmmword [rsp + 0x20]
movdqu xmmword [r8 + 0x10], xmm0
movdqu xmmword [r8 + 0x20], xmm1
movdqu xmmword [r8 + 0x40], xmm5
add rsp, 0x38
ret
Function at 0x180017020
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
movaps xmmword [rsp + 0x50], xmm6
mov rax, qword [0x1800575c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
mov rbx, rcx
lea rcx, [rsp + 0x20]
mov rsi, r9
movups xmmword [rsp + 0x20], xmm0
mov rdi, r8
movups xmmword [rsp + 0x30], xmm0
call fcn.18003d9c0
movdqu xmm0, xmmword [rsp + 0x20]
lea rcx, [rsp + 0x20]
mov r8d, 0x20
movdqu xmm3, xmmword [rsi + 0x60]
sub r8, rdi
movdqa xmm1, xmm3
add rcx, rdi
andps xmm3, xmmword [rsi + 0x70]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rsi + 0x20]
xor edx, edx
andps xmm0, xmmword [rsi + 0x30]
xorps xmm1, xmmword [rsi + 0x10]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rsp + 0x20], xmm1
xorps xmm0, xmmword [rsi + 0x50]
xorps xmm0, xmmword [rsi + 0x20]
xorps xmm0, xmm3
movdqu xmmword [rsp + 0x30], xmm0
call fcn.18003d600
mov r8, rdi
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.18003d9c0
movdqu xmm6, xmmword [rsi + 0x70]
movdqu xmm5, xmmword [rsi + 0x30]
movdqu xmm0, xmmword [rsi + 0x60]
movdqu xmm1, xmmword [rsi + 0x50]
aesenc xmm1, xmmword [rsi + 0x60]
aesenc xmm0, xmm6
aesenc xmm6, xmmword [rsi]
movdqu xmmword [rsi + 0x70], xmm0
movdqu xmm0, xmmword [rsi + 0x40]
aesenc xmm0, xmmword [rsi + 0x50]
movdqu xmmword [rsi + 0x50], xmm0
movdqu xmm0, xmmword [rsi + 0x20]
aesenc xmm0, xmm5
aesenc xmm5, xmmword [rsi + 0x40]
movdqu xmmword [rsi + 0x30], xmm0
movdqu xmm0, xmmword [rsi]
aesenc xmm0, xmmword [rsi + 0x10]
movdqu xmmword [rsi + 0x60], xmm1
movdqu xmm1, xmmword [rsi + 0x10]
aesenc xmm1, xmmword [rsi + 0x20]
movdqu xmmword [rsi + 0x10], xmm0
movdqu xmm0, xmmword [rsp + 0x20]
movdqu xmmword [rsi + 0x20], xmm1
xorps xmm6, xmm0
movdqu xmm0, xmmword [rsp + 0x30]
movdqu xmmword [rsi], xmm6
xorps xmm5, xmm0
movdqu xmmword [rsi + 0x40], xmm5
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180024a40
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret