joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452760
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x4528d7
movzx edx, byte [rax]
test edx, edx
jne 0x452794
nop dword [rax]
test r8b, r8b
jne 0x452794
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x4527a7
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x452897
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x452885
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x452877
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x4527fd
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x452840
mov eax, 1
cmp rax, rbx
ja 0x45282b
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.004665e0
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x45286f
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x452833
mov rcx, r11
mov eax, r12d
jmp 0x452802
mov rcx, rbx
call fcn.00466520
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.00466520
mov eax, r8d
mov rcx, rbx
call fcn.004665e0
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x4528cd
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x452890
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x4527ad
mov eax, edx
mov rcx, rbx
call fcn.00466520
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.00466520
nop
int3

Function at 0x4584a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x458555
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdi
test byte [rax], al
lea rdx, [rax + 0x10]
mov rsi, qword [rsp + 0x68]
mov rcx, rdi
mov rax, rdx
mov rbx, rsi
call fcn.00456120
nop
test bl, bl
je 0x45854f
mov qword [rsp + 0x18], rax
movups xmmword [rsp + 0x20], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
lea rcx, [0x004585a0]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp], rcx
call fcn.00464120
xorps xmm15, xmm15
mov r14, qword [0x005ff138]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00464240
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.004584a0
Function at 0x45b4c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45b56f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x0045b5c0]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00464120
xorps xmm15, xmm15
mov r14, qword [0x005ff138]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00464240
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.0045b4c0
Function at 0x466040
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x403dc3
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.00409b60
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00464240
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x403da0
cmp byte [0x005fef0c], 0
je 0x466055
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x463280
jmp 0x403da0

Function at 0x466060
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005ff240]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005fef0c], 0
je 0x466095
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005ff560]
aesenc xmm0, xmmword [0x005ff570]
aesenc xmm0, xmmword [0x005ff580]
movq rax, xmm0
ret
jmp 0x409d80

Function at 0x4660a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005ff240]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x005fef0c], 0
je 0x4660d6
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005ff560]
aesenc xmm0, xmmword [0x005ff570]
aesenc xmm0, xmmword [0x005ff580]
movq rax, xmm0
ret
jmp 0x409de0

Function at 0x467e60
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x467e94
mov rcx, 0x28
jmp 0x467e9f
shl rcx, 3
add rcx, 0x1480
mov qword [0x005ff138], rcx
pop rbp
ret
Function at 0x472660
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47272a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.004032e0
xorps xmm15, xmm15
mov r14, qword [0x005ff138]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x47270f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004ab560]
xor ebx, ebx
mov rcx, rdx
call fcn.0044b7e0
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.00472a40
inc rbx
cmp rcx, rbx
jae 0x4726fe
mov edi, 1
lea rsi, [0x004ab560]
call fcn.0044b8c0
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004eb880]
lea rsi, [0x004eafd0]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00464240
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00472660
Function at 0x495ce0
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x49641f
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x495d0d
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x495f91
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x495fbd
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x004ecf40]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x004ab460]
lea rbx, [0x004eb6c0]
call fcn.004362c0
inc rax
cmp rax, r8
jge 0x495fe2
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x496017
lea rdi, [0x004ab4e0]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x495d03
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x495ffb
jmp 0x495fd0
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.00464240
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.00495ce0

Function at 0x4965c0
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x4965d7
inc rax
cmp rax, 4
jge 0x4965ef
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x4965d4
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x496600
inc rax
cmp rax, 4
jge 0x49660e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x496637
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x49661b
jmp 0x4965fd
Function at 0x140003260
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000328d
xor eax, eax
jmp 0x1400033f9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400032c7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400032c7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400033f9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400033ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000330a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003335
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400033f1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400033a4
sub eax, 1
je 0x1400033a4
cmp eax, 2
jne 0x1400033ec
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400033f1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400033d2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400033ec
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400033f1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004740
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400036d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000a040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400037a3
cmp byte [rcx + 0x71], 0
je 0x1400037a3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000379f
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 0x140003764
sub eax, 1
je 0x140003768
cmp eax, 2
jne 0x14000379f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004740
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003796
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 0x14000379f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000374c
xor al, al
jmp 0x14000374c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004740
add rsp, 0x60
pop rbx
ret

Function at 0x1400050c8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005112
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005112
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005112
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005112
cmp dword [rcx + 0x84], 0xe
jbe 0x140005112
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140005114
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Encrypt data using rc4 via systemfunction032
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0xa0
mov edx, dword [0x14008f210]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x14000111b
mov r8d, dword [0x14008f210]
lea rdx, [0x14000f330]
mov rcx, rax
call fcn.140001bc0
mov ecx, dword [0x14008f210]
lea rax, [rsp + 0x50]
movups xmm0, xmmword [str.rvBLXZ1iQiChdCl6ZDTLdNOrPZhOCujNXh]
mov dword [rsp + 0x38], ecx
movups xmm1, xmmword [0x14008f0c0]
mov dword [rsp + 0x3c], ecx
lea rcx, str.cryptsp.dll
movaps xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [str.QeWOJ8UP7YbKRdMO59WQQuGtwkquhgZ1]
mov byte [rsp + 0x90], 0
movaps xmmword [rsp + 0x60], xmm1
movups xmm1, xmmword [0x14008f140]
mov qword [rsp + 0x40], rbx
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm1
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x2c], 0x40
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.SystemFunction032
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call rax
mov edx, dword [0x14008f210]
lea r9, [rsp + 0x20]
mov r8d, 0x10
mov dword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000111b
call rbx
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
add rsp, 0xa0
pop rbx
ret
mov eax, 0xffffffff
add rsp, 0xa0
pop rbx
ret

Function at 0x1400018a0
Capabilities:
Parse pe header

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

Function at 0x140005990
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000578c
Function at 0x14000fa60
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x20
mov rbp, rdx
mov ebx, ecx
call fcn.1400d75e0
test eax, eax
jne 0x14000fc65
cmp byte [0x14010b254], al
mov qword [rsp + 0x38], rdi
jne 0x14000fa8d
xor edi, edi
jmp 0x14000faa9
mov ecx, 5
call qword [0x14010b2c0]
mov rdi, rax
test rax, rax
je 0x14000faa9
mov rcx, rax
call qword [0x14010b2d0]
test ebx, ebx
jle 0x14000fc48
test rbp, rbp
je 0x14000fc48
cmp dword [0x14010f730], 0
mov qword [rsp + 0x30], rsi
jne 0x14000fbcf
call fcn.1400d75e0
test eax, eax
je 0x14000fae5
movups xmm0, xmmword [str.expand_32_byte_k]
movaps xmmword [0x14010f730], xmm0
jmp 0x14000fb49
cmp byte [0x14010b254], 0
jne 0x14000faf7
mov rsi, qword [0x14010f470]
jmp 0x14000fb36
mov ecx, 2
mov qword [rsp + 0x40], r14
call qword [0x14010b2c0]
mov r14, rax
test rax, rax
je 0x14000fb2a
mov rcx, rax
call qword [0x14010b2d0]
mov rsi, qword [0x14010f470]
mov rcx, r14
call qword [0x14010b2e0]
jmp 0x14000fb31
mov rsi, qword [0x14010f470]
mov r14, qword [rsp + 0x40]
movups xmm0, xmmword [str.expand_32_byte_k]
movaps xmmword [0x14010f730], xmm0
test rsi, rsi
jne 0x14000fb6b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x14010f740], xmm0
mov qword [0x14010f760], rax
movups xmmword [0x14010f750], xmm0
mov dword [0x14010f768], eax
jmp 0x14000fbaf
mov eax, dword [0x14010b400]
test eax, eax
je 0x14000fb9d
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [0x14010f740], xmm0
mov dword [0x14010f740], eax
movups xmmword [0x14010f750], xmm0
mov qword [0x14010f760], rcx
mov dword [0x14010f768], ecx
jmp 0x14000fbaf
lea r8, [0x14010f740]
mov edx, 0x2c
mov rcx, rsi
call qword [rsi + 0x68]
mov eax, dword [0x14010f760]
xor cl, cl
mov byte [0x14010f7b0], cl
mov dword [0x14010f76c], eax
mov dword [0x14010f760], 0
jmp 0x14000fbd6
movzx ecx, byte [0x14010f7b0]
movzx eax, cl
lea rsi, [0x14010f770]
cmp ebx, eax
jle 0x14000fc25
test cl, cl
je 0x14000fc03
movzx r8d, cl
mov rdx, rsi
mov rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
movzx ecx, byte [0x14010f7b0]
sub ebx, ecx
add rbp, rcx
inc dword [0x14010f760]
lea rdx, [0x14010f730]
mov rcx, rsi
call fcn.14000f6b0
mov cl, 0x40
mov byte [0x14010f7b0], cl
cmp ebx, 0x40
jg 0x14000fbe4
movzx eax, cl
mov rcx, rbp
sub eax, ebx
movsxd r8, ebx
movsxd rdx, eax
add rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
sub byte [0x14010f7b0], bl
mov rsi, qword [rsp + 0x30]
jmp 0x14000fc52
mov dword [0x14010f730], 0
test rdi, rdi
je 0x14000fc60
mov rcx, rdi
call qword [0x14010b2e0]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
Function at 0x14002c0e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp byte [rcx + 0x11], 0
mov r9, rcx
jne 0x14002c137
movzx eax, byte [rcx + 0x10]
test al, al
je 0x14002c137
cmp al, 1
jne 0x14002c0f9
test edx, edx
jne 0x14002c137
mov r10, qword [rcx + 8]
test r8, r8
je 0x14002c112
mov rax, qword [r10 + 0x18]
mov rcx, qword [rax + 0x50]
mov eax, dword [rcx + 0x28]
bswap eax
mov dword [r8], eax
test edx, edx
je 0x14002c134
mov rax, qword [r9]
mov rcx, qword [r10]
mov edx, dword [rax + 0x2f0]
cmp edx, dword [rcx + 0x80]
jle 0x14002c134
cmp byte [rcx + 0xa], 0
jne fcn.140022fd0
xor eax, eax
ret
jmp fcn.14002bd20
Function at 0x140040cb0
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rcx + 8]
test rax, rax
je 0x140040cdf
lea r8d, [rdx + 1]
nop dword [rax]
mov ecx, dword [rax + 0xc8]
mov edx, r8d
xor edx, ecx
and edx, 3
xor edx, ecx
mov dword [rax + 0xc8], edx
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140040cc0
ret
Function at 0x14004dfe0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push r14
push r15
sub rsp, 0x30
mov r14, rcx
mov qword [rcx], 0
mov ecx, 0x28
mov rbp, r8
mov r15, rdx
call fcn.14000c340
mov rbx, rax
test rax, rax
jne 0x14004e024
mov eax, 7
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
cmp byte [0x14010b254], 0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
je 0x14004e089
mov rax, qword [0x14010b3e0]
test rax, rax
je 0x14004e04e
mov ecx, 0xc8
call rax
test eax, eax
jne 0x14004e089
lea rsi, [rbx + 8]
mov qword [rbx + 0x10], r15
lea rdi, [rbx + 0x10]
mov qword [rsp + 0x28], rsi
mov r9, rbx
mov dword [rsp + 0x20], 0
lea r8, [0x14000fc70]
mov qword [rbx + 0x18], rbp
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbx], rax
test rax, rax
jne 0x14004e0a1
jmp 0x14004e091
lea rdi, [rbx + 0x10]
lea rsi, [rbx + 8]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
mov qword [rbx + 0x20], rax
cmp qword [rdi], 0
mov rdi, qword [rsp + 0x58]
jne 0x14004e0be
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rcx, rbp
mov dword [rsi], eax
call r15
mov qword [rbx + 0x20], rax
mov rsi, qword [rsp + 0x50]
xor eax, eax
mov qword [r14], rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
Function at 0x140084c10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
push rdi
push r12
sub rsp, 0x38
mov rsi, qword [rcx + 0xa8]
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
mov r12, qword [rcx]
test rsi, rsi
je 0x140084e04
mov qword [rsp + 0x68], r13
xor r13d, r13d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x60], rbp
nop dword [rax + rax]
movsxd r14, dword [rsi + 0x10]
movzx eax, byte [rbx + 0x1f]
mov r15d, dword [rsi + 0x14]
shl r14, 5
add r14, qword [r12 + 0x20]
test al, al
jne 0x140084c71
inc dword [rbx + 0x38]
mov ebp, dword [rbx + 0x38]
jmp 0x140084c80
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov ebp, dword [rbx + rax*4 + 0xe8]
movsxd rcx, dword [rdi + 0x90]
lea r8d, [r15 + 2]
lea edx, [rcx + 7]
cmp dword [rdi + 0x94], ecx
jg 0x140084cad
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x37
mov rcx, rdi
call fcn.14003b2d0
jmp 0x140084cdb
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x37
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r13
mov r9, qword [r14 + 0x18]
xor edx, edx
mov r8d, dword [rsi + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], 0x71
mov r9, qword [r9 + 0x68]
call fcn.140083e60
mov eax, dword [rdi + 0x90]
add eax, 5
cmp eax, dword [rdi + 0x94]
jle 0x140084d1a
mov rcx, rdi
call fcn.14003b190
test eax, eax
jne 0x140084df0
movsxd rax, dword [rdi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], 0x33
mov dword [rax + rcx*8 + 4], r13d
lea rax, [rax + rcx*8]
mov ecx, dword [rdi + 0x90]
mov dword [rax + 0xc], r13d
add ecx, 2
mov dword [rax + 8], ecx
mov byte [rax + 1], r13b
mov qword [rax + 0x10], r13
mov word [rax + 2], r13w
mov qword [rax + 0x18], 0x7f
mov qword [rax + 0x20], r13
mov qword [rax + 0x28], r13
mov qword [rax + 0x30], 0x61
mov qword [rax + 0x38], 2
mov qword [rax + 0x40], r13
mov qword [rax + 0x48], 0x80
mov qword [rax + 0x50], r13
mov qword [rax + 0x58], r13
mov qword [rax + 0x60], 0x7a
mov qword [rax + 0x68], r13
mov qword [rax + 0x70], r13
add dword [rdi + 0x90], 5
test rax, rax
je 0x140084df0
mov dword [rax + 0x3c], ebp
lea edx, [r15 + 1]
mov dword [rax + 4], edx
lea ecx, [r15 - 1]
mov dword [rax + 0x20], edx
mov dword [rax + 0x34], ecx
mov dword [rax + 0x54], edx
mov dword [rax + 0x50], ebp
mov word [rax + 0x4a], 8
test ebp, ebp
je 0x140084de4
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x140084de4
mov dword [rbx + rax*4 + 0xe8], ebp
inc byte [rbx + 0x1f]
mov rsi, qword [rsi]
test rsi, rsi
jne 0x140084c50
mov rbp, qword [rsp + 0x60]
mov r13, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r12
pop rdi
pop rsi
pop rbx
ret