joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d12c4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov rbx, rdx
mov r14, rcx
xor edi, edi
call fcn.1400c24a8
lea r8d, [rdi + 5]
mov rdx, rbx
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400d131e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov r9, rsi
mov r8, rbp
mov rdx, rdi
mov rcx, r14
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp fcn.1400d134c

Function at 0x1400d3f3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, qword [rdx + 0x10]
mov rdi, rdx
mov rbp, rcx
jne 0x1400d3fb3
mov rcx, qword [rdi + 8]
mov r8d, 5
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
jne 0x1400d3f83
call fcn.1400ca3dc
mov rcx, qword [rdi + 8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
jne 0x1400d3f9d
call fcn.1400ca3dc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x1400d3fb3
call fcn.1400ca3dc
call fcn.1400c24a8
cmp qword [rax + 0x68], 0
je 0x1400d3fcd
mov rdx, rbx
mov rcx, rbp
call fcn.1400d33fc
mov rbx, rax
mov edx, esi
mov rcx, rbx
call fcn.1400d4228
mov rcx, qword [rbp + 0xf8]
mov rsi, rax
test rcx, rcx
je 0x1400d3ff4
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xf8], 0
test rsi, rsi
je 0x1400d4003
mov rbx, rsi
mov qword [rbp + 0xf8], rsi
or dword [rdi + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rdi + 0x10], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400d4b08
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.140242024
test eax, eax
jne 0x1400d4b6c
mov eax, dword [rsp + 0x30]
lea r8, str._s_s_X.tmp
mov dword [rsp + 0x28], eax
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.14002cdf8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400d4b7e
jmp 0x1400d4b2c
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400d5148
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1400d51af
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400d51c3
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400d51c3
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call qword [case.0x1400e6782.0]
jmp 0x1400d51c8
cmp dword [rcx + 8], 0
je 0x1400d51c3
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x1400d51c8
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400da79c
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400da7c2
mov r8, rdx
mov rdx, qword [rbx]
call fcn.1400d5148
jmp 0x1400da82e
cmp byte [0x140336368], 0
jne 0x1400da806
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400da7f6
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140336360], rax
jmp 0x1400da7fd
mov rax, qword [0x140336360]
mov byte [0x140336368], 1
jmp 0x1400da80d
mov rax, qword [0x140336360]
mov rdx, rdi
mov rcx, qword [rbx]
test rax, rax
je 0x1400da827
xor r9d, r9d
mov r8d, dword [rbx + 8]
call qword [case.0x1400e6782.0]
jmp 0x1400da82e
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
nop
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400ffe90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
test r8, r8
jne 0x1400ffebb
call fcn.1400c24a8
mov rbx, qword [rax + 0x18]
lea r8, [0x140277a38]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x1400fff14
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400fff14
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x1400fff14
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rsi
mov rcx, rbp
mov r8d, eax
call fcn.1400fff2c
jmp 0x1400fff16
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14018c240
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x14018c38c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor edx, edx
test eax, eax
jne 0x14018c3ce
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret

Function at 0x14018c7e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x14018c8ae
test rbx, rbx
je 0x14018c8ae
test r9, r9
je 0x14018c8ae
and qword [r8], 0
xor r8d, r8d
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14018c8aa
cmp dword [rsp + 0x48], 3
jne 0x14018c8aa
cmp dword [rdi], eax
je 0x14018c8aa
mov ecx, dword [rdi]
call fcn.1400b5fe8
mov qword [rbx], rax
lea r9, [rsp + 0x48]
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14018c89e
cmp dword [rsp + 0x48], 3
jne 0x14018c89e
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx]
call fcn.1400b5fe0
and qword [rbx], 0
xor eax, eax
jmp 0x14018c889
call fcn.1400c37a0
int3

Function at 0x14018cb6c
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x14018cb7d
xor eax, eax
jmp 0x14018cbab
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x14018cbb4
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x14018cbc5
xor eax, eax
jmp 0x14018cbe9
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov r9d, 3
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x14024b608
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14024b36c
Function at 0x14001b2a0
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x14001b2ca
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rdx, [0x1401fec78]
lea rcx, [rbp - 0x20]
mov r8d, send
call fcn.1401c9d40
movzx eax, byte [rbp - 8]
cmp eax, 2
je 0x14001b35b
cmp eax, 3
jne 0x14001b343
mov rdi, qword [rbp - 0x20]
movups xmm0, xmmword [rbp - 0x18]
movaps xmmword [rbp - 0x40], xmm0
test rdi, rdi
je 0x14001b35b
movaps xmm0, xmmword [rbp - 0x40]
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 0x20], rdi
mov r8, qword [rbp - 0x10]
lea rcx, [rbp - 0x30]
mov rdx, rdi
call fcn.1401ef620
movzx ebx, byte [rbp - 0x30]
mov rsi, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x14001b33a
mov r8d, 1
mov rcx, rdi
call fcn.1400a8e70
test bl, bl
jne 0x14001b35b
jmp 0x14001b3cf
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x14001b35b
mov rcx, qword [rbp - 0x20]
mov r8d, 1
call fcn.1400a8e70
lea rdx, [0x1401fec89]
lea rcx, [rbp - 0x20]
mov r8d, send
call fcn.1401c9d40
movzx eax, byte [rbp - 8]
cmp eax, 2
je 0x14001b3f2
cmp eax, 3
jne 0x14001b3da
mov rdi, qword [rbp - 0x20]
movups xmm0, xmmword [rbp - 0x18]
movaps xmmword [rbp - 0x40], xmm0
test rdi, rdi
je 0x14001b3f2
movaps xmm0, xmmword [rbp - 0x40]
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 0x20], rdi
mov r8, qword [rbp - 0x10]
lea rcx, [rbp - 0x30]
mov rdx, rdi
call fcn.1401ef620
movzx ebx, byte [rbp - 0x30]
mov rsi, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x14001b3cb
mov r8d, 1
mov rcx, rdi
call fcn.1400a8e70
test bl, bl
jne 0x14001b3f2
test rsi, rsi
jne 0x14001b2be
jmp 0x14001b3f2
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x14001b3f2
mov rcx, qword [rbp - 0x20]
mov r8d, 1
call fcn.1400a8e70
nop
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
jmp 0x1401b2470
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x140032a50
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140032a92
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x140032a9a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x140032aab
jmp 0x140032ac2
xor r10d, r10d
jmp 0x140032b4d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x140032ac2
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140032ad9
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140032af9
add r11, r8
jmp 0x140032c2a
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x140032bc2
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140032b70
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x140032be0
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x140032bf2
jmp 0x140032c0c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x140032c0c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x140032c26
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x140053dd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x138
mov rsi, rcx
mov ebx, dword [rdx + 0x38]
mov r14d, dword [rdx + 0x3c]
lea rdi, [rsp + 0x68]
mov r8d, 0xd0
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.140089510
movzx eax, byte [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
cmp al, 0xc
jne 0x140053e51
lea rax, [rbx + rbx*2]
mul r14
jo 0x140053e83
cmp rax, r8
ja 0x140053e83
test rcx, rcx
je 0x140053e96
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r9
mov qword [rsi + 0x18], r8
mov dword [rsi + 0x20], ebx
mov dword [rsi + 0x24], r14d
mov qword [rsi], 2
mov byte [rsi + 0x38], 0xc
jmp 0x140053ecf
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rsi + 0x28], xmm1
movups xmmword [rsi + 0x18], xmm0
mov edx, dword [rsp + 0x61]
mov r10d, dword [rsp + 0x64]
mov dword [rsi + 0x39], edx
mov dword [rsi + 0x3c], r10d
mov qword [rsi], rcx
mov qword [rsi + 8], r9
mov qword [rsi + 0x10], r8
mov byte [rsi + 0x38], al
jmp 0x140053ecf
test r9, r9
je 0x140053e96
mov r8d, 1
mov rdx, r9
call fcn.1400a8e70
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x68]
lea rdx, [rsp + 0x28]
call fcn.1400cc8f0
movups xmm0, xmmword [rsp + 0x68]
movups xmm1, xmmword [rsp + 0x78]
movups xmm2, xmmword [rsp + 0x88]
movups xmmword [rsi + 0x20], xmm2
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov byte [rsi + 0x38], 8
mov rax, rsi
add rsp, 0x138
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140055ac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x220
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x198], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp + 0x188], rdx
lea rbx, [rdx + 0x88]
mov byte [rbp + 0x197], 1
mov rcx, rbx
call fcn.140155ab0
mov di, ax
mov byte [rbp + 0x197], 1
mov rcx, rbx
call fcn.140155ac0
mov bx, ax
lea r14, [rbp - 0x58]
mov r8d, 0x1a0
mov rcx, r14
mov rdx, qword [rbp + 0x188]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + 0x197], 0
lea rcx, [rbp + 0x148]
mov rdx, r14
call fcn.14008d320
movzx r8d, byte [rbp + 0x180]
mov rcx, qword [rbp + 0x148]
mov rdx, qword [rbp + 0x150]
mov rax, qword [rbp + 0x158]
cmp r8b, 0xc
jne 0x140055b91
movzx r8d, di
movzx r9d, bx
mov r10, r9
imul r10, r8
shl r10, 2
cmp r10, rax
jbe 0x140055bce
test rdx, rdx
je 0x140055bf4
mov r8d, 1
call fcn.1400a8e70
jmp 0x140055bf4
movups xmm0, xmmword [rbp + 0x160]
movups xmm1, xmmword [rbp + 0x170]
movups xmmword [rsi + 0x28], xmm1
movups xmmword [rsi + 0x18], xmm0
mov r9d, dword [rbp + 0x181]
mov r10d, dword [rbp + 0x184]
mov dword [rsi + 0x39], r9d
mov dword [rsi + 0x3c], r10d
mov qword [rsi], rcx
mov qword [rsi + 8], rdx
mov qword [rsi + 0x10], rax
mov byte [rsi + 0x38], r8b
jmp 0x140055c31
test rcx, rcx
je 0x140055bf4
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], rax
mov dword [rsi + 0x20], r8d
mov dword [rsi + 0x24], r9d
mov qword [rsi], 3
mov byte [rsi + 0x38], 0xc
jmp 0x140055c31
mov qword [rbp + 0x148], 0
mov byte [rbp + 0x197], 0
lea rcx, [rbp - 0x58]
lea rdx, [rbp + 0x148]
call fcn.1400cc8f0
movups xmm0, xmmword [rbp - 0x58]
movups xmm1, xmmword [rbp - 0x48]
movups xmm2, xmmword [rbp - 0x38]
movups xmmword [rsi + 0x20], xmm2
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov byte [rsi + 0x38], 8
mov rax, rsi
add rsp, 0x220
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x1400691d0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm0
lea rdx, [rbp - 0x10]
mov r8d, 0x20
call fcn.1400aba30
test rax, rax
je 0x14006923c
mov qword [rbp + 0x18], rax
mov rcx, rax
mov qword [rbp + 0x10], rdx
call qword [rdx]
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14006928d
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp + 0x18]
call fcn.1400a8e70
jmp 0x14006928d
movaps xmm0, xmmword [rbp - 0x10]
movaps xmm1, xmmword [rbp]
movups xmmword [rbp - 0x50], xmm1
movups xmmword [rbp - 0x60], xmm0
lea r8, [0x1401ff3f0]
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x60]
mov r9d, 8
call fcn.1400ab820
mov rax, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x18]
mov qword [rdi + 0x28], rcx
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rdi + 0x18], xmm0
movups xmm0, xmmword [rbp - 0x38]
movups xmmword [rdi + 8], xmm0
mov rcx, qword [rdi + 0x30]
mov qword [rdi + 0x38], rcx
mov qword [rdi], rax
mov qword [rdi + 0x40], rbx
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov edx, 6
mov r8, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop rbp
jmp fcn.1400a9220
Function at 0x1400abd50
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x1400abdc2
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
mov r15, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov r12, qword [sym.imp.ADVAPI32.dll_SystemFunction036]
jmp 0x1400abd88
add rdi, rbx
sub rsi, rbx
je 0x1400abdc2
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call r15
cmp eax, 0xbfffffff
jbe 0x1400abd80
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call r12
test al, al
jne 0x1400abd80
add ebp, 0x80000000
jmp 0x1400abdc4
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1400cd740
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov r15, r8
shr r15, 2
lea rdi, [r15 + r15*2]
mov eax, 1
cmp r8, 4
jb 0x1400cd819
xor r14d, r14d
test rdi, rdi
setns al
js 0x1400cd833
mov rbx, rdx
mov r14b, al
mov rcx, rdi
mov rdx, r14
call fcn.1400a8e90
test rax, rax
je 0x1400cd83a
mov rcx, rax
add rcx, 2
xor edx, edx
nop word [rax + rax]
movzx r8d, byte [rbx + rdx*4]
movzx r9d, byte [rbx + rdx*4 + 1]
movzx r10d, byte [rbx + rdx*4 + 2]
movzx r11d, byte [rbx + rdx*4 + 3]
lea r14, [rdx + 1]
xor r8d, 0xff
xor r9d, 0xff
xor r10d, 0xff
xor r11d, 0xff
imul r9d, r11d
imul edx, r9d, 0x8081
shr edx, 0x17
imul r10d, r11d
imul r9d, r10d, 0x8081
shr r9d, 0x17
imul r11d, r8d
imul r8d, r11d, 0x8081
shr r8d, 0x17
mov byte [rcx - 2], r8b
mov byte [rcx - 1], dl
mov byte [rcx], r9b
add rcx, 3
mov rdx, r14
cmp r15, r14
jne 0x1400cd7a0
mov qword [rsi], rax
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rdi
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1401e15a0
ud2
mov rcx, r14
mov rdx, rdi
call fcn.1401fbeb0
ud2
Function at 0x1400f1b20
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov rcx, r9
shr rcx, 0x20
jne 0x1400f1c55
mov rax, rdx
mov rdi, qword [rbp + 0x58]
mov qword [rsp + 0x20], r8
lea rcx, [rbp - 0x18]
mov dl, 1
mov r8d, r9d
mov r9, rax
call fcn.1400d1690
mov rbx, qword [rbp - 0x18]
mov rdx, qword [rbp - 8]
test rdx, rdx
je 0x1400f1c1a
mov rcx, rbx
cmp rdx, 8
jb 0x1400f1c04
cmp rdx, 0x20
jae 0x1400f1b8a
xor eax, eax
jmp 0x1400f1bd1
mov rax, rdx
and rax, 0xffffffffffffffe0
xor ecx, ecx
pcmpeqd xmm0, xmm0
nop word [rax + rax]
movdqu xmm1, xmmword [rbx + rcx]
movdqu xmm2, xmmword [rbx + rcx + 0x10]
pxor xmm1, xmm0
pxor xmm2, xmm0
movdqu xmmword [rbx + rcx], xmm1
movdqu xmmword [rbx + rcx + 0x10], xmm2
add rcx, 0x20
cmp rax, rcx
jne 0x1400f1ba0
cmp rdx, rax
je 0x1400f1c1a
test dl, 0x18
je 0x1400f1bfe
mov r8, rdx
and r8, 0xfffffffffffffff8
lea rcx, [rbx + r8]
pcmpeqd xmm0, xmm0
movq xmm1, qword [rbx + rax]
pxor xmm1, xmm0
movq qword [rbx + rax], xmm1
add rax, 8
cmp r8, rax
jne 0x1400f1be0
cmp rdx, r8
jne 0x1400f1c04
jmp 0x1400f1c1a
add rax, rbx
mov rcx, rax
lea rax, [rbx + rdx]
nop dword [rax + rax]
not byte [rcx]
inc rcx
cmp rcx, rax
jne 0x1400f1c10
cmp rdx, rdi
jne 0x1400f1c7f
mov rcx, qword [rbp + 0x50]
mov rdx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + 0x38], 0xc
mov rdx, qword [rbp - 0x10]
test rdx, rdx
je 0x1400f1c49
mov r8d, 1
mov rcx, rbx
call fcn.1400a8e70
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rax, [0x14020e0c0]
mov qword [rsp + 0x20], rax
lea rcx, [0x14020cf98]
lea r9, fcn.14000a190
lea r8, [rbp - 0x18]
mov edx, 0x2b
call fcn.1401fc4e0
ud2
lea r8, [0x14020e0d8]
mov rcx, rdi
call fcn.1401fc740
ud2
Function at 0x1401016a0
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x1401016ca
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.RAYON_NUM_THREADSRAYON_RS_NUM_CPUS
lea rcx, [rbp - 0x20]
mov r8d, send
call fcn.1401c9d40
movzx eax, byte [rbp - 8]
cmp al, 3
jne 0x14010173d
mov rdi, qword [rbp - 0x20]
movups xmm0, xmmword [rbp - 0x18]
movaps xmmword [rbp - 0x40], xmm0
test rdi, rdi
je 0x140101759
movaps xmm0, xmmword [rbp - 0x40]
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 0x20], rdi
mov r8, qword [rbp - 0x10]
lea rcx, [rbp - 0x30]
mov rdx, rdi
call fcn.1401ef620
movzx ebx, byte [rbp - 0x30]
mov rsi, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x140101734
mov r8d, 1
mov rcx, rdi
call fcn.1400a8e70
test bl, bl
jne 0x140101759
jmp 0x1401017c7
cmp al, 2
je 0x140101759
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x140101759
mov rcx, qword [rbp - 0x20]
mov r8d, 1
call fcn.1400a8e70
lea rdx, [0x14020ecc9]
lea rcx, [rbp - 0x20]
mov r8d, send
call fcn.1401c9d40
movzx eax, byte [rbp - 8]
cmp al, 3
jne 0x1401017d2
mov rdi, qword [rbp - 0x20]
movups xmm0, xmmword [rbp - 0x18]
movaps xmmword [rbp - 0x40], xmm0
test rdi, rdi
je 0x1401017ee
movaps xmm0, xmmword [rbp - 0x40]
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 0x20], rdi
mov r8, qword [rbp - 0x10]
lea rcx, [rbp - 0x30]
mov rdx, rdi
call fcn.1401ef620
movzx ebx, byte [rbp - 0x30]
mov rsi, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x1401017c3
mov r8d, 1
mov rcx, rdi
call fcn.1400a8e70
test bl, bl
jne 0x1401017ee
test rsi, rsi
jne 0x1401016be
jmp 0x1401017ee
cmp al, 2
je 0x1401017ee
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x1401017ee
mov rcx, qword [rbp - 0x20]
mov r8d, 1
call fcn.1400a8e70
nop
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
jmp 0x1401b2470