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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.14002daa0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x140018320]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call case.0x14000fad8.248
cmp qword [rbp + 0xfe8], 0
jne 0x140011cc7
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x140011c93
cmp r12, 0x1000
ja 0x140011ce9
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x140011c67
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x140011c10
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x140011c6d
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x140011c50
jbe 0x140011bc0
jmp 0x140011cd5
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x140011b75
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.1400050c0
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.1400050c0
jmp 0x140011c93
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.14002f6f0
jmp 0x140011cfd
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.14002f670
ud2
Function at 0x1400154b0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1400331e8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400154f4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x140015553
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140015562
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14001559a
cmp eax, 0x103
je 0x1400155a4
test eax, eax
js 0x14001557f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14001559a
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
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.14000df50
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400056d0
mov ecx, 7
int 0x29
ud2
Function at 0x140015610
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1400331e8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140015654
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400156ba
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400156f1
test eax, eax
js 0x1400156cb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1400156e4
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 dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
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.14000df50
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400056d0
mov ecx, 7
int 0x29
ud2
Function at 0x1400187e0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140018935
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x140018818
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1400188f8
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140018917
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140018879
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x1400188ab
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x1400188af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x1400188b3
cmp eax, 0x6d
jne 0x1400188de
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x1400188b8
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1400188e4
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.1400050c0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x1400188ee
cmp rax, 1
je 0x140018862
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x14001886c
mov r8d, 0x10
mov rcx, rbx
call fcn.14002e7f0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x140018825
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.14002e7f0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x140018825
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14002e6e0
ud2
Function at 0x14001d650
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.14001f470
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x40]

Function at 0x14001e5c0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14001e603
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14000c720]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14002f170
ud2

Function at 0x14001ec60
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
in al, dx
push rax
Function at 0x14002c830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14002c8aa
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14002c8a0
cmp r11, r10
ja 0x14002c943
cmp r10, rdx
ja 0x14002c957
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14002c8a2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14002c880
jmp 0x14002c917
ja 0x14002c8aa
mov r11, r10
cmp rax, r8
jne 0x14002c852
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14002c91b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14002c8f0
mov r8, r10
sub ecx, r9d
jns 0x14002c90e
jmp 0x14002c91d
cmp r10, rdx
je 0x14002c929
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002c91d
xor al, 1
cmp r8, rdx
jne 0x14002c8d0
jmp 0x14002c91d
xor eax, eax
jmp 0x14002c91d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14002f220
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14002f6f0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14002f670
ud2

Function at 0x14002dfd0
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14000f880], rbx
je 0x140009ebc
cmp rax, rbx
jne 0x140009eaf
mov ebx, 1
mov esi, ebx
jmp 0x140009ec1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140009e94
mov ebx, 1
mov eax, dword [0x14000f888]
cmp eax, ebx
jne 0x140009ed7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140009f3c
mov eax, dword [0x14000f888]
test eax, eax
jne 0x140009f36
mov dword [0x14000f888], ebx
lea r15, [0x14000b540]
lea rdi, [0x14000b528]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140009f28
test eax, eax
jne 0x140009f2c
cmp qword [rdi], 0
je 0x140009f1d
mov rax, qword [rdi]
mov rcx, qword [0x14000b508]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140009efe
test eax, eax
je 0x140009f3c
mov eax, 0xff
jmp 0x14000a018
mov dword [0x14000d034], ebx
mov eax, dword [0x14000f888]
cmp eax, ebx
jne 0x140009f63
lea rdx, [0x14000b520]
lea rcx, [0x14000b510]
call sub.msvcrt.dll__initterm
mov dword [0x14000f888], 2
test esi, esi
jne 0x140009f70
xor eax, eax
xchg qword [0x14000f880], rax
cmp qword [0x14000f890], 0
je 0x140009fa4
lea rcx, [0x14000f890]
call fcn.14000a220
test eax, eax
je 0x140009fa4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000f890]
mov r9, qword [0x14000b508]
call r9
mov r8, qword [0x14000d048]
mov rdx, qword [0x14000d040]
mov ecx, dword [0x14000d038]
call fcn.140001008
mov dword [0x14000d030], eax
cmp dword [0x14000d050], 0
jne 0x140009fd4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000d034], 0
jne 0x140009fe9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000d030]
jmp 0x14000a018
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140144000
add rsp, 0x28
jmp 0x140009e70

Function at 0x14000a10c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000a158
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000a150
cmp dword [rcx + 0x3c], edx
jl 0x14000a150
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000a150
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000a158
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1800995e0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x18009963d
lea rbx, [0x1801d0d10]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180099624
cmp r10, 2
jb 0x180099624
cmp byte [r9], r8b
jne 0x180099624
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180099600
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x18009967f
lea rbx, [0x1801d0d10]
cmp r8b, 0x23
jne 0x180099663
cmp byte [r9], r8b
jne 0x180099663
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180099650
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x180099940
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push r13
push r14
push r15
mov qword [rsp + 0x28], rbp
xor r10d, r10d
mov qword [rsp + 0x30], rsi
mov rbx, rdx
mov qword [rsp + 0x38], rdi
mov rax, rcx
mov qword [rsp + 0x40], r12
mov r14d, r10d
lea r15, [0x180000000]
mov r13, rax
test rbx, rbx
je 0x180099980
cmp rax, rbx
jae 0x180099b2c
movzx r8d, byte [rax]
test r8b, r8b
je 0x180099b2c
mov r11d, r10d
mov ecx, r8d
shr rcx, 3
mov rdx, rbx
movsx r9, byte [rcx + r15 + 0x1d1110]
test r9d, r9d
sete r11b
add r11d, r9d
test rbx, rbx
jne 0x1800999b8
movsxd rdx, r11d
add rdx, rax
cmp rax, rdx
lea rcx, [rax + 1]
mov edi, r8d
cmovae edi, r10d
cmp rcx, rdx
jae 0x1800999d1
movzx r12d, byte [rcx]
jmp 0x1800999d4
xor r12b, r12b
lea rcx, [rax + 2]
cmp rcx, rdx
jae 0x1800999e2
movzx ebp, byte [rcx]
jmp 0x1800999e5
xor bpl, bpl
lea rcx, [rax + 3]
cmp rcx, rdx
jae 0x1800999f3
movzx esi, byte [rcx]
jmp 0x1800999f6
xor sil, sil
lea r9, [r9*4]
movzx ecx, dil
mov r15d, dword [r9 + r15 + 0x1d1130]
and r15d, ecx
movzx r8d, r12b
shl r15d, 6
mov ecx, r8d
and ecx, 0x3f
movzx edx, bpl
or r15d, ecx
movzx r10d, sil
shl r15d, 6
mov ecx, edx
and ecx, 0x3f
and edx, 0xc0
or r15d, ecx
and r8d, 0xc0
mov ecx, r10d
shl r15d, 6
and ecx, 0x3f
shr r10d, 2
or r10d, edx
or r15d, ecx
shr r10d, 2
lea rcx, [0x180000000]
mov ecx, dword [r9 + rcx + 0x1d1160]
or r10d, r8d
shr r15d, cl
lea rcx, [0x180000000]
shr r10d, 2
mov edx, r15d
cmp r15d, dword [r9 + rcx + 0x1d1148]
sbb ecx, ecx
and edx, 0xfffff800
and ecx, 0x40
xor r8d, r8d
or r10d, ecx
mov ecx, 0x80
cmp edx, 0xd800
cmove r8d, ecx
xor edx, edx
or r10d, r8d
mov ecx, 0x100
cmp r15d, 0xffff
cmova edx, ecx
lea rcx, [0x180000000]
mov ecx, dword [r9 + rcx + 0x1d1178]
or r10d, edx
xor r10d, 0x2a
sar r10d, cl
test r10d, r10d
je 0x180099b16
xor r10d, r10d
test dil, dil
mov eax, r10d
mov ecx, r10d
setne cl
test sil, sil
setne al
add ecx, eax
mov eax, r10d
test bpl, bpl
setne al
add ecx, eax
mov eax, r10d
test r12b, r12b
setne al
add ecx, eax
cmp r11d, ecx
cmovl ecx, r11d
movsxd rax, ecx
add rax, r13
inc r14d
jmp 0x180099968
movsxd rcx, r11d
add rax, rcx
test r15d, r15d
je 0x180099b2c
xor r10d, r10d
inc r14d
jmp 0x180099968
mov r12, qword [rsp + 0x40]
mov eax, r14d
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x28]
pop r15
pop r14
pop r13
pop rbx
ret
Function at 0x180099ba0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x18], rbp
mov rbp, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp + 8], rax
cmp rcx, rax
jae 0x180099dc9
mov qword [r11 + 0x20], rsi
lea rsi, [0x180000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
mov qword [rsp], r8
test rbp, rbp
je 0x180099c02
cmp r8, rbp
jae 0x180099da6
movzx edx, byte [r8]
test dl, dl
je 0x180099da6
mov eax, edx
mov rcx, rbp
shr rax, 3
movsx r9, byte [rax + rsi + 0x1d1110]
xor eax, eax
test r9d, r9d
mov ebx, eax
sete bl
add ebx, r9d
test rbp, rbp
jne 0x180099c38
movsxd rcx, ebx
add rcx, r8
cmp r8, rcx
mov r14d, edx
cmovae r14d, eax
lea rax, [r8 + 1]
cmp rax, rcx
jae 0x180099c51
movzx r13d, byte [rax]
jmp 0x180099c54
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x180099c63
movzx r12d, byte [rax]
jmp 0x180099c66
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x180099c75
movzx r15d, byte [rax]
jmp 0x180099c78
xor r15b, r15b
lea r10, [r9*4]
movzx eax, r14b
mov esi, dword [r10 + rsi + 0x1d1130]
and esi, eax
movzx r9d, r13b
shl esi, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or esi, eax
movzx r11d, r15b
shl esi, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or esi, eax
mov eax, r11d
shr r11d, 2
and eax, 0x3f
or r11d, edx
shl esi, 6
or esi, eax
shr r11d, 2
or r11d, r9d
lea rax, [0x180000000]
mov ecx, dword [r10 + rax + 0x1d1160]
shr r11d, 2
shr esi, cl
mov ecx, 0x100
cmp esi, dword [r10 + rax + 0x1d1148]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r11d, eax
mov eax, esi
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r11d, edx
cmp esi, 0xffff
cmova eax, ecx
lea rcx, [0x180000000]
mov ecx, dword [r10 + rcx + 0x1d1178]
or r11d, eax
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x180099d83
test r14b, r14b
mov eax, r9d
mov ecx, r9d
mov esi, 0xfffd
setne cl
test r15b, r15b
setne al
add ecx, eax
mov eax, r9d
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
movsxd r8, ecx
add r8, qword [rsp]
jmp 0x180099d8d
movsxd rax, ebx
add r8, rax
test esi, esi
je 0x180099da6
mov word [rdi], si
add rdi, 2
lea rsi, [0x180000000]
cmp rdi, qword [rsp + 8]
jb 0x180099bf0
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x50]
mov word [rdi], r9w
test rax, rax
je 0x180099ddf
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x1800d5fb0
Capabilities:
Encrypt data using speck

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0xc0
movss xmm1, dword [rsp + 0xf0]
xorps xmm0, xmm0
comiss xmm0, xmm1
mov rsi, rcx
mov qword [rsp + 0x38], rdx
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm8
movaps xmmword [rax - 0x38], xmm9
movaps xmmword [rax - 0x48], xmm10
movaps xmmword [rax - 0x58], xmm11
movaps xmmword [rax - 0x68], xmm12
movss xmm12, dword [0x1801d1e60]
movaps xmmword [rax - 0x78], xmm13
movq xmm13, r8
movaps xmmword [rsp + 0x40], xmm14
movaps xmm14, xmm3
movsd qword [rsp + 0x30], xmm13
ja 0x1800d6025
movaps xmm0, xmm12
minss xmm0, xmm1
mulss xmm0, dword [0x1801d1eb0]
mov r9d, 1
movss xmm9, dword [rsp + 0x30]
addss xmm9, dword [0x1801d1e78]
addss xmm0, dword [0x1801d1e38]
movss xmm11, dword [rsp + 0x38]
movss xmm8, dword [rsp + 0x34]
movaps xmm6, xmm11
addss xmm6, dword [rsp + 0x30]
movss xmm10, dword [rsp + 0x3c]
addss xmm8, xmm12
cvttss2si edi, xmm0
movaps xmm1, xmm6
movaps xmm0, xmm9
addss xmm1, xmm12
unpcklps xmm0, xmm8
shl edi, 0x18
movq r8, xmm0
mov dword [rsp + 0x20], edi
unpcklps xmm1, xmm10
movq rdx, xmm1
call fcn.1800b5e20
movaps xmm0, xmm6
mov ebx, edi
unpcklps xmm0, xmm10
or ebx, 0xffffff
movq rdx, xmm0
mov dword [rsp + 0x20], ebx
mov r9d, 1
movq r8, xmm13
mov rcx, rsi
call fcn.1800b5e20
addss xmm11, xmm14
mov dword [rsp + 0x20], edi
movaps xmm0, xmm9
xor r9d, r9d
unpcklps xmm0, xmm8
mov rcx, rsi
movq r8, xmm0
subss xmm11, dword [rsp + 0x30]
movaps xmm1, xmm11
subss xmm1, xmm12
unpcklps xmm1, xmm10
movq rdx, xmm1
call fcn.1800b5e20
movaps xmm0, xmm11
mov dword [rsp + 0xf0], ebx
unpcklps xmm0, xmm10
xor r9d, r9d
movq rdx, xmm0
movq r8, xmm13
mov rcx, rsi
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm8, xmmword [r11 - 0x20]
movaps xmm9, xmmword [r11 - 0x30]
movaps xmm10, xmmword [r11 - 0x40]
movaps xmm11, xmmword [r11 - 0x50]
movaps xmm12, xmmword [r11 - 0x60]
movaps xmm13, xmmword [r11 - 0x70]
movaps xmm14, xmmword [r11 - 0x80]
mov rsp, r11
pop rdi
jmp fcn.1800b5e20
Function at 0x1800db4f0
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]
mov rcx, qword [rsp + 0x30]
cmp rdi, 0x40000000
jbe 0x1800db530
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18025a060]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800db56e
cmp rsi, r14
jb 0x1800db566
cmp rsi, r15
jae 0x1800db566
cmp qword [rsi + 8], 0
jne 0x1800db737
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800db551
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 0x1800db602
nop dword [rax]
nop dword [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 0x1800db5f9
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 0x1800db5f9
cmp dword [rsp + 0x70], 0x10000
je 0x1800db67b
mov rbx, qword [rsp + 0x58]
cmp rbx, rbp
jb 0x1800db5f9
sub rbx, rbp
cmp rbx, r14
jae 0x1800db5c0
test rsi, rsi
jne 0x1800db6e0
cmp rdi, r15
ja 0x1800db71f
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 0x1800db71f
mov r8d, 0x30
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800db71f
cmp dword [rsp + 0x70], 0x10000
je 0x1800db6b1
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 0x1800db632
jmp 0x1800db71f
test rbx, rbx
je 0x1800db5f9
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 0x1800db6e0
cmp rbx, r14
jae 0x1800db5a0
jmp 0x1800db602
test rdi, rdi
je 0x1800db71f
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 0x1800db6e0
cmp rdi, r15
jbe 0x1800db610
jmp 0x1800db71f
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 0x1800db6f0
mov rax, qword [0x18025a060]
mov qword [rsi], rax
mov qword [0x18025a060], 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