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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
push rdi
push r12
push r13
push r14
mov r10d, dword [r9]
xor r14d, r14d
mov edi, r8d
and r10d, 7
mov rbp, rcx
mov r11, r14
cmp rdx, 5
jae 0x140011bda
xor eax, eax
jmp 0x140011d48
add edi, 5
lea rsi, [rdx + rcx - 4]
lea r12, [0x140000000]
or rbx, 0xffffffffffffffff
lea r8, [r11 + rbp]
jmp 0x140011bff
mov al, byte [r8]
and al, 0xfe
cmp al, 0xe8
je 0x140011c04
inc r8
cmp r8, rsi
jb 0x140011bf3
mov r11, r8
sub r11, rbp
mov rax, r11
cmp r8, rsi
jae 0x140011d27
sub rax, rbx
cmp rax, 3
jbe 0x140011c6c
mov r10d, r14d
mov al, byte [r8 + 4]
mov rbx, r11
cmp al, r14b
je 0x140011c32
cmp al, 0xff
jne 0x140011ca0
movzx r9d, al
movzx eax, byte [r8 + 3]
movsxd r13, r10d
shl r9d, 8
or r9d, eax
movzx eax, byte [r8 + 2]
shl r9d, 8
or r9d, eax
movzx eax, byte [r8 + 1]
shl r9d, 8
or r9d, eax
cmp dword [rsp + 0x48], r14d
je 0x140011cb3
lea edx, [r11 + r9]
add edx, edi
jmp 0x140011cbb
lea ecx, [rax - 1]
shl r10d, cl
and r10d, 7
je 0x140011c22
movzx eax, byte [r10 + r12 + 0x10a590]
mov rcx, r8
sub rcx, rax
mov al, byte [rcx + 4]
cmp byte [r10 + r12 + 0x10a588], r14b
je 0x140011c9d
cmp al, r14b
je 0x140011c9d
cmp al, 0xff
jne 0x140011c22
mov rbx, r11
and r10d, 3
add r10d, r10d
or r10d, 1
inc r11
jmp 0x140011bed
mov edx, r9d
sub edx, r11d
sub edx, edi
cmp r10d, r14d
je 0x140011cf9
movzx r9d, byte [r13 + r12 + 0x10a590]
mov eax, edx
shl r9d, 3
neg r9d
lea ecx, [r9 + 0x18]
shr eax, cl
cmp al, r14b
je 0x140011ce1
cmp al, 0xff
jne 0x140011cf9
lea ecx, [r9 + 0x20]
mov r9d, 1
shl r9d, cl
dec r9d
xor r9d, edx
jmp 0x140011c5d
mov eax, edx
mov byte [r8 + 1], dl
shr eax, 0x18
and al, 1
dec al
not al
mov byte [r8 + 4], al
mov eax, edx
shr eax, 0x10
mov byte [r8 + 3], al
mov eax, edx
shr eax, 8
add r11, 5
mov byte [r8 + 2], al
jmp 0x140011bed
mov r12, qword [rsp + 0x40]
mov rdx, r11
sub rdx, rbx
lea ecx, [rdx - 1]
shl r10d, cl
and r10d, 7
cmp rdx, 3
cmova r10d, r14d
mov dword [r12], r10d
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140013b40
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
lea rdx, [0x140138110]
mov r9d, 0x100
mov r10, r8
mov r11d, 8
mov rcx, r10
movabs rax, 0xc96c5795d7870f42
and ecx, 1
dec rcx
not rcx
and rcx, rax
mov rax, r10
shr rax, 1
mov r10, rcx
xor r10, rax
sub r11, 1
jne 0x140013b59
mov qword [rdx], r10
inc r8
add rdx, 8
sub r9, 1
jne 0x140013b50
repz ret

Function at 0x140013b98
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
test r8, r8
je 0x140013bc8
movzx eax, byte [rdx]
lea r10, [0x140138110]
inc rdx
xor rax, rcx
movzx r8d, al
mov rax, rcx
mov rcx, qword [r10 + r8*8]
shr rax, 8
xor rcx, rax
sub r9, 1
jne 0x140013ba0
mov rax, rcx
ret
Function at 0x14001ce44
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
lea r10, [rcx + 0x1aa8]
mov r9d, r8d
mov r11d, 8
shl r9d, 8
lea eax, [r9 + r9]
mov ecx, r9d
mov edx, eax
mov r9d, eax
xor edx, 0x1021
bt ecx, 0xf
cmovb r9d, edx
sub r11, 1
jne 0x14001ce5b
inc r8d
mov dword [r10], r9d
add r10, 4
cmp r8d, 0x100
jb 0x14001ce4e
repz ret

Function at 0x14001ce90
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
mov r11, rcx
test r8, r8
je 0x14001cec6
movzx eax, byte [rdx]
mov r9d, r10d
mov ecx, r10d
shr r9, 8
shl ecx, 8
inc rdx
xor r9, rax
movzx eax, r9b
mov r10d, dword [r11 + rax*4 + 0x1aa8]
xor r10d, ecx
sub r8, 1
jne 0x14001ce9b
movzx eax, r10w
ret

Function at 0x1400323c4
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140154208], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x140032420
movaps xmm0, xmmword [0x14010c630]
movaps xmm1, xmmword [0x14010c640]
movdqa xmmword [0x1401410b0], xmm0
movaps xmm0, xmmword [0x14010c650]
movdqa xmmword [0x1401410a0], xmm1
movaps xmm1, xmmword [0x14010c660]
movdqa xmmword [0x140141090], xmm0
movdqa xmmword [0x140141080], xmm1
xor edx, edx
mov r8d, 0xf0
call fcn.1400eada0
xor r11d, r11d
mov qword [rbx + 0x110], r11
mov byte [rbx + 0x118], r11b
mov rcx, qword [rbx + 0xf8]
lea rax, [0x14010c570]
mov eax, dword [r11 + rax]
mov dword [r11 + rcx], eax
add r11, 4
cmp r11, 0x20
jl 0x14003243e
mov rax, qword [rbx + 0xf8]
bts edi, 0xd
xor dword [rax], 0x2080020
mov rax, qword [rbx + 0xf8]
shl edi, 0x10
xor dword [rax + 8], esi
mov rax, qword [rbx + 0xf8]
mov rbx, qword [rsp + 0x38]
xor dword [rax + 0xc], edi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140038464
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
xor r13d, r13d
mov sil, dl
mov rdi, rcx
mov word [rcx + 0xa41a], r13w
mov byte [rcx + 0xa411], r13b
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
mov bpl, 1
jmp 0x1400384cb
cmp bpl, r13b
jne 0x1400384bb
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
cmp sil, r13b
je 0x1400384b6
call fcn.140038350
jmp 0x1400384bb
call fcn.140038034
mov rcx, qword [rsp + 0x40]
call fcn.1400ea2a8
mov bpl, r13b
mov rcx, r12
lea rdx, [rsp + 0x40]
call fcn.140036270
mov r12, rax
cmp rax, r13
jne 0x14003849d
cmp sil, r13b
jne 0x1400384ea
mov rcx, rdi
call fcn.140036714
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x140038500
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rsi, rcx
lea rcx, [0x14010cac8]
call fcn.1400ee384
mov rbx, rax
test rax, rax
je 0x140038594
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
and qword [rsp + 0x28], rax
and qword [rsp + 0x30], rax
and qword [rsp + 0x38], rax
and qword [rsp + 0x40], rax
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140019090
nop
mov r8, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
mov rdx, rdi
mov rcx, rbx
call fcn.14006893c
mov rdx, rdi
mov rcx, rsi
call fcn.1400383fc
mov byte [rsi + 0xa419], 0
test rdi, rdi
je 0x140038594
mov rcx, rdi
call fcn.1400ea2a8
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1400385a4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [rcx + 4], 0
mov r8, rcx
jne 0x1400385eb
xor r9d, r9d
mov r10d, r9d
mov r11d, 8
mov edx, r10d
mov ecx, r10d
shr edx, 1
mov eax, edx
mov r10d, edx
xor eax, 0xedb88320
and cl, 1
cmovne r10d, eax
sub r11, 1
jne 0x1400385b9
inc r9d
mov dword [r8], r10d
add r8, 4
cmp r9d, 0x100
jb 0x1400385b0
repz ret
Function at 0x140038664
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r10, r8
mov rbx, rdx
mov r11d, ecx
lea rsi, [0x1401456e0]
test r8, r8
je 0x1400386ad
test bl, 7
je 0x1400386ad
movzx ecx, byte [rbx]
movzx eax, r11b
inc rbx
xor rcx, rax
mov eax, r11d
mov r11d, dword [rsi + rcx*4]
shr eax, 8
xor r11d, eax
sub r10, 1
jne 0x140038688
cmp r10, 8
jb 0x14003875a
mov rdi, r10
shr rdi, 3
mov rax, rdi
imul rax, rax, 0xfffffffffffffff8
add r10, rax
xor r11d, dword [rbx]
mov r9d, dword [rbx + 4]
add rbx, 8
mov eax, r9d
shr eax, 0x10
movzx edx, al
mov eax, r9d
mov r8d, dword [rsi + rdx*4 + 0x400]
shr eax, 0x18
movzx ecx, al
mov eax, r9d
xor r8d, dword [rsi + rcx*4]
shr eax, 8
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x800]
shr eax, 0x18
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x1000]
shr eax, 0x10
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x1400]
shr eax, 8
movzx ecx, al
movzx eax, r9b
xor r8d, dword [rsi + rcx*4 + 0x1800]
xor r8d, dword [rsi + rax*4 + 0xc00]
movzx eax, r11b
mov r11d, r8d
xor r11d, dword [rsi + rax*4 + 0x1c00]
sub rdi, 1
jne 0x1400386c8
test r10, r10
je 0x14003877f
movzx ecx, byte [rbx]
movzx eax, r11b
inc rbx
xor rcx, rax
mov eax, r11d
mov r11d, dword [rsi + rcx*4]
shr eax, 8
xor r11d, eax
sub r10, 1
jne 0x14003875f
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, r11d
ret

Function at 0x1400387b4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r8, rcx
xor r9d, r9d
mov r10d, 0x100
mov r11, r9
mov ebx, 8
mov rdx, r11
mov cl, r11b
movabs r11, 0xc96c5795d7870f42
shr rdx, 1
mov rax, rdx
xor rax, r11
and cl, 1
mov r11, rdx
cmovne r11, rax
sub rbx, 1
jne 0x1400387cd
mov qword [r8], r11
inc r9
add r8, 8
sub r10, 1
jne 0x1400387c5
mov rbx, qword [rsp + 8]
ret
Function at 0x140038880
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r10, r8
mov r11, rdx
mov r9, rcx
lea rdi, [0x1401416e0]
test r8, r8
je 0x1400388c7
test r11b, 7
je 0x1400388c7
movzx ecx, byte [r11]
movzx eax, r9b
inc r11
xor rcx, rax
mov rax, r9
mov r9, qword [rdi + rcx*8]
shr rax, 8
xor r9, rax
sub r10, 1
jne 0x14003889f
mov rax, r10
shr rax, 3
lea rbx, [r11 + rax*8]
jmp 0x140038964
mov r8, qword [r11]
xor r8, r9
mov rax, r8
shr rax, 0x30
movzx edx, al
mov rax, r8
mov r9, qword [rdi + rdx*8 + 0x800]
shr rax, 0x38
xor r9, qword [rdi + rax*8]
mov rax, r8
shr rax, 0x28
movzx ecx, al
mov rax, r8
xor r9, qword [rdi + rcx*8 + 0x1000]
shr rax, 0x20
movzx ecx, al
mov rax, r8
xor r9, qword [rdi + rcx*8 + 0x1800]
shr rax, 0x18
movzx ecx, al
mov rax, r8
xor r9, qword [rdi + rcx*8 + 0x2000]
shr rax, 0x10
movzx ecx, al
mov rax, r8
xor r9, qword [rdi + rcx*8 + 0x2800]
shr rax, 8
movzx ecx, al
movzx eax, r8b
xor r9, qword [rdi + rcx*8 + 0x3000]
xor r9, qword [rdi + rax*8 + 0x3800]
add r11, 8
cmp r11, rbx
jb 0x1400388d7
and r10d, 7
jbe 0x140038995
movzx ecx, byte [r11]
movzx eax, r9b
inc r11
xor rcx, rax
mov rax, r9
mov r9, qword [rdi + rcx*8]
shr rax, 8
xor r9, rax
sub r10, 1
jne 0x140038973
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov rax, r9
ret

Function at 0x140038ae0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rdx
mov r9, rcx
test r8, r8
je 0x140038b92
mov eax, 0x1234
add word [r9 + 0x10b8], ax
mov dx, word [r9 + 0x10b8]
mov rax, rdx
shr rax, 1
movzx eax, al
movzx ecx, word [r9 + rax*4 + 0xba4]
mov rax, rdx
xor word [r9 + 0x10ba], cx
shr rax, 1
movzx eax, al
movzx ecx, word [r9 + rax*4 + 0xba6]
sub word [r9 + 0x10bc], cx
movzx eax, word [r9 + 0x10bc]
mov ecx, 1
xor ax, dx
mov word [r9 + 0x10b8], ax
movzx eax, word [r9 + 0x10be]
ror ax, cl
xor ax, word [r9 + 0x10ba]
ror ax, cl
xor word [r9 + 0x10b8], ax
mov word [r9 + 0x10be], ax
movzx eax, word [r9 + 0x10b8]
shr ax, 8
xor byte [r10], al
inc r10
sub r8, 1
jne 0x140038aef
repz ret

Function at 0x140038b94
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov r8, rcx
lea r9, [rdx + 1]
mov r10d, 4
movzx eax, byte [r9 - 1]
mov edx, dword [r8 + rax*4 + 0xba4]
xor dword [r8 + 0x10a4], edx
movzx eax, byte [r9]
add r9, 4
mov ecx, dword [r8 + rax*4 + 0xba4]
xor dword [r8 + 0x10a8], ecx
movzx eax, byte [r9 - 3]
mov ecx, dword [r8 + rax*4 + 0xba4]
xor dword [r8 + 0x10ac], ecx
movzx eax, byte [r9 - 2]
mov ecx, dword [r8 + rax*4 + 0xba4]
xor dword [r8 + 0x10b0], ecx
sub r10, 1
jne 0x140038ba1
repz ret
Function at 0x140038f1c
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x200
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov rbp, qword [rsp + 0x260]
mov r14d, 0x40
mov r13, r9
mov r12, r8
mov rbx, rdx
mov rsi, rcx
cmp rdx, r14
jbe 0x140038fa0
lea rcx, [rsp + 0x100]
call fcn.1400651bc
lea rcx, [rsp + 0x100]
mov r8, rbx
mov rdx, rsi
call fcn.140065448
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x100]
call fcn.14006550c
lea rsi, [rsp + 0x1b0]
lea ebx, [r14 - 0x20]
xor edi, edi
mov dl, 0x36
mov r8, rdi
cmp rbx, rdi
jbe 0x140038fd2
lea rax, [rsp + 0x170]
mov r9, rsi
sub r9, rax
lea rcx, [rsp + r8 + 0x170]
inc r8
mov al, byte [r9 + rcx]
xor al, dl
mov byte [rcx], al
cmp r8, rbx
jb 0x140038fba
cmp rbx, r14
jae 0x140038fea
mov r8, r14
lea rcx, [rsp + rbx + 0x170]
sub r8, rbx
call fcn.1400eada0
lea rcx, [rsp + 0x20]
call fcn.1400651bc
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x20]
mov r8, r14
call fcn.140065448
lea rcx, [rsp + 0x20]
mov r8, r13
mov rdx, r12
call fcn.140065448
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x20]
call fcn.14006550c
lea rcx, [rsp + 0x90]
call fcn.1400651bc
mov dl, 0x5c
cmp rbx, rdi
jbe 0x140039061
lea rax, [rsp + 0x170]
sub rsi, rax
lea rcx, [rsp + rdi + 0x170]
inc rdi
mov al, byte [rsi + rcx]
xor al, dl
mov byte [rcx], al
cmp rdi, rbx
jb 0x14003904a
cmp rbx, r14
jae 0x140039079
mov r8, r14
lea rcx, [rsp + rbx + 0x170]
sub r8, rbx
call fcn.1400eada0
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x90]
mov r8, r14
call fcn.140065448
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x90]
mov r8d, 0x20
call fcn.140065448
lea rcx, [rsp + 0x90]
mov rdx, rbp
call fcn.14006550c
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.1400e9d80
add rsp, 0x200
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400390e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x120
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rdi, qword [rsp + 0x180]
mov rsi, qword [rsp + 0x188]
mov rbp, qword [rsp + 0x190]
mov rax, r8
mov r8d, 0x40
mov r12, rcx
cmp r9, r8
mov r13, rdx
lea rcx, [rsp + 0xa0]
cmovb r8, r9
mov rdx, rax
mov rbx, r9
call fcn.1400e9de0
lea rax, [rsp + 0x58]
lea r9, [rbx + 4]
lea r8, [rsp + 0xa0]
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x20], rax
mov byte [rsp + rbx + 0xa0], 0
mov byte [rsp + rbx + 0xa1], 0
mov byte [rsp + rbx + 0xa2], 0
mov byte [rsp + rbx + 0xa3], 1
call fcn.140038f1c
mov r14d, 0x20
lea rcx, [rsp + 0x78]
lea rdx, [rsp + 0x58]
mov r8, r14
call fcn.1400e9de0
mov r11d, dword [rsp + 0x198]
lea eax, [r14 - 0x10]
dec r11d
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r11d
lea rsi, [rsp + 0x40]
lea rdi, [rsp + 0x30]
lea ebp, [rax - 0xd]
cmp dword [rdi], 0
jbe 0x140039231
mov ebx, dword [rdi]
lea rax, [rsp + 0xf0]
lea r8, [rsp + 0x58]
mov r9, r14
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.140038f1c
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0xf0]
mov r8, r14
call fcn.1400e9de0
xor r11d, r11d
mov rcx, r14
mov al, byte [rsp + r11 + 0x58]
inc r11
xor byte [rsp + r11 + 0x77], al
sub rcx, 1
jne 0x140039218
sub rbx, 1
jne 0x1400391dd
mov rcx, qword [rsi]
lea rdx, [rsp + 0x78]
mov r8, r14
call fcn.1400e9de0
add rdi, 4
add rsi, 8
sub rbp, 1
jne 0x1400391d6
lea edx, [rbp + 0x44]
lea rcx, [rsp + 0xa0]
call fcn.1400632a4
lea rcx, [rsp + 0x78]
mov rdx, r14
call fcn.1400632a4
lea rcx, [rsp + 0x58]
mov rdx, r14
call fcn.1400632a4
lea rcx, [rsp + 0xf0]
mov rdx, r14
call fcn.1400632a4
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1400e9d80
add rsp, 0x120
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400396c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov ebx, dword [rcx + 0x10a4]
mov r11d, dword [rcx + 0x10a8]
mov esi, dword [rdx + 8]
mov ebp, dword [rdx + 0xc]
xor r11d, dword [rdx + 4]
xor esi, dword [rcx + 0x10ac]
xor ebp, dword [rcx + 0x10b0]
mov edi, ebx
mov r9, rdx
xor edi, dword [rdx]
xor r13d, r13d
mov r10, rcx
lea r14d, [r13 + 0x20]
mov rax, r13
mov edx, ebp
inc r13
and eax, 3
rol edx, 0xb
mov r8d, dword [r10 + rax*4 + 0x10a4]
add edx, esi
xor edx, r8d
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx r12d, byte [rax + r10 + 0xfa4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0xfa4]
mov eax, edx
shr eax, 8
shl ecx, 8
movzx eax, al
or r12d, ecx
movzx ecx, dl
movzx eax, byte [rax + r10 + 0xfa4]
shl r12d, 8
mov edx, esi
or r12d, eax
movzx eax, byte [rcx + r10 + 0xfa4]
shl r12d, 8
or r12d, eax
xor r12d, edi
ror edx, 0xf
mov edi, esi
xor edx, ebp
mov esi, r12d
add edx, r8d
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx r8d, byte [rax + r10 + 0xfa4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0xfa4]
mov eax, edx
shr eax, 8
shl ecx, 8
or r8d, ecx
movzx eax, al
movzx ecx, dl
movzx eax, byte [rax + r10 + 0xfa4]
shl r8d, 8
or r8d, eax
movzx eax, byte [rcx + r10 + 0xfa4]
shl r8d, 8
or r8d, eax
xor r8d, r11d
sub r14, 1
mov r11d, ebp
mov ebp, r8d
jne 0x140039711
xor ebx, r12d
mov rdx, r9
mov rcx, r10
mov dword [r9], ebx
mov eax, dword [r10 + 0x10a8]
xor eax, r8d
mov dword [r9 + 4], eax
mov eax, dword [r10 + 0x10ac]
xor eax, edi
mov dword [r9 + 8], eax
xor r11d, dword [r10 + 0x10b0]
mov dword [r9 + 0xc], r11d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
jmp fcn.140038b94
Function at 0x140039848
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x30], rax
movdqu xmm0, xmmword [rdx]
mov ebx, dword [rcx + 0x10a4]
mov edi, dword [rdx]
mov r11d, dword [rcx + 0x10a8]
mov esi, dword [rdx + 8]
mov ebp, dword [rdx + 0xc]
movdqu xmmword [rsp + 0x20], xmm0
xor r11d, dword [rdx + 4]
xor esi, dword [rcx + 0x10ac]
mov r12d, 0x1f
xor edi, ebx
xor ebp, dword [rcx + 0x10b0]
mov r9, rdx
mov r10, rcx
mov r14, r12
mov rax, r14
mov edx, ebp
dec r14
and eax, 3
rol edx, 0xb
mov r8d, dword [r10 + rax*4 + 0x10a4]
add edx, esi
xor edx, r8d
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx r13d, byte [rax + r10 + 0xfa4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0xfa4]
mov eax, edx
shr eax, 8
shl ecx, 8
movzx eax, al
or r13d, ecx
movzx ecx, dl
movzx eax, byte [rax + r10 + 0xfa4]
shl r13d, 8
mov edx, esi
or r13d, eax
movzx eax, byte [rcx + r10 + 0xfa4]
shl r13d, 8
or r13d, eax
xor r13d, edi
ror edx, 0xf
mov edi, esi
xor edx, ebp
mov esi, r13d
add edx, r8d
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx r8d, byte [rax + r10 + 0xfa4]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0xfa4]
mov eax, edx
shr eax, 8
shl ecx, 8
or r8d, ecx
movzx eax, al
movzx ecx, dl
movzx eax, byte [rax + r10 + 0xfa4]
shl r8d, 8
or r8d, eax
movzx eax, byte [rcx + r10 + 0xfa4]
shl r8d, 8
or r8d, eax
xor r8d, r11d
sub r12d, 1
mov r11d, ebp
mov ebp, r8d
jns 0x1400398ad
xor ebx, r13d
lea rdx, [rsp + 0x20]
mov rcx, r10
mov dword [r9], ebx
mov eax, dword [r10 + 0x10a8]
xor eax, r8d
mov dword [r9 + 4], eax
mov eax, dword [r10 + 0x10ac]
xor eax, edi
mov dword [r9 + 8], eax
xor r11d, dword [r10 + 0x10b0]
mov dword [r9 + 0xc], r11d
call fcn.140038b94
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400e9d80
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x1400399ec
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp dword [rcx], 2
mov rdi, rdx
mov rbx, rcx
mov esi, 0x20
jne 0x140039a6b
mov eax, dword [rcx + 4]
lea r9d, [rsi - 0x1c]
lea r8, [r11 - 0x38]
mov dword [rsp + 0x30], eax
lea rax, [r11 - 0x30]
mov rdx, rsi
mov rcx, rdi
mov qword [r11 - 0x48], rax
call fcn.140038f1c
xor r11d, r11d
lea r8, [rsp + 0x38]
mov dword [rbx + 4], r11d
mov edx, r11d
movzx eax, byte [r8]
mov ecx, r11d
inc r11d
and ecx, 3
inc r8
shl ecx, 3
shl eax, cl
xor edx, eax
cmp r11d, esi
jb 0x140039a4c
mov dword [rbx + 4], edx
cmp dword [rbx], 3
jne 0x140039a9d
lea rax, [rsp + 0x38]
lea r8, [rbx + 4]
mov r9, rsi
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140038f1c
lea rcx, [rbx + 4]
lea rdx, [rsp + 0x38]
mov r8, rsi
call fcn.1400e9de0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400e9d80
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140039f40
Capabilities:
Create new key via cryptacquirecontext
Encode data using xor
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbp, rcx
mov rsi, rdx
lea rcx, [rax + 0x18]
lea r9d, [rdi + 1]
xor r8d, r8d
xor edx, edx
mov qword [rax + 0x18], rdi
mov dword [rax - 0x28], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, edi
je 0x140039fa0
mov rcx, qword [rsp + 0x60]
mov r8, rbp
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x60]
cmp eax, 1
sete bl
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp bl, dil
jne 0x140039ffd
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x68], rdi
call fcn.140067310
lea rcx, [rsp + 0x68]
call fcn.140067308
mov rbx, rax
call fcn.1400ee424
movsxd rcx, eax
add rbx, rcx
cmp rsi, rdi
jbe 0x140039ffd
mov r8d, dword [0x1401476e4]
mov cl, dil
mov rdx, rbx
and cl, 7
shl cl, 3
shr rdx, cl
xor dl, dil
add dl, r8b
inc r8d
mov byte [rdi + rbp], dl
inc rdi
cmp rdi, rsi
jb 0x140039fd3
mov dword [0x1401476e4], r8d
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x14003a1c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd r9, dword [rdx]
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
cmp r9d, dword [r8]
jbe 0x14003a22f
mov r8d, 1
cmp dword [rbx], r8d
jb 0x14003a210
mov rcx, rdi
mov r9, rsi
lea rdx, [rbx + 4]
sub rcx, rbx
sub r9, rbx
mov eax, dword [rcx + rdx]
inc r8d
xor eax, dword [rdx]
mov dword [r9 + rdx], eax
add rdx, 4
cmp r8d, dword [rbx]
jbe 0x14003a1fb
mov ecx, r8d
mov r8d, dword [rdi]
sub r8d, dword [rbx]
lea rdx, [rdi + rcx*4]
lea rcx, [rsi + rcx*4]
shl r8, 2
call fcn.1400e9de0
mov r11d, dword [rdi]
jmp 0x14003a27b
jae 0x14003a280
mov edx, 1
cmp r9d, edx
jb 0x14003a25f
lea rcx, [r8 + 4]
mov r8, rdi
mov r9, rsi
sub r8, rbx
sub r9, rbx
mov eax, dword [rcx + r8]
inc edx
xor eax, dword [rcx]
mov dword [rcx + r9], eax
add rcx, 4
cmp edx, dword [rdi]
jbe 0x14003a24b
mov r8d, dword [rbx]
mov ecx, edx
sub r8d, dword [rdi]
lea rdx, [rbx + rcx*4]
lea rcx, [rsi + rcx*4]
shl r8, 2
call fcn.1400e9de0
mov r11d, dword [rbx]
mov dword [rsi], r11d
jmp 0x14003a2c6
or r8d, 0xffffffff
test r9d, r9d
je 0x14003a2a0
lea rcx, [rbx + r9*4]
sub rdx, rbx
mov eax, dword [rcx + rdx]
xor eax, dword [rcx]
jne 0x14003a2a0
sub rcx, 4
add r9d, r8d
jne 0x14003a290
mov dword [rsi], r9d
movsxd rax, r9d
test r9d, r9d
je 0x14003a2c6
sub rdi, rbx
lea rcx, [rbx + rax*4]
sub rsi, rbx
mov eax, dword [rcx + rdi]
xor eax, dword [rcx]
mov dword [rcx + rsi], eax
sub rcx, 4
add r9d, r8d
jne 0x14003a2b5
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret