joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800d8cd0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x28]
cmp rdi, 0x40000000
jbe 0x1800d8d0b
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1801b0b00]
lea r15, [rdi + 0x40000000]
cmp qword [rsp + 0x30], r15
cmovbe r15, qword [rsp + 0x30]
sub r15, 0xfff
test rsi, rsi
je 0x1800d8d4d
cmp rsi, r14
jb 0x1800d8d45
cmp rsi, r15
jae 0x1800d8d45
cmp qword [rsi + 8], 0
jne 0x1800d8f15
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800d8d30
mov qword [rsp + 0xa0], rbx
mov rbx, rdi
mov qword [rsp + 0xa8], rbp
mov qword [rsp + 0xb0], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1800d8dd9
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x48]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800d8dd9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800d8dd9
cmp dword [rsp + 0x70], 0x10000
je 0x1800d8e5b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x1800d8dd9
sub rbx, rbp
cmp rbx, r14
jae 0x1800d8da0
test rsi, rsi
jne 0x1800d8ec0
cmp rdi, r15
ja 0x1800d8efd
nop dword [rax + rax]
mov ebp, dword [rsp + 0x48]
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 0x1800d8efd
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800d8efd
cmp dword [rsp + 0x70], 0x10000
je 0x1800d8e91
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x68]
add rdi, qword [rsp + 0x50]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1800d8e12
jmp 0x1800d8efd
test rbx, rbx
je 0x1800d8dd9
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 0x1800d8ec0
cmp rbx, r14
jae 0x1800d8d80
jmp 0x1800d8de2
test rdi, rdi
je 0x1800d8efd
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 0x1800d8ec0
cmp rdi, r15
jbe 0x1800d8df0
jmp 0x1800d8efd
xor eax, eax
lea rcx, [rsi + 0x40]
mov qword [rsi + 8], rax
mov dword [rsi + 0x10], eax
nop dword [rax]
mov rax, qword [rsi + 8]
add r12, 0x40
mov qword [rcx], rax
mov qword [rsi + 8], rcx
add rcx, 0x40
cmp r12, 0xfc0
jbe 0x1800d8ed0
mov rax, qword [0x1801b0b00]
mov qword [rsi], rax
mov qword [0x1801b0b00], rsi
mov r12, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rax, rsi
mov rsi, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rdi
ret
Function at 0x1800e57dc
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1800e57ef
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.1800e5dfc
lea rdx, [0x1801a56b0]
lea rcx, [rsp + 0x20]
call fcn.180101e94
int3

Function at 0x1800f155c
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1801ac818]
xor edx, edx
jmp fcn.1800e57dc

Function at 0x1800f1ef4
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1801ac818]
jmp fcn.1800e57dc

Function at 0x1800fdb68
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1800fdc24]
mov r9, qword [r9 + 8]
jmp fcn.1800eda30

Function at 0x1800fdbfc
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x1800fdc34]
mov r9, qword [r9 + 8]
jmp fcn.1800eda30
Function at 0x18011ccfc
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x18011cb9c
call fcn.180109084
mov dword [rax], 0x16
call fcn.180107ec8
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18011cb84
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x18011cb84
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x18011cbce
lock or dword [rax + 0x14], 0x10
jmp 0x18011cb84
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x18011cbeb
mov rcx, qword [rbp + 0x10]
call fcn.18011f70c
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18011b238
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.18011bed4
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x18011cc42
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x18011cb84
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x18011ccae
mov rcx, qword [rbp + 0x10]
call fcn.18011b238
cmp eax, 0xffffffff
je 0x18011cc95
mov rcx, qword [rbp + 0x10]
call fcn.18011b238
cmp eax, 0xfffffffe
je 0x18011cc95
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18011b238
movsxd rdi, eax
lea rsi, [0x1801acec0]
mov rcx, rbx
sar rdi, 6
call fcn.18011b238
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x18011cc9c
lea rax, [0x1801a8540]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18011ccae
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x18011cce4
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x18011cce0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x18011cce0
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x18011cb87
jmp 0x18011cb54
Function at 0x18012b3c0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x40]
call fcn.18012b250
mov rax, qword [rsp + 0x40]
cmp qword [rax + 8], 0
je 0x18012b428
lea r9, [rsp + 0x24]
mov r8d, 0x40
mov edx, 8
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18012b428
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx]
mov qword [rax], rcx
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x18012b440
Capabilities:
Allocate or change rwx memory

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
lea r9, [rsp + 0x24]
mov r8d, 0x40
mov edx, 8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18012b516
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
cmp qword [rax], rcx
je 0x18012b4f5
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x18012b4d8
mov rcx, qword [rsp + 0x48]
call fcn.18012d160
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jbe 0x18012b4c6
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
jmp 0x18012b4d6
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx]
mov qword [rax], rcx
jmp 0x18012b4e8
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov rcx, qword [rcx]
mov qword [rax], rcx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
mov qword [rax], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 0x10], rcx
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x18012b6e0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov byte [rsp + 0x20], 0
mov rcx, qword [rsp + 0x40]
call fcn.18012d160
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jbe 0x18012b768
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
cmp qword [rax], rcx
je 0x18012b74d
mov dword [rsp + 0x24], 0
lea r9, [rsp + 0x24]
mov r8d, 0x40
mov edx, 8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18012b74d
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
mov byte [rsp + 0x20], 1
mov edx, 0x14
mov rcx, qword [rsp + 0x28]
call fcn.18012bfc0
movzx eax, al
test eax, eax
je 0x18012b768
mov byte [rsp + 0x20], 1
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x18012bd70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
mov byte [rsp + 0x20], 0
mov rax, qword [rsp + 0x60]
mov edx, 1
mov rcx, rax
call fcn.180031ed0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18012bf4a
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x30]
test eax, eax
jne 0x18012be9a
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
call qword [rax]
mov rax, qword [rsp + 0x60]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x28], rcx
movzx eax, byte [rsp + 0x78]
test eax, eax
je 0x18012be1a
mov edx, 0x14
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x18]
call fcn.18012bfc0
mov rax, qword [rsp + 0x60]
add rax, 8
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rcx
mov rdx, rax
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
call qword [rax + 8]
mov byte [rsp + 0x20], al
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov dl, 1
mov rcx, qword [rsp + 0x28]
call qword [rax + 0x18]
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x18012be95
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x60]
lea rdi, [rcx + 0x38]
mov rsi, rax
mov ecx, 5
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x60]
mov byte [rax + 0x30], 1
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x20]
mov qword [rax], rcx
jmp 0x18012bf31
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov rcx, qword [rcx]
cmp qword [rax + 0x18], rcx
jne 0x18012bf31
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
cmp qword [rax + 0x28], rcx
jne 0x18012bf31
mov dword [rsp + 0x24], 0
lea r9, [rsp + 0x24]
mov r8d, 0x40
mov edx, 5
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18012bf31
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x18]
movzx eax, byte [rax]
cmp eax, 0xe9
jne 0x18012bf31
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x20]
mov qword [rax], rcx
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x60]
mov rdi, rax
lea rsi, [rcx + 0x38]
mov ecx, 5
rep movsb byte [rdi], byte [rsi]
mov byte [rsp + 0x20], 1
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 8
mov rcx, qword [rsp + 0x38]
call fcn.1800e2d24
movzx eax, byte [rsp + 0x20]
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x18012bfc0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xc8
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov byte [rsp + 0x20], 0
mov qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x78]
call fcn.18012b900
nop
lea rcx, [rsp + 0x78]
call fcn.18000bb60
test rax, rax
jbe 0x18012c188
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x18012c047
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x21], al
lea rcx, [rsp + 0x78]
call fcn.18000bc10
movzx eax, byte [rsp + 0x21]
jmp 0x18012c1a0
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
call fcn.18000bd20
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.18012b780
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18012c188
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.18012bb30
movzx eax, al
test eax, eax
je 0x18012c174
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0xe0]
sub rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.18012ba60
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18012c174
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov r8, qword [rsp + 0xe8]
mov rdx, qword [rsp + 0xe0]
mov rcx, rax
call fcn.180102630
test eax, eax
je 0x18012c174
mov dword [rsp + 0x38], 0
lea r9, [rsp + 0x38]
mov r8d, 0x40
mov rdx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18012c174
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rdi, qword [rsp + 0xe0]
mov rsi, rax
mov rcx, qword [rsp + 0xe8]
rep movsb byte [rdi], byte [rsi]
mov byte [rsp + 0x20], 1
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.1800e2d24
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x22], al
lea rcx, [rsp + 0x78]
call fcn.18000bc10
movzx eax, byte [rsp + 0x22]
add rsp, 0xc8
pop rdi
pop rsi
ret

Function at 0x18012c280
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [rsp + 0x40], 0
je 0x18012c29e
cmp qword [rsp + 0x48], 0
jne 0x18012c2a0
jmp 0x18012c30d
mov edx, 8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x18012c2c8
mov edx, 8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x18012c2ca
jmp 0x18012c30d
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
cmp qword [rax], rcx
je 0x18012c30d
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18012c30d
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
mov qword [rax], rcx
add rsp, 0x38
ret
Function at 0x18012d090
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov qword [rax], 0
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x10], 0
lea rcx, [0x1801b0158]
call fcn.18009e010
cmp qword [0x1801af888], 0
jne 0x18012d12a
cmp qword [0x1801af880], 0
jne 0x18012d12a
mov byte [0x1801af890], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x18012c3c0]
xor edx, edx
xor ecx, ecx
call fcn.180109200
mov qword [0x1801af880], rax
cmp qword [0x1801af880], 0
je 0x18012d12a
mov edx, 0xfffffffe
mov rcx, qword [0x1801af880]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rax, qword [0x1801af888]
inc rax
mov qword [0x1801af888], rax
lea rcx, [0x1801b0158]
call fcn.18009e020
mov rax, qword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x14000d050
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14000d0e0
cmp r10, r11
jb 0x14000d156
cmp r10, rdx
ja 0x14000d16a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14000d0e2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14000d0c0
jmp 0x14000d144
ja 0x14000d0ea
mov r11, r10
cmp rax, r8
jne 0x14000d084
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14000d120
mov rdi, r8
sub ecx, edx
jns 0x14000d13b
jmp 0x14000d146
cmp r8, rsi
je 0x14000d17b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14000d146
xor al, 1
cmp rdi, rsi
jne 0x14000d100
jmp 0x14000d146
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14003c970
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14003c700
ud2
lea rcx, [0x140066163]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14003c780
ud2
Function at 0x140016d40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x140016d9b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x140016d9b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x140016db6
cmp eax, 0x42
jne 0x140016d9b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x140016e66
cmp byte [r9 + r11], 0x5f
jne 0x140016e66
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x140016ece
mov rcx, rsi
xor edx, edx
call fcn.140012480
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.140012480
test al, al
jne 0x140016f61
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140016df2
lea rdx, [0x140062373]
mov r8d, 1
call fcn.14000aed0
test al, al
jne 0x140016f61
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x140016daa
xor r14d, r14d
lea rbx, [0x140062728]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x140016e24
cmp byte [rax + rcx], 0x45
je 0x140016f83
sub r14, 1
jb 0x140016e49
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140016e49
mov r8d, 2
mov rdx, rbx
call fcn.14000aed0
test al, al
jne 0x140016f61
mov rcx, rsi
call fcn.140013d50
test al, al
jne 0x140016f61
mov rax, qword [rsi]
test rax, rax
jne 0x140016e10
jmp 0x140016daa
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x140016f28
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x140016ec2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x140016eac
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x140016e9b
add dl, 0xa9
jmp 0x140016eaa
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x140016f28
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x140016f28
movzx edx, bl
add rax, rdx
jae 0x140016e70
jmp 0x140016f28
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x140016f28
cmp rax, rcx
jae 0x140016f25
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x140016f7b
cmp qword [rsi + 0x20], 0
je 0x140016f74
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.140016d40
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x140016dac
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x140016f69
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x1400626e8]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.14000aed0
test al, al
je 0x140016f69
mov dil, 2
jmp 0x140016daa
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x140016daa
mov dil, 1
xor r8d, r8d
jmp 0x140016f2a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x140016daa
Function at 0x14001a0be
Capabilities:
Hash data using murmur3

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, dword [rdx]
movdqa xmm0, xmmword [rdx]
mov r10, qword [rsp + 0x68]
pshufd xmm1, xmm0, 0x55
movd edx, xmm1
mov esi, r8d
rol esi, 0x19
pshufd xmm1, xmm0, 0xee
mov edi, eax
rol edi, 0x19
movd r11d, xmm1
mov ebx, edx
rol ebx, 0x19
mov ebp, r11d
rol ebp, 0x19
mov r14d, r8d
rol r14d, 0xe
xor r14d, esi
mov esi, eax
rol esi, 0xe
xor esi, edi
mov r15d, edx
rol r15d, 0xe
xor r15d, ebx
mov r12d, r11d
rol r12d, 0xe
xor r12d, ebp
shr r8d, 3
xor r8d, r14d
mov edi, eax
shr edi, 3
xor edi, esi
mov ebx, edx
shr ebx, 3
xor ebx, r15d
mov ebp, r11d
shr ebp, 3
xor ebp, r12d
pshufd xmm0, xmm0, 0xff
movd esi, xmm0
mov r14d, dword [r10 + 4]
mov r15d, r14d
rol r15d, 0xf
mov r12d, dword [r10]
mov r13d, r14d
rol r13d, 0xd
xor r13d, r15d
shr r14d, 0xa
add esi, dword [r9 + 8]
xor r14d, r13d
mov r15d, r12d
rol r15d, 0xf
add esi, ebp
mov ebp, r12d
rol ebp, 0xd
add esi, r14d
xor ebp, r15d
shr r12d, 0xa
xor r12d, ebp
add r11d, dword [r9 + 4]
add r11d, ebx
add r11d, r12d
mov ebx, esi
rol ebx, 0xf
mov ebp, esi
rol ebp, 0xd
xor ebp, ebx
mov ebx, esi
shr ebx, 0xa
xor ebx, ebp
add edx, dword [r9]
add edx, edi
mov r9d, r11d
rol r9d, 0xf
add edx, ebx
mov edi, r11d
rol edi, 0xd
xor edi, r9d
mov r9d, r11d
shr r9d, 0xa
xor r9d, edi
add eax, dword [r10 + 0xc]
add eax, r8d
add eax, r9d
mov dword [rcx], eax
mov dword [rcx + 4], edx
mov dword [rcx + 8], r11d
mov dword [rcx + 0xc], esi
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14001aa20
Capabilities:
Hash data using sha256 via x86 extensions

Disassembly:
movaps xmm0, xmmword [rdx]
sha256msg1 xmm0, xmmword [r8]
movaps xmmword [rcx], xmm0
ret

Function at 0x14001aa3c
Capabilities:
Hash data using sha256 via x86 extensions

Disassembly:
movaps xmm0, xmmword [rdx]
sha256msg2 xmm0, xmmword [r8]
movaps xmmword [rcx], xmm0
ret

Function at 0x14001aaef
Capabilities:
Hash data using sha256

Disassembly:
mov rcx, qword [rcx]
mov r8d, 1
jmp 0x140018ff2
Function at 0x14001d390
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140064e90]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14001d403
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14001d43a
test eax, eax
js 0x14001d414
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14001d42d
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x140064ef0]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14001b430
mov rcx, rax
call fcn.14001b570
mov ecx, 7
int 0x29
ud2