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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140118060
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140118060
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140117330
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401d2274]
mov rbx, rcx
test esi, esi
jle 0x140117460
mov rax, qword [0x1401d2278]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14011737b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140117405
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140117360
mov rcx, rbx
call fcn.140117d80
mov rdi, rax
test rax, rax
je 0x140117482
mov rax, qword [0x1401d2278]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140117ec0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401d2278]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140117467
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1401173fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140117410
add dword [0x1401d2274], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1401d2278]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1401173fe
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1401172c0
nop dword [rax]
xor esi, esi
jmp 0x140117388
mov rax, qword [0x1401d2278]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1401172c0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1401172c0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1401179f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401d22e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401d22c0]
test rbx, rbx
je 0x140117a4c
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140117a43
test rsi, rsi
je 0x140117a43
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140117a28
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140117d80
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140189770]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140117da0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140117da8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140117da0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140117dfd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140117df4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140117da0
add rax, 0x28
cmp rax, r9
jne 0x140117de0
xor eax, eax
ret

Function at 0x140117e00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140189770]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140117e1f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140117e28
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140117e1f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140117ec0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140189770]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140117edf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140117ee8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1401182a0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov r8, qword [rdx + rax*8]
xor qword [rcx + rax*8], r8
inc rax
cmp rax, 8
jne 0x1401181c2
ret
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov ebp, 1
mov qword [rsp + 0x20], rcx
mov rdi, rdx
mov rdx, rcx
mov rcx, r8
mov rbx, r8
call 0x1401181c0
mov rcx, rbx
cmp rbp, rdi
jae 0x14011847e
call fcn.140118720
mov rcx, rbx
call fcn.140118640
mov r10, qword [rbx]
mov r14, qword [rbx + 8]
mov r9, qword [rbx + 0x10]
mov r8, qword [rbx + 0x18]
mov rcx, r10
mov r13, qword [rbx + 0x20]
mov r12, qword [rbx + 0x28]
call fcn.1401185e0
mov rcx, r14
mov r11, qword [rbx + 0x30]
mov rsi, qword [rbx + 0x38]
xor r10, rax
mov r15, rax
mov qword [rsp + 0x28], r10
call fcn.1401185e0
mov rcx, r9
xor r14, rax
mov r10, rax
mov qword [rsp + 0x30], r14
call fcn.1401185e0
mov rcx, r8
xor r9, rax
mov r14, rax
mov qword [rsp + 0x38], r9
call fcn.1401185e0
mov rcx, r13
xor r8, rax
mov r9, rax
mov qword [rsp + 0x40], r8
call fcn.1401185e0
mov rcx, r12
xor r13, rax
mov r8, rax
mov qword [rsp + 0x48], r13
call fcn.1401185e0
mov rcx, r11
xor r12, rax
mov r13, rax
mov qword [rsp + 0x50], r12
call fcn.1401185e0
mov rcx, rsi
xor r11, rax
mov r12, rax
mov qword [rsp + 0x58], r11
call fcn.1401185e0
mov rcx, qword [rsp + 0x28]
xor rsi, rax
mov r11, rax
call fcn.140118610
mov rcx, qword [rsp + 0x30]
xor r15, rax
xor r15, rsi
mov qword [rbx], r15
call fcn.140118610
mov rcx, qword [rsp + 0x38]
xor r10, rax
mov rax, qword [rsp + 0x28]
xor r10, rax
xor r10, rsi
mov qword [rbx + 8], r10
call fcn.140118610
mov rcx, qword [rsp + 0x40]
xor r14, rax
mov rax, qword [rsp + 0x30]
xor r14, rax
mov qword [rbx + 0x10], r14
call fcn.140118610
mov rcx, qword [rsp + 0x48]
xor r9, rax
mov rax, qword [rsp + 0x38]
xor r9, rax
xor r9, rsi
mov qword [rbx + 0x18], r9
call fcn.140118610
mov rcx, qword [rsp + 0x50]
xor r8, rax
mov rax, qword [rsp + 0x40]
xor r8, rax
xor r8, rsi
mov qword [rbx + 0x20], r8
call fcn.140118610
mov rcx, qword [rsp + 0x58]
xor r13, rax
mov rax, qword [rsp + 0x48]
xor r13, rax
mov qword [rbx + 0x28], r13
call fcn.140118610
mov rcx, rsi
xor r12, rax
mov rax, qword [rsp + 0x50]
xor r12, rax
mov qword [rbx + 0x30], r12
call fcn.140118610
mov rdx, rbp
mov rcx, rbx
inc rbp
xor r11, rax
mov rax, qword [rsp + 0x58]
shl rdx, 6
xor r11, rax
mov rax, qword [rsp + 0x20]
mov qword [rbx + 0x38], r11
add rdx, rax
call 0x1401181c0
jmp 0x1401182cb
call fcn.140118720
mov rcx, rbx
shl rdi, 6
call fcn.140118640
mov rdx, qword [rsp + 0x20]
mov rcx, rbx
add rdx, rdi
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp 0x1401181c0

Function at 0x140118d70
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov r10, qword [rcx + rax*8]
mov r9, qword [rdx + rax*8]
xor r9, r10
and r9, r8
xor r9, r10
mov qword [rcx + rax*8], r9
inc rax
cmp rax, 6
jne 0x140118d72
ret

Function at 0x140119230
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
neg r8
mov r10, qword [rcx + rax]
mov r9, qword [rdx + rax]
xor r9, r10
and r9, r8
xor r9, r10
mov qword [rcx + rax], r9
add rax, 8
cmp rax, 0x28
jne 0x140119235
ret
Function at 0x140119260
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
neg r8
mov r10, qword [rcx + rax]
mov r9, qword [rdx + rax]
xor r9, r10
and r9, r8
xor r10, r9
mov qword [rcx + rax], r10
xor qword [rdx + rax], r9
add rax, 8
cmp rax, 0x28
jne 0x140119265
ret

Function at 0x14011ae60
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
xor edi, edi
lea rsi, [rsp + 0x20]
mov r9, rcx
lea rbx, [rsp + 0x50]
mov r10, rdx
mov rcx, rsi
lea r11, [rsp + 0x80]
call fcn.14011a690
mov rcx, rbx
call fcn.14011a690
mov rcx, r11
call fcn.14011a690
mov rdx, r10
inc rdi
mov rax, rdi
xor rax, r8
mov rcx, rax
dec rax
not rcx
and rcx, rax
xor eax, eax
sar rcx, 0x3f
mov rbp, qword [rsi + rax*8]
mov r10, qword [rdx + rax*8]
xor r10, rbp
and r10, rcx
xor r10, rbp
mov rbp, qword [rbx + rax*8]
mov qword [rsi + rax*8], r10
mov r10, qword [rdx + rax*8 + 0x30]
xor r10, rbp
and r10, rcx
xor r10, rbp
mov rbp, qword [r11 + rax*8]
mov qword [rbx + rax*8], r10
mov r10, qword [rdx + rax*8 + 0x60]
xor r10, rbp
and r10, rcx
xor r10, rbp
mov qword [r11 + rax*8], r10
inc rax
cmp rax, 6
jne 0x14011aebb
add rdx, 0x90
cmp rdi, 0x10
jne 0x14011aea0
mov rdx, rsi
mov rcx, r9
call fcn.14011a650
lea rcx, [r9 + 0x30]
mov rdx, rbx
call fcn.14011a650
lea rcx, [r9 + 0x60]
mov rdx, r11
call fcn.14011a650
nop
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14011d1b0
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov r10, rcx
mov rbx, r8
cmp edx, 0x80
je 0x14011d246
mov eax, 1
cmp edx, 0x100
jne 0x14011d466
lea rdi, [rsp + 0x20]
mov rdx, rcx
lea rbp, [rsp + 0x30]
mov dword [r8 + 0xf0], 0xe
mov rcx, rdi
mov esi, 2
lea r12, [rsp + 0x40]
lea r13, [0x140189e00]
call fcn.1401181e0
mov r8d, 0x10
mov rcx, rbx
mov rdx, rdi
call fcn.140118100
lea rdx, [r10 + 0x10]
mov rcx, rbp
call fcn.1401181e0
lea rcx, [rbx + 0x10]
mov rdx, rbp
add rbx, 0x20
mov r8d, 0x10
call fcn.140118100
jmp 0x14011d33a
lea rdi, [rsp + 0x30]
mov rdx, rcx
lea rsi, [rbx + 0x10]
mov dword [r8 + 0xf0], 0xa
mov rcx, rdi
lea rbp, [0x140189e00]
lea r12, [rsp + 0x40]
call fcn.1401181e0
mov rcx, rbx
mov r8d, 0x10
mov rdx, rdi
call fcn.140118100
add rbx, 0xb0
mov rdx, rdi
mov rcx, r12
inc rbp
call fcn.1401186b0
mov r8b, byte [rbp - 1]
mov rcx, qword [rsp + 0x40]
call fcn.1401185e0
mov rdx, r8
shr r8, 4
and edx, 0xf
shr rax, 0x30
xor rax, qword [rsp + 0x30]
and r8d, 0xf
xor rax, rdx
mov rdx, rax
mov rcx, rax
shl rcx, 0x10
shl rdx, 0x20
xor rdx, rcx
mov rcx, qword [rsp + 0x48]
xor rdx, rax
shl rax, 0x30
xor rax, rdx
mov qword [rsp + 0x30], rax
call fcn.1401185e0
shr rax, 0x30
xor rax, qword [rsp + 0x38]
xor rax, r8
mov r8d, 0x10
mov rdx, rax
mov rcx, rax
shl rcx, 0x20
shl rdx, 0x10
xor rdx, rcx
mov rcx, rsi
add rsi, 0x10
xor rdx, rax
shl rax, 0x30
xor rax, rdx
mov rdx, rdi
mov qword [rsp + 0x38], rax
call fcn.140118100
cmp rbx, rsi
jne 0x14011d289
xor eax, eax
jmp 0x14011d466
mov rdx, rbp
mov rcx, r12
lea r14, [rbx + 0x20]
call fcn.1401186b0
mov rax, rsi
mov rcx, qword [rsp + 0x40]
shr rax, 1
mov r8b, byte [r13 + rax - 1]
call fcn.1401185e0
mov rdx, r8
shr rax, 0x30
xor rax, qword [rsp + 0x20]
and edx, 0xf
shr r8, 4
xor rax, rdx
and r8d, 0xf
mov rdx, rax
mov rcx, rax
shl rcx, 0x10
shl rdx, 0x20
xor rdx, rcx
mov rcx, qword [rsp + 0x48]
xor rdx, rax
shl rax, 0x30
xor rax, rdx
mov qword [rsp + 0x20], rax
call fcn.1401185e0
shr rax, 0x30
xor rax, qword [rsp + 0x28]
xor rax, r8
mov r8d, 0x10
mov rdx, rax
mov rcx, rax
shl rcx, 0x20
shl rdx, 0x10
xor rdx, rcx
mov rcx, rbx
xor rdx, rax
shl rax, 0x30
xor rax, rdx
mov rdx, rdi
mov qword [rsp + 0x28], rax
call fcn.140118100
cmp rsi, 0xe
je 0x14011d333
mov rdx, rdi
mov rcx, r12
add rsi, 2
call fcn.1401186b0
movzx eax, word [rsp + 0x46]
xor rax, qword [rsp + 0x30]
mov r8d, 0x10
mov rdx, rax
mov rcx, rax
shl rcx, 0x20
shl rdx, 0x10
xor rdx, rcx
xor rdx, rax
shl rax, 0x30
xor rax, rdx
mov qword [rsp + 0x30], rax
movzx eax, word [rsp + 0x4e]
xor rax, qword [rsp + 0x38]
mov rdx, rax
mov rcx, rax
shl rcx, 0x20
shl rdx, 0x10
xor rdx, rcx
lea rcx, [rbx + 0x10]
mov rbx, r14
xor rdx, rax
shl rax, 0x30
xor rax, rdx
mov rdx, rbp
mov qword [rsp + 0x38], rax
call fcn.140118100
jmp 0x14011d33a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x14011d480
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [rsp + 0x98]
mov rbp, rcx
mov rdi, r8
test rsi, rsi
je 0x14011d5b3
cmp rsi, rdx
jne 0x14011d5b3
lea rdx, [rsi + rsi]
xor eax, eax
cmp rdx, r9
jne 0x14011d5b5
mov rax, qword [rsp + 0xa0]
lea r12, [r8 + rsi*8]
xor r15d, r15d
xor ebx, ebx
mov r14, r12
mov r13, qword [rax]
mov r8, qword [rdi]
mov rdx, qword [rsp + 0x90]
mov rcx, rdi
mov r9, rsi
imul r8, r13
call fcn.14011d620
mov rcx, qword [r14]
xor edx, edx
add rax, rbx
add rax, rcx
cmp rcx, rax
mov qword [r14], rax
setne dl
or rdx, rbx
xor ebx, ebx
cmp rcx, rax
setae bl
inc r15
add rdi, 8
add r14, 8
and rbx, rdx
cmp r15, rsi
jb 0x14011d4d6
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax]
mov rax, qword [r12]
mov rdx, rax
sub rdx, rcx
mov qword [rbp], rdx
xor edx, edx
cmp rax, rcx
sbb rdx, 0
mov rax, rdx
mov edx, 1
and eax, 1
cmp rdx, rsi
jae 0x14011d582
mov r8, qword [r12 + rdx*8]
xor r9d, r9d
sub r8, rax
mov rax, qword [rsp + 0x90]
sbb r9, 0
sub r8, qword [rax + rdx*8]
sbb r9, 0
mov qword [rbp + rdx*8], r8
inc rdx
mov rax, r9
and eax, 1
jmp 0x14011d54f
sub rbx, rax
xor eax, eax
mov rcx, qword [rbp + rax*8]
mov rdx, qword [r12 + rax*8]
xor rdx, rcx
and rdx, rbx
xor rdx, rcx
mov qword [rbp + rax*8], rdx
xor edx, edx
mov qword [r12 + rax*8], rdx
inc rax
cmp rax, rsi
jb 0x14011d587
mov eax, 1
jmp 0x14011d5b5
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14011d5d0
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov ebx, 1
mov r9d, 0x40
xor eax, eax
mov r8d, 1
shl rbx, 0x3f
mov rdx, r8
mov r11, rcx
shr rax, 1
and edx, 1
neg rdx
and r11, rdx
and rdx, rbx
mov r10, r11
add rax, rdx
xor r10, r8
and r8, r11
shr r10, 1
add r8, r10
dec r9
jne 0x14011d5e8
pop rbx
ret

Function at 0x14011e3d0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov al, byte [rcx + 0x1f]
and byte [rcx], 0xf8
and eax, 0x7f
or eax, 0x40
mov byte [rcx + 0x1f], al
ret
Function at 0x140120ba0
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
movdqu xmm1, xmmword [rdx]
movdqu xmm0, xmmword [r8]
sub r8, 0x10
pxor xmm1, xmm0
movdqu xmm0, xmmword [r8]
sub r8, 0x10
aesdec xmm1, xmm0
sub cl, 1
cmp cl, 1
jne 0x140120bb1
movdqu xmm0, xmmword [r8]
aesdeclast xmm1, xmm0
movdqu xmmword [r9], xmm1
ret

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rdi, rcx
mov rsi, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
lea r10, [r9 + rcx]
lea r11, [rdx + r8]
cmp rcx, r8
cmovb r8, rcx
lea rax, [rsp + 0x28]
mov qword [rax], r9
mov qword [rax + 8], r10
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r11
and qword [rax + 0x20], 0
mov qword [rax + 0x28], r8
mov qword [rax + 0x30], rcx
mov r8, qword [rdi]
mov r9, qword [rdi + 0x10]
add r9, r8
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov rdx, rax
call fcn.1400360f8
mov rax, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x38]
mov rdx, qword [rbx + 0x48]
mov r8, qword [rbx + 0x50]
mov r9, qword [rbx + 0x10]
add r9, rax
add rax, qword [rbx]
cmp rdx, r8
jae 0x140037dd6
mov r10b, byte [r9 + rdx]
xor r10b, byte [rax + rdx]
mov byte [rcx + rdx], r10b
inc rdx
jmp 0x140037dc0
lea rcx, [rdi + 0x18]
mov rbx, qword [rdi]
movzx edi, byte [rdi + 0x108]
mov rdx, rdi
shl rdx, 4
add rdx, 0x10
lea r8, [0x1401396f0]
call fcn.14002b03c
mov ecx, edi
mov rdx, rbx
mov r8, rax
mov r9, rsi
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
jmp 0x140120be0
movdqu xmm1, xmmword [rdx]
movdqu xmm0, xmmword [r8]
add r8, 0x10
pxor xmm1, xmm0
movdqu xmm0, xmmword [r8]
add r8, 0x10
aesenc xmm1, xmm0
sub cl, 1
cmp cl, 1
jne 0x140120bf1
movdqu xmm0, xmmword [r8]
aesenclast xmm1, xmm0
movdqu xmmword [r9], xmm1
ret

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

Disassembly:
movdqu xmm1, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmmword [rdx], xmm1
movdqu xmmword [rdx + 0x10], xmm3
aeskeygenassist xmm2, xmm3, 1
call fcn.140120f09
movdqu xmmword [rdx + 0x20], xmm1
aeskeygenassist xmm2, xmm1, 0
call fcn.140120f32
movdqu xmmword [rdx + 0x30], xmm3
aeskeygenassist xmm2, xmm3, 2
call fcn.140120f09
movdqu xmmword [rdx + 0x40], xmm1
aeskeygenassist xmm2, xmm1, 0
call fcn.140120f32
movdqu xmmword [rdx + 0x50], xmm3
aeskeygenassist xmm2, xmm3, 4
call fcn.140120f09
movdqu xmmword [rdx + 0x60], xmm1
aeskeygenassist xmm2, xmm1, 0
call fcn.140120f32
movdqu xmmword [rdx + 0x70], xmm3
aeskeygenassist xmm2, xmm3, 8
call fcn.140120f09
movdqu xmmword [rdx + 0x80], xmm1
aeskeygenassist xmm2, xmm1, 0
call fcn.140120f32
movdqu xmmword [rdx + 0x90], xmm3
aeskeygenassist xmm2, xmm3, 0x10
call fcn.140120f09
movdqu xmmword [rdx + 0xa0], xmm1
aeskeygenassist xmm2, xmm1, 0
call fcn.140120f32
movdqu xmmword [rdx + 0xb0], xmm3
aeskeygenassist xmm2, xmm3, 0x20
call fcn.140120f09
movdqu xmmword [rdx + 0xc0], xmm1
aeskeygenassist xmm2, xmm1, 0
call fcn.140120f32
movdqu xmmword [rdx + 0xd0], xmm3
aeskeygenassist xmm2, xmm3, 0x40
call fcn.140120f09
movdqu xmmword [rdx + 0xe0], xmm1
jmp 0x140120f5b
ret
Function at 0x1401210a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x178
movsx r10, r8b
mov eax, r8d
mov r9d, r8d
mov rsi, rcx
mov rbx, r10
lea rdi, [rsp + 0x99]
mov ecx, 0x5f
mov r8d, 1
sar rbx, 0x3f
and eax, ebx
add eax, eax
sub r9d, eax
xor eax, eax
rep stosb byte [rdi], al
mov rax, r10
dec r10
movzx r9d, r9b
not rax
and rax, r10
lea r10, [rsp + 0x98]
sar rax, 0x3f
and eax, 1
mov byte [rsp + 0x98], al
mov byte [rsp + 0xb8], al
movsxd rax, edx
lea rdx, [0x1401af000]
imul rax, rax, 0x300
add rax, rdx
mov rcx, r9
xor rcx, r8
mov rdx, rcx
dec rcx
not rdx
and rdx, rcx
xor ecx, ecx
sar rdx, 0x3f
mov r11b, byte [rax + rcx]
and r11d, edx
xor byte [r10 + rcx], r11b
inc rcx
cmp rcx, 0x60
jne 0x14012113e
inc r8
add rax, 0x60
cmp r8, 9
jne 0x140121126
lea rbp, [rsp + 0x20]
mov rdx, r10
lea r13, [rsp + 0x48]
neg rbx
mov rcx, rbp
lea r15, [rsp + 0x70]
lea r12, [rsi + 0x28]
call fcn.140119a80
mov rcx, r13
lea rdx, [rsp + 0xb8]
lea rdi, [rsi + 0x50]
call fcn.140119a80
lea rdx, [rsp + 0xd8]
mov rcx, r15
lea r14, [rsp + 0xf8]
call fcn.140119a80
mov rdx, rbp
mov rcx, rsi
call fcn.140119310
mov rdx, r13
mov rcx, r12
call fcn.140119310
mov rdx, r15
mov rcx, rdi
call fcn.140119310
mov rdx, r13
mov rcx, r14
lea r13, [rsp + 0x120]
call fcn.140119310
mov rdx, rbp
mov rcx, r13
lea rbp, [rsp + 0x148]
call fcn.140119310
mov rdx, r15
mov rcx, rbp
call fcn.140119c30
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call fcn.140119230
mov r8, rbx
mov rdx, r13
mov rcx, r12
call fcn.140119230
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
call fcn.140119230
nop
add rsp, 0x178
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1406c9058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406c91df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406c9089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c906f
add dl, dl
jne 0x1406c9096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c90f6
xor eax, eax
add dl, dl
jne 0x1406c90a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c91ad
add dl, dl
jne 0x1406c90b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c90c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c90d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c90dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406c90ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406c907e
mov eax, 1
add dl, dl
jne 0x1406c9106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c9113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c90fb
sub eax, ebx
mov ebx, 1
jne 0x1406c914c
mov ecx, 1
add dl, dl
jne 0x1406c912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c9123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406c9168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c9175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c915d
cmp eax, 0x7d00
jae 0x1406c919b
cmp eax, 0x500
jb 0x1406c9196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c907e
cmp eax, 0x7f
ja 0x1406c919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406c91d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406c907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003620
Capabilities:
Prepare http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
cmp qword [r8 + 0x18], 8
mov rbx, r8
mov rsi, qword [0x1400375c8]
mov rdi, rdx
jb 0x140003649
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x140003653
mov rdx, qword [rdx]
xor r14d, r14d
xor r9d, r9d
mov dword [rsp + 0x30], r14d
mov rcx, rsi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbp, rax
test rax, rax
jne 0x140003728
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [0x1400375b8]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x1400036d2
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400036cd
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400037d4
mov rcx, r8
call fcn.14002121c
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140003721
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000371c
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400037d4
mov rcx, r8
call fcn.14002121c
xor eax, eax
jmp 0x1400037b1
mov rdx, qword [rdi + 0x18]
cmp rdx, 8
jb 0x140003763
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000375e
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400037d4
mov rcx, r8
call fcn.14002121c
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 7
mov word [rdi], r14w
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400037ae
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1400037a9
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400037d4
mov rcx, r8
call fcn.14002121c
mov rax, rbp
mov rbp, qword [rsp + 0x78]
mov word [rbx], r14w
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3