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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x258]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x14003edd3
mov rax, qword [rcx + 0x1a8]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x14003ee18
mov r9, qword [rbx + 0x1a0]
movsxd rax, edx
mov edx, 2
lea rcx, [rax + rax*2]
lea rax, [0x140072fc8]
lea r8d, [rdx - 1]
add rcx, rax
call qword [sym.imp.msvcrt.dll_fwrite]
mov r9, qword [rbx + 0x1a0]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fwrite]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140041dd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x798]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x140041e3d
mov rax, qword [rcx + 0x80]
test rax, rax
jne 0x140041e03
cmp qword [rcx + 0x78], rax
je 0x140041e3d
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 0
test rax, rax
jne 0x140041e16
mov rax, qword [rcx + 0x78]
mov rcx, qword [rax + 0x60]
lea r8, [0x140042d50]
lea rdx, [rsp + 0x20]
call fcn.14004ac50
cmp byte [rsp + 0x28], 0
jne 0x140041e51
mov qword [rdi + 0x798], 0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test rsi, rsi
je 0x140041e59
mov qword [rsi], rbx
cmp byte [rbx + 0x1f0], 0
mov rdi, qword [rbx + 0x1a8]
je 0x140041e77
mov rcx, rbx
call fcn.14003d340
test eax, eax
jne 0x140041e93
jmp 0x140041e3d
mov r9d, 2
lea rdx, [rsp + 0x40]
mov rcx, rdi
lea r8d, [r9 - 1]
call qword [sym.imp.WSOCK32.DLL_recv]
test eax, eax
je 0x140041e3d
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x140042400
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0xd0
mov dword [rax + 0x18], 0x4020
mov dword [rax + 0x10], 0
mov dword [rax + 0x20], 4
mov eax, dword [0x1401862a0]
mov rbx, rcx
test eax, eax
jne 0x140042495
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x9c
call sub.msvcrt.dll_memset
mov r8b, 3
mov edx, 2
xor ecx, ecx
mov dword [rsp + 0x30], 0x9c
mov dword [rsp + 0x34], 6
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea rcx, [rsp + 0x30]
mov edx, 2
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
test eax, eax
je 0x140042489
mov dword [0x1401862a0], 2
add rsp, 0xd0
pop rbx
ret
mov dword [0x1401862a0], 1
jmp 0x14004249a
cmp eax, 2
je 0x1400424fb
lea rax, [rsp + 0xf8]
lea r9, [rsp + 0xe8]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WSOCK32.DLL_getsockopt]
test eax, eax
jne 0x1400424d7
mov eax, dword [rsp + 0xf0]
cmp dword [rsp + 0xe8], eax
jg 0x1400424fb
lea r9, [rsp + 0xf0]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WSOCK32.DLL_setsockopt]
add rsp, 0xd0
pop rbx
ret
Function at 0x14005e320
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x140186330], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x140186340]
jne 0x14005e36d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x140186368], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x140186330], 1
mov ecx, dword [0x140186368]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x14005e442
mov rcx, qword [0x140185200]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14005e46d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140186338]
test rax, rax
je 0x14005e3bd
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x140186338], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x14005e488]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x140186368]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140185200]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14005e46d
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1400015a0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x38
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.140001080
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x20]
call fcn.140001140
add rsp, 0x38
ret

Function at 0x140002284
Capabilities:
Parse pe header

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

Function at 0x140007e58
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007c84

Function at 0x140014fb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140014fd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140014fd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400015b4
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
mov rbp, rsp
sub rsp, 0x40
cmp qword [rcx + 0x18], 7
mov rbx, rcx
mov rdx, rcx
jbe 0x1400015cf
mov rdx, qword [rcx]
lea rax, [rbp + 0x30]
mov rsi, 0xffffffff80000000
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400015fe
mov rcx, qword [rbp + 0x30]
jmp 0x1400016f1
cmp qword [rbx + 0x18], 7
jbe 0x140001608
mov rbx, qword [rbx]
lea r8, [rbp + 0x28]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea rbx, str.Counsellor
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rbp + 0x28]
xor edx, edx
mov r9, rbx
lea eax, [rax*2 + 2]
lea r8d, [rdx + 1]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rbp + 0x20]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov rcx, qword [rbp + 0x20]
lea r9, [0x1400055b0]
xor edx, edx
mov dword [rsp + 0x20], 0x30
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rbp + 0x20]
lea r8, [rbp + 0x38]
lea rdx, str.Shell
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov rcx, qword [rbp + 0x38]
lea r8, [rbp - 0x10]
lea rdx, str.Open
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov rcx, qword [rbp - 0x10]
lea r8, [rbp - 8]
lea rdx, str.Command
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea rcx, str.wscript.exe___E:vbscript___1_
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rbp - 8]
lea r9, str.wscript.exe___E:vbscript___1_
xor edx, edx
lea eax, [rax*2 + 2]
mov dword [rsp + 0x20], eax
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x40
pop rsi
pop rbx
pop rbp
ret
Function at 0x140001808
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r15, rcx
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r14d, eax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
mov ebx, r12d
mov qword [rbp - 0x28], rbx
lea r13d, [r12 + 0x41]
movzx edx, r13w
mov word [rbp + 0x38], dx
movzx ecx, r13w
movzx r9d, r13w
movzx r8d, r13w
movzx edi, r13w
mov rsi, qword [rbp - 0x30]
movzx eax, cx
sub eax, r13d
movzx ecx, al
bt r14d, ecx
jb 0x1400018a7
cmp rsi, rbx
je 0x14000188b
mov word [rsi], dx
add rsi, 2
mov qword [rbp - 0x30], rsi
movzx r8d, r9w
jmp 0x1400018a7
lea r8, [rbp + 0x38]
mov rdx, rsi
lea rcx, [rbp - 0x38]
call fcn.140003914
movzx r8d, di
mov rbx, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x30]
lea edx, [r8 + 1]
mov word [rbp + 0x38], dx
movzx ecx, dx
movzx r9d, dx
movzx r8d, dx
movzx edi, dx
cmp dx, 0x5a
jbe 0x140001866
mov r14d, 0x44
mov rdi, qword [rbp - 0x38]
movzx r8d, r14w
mov rdx, rsi
mov rcx, rdi
call fcn.140003db0
cmp rax, rsi
jne 0x14000193f
inc r14w
cmp r14w, 0x5a
jbe 0x1400018cd
lea rdx, [0x1400055b0]
mov rcx, r15
call fcn.140002f84
nop
test rdi, rdi
je 0x140001a04
sub rbx, rdi
sar rbx, 1
add rbx, rbx
mov rax, rdi
mov esi, 0x1000
cmp rbx, rsi
jb 0x1400019f9
add rbx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019f9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x140005940]
movdqu xmmword [rbp - 0x10], xmm1
mov word [rbp - 0x20], r14w
mov word [rbp - 0x1e], r12w
lea r8, [0x14000566c]
lea rdx, [rbp - 0x20]
mov rcx, r15
call fcn.1400032e4
nop
mov esi, 0x1000
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x1400019b5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, rsi
jb 0x1400019b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003ebc
movdqa xmm0, xmmword [0x140005930]
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], r12w
test rdi, rdi
je 0x140001a04
sub rbx, rdi
sar rbx, 1
add rbx, rbx
mov rax, rdi
cmp rbx, rsi
jb 0x1400019f9
add rbx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019f9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rbx
mov rcx, rdi
call fcn.140003ebc
mov rax, r15
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140002b0c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov esi, 0xffff
xor r14d, r14d
movzx edi, dx
mov rbx, rcx
cmp si, dx
jne 0x140002b3d
movzx eax, r14w
jmp 0x140002c65
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002b79
mov r8, qword [rcx + 0x58]
movsxd r9, dword [r8]
lea rcx, [rdx + r9*2]
cmp rdx, rcx
jae 0x140002b79
lea eax, [r9 - 1]
mov dword [r8], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 2]
mov qword [rcx], rax
mov word [rdx], di
movzx eax, di
jmp 0x140002c65
cmp qword [rbx + 0x80], r14
je 0x140002c62
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002bb7
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002bd9
movzx ecx, di
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, si
cmove di, si
jmp 0x140002b71
lea rax, [rbp + 0x30]
mov word [rbp - 0x30], di
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x2e]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x30]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002c27
sub eax, 1
je 0x140002c27
cmp eax, 2
jne 0x140002c62
movzx ecx, word [rbp - 0x30]
jmp 0x140002bc3
mov r14, qword [rbp + 0x30]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x140002c52
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x140002c62
lea rax, [rbp - 0x30]
mov byte [rbx + 0x72], 1
cmp qword [rbp + 0x38], rax
cmovne si, di
movzx eax, si
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140003184
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400031e4
cmp byte [rcx + 0x72], 0
je 0x1400031e4
mov rax, qword [rcx]
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x14000322c
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400031f1
sub eax, 1
je 0x1400031f5
cmp eax, 2
jne 0x14000322c
mov byte [rbx + 0x72], 0
mov al, 1
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x140003223
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000322c
cmp byte [rbx + 0x72], 0
sete al
jmp 0x1400031e6
xor al, al
jmp 0x1400031e6

Function at 0x140004840
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000488a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000488a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000488a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000488a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000488a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000488c
xor al, al
add rsp, 0x28
ret
Function at 0x1400032c0
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 8
movups xmm0, xmmword [rcx]
xorps xmm4, xmm4
lea rax, [r8 + 0x10]
cmp edx, 0x100
je 0x140003490
cmp edx, 0xc0
je 0x1400033f0
cmp edx, 0x80
jne 0x140003560
mov edx, 9
movdqa xmm5, xmmword [0x140152190]
mov r10d, 8
movdqa xmm4, xmmword [0x1401521b0]
movdqa xmm2, xmm0
movdqu xmmword [r8], xmm0
jmp 0x140003320
pshufb xmm0, xmm5
aesenclast xmm0, xmm4
pslld xmm4, 1
lea rax, [rax + 0x10]
movdqa xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm2, xmm3
pxor xmm0, xmm2
movdqu xmmword [rax - 0x10], xmm0
movdqa xmm2, xmm0
dec r10d
jne 0x140003320
movdqa xmm4, xmmword [str.eeee]
pshufb xmm0, xmm5
aesenclast xmm0, xmm4
pslld xmm4, 1
movdqa xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm2, xmm3
pxor xmm0, xmm2
movdqu xmmword [rax], xmm0
movdqa xmm2, xmm0
pshufb xmm0, xmm5
aesenclast xmm0, xmm4
movdqa xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm2, xmm3
pxor xmm0, xmm2
movdqu xmmword [rax + 0x10], xmm0
mov dword [rax + 0x60], edx
xor eax, eax
jmp 0x140003567
movq xmm2, qword [rcx + 0x10]
mov edx, 0xb
movdqa xmm5, xmmword [0x1401521a0]
movdqa xmm4, xmmword [0x1401521b0]
mov r10d, 8
movdqu xmmword [r8], xmm0
jmp 0x140003420
movq qword [rax], xmm2
movdqa xmm1, xmm2
pshufb xmm2, xmm5
aesenclast xmm2, xmm4
pslld xmm4, 1
lea rax, [rax + 0x18]
movdqa xmm3, xmm0
pslldq xmm0, 4
pxor xmm3, xmm0
pslldq xmm0, 4
pxor xmm3, xmm0
pslldq xmm0, 4
pxor xmm0, xmm3
pshufd xmm3, xmm0, 0xff
pxor xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm1
pxor xmm0, xmm2
pxor xmm2, xmm3
movdqu xmmword [rax - 0x10], xmm0
dec r10d
jne 0x140003420
mov dword [rax + 0x20], edx
xor eax, eax
jmp 0x140003567
movups xmm2, xmmword [rcx + 0x10]
mov edx, 0xd
lea rax, [rax + 0x10]
movdqa xmm5, xmmword [0x140152190]
movdqa xmm4, xmmword [0x1401521b0]
mov r10d, 7
movdqu xmmword [r8], xmm0
movdqa xmm1, xmm2
movdqu xmmword [r8 + 0x10], xmm2
jmp 0x1400034d0
pshufb xmm2, xmm5
aesenclast xmm2, xmm4
movdqa xmm3, xmm0
pslldq xmm0, 4
pxor xmm3, xmm0
pslldq xmm0, 4
pxor xmm3, xmm0
pslldq xmm0, 4
pxor xmm0, xmm3
pslld xmm4, 1
pxor xmm0, xmm2
movdqu xmmword [rax], xmm0
dec r10d
je 0x140003552
pshufd xmm2, xmm0, 0xff
pxor xmm3, xmm3
aesenclast xmm2, xmm3
movdqa xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm1
pslldq xmm1, 4
pxor xmm1, xmm3
pxor xmm2, xmm1
movdqu xmmword [rax + 0x10], xmm2
lea rax, [rax + 0x20]
movdqa xmm1, xmm2
jmp 0x1400034d0
mov dword [rax + 0x10], edx
xor eax, eax
jmp 0x140003567
mov rax, 0xfffffffffffffffe
pxor xmm0, xmm0
pxor xmm1, xmm1
pxor xmm2, xmm2
pxor xmm3, xmm3
pxor xmm4, xmm4
pxor xmm5, xmm5
add rsp, 8
ret
Function at 0x140022d2d
Capabilities:
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
mov r8, qword [rsp + 0x28]
mov r9, rsp
sub rsp, 0x68
movaps xmmword [r9 - 0x28], xmm6
movaps xmmword [r9 - 0x18], xmm7
movdqa xmm0, xmmword [str.expand_32_byte_k]
movdqu xmm1, xmmword [rcx]
movdqu xmm2, xmmword [rcx + 0x10]
movdqu xmm3, xmmword [r8]
movdqa xmm6, xmmword [0x1401534c0]
movdqa xmm7, xmmword [0x1401534d0]
movdqa xmmword [rsp], xmm0
movdqa xmmword [rsp + 0x10], xmm1
movdqa xmmword [rsp + 0x20], xmm2
movdqa xmmword [rsp + 0x30], xmm3
mov r8d, 0xa
jmp 0x140022de0
movdqa xmm3, xmmword [0x140153450]
movdqa xmm0, xmmword [rsp]
movdqa xmm1, xmmword [rsp + 0x10]
movdqa xmm2, xmmword [rsp + 0x20]
paddd xmm3, xmmword [rsp + 0x30]
mov r8d, 0xa
movdqa xmmword [rsp + 0x30], xmm3
jmp 0x140022de0
paddd xmm0, xmm1
pxor xmm3, xmm0
pshufb xmm3, xmm6
paddd xmm2, xmm3
pxor xmm1, xmm2
movdqa xmm4, xmm1
psrld xmm1, 0x14
pslld xmm4, 0xc
por xmm1, xmm4
paddd xmm0, xmm1
pxor xmm3, xmm0
pshufb xmm3, xmm7
paddd xmm2, xmm3
pxor xmm1, xmm2
movdqa xmm4, xmm1
psrld xmm1, 0x19
pslld xmm4, 7
por xmm1, xmm4
pshufd xmm2, xmm2, 0x4e
pshufd xmm1, xmm1, 0x39
pshufd xmm3, xmm3, 0x93
nop
paddd xmm0, xmm1
pxor xmm3, xmm0
pshufb xmm3, xmm6
paddd xmm2, xmm3
pxor xmm1, xmm2
movdqa xmm4, xmm1
psrld xmm1, 0x14
pslld xmm4, 0xc
por xmm1, xmm4
paddd xmm0, xmm1
pxor xmm3, xmm0
pshufb xmm3, xmm7
paddd xmm2, xmm3
pxor xmm1, xmm2
movdqa xmm4, xmm1
psrld xmm1, 0x19
pslld xmm4, 7
por xmm1, xmm4
pshufd xmm2, xmm2, 0x4e
pshufd xmm1, xmm1, 0x93
pshufd xmm3, xmm3, 0x39
dec r8
jne 0x140022de0
paddd xmm0, xmmword [rsp]
paddd xmm1, xmmword [rsp + 0x10]
paddd xmm2, xmmword [rsp + 0x20]
paddd xmm3, xmmword [rsp + 0x30]
cmp rdx, 0x40
jb 0x140022f20
movdqu xmm4, xmmword [rsi]
movdqu xmm5, xmmword [rsi + 0x10]
pxor xmm0, xmm4
movdqu xmm4, xmmword [rsi + 0x20]
pxor xmm1, xmm5
movdqu xmm5, xmmword [rsi + 0x30]
lea rsi, [rsi + 0x40]
pxor xmm2, xmm4
pxor xmm3, xmm5
movdqu xmmword [rdi], xmm0
movdqu xmmword [rdi + 0x10], xmm1
movdqu xmmword [rdi + 0x20], xmm2
movdqu xmmword [rdi + 0x30], xmm3
lea rdi, [rdi + 0x40]
sub rdx, 0x40
jne 0x140022da0
jmp 0x140022f58
movdqa xmmword [rsp], xmm0
movdqa xmmword [rsp + 0x10], xmm1
movdqa xmmword [rsp + 0x20], xmm2
movdqa xmmword [rsp + 0x30], xmm3
xor r8, r8
movzx eax, byte [rsi + r8]
movzx ecx, byte [rsp + r8]
lea r8, [r8 + 1]
xor eax, ecx
mov byte [rdi + r8 - 1], al
dec rdx
jne 0x140022f3a
movaps xmm6, xmmword [r9 - 0x28]
movaps xmm7, xmmword [r9 - 0x18]
lea rsp, [r9]
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
ret
Function at 0x140036530
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x140036577
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140036591
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14003656f
mov qword [rsi], rdi
call fcn.14008b550
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x1400365a7
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14008b550
mov rcx, qword [rsi]
int3
int3

Function at 0x1400381c0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x140188040]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.1400e67b0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14003825f
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400d1378
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
int3
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400b5c70
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14003d1a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140188040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword [rcx]
mov r8, qword [rcx + 8]
cmp r8, 2
jb 0x14003d310
cmp word [rax + 2], 0x3a
jne 0x14003d310
movzx ecx, word [rax]
and ecx, 0xffffffdf
add ecx, 0xffffffbf
cmp cx, 0x1a
jae 0x14003d310
mov ebx, 2
xor edx, edx
mov rcx, qword [rsi]
mov r9, qword [rsi + 8]
cmp r9, 2
jb 0x14003d319
cmp word [rcx + 2], 0x3a
jne 0x14003d319
movzx r10d, word [rcx]
and r10d, 0xffffffdf
add r10d, 0xffffffa5
cmp r10w, 0xffe6
setae r10b
not dl
test dl, r10b
je 0x14003d319
cmp r8, rbx
cmovae r8, rbx
test r8, r8
sete dl
test rax, rax
setne r9b
or r9b, dl
je 0x14003d342
test rcx, rcx
je 0x14003d342
lea rdx, [rsp + 0x38]
mov qword [rdx], rcx
mov qword [rdx + 8], 2
lea rcx, [rsp + 0x28]
mov qword [rcx], rax
mov qword [rcx + 8], r8
mov r8d, 1
call fcn.1400870d0
test al, al
je 0x14003d31e
mov rax, qword [rdi + 8]
cmp rax, rbx
jb 0x14003d344
lea ecx, [rbx + rbx]
add rcx, qword [rdi]
sub rax, rbx
js 0x14003d342
sete dl
test rcx, rcx
setne r8b
or r8b, dl
je 0x14003d342
mov rdx, qword [rsi + 8]
cmp rdx, 1
jbe 0x14003d344
add rdx, 0xfffffffffffffffe
js 0x14003d342
sete r8b
cmp rax, rdx
sete dil
setne dl
or dl, r8b
je 0x14003d2f0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400b5c70
mov eax, edi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov rdx, qword [rsi]
xor r8d, r8d
movzx r9d, word [rcx + r8*2]
cmp r9w, word [rdx + r8*2 + 4]
jne 0x14003d31e
inc r8
mov dil, 1
cmp rax, r8
jne 0x14003d2f6
jmp 0x14003d2d9
mov dl, 1
xor ebx, ebx
jmp 0x14003d1f2
cmp r8, r9
je 0x14003d322
xor edi, edi
jmp 0x14003d2d9
mov dil, 1
test r8, r8
je 0x14003d2d9
xor edx, edx
movzx r9d, word [rax + rdx*2]
cmp r9w, word [rcx + rdx*2]
jne 0x14003d31e
inc rdx
cmp r8, rdx
jne 0x14003d32c
jmp 0x14003d2d9
ud2
lea rcx, [0x140160faf]
int3