joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140048c30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
mov eax, 0x2040
call fcn.140101610
sub rsp, rax
mov rax, qword [0x140192630]
xor rax, rsp
mov qword [rsp + 0x2030], rax
mov rbx, rcx
lea rdx, str.RestoreFolder
lea rcx, [0x140142df0]
mov r8d, 1
call fcn.1400a86cc
xor esi, esi
mov dword [rsp + 0x20], 0x800
lea r9, [0x1401423c8]
test eax, eax
je 0x140048cd7
lea r8, [rsp + 0x30]
lea rdx, str.LastFolder
lea rcx, [0x140142df0]
call fcn.1400a8858
cmp word [rsp + 0x30], si
je 0x140048d5d
lea rcx, [rsp + 0x30]
call fcn.140070448
test al, al
je 0x140048d5d
lea rcx, [rbx + 0x1080]
mov r8d, 0x800
lea rdx, [rsp + 0x30]
call fcn.140096ef0
jmp 0x140048d5d
lea r8, [rsp + 0x1030]
lea rdx, str.StartFolder
lea rcx, [0x140142cc8]
call fcn.1400a8858
mov r8d, 0x800
mov word [rsp + 0x30], si
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x1030]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7fe
ja 0x140048d5d
movzx eax, word [rsp + 0x30]
test ax, ax
je 0x140048d5d
cmp ax, word [0x14014303c]
jne 0x140048d3a
movzx eax, word [rsp + 0x32]
cmp ax, word [0x14014303e]
je 0x140048d5d
mov r8d, 0x800
lea rdx, [rsp + 0x30]
lea rcx, [rbx + 0x1080]
call fcn.140096ef0
lea rcx, [rbx + 0x1080]
call fcn.14000d494
mov rcx, qword [rsp + 0x2030]
xor rcx, rsp
call fcn.140101680
mov rbx, qword [rsp + 0x2058]
add rsp, 0x2040
pop rsi
ret
Function at 0x14004b1f4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov rbx, rcx
test rcx, rcx
je 0x14004b347
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rcx + rdi*2], r15w
jne 0x14004b21f
test rdi, rdi
je 0x14004b347
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14004b34c
call qword [sym.imp.USER32.dll_EmptyClipboard]
lea rbp, [rdi*2 + 2]
mov ecx, 0x2002
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x14004b29a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14004b29a
lea r8, [rdi + 1]
mov rdx, rax
mov rcx, rbx
call fcn.140099cbc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rsi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
mov rdx, rbp
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x14004b2f3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r14, rax
test rax, rax
je 0x14004b2f3
lea r8, [rdi + 1]
mov rdx, rax
mov rcx, rbx
call fcn.140099cbc
mov rdx, r14
mov rcx, r14
call qword [sym.imp.USER32.dll_CharToOemA]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rsi
mov ecx, 7
call qword [sym.imp.USER32.dll_SetClipboardData]
mov rdx, rbp
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x14004b341
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14004b341
sub rax, rbx
movzx ecx, word [rbx]
mov word [rax + rbx], cx
lea rbx, [rbx + 2]
test cx, cx
jne 0x14004b31a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rdi
mov ecx, 0xd
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14004b780
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140192630]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbp, rcx
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
inc eax
movsxd rdi, eax
lea rcx, [rdi + rdi]
call fcn.14012708c
xor r12d, r12d
mov rbx, rax
test rax, rax
je 0x14004b94f
mov r8d, edi
mov word [rax], r12w
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextW]
or r13, 0xffffffffffffffff
mov rdi, r13
inc rdi
cmp word [rbx + rdi*2], r12w
jne 0x14004b7eb
lea rdx, [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetDC]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
mov r14, rax
lea edx, [r9 + 0x31]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, rax
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
lea r9, [rsp + 0x20]
mov r8d, edi
mov rdx, rbx
mov rcx, r14
mov r15, rax
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ecx, dword [rsp + 0x30]
cmp dword [rsp + 0x20], ecx
jl 0x14004b92f
mov rcx, rbx
call fcn.1400810ec
cmp rax, rbx
je 0x14004b88d
mov r8, r13
inc r8
cmp word [rax + r8*2], r12w
jne 0x14004b863
lea r8, [r8*2 + 2]
mov rdx, rax
mov rcx, rbx
call fcn.140120d20
mov rdi, r13
inc rdi
cmp word [rbx + rdi*2], r12w
jne 0x14004b883
mov rsi, rdi
lea r9, [rsp + 0x20]
shr rsi, 1
mov r8d, edi
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea rdi, [rbx + 4]
mov rcx, r13
lea rdi, [rdi + rsi*2]
inc rcx
cmp word [rdi + rcx*2], r12w
jne 0x14004b8b2
jmp 0x14004b919
cmp rsi, 1
jb 0x14004b923
cmp rcx, 1
jb 0x14004b923
mov eax, 0x2026
lea r8, [rcx*2 + 2]
lea rcx, [rdi - 4]
mov word [rdi - 6], ax
mov rdx, rdi
call fcn.140120d20
dec rsi
mov r8, r13
sub rdi, 2
inc r8
cmp word [rbx + r8*2], r12w
jne 0x14004b8f1
lea r9, [rsp + 0x20]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov rcx, r13
inc rcx
cmp word [rdi + rcx*2], r12w
jne 0x14004b90f
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x20], eax
jge 0x14004b8be
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rdx, r15
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, rbx
call fcn.140127084
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140101680
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14004c0dc
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov bl, dl
mov rsi, rcx
call fcn.140073bfc
cmp eax, 0x600
jb 0x14004c123
mov rsi, qword [rsi]
movzx ebx, bl
mov rax, qword [rsi]
mov rdi, qword [rax + 0x20]
mov rcx, rdi
call qword [fcn.140016c20]
mov edx, ebx
mov rcx, rsi
call rdi
jmp 0x14004c1b1
mov rax, qword [rsi + 0x10]
mov byte [rax + 0xd0], bl
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x14004c1b1
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov rbp, 0xffffffffffffffff
lea ebx, [rax + 1]
mov eax, 2
movsxd rcx, ebx
mul rcx
cmovo rax, rbp
mov rcx, rax
call fcn.140101724
mov rcx, qword [rsi + 0x18]
mov r8d, ebx
mov rdx, rax
mov rdi, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rsi + 0x18]
mov r9, rbp
xor r8d, r8d
mov edx, 0xb1
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsi + 0x18]
lea r9d, [rbp + 2]
mov edx, 0x102
lea r8d, [rbp + 9]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rsi + 0x18]
mov rdx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rdi
call fcn.1401012cc
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004e5a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140192630]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rdi, rdx
lea r9, [0x1401423c8]
mov esi, ecx
lea rdx, [0x1401546e4]
mov rcx, qword [str.Passwords]
lea r8, [rbp + 0xa0]
mov r12d, 0x80
mov dword [rsp + 0x20], r12d
call fcn.1400a8858
xor r15d, r15d
lea rcx, [rbp + 0xa0]
cmp word [rbp + 0xa0], r15w
mov r14d, 0x100
mov edx, r14d
setne bl
call fcn.140094598
test bl, bl
lea rcx, [rsp + 0x30]
lea ebx, [r12 - 0x4e]
mov r9d, esi
mov edx, ebx
je 0x14004e676
lea r8, [0x1401546f0]
call fcn.140002910
mov rcx, qword [str.Passwords]
lea r9, [0x1401423c8]
mov r8, rdi
mov dword [rsp + 0x20], r12d
lea rdx, [rsp + 0x30]
call fcn.1400a8858
cmp word [rdi], r15w
jne 0x14004e6f1
xor al, al
jmp 0x14004e7c6
lea r8, str.PE_d
call fcn.140002910
mov r8, r14
lea rcx, [rbp - 0x60]
xor edx, edx
call fcn.140120b70
mov rcx, qword [str.Passwords]
lea r8, [rbp - 0x60]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
lea rdx, [rsp + 0x30]
call fcn.1400a86e4
mov r8d, eax
test eax, eax
je 0x14004e66f
mov edx, r15d
test eax, eax
jle 0x14004e6ce
lea rcx, [rbp - 0x60]
lea eax, [rdx + 0x49]
inc edx
xor byte [rcx], al
inc rcx
cmp edx, r8d
jl 0x14004e6bf
mov r8, r12
lea rcx, [rbp - 0x60]
mov rdx, rdi
call fcn.140099ae0
mov rdx, r14
mov word [rdi + 0xfe], r15w
lea rcx, [rbp - 0x60]
call fcn.140094598
mov r9d, esi
lea r8, [0x140154708]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140002910
mov rcx, qword [str.Passwords]
lea r14, [rdi + 0x100]
mov r12d, 0xc8
lea r9, [0x1401423c8]
mov r8, r14
mov dword [rsp + 0x20], r12d
lea rdx, [rsp + 0x30]
call fcn.1400a8858
mov r9d, esi
lea r8, [0x140154710]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140002910
mov rcx, qword [str.Passwords]
lea r8, [rdi + 0x290]
lea r9, [0x1401423c8]
mov dword [rsp + 0x20], 0x800
lea rdx, [rsp + 0x30]
call fcn.1400a8858
mov r9d, esi
lea r8, [0x140154718]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140002910
mov rcx, qword [str.Passwords]
lea rdx, [rsp + 0x30]
xor r8d, r8d
call fcn.1400a86cc
test eax, eax
lea rcx, [rdi + 0x1290]
mov r8d, r12d
mov rdx, r14
setne al
mov byte [rdi + 0x1420], al
cmp word [r14], r15w
jne 0x14004e7bf
mov rdx, rdi
call fcn.140096ef0
mov al, 1
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140101680
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14005edd4
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x1401e0e54], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x14005ee34
movdqa xmm0, xmmword [0x1401551c0]
movdqa xmm1, xmmword [0x1401551b0]
movdqa xmmword [0x1401ceef0], xmm0
movdqa xmm0, xmmword [0x140155190]
movdqa xmmword [0x1401cef00], xmm1
movdqa xmm1, xmmword [0x1401551a0]
movdqa xmmword [0x1401cef10], xmm0
movdqa xmmword [0x1401cef20], xmm1
xor edx, edx
mov r8d, 0xf0
call fcn.140120b70
xor edx, edx
mov qword [rbx + 0x110], rdx
mov byte [rbx + 0x118], dl
mov rcx, qword [rbx + 0xf8]
lea rax, [0x140155170]
mov eax, dword [rdx + rax]
mov dword [rdx + rcx], eax
add rdx, 4
cmp rdx, 0x20
jl 0x14005ee50
mov rax, qword [rbx + 0xf8]
bts edi, 0xd
shl edi, 0x10
xor dword [rax], 0x2080020
mov rax, qword [rbx + 0xf8]
xor dword [rax + 8], esi
mov rax, qword [rbx + 0xf8]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor dword [rax + 0xc], edi
add rsp, 0x20
pop rdi
ret

Function at 0x140063670
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov sil, dl
mov word [rcx + 0xc562], r15w
mov rbx, rcx
mov byte [rcx + 0xc559], r15b
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
mov r14b, 1
jmp 0x1400636d7
test r14b, r14b
jne 0x1400636c7
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
test sil, sil
je 0x1400636c2
call fcn.140063820
jmp 0x1400636c7
call fcn.140063344
mov rcx, qword [rsp + 0x40]
call fcn.140127084
mov rcx, rbp
mov r14b, r15b
lea rdx, [rsp + 0x40]
call fcn.140062b38
mov rbp, rax
test rax, rax
jne 0x1400636a9
test sil, sil
jne 0x1400636f6
mov rcx, rbx
call fcn.14006370c
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
Function at 0x14006568c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
lea rsi, [0x1401cf550]
mov r10, r8
mov rbx, rdx
mov r11d, ecx
test r8, r8
je 0x1400656d5
test bl, 7
je 0x1400656d5
movzx ecx, byte [rbx]
inc rbx
movzx eax, r11b
xor rcx, rax
mov eax, r11d
shr eax, 8
mov r11d, dword [rsi + rcx*4]
xor r11d, eax
sub r10, 1
jne 0x1400656b0
cmp r10, 8
jb 0x14006577f
mov rdi, r10
shr rdi, 3
imul rax, rdi, 0xfffffffffffffff8
add r10, rax
xor r11d, dword [rbx]
mov r9d, dword [rbx + 4]
add rbx, 8
mov eax, r9d
shr eax, 0x18
movzx edx, al
mov eax, r9d
shr eax, 0x10
movzx ecx, al
mov eax, r9d
shr eax, 8
mov r8d, dword [rsi + rdx*4]
xor r8d, dword [rsi + rcx*4 + 0x400]
movzx ecx, al
mov eax, r11d
shr eax, 0x18
xor r8d, dword [rsi + rcx*4 + 0x800]
movzx ecx, al
mov eax, r11d
shr eax, 0x10
xor r8d, dword [rsi + rcx*4 + 0x1000]
movzx ecx, al
mov eax, r11d
shr eax, 8
xor r8d, dword [rsi + rcx*4 + 0x1400]
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 0x1400656ed
test r10, r10
je 0x1400657a4
movzx ecx, byte [rbx]
inc rbx
movzx eax, r11b
xor rcx, rax
mov eax, r11d
shr eax, 8
mov r11d, dword [rsi + rcx*4]
xor r11d, eax
sub r10, 1
jne 0x140065784
mov rbx, qword [rsp + 8]
mov eax, r11d
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x1400657b8
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
xor esi, esi
lea r14, [0x1401d1550]
mov r10, r8
mov r11, rdx
mov r9, rcx
test r8, r8
je 0x14006580a
test r11b, 7
je 0x14006580a
movzx ecx, byte [r11]
inc r11
movzx eax, r9b
xor rcx, rax
mov rax, r9
shr rax, 8
mov r9, qword [r14 + rcx*8]
xor r9, rax
sub r10, 1
jne 0x1400657e2
mov rax, r10
mov rdi, rsi
shr rax, 3
lea rbx, [rax*8 + 7]
shr rbx, 3
lea rcx, [r11 + rax*8]
cmp r11, rcx
cmova rbx, rsi
test rbx, rbx
je 0x1400658cd
mov r8, qword [r11]
inc rdi
xor r8, r9
add r11, 8
mov rdx, r8
mov rax, r8
shr rax, 0x30
movzx ecx, al
mov rax, r8
shr rax, 0x28
shr rdx, 0x38
mov r9, qword [r14 + rdx*8]
xor r9, qword [r14 + rcx*8 + 0x800]
movzx ecx, al
mov rax, r8
shr rax, 0x20
xor r9, qword [r14 + rcx*8 + 0x1000]
movzx ecx, al
mov rax, r8
shr rax, 0x18
xor r9, qword [r14 + rcx*8 + 0x1800]
movzx ecx, al
mov rax, r8
shr rax, 0x10
xor r9, qword [r14 + rcx*8 + 0x2000]
movzx ecx, al
mov rax, r8
shr rax, 8
xor r9, qword [r14 + rcx*8 + 0x2800]
movzx ecx, al
movzx eax, r8b
xor r9, qword [r14 + rcx*8 + 0x3000]
xor r9, qword [r14 + rax*8 + 0x3800]
cmp rdi, rbx
jb 0x140065834
and r10d, 7
jbe 0x1400658f5
movzx ecx, byte [r11]
inc r11
movzx eax, r9b
xor rcx, rax
mov rax, r9
shr rax, 8
mov r9, qword [r14 + rcx*8]
xor r9, rax
sub r10, 1
jne 0x1400658d3
mov rbx, qword [rsp + 8]
mov rax, r9
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov r14, qword [rsp + 0x20]
ret
Function at 0x140065930
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [rcx + 4], 0
mov r8, rcx
jne 0x140065977
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 0x140065945
mov dword [r8], r10d
inc r9d
add r8, 4
cmp r9d, 0x100
jb 0x14006593c
ret

Function at 0x140065978
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r8, rcx
xor r9d, r9d
mov r11d, 0x100
mov r10, r9
mov ebx, 8
mov rdx, r10
mov cl, r10b
shr rdx, 1
movabs r10, 0xc96c5795d7870f42
mov rax, rdx
xor rax, r10
mov r10, rdx
and cl, 1
cmovne r10, rax
sub rbx, 1
jne 0x140065991
mov qword [r8], r10
inc r9
add r8, 8
sub r11, 1
jne 0x140065989
mov rbx, qword [rsp + 8]
ret

Function at 0x140065bbc
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
push rdi
sub rsp, 0x80
mov rax, qword [0x140192630]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp dword [rcx], 2
mov rdi, rdx
mov rbx, rcx
mov ebp, 0x20
jne 0x140065c50
and qword [r11 - 0x48], 0
lea r9d, [rbp - 0x1c]
mov eax, dword [rcx + 4]
lea r8, [r11 - 0x38]
and qword [r11 - 0x50], 0
mov edx, ebp
and qword [r11 - 0x58], 0
mov rcx, rdi
and qword [r11 - 0x60], 0
mov dword [rsp + 0x50], eax
lea rax, [r11 - 0x30]
mov qword [r11 - 0x68], rax
call fcn.140066f4c
and dword [rbx + 4], 0
lea r9, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
movzx eax, byte [r9]
mov ecx, r8d
and ecx, 3
inc r8d
shl ecx, 3
inc r9
shl eax, cl
xor edx, eax
cmp r8d, ebp
jb 0x140065c31
mov dword [rbx + 4], edx
cmp dword [rbx], 3
jne 0x140065c9b
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
and qword [rsp + 0x38], 0
lea r8, [rbx + 4]
and qword [rsp + 0x30], 0
mov r9, rbp
and qword [rsp + 0x28], 0
mov rdx, rbp
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140066f4c
movups xmm0, xmmword [rsp + 0x58]
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rbx + 4], xmm0
movups xmmword [rbx + 0x14], xmm1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140101680
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140065cc0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rdx
mov r9, rcx
test r8, r8
je 0x140065d70
mov eax, 0x1234
add word [r9 + 0x10b8], ax
movzx edx, word [r9 + 0x10b8]
mov eax, edx
shr rax, 1
movzx eax, al
movzx ecx, word [r9 + rax*4 + 0xba4]
mov eax, edx
xor word [r9 + 0x10ba], cx
shr rax, 1
movzx eax, al
movzx ecx, word [r9 + rax*4 + 0xba6]
sub word [r9 + 0x10bc], cx
mov ecx, 1
movzx eax, word [r9 + 0x10bc]
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 0x140065ccf
ret
Function at 0x140065da4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140192630]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, dword [rdx]
mov r15d, 0x1f
mov r11d, dword [rdx + 4]
mov r10, rdx
mov esi, dword [rdx + 8]
mov r9, rcx
movups xmm0, xmmword [rdx]
mov ebx, dword [rcx + 0x10a4]
mov r12d, r15d
xor r11d, dword [rcx + 0x10a8]
xor edi, ebx
xor esi, dword [rcx + 0x10ac]
mov ebp, dword [rdx + 0xc]
xor ebp, dword [rcx + 0x10b0]
movdqu xmmword [rsp + 0x20], xmm0
mov rax, r12
mov edx, ebp
and eax, 3
rol edx, 0xb
add edx, esi
dec r12
mov r8d, dword [r9 + rax*4 + 0x10a4]
xor edx, r8d
mov eax, edx
shr rax, 0x10
movzx eax, al
movzx r14d, byte [rax + r9 + 0xfa4]
mov eax, edx
shr rax, 0x18
movzx ecx, byte [rax + r9 + 0xfa4]
mov eax, edx
shr rax, 8
movzx eax, al
shl ecx, 8
or r14d, ecx
shl r14d, 8
movzx ecx, byte [rax + r9 + 0xfa4]
or r14d, ecx
movzx ecx, dl
shl r14d, 8
mov edx, esi
ror edx, 0xf
xor edx, ebp
movzx eax, byte [rcx + r9 + 0xfa4]
add edx, r8d
or r14d, eax
mov eax, edx
shr rax, 0x10
xor r14d, edi
movzx eax, al
mov edi, esi
mov esi, r14d
movzx r8d, byte [rax + r9 + 0xfa4]
mov eax, edx
shr rax, 0x18
movzx ecx, byte [rax + r9 + 0xfa4]
mov eax, edx
shl ecx, 8
or r8d, ecx
shr rax, 8
shl r8d, 8
movzx eax, al
movzx ecx, byte [rax + r9 + 0xfa4]
or r8d, ecx
movzx ecx, dl
shl r8d, 8
movzx eax, byte [rcx + r9 + 0xfa4]
or r8d, eax
xor r8d, r11d
mov r11d, ebp
sub r15d, 1
mov ebp, r8d
jns 0x140065e08
xor ebx, r14d
lea rdx, [rsp + 0x20]
mov dword [r10], ebx
mov rcx, r9
mov eax, dword [r9 + 0x10a8]
xor eax, r8d
mov dword [r10 + 4], eax
mov eax, dword [r9 + 0x10ac]
xor eax, edi
mov dword [r10 + 8], eax
xor r11d, dword [r9 + 0x10b0]
mov dword [r10 + 0xc], r11d
call fcn.140066e98
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140101680
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140065fdc
Capabilities:
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 r14
push r15
sub rsp, 0x20
mov ebx, dword [rcx + 0x10a4]
mov r9, rdx
mov r11d, dword [rdx + 4]
mov edi, ebx
mov esi, dword [rdx + 8]
mov r10, rcx
mov ebp, dword [rdx + 0xc]
xor edi, dword [rdx]
xor r11d, dword [rcx + 0x10a8]
xor esi, dword [rcx + 0x10ac]
xor ebp, dword [rcx + 0x10b0]
xor r15d, r15d
lea r12d, [r15 + 0x20]
mov rax, r15
mov edx, ebp
and eax, 3
rol edx, 0xb
add edx, esi
inc r15
mov r8d, dword [r10 + rax*4 + 0x10a4]
xor edx, r8d
mov eax, edx
shr rax, 0x10
movzx eax, al
movzx r14d, byte [rax + r10 + 0xfa4]
mov eax, edx
shr rax, 0x18
movzx ecx, byte [rax + r10 + 0xfa4]
mov eax, edx
shr rax, 8
movzx eax, al
shl ecx, 8
or r14d, ecx
shl r14d, 8
movzx ecx, byte [rax + r10 + 0xfa4]
or r14d, ecx
movzx ecx, dl
shl r14d, 8
mov edx, esi
ror edx, 0xf
xor edx, ebp
movzx eax, byte [rcx + r10 + 0xfa4]
add edx, r8d
or r14d, eax
mov eax, edx
shr rax, 0x10
xor r14d, edi
movzx eax, al
mov edi, esi
mov esi, r14d
movzx r8d, byte [rax + r10 + 0xfa4]
mov eax, edx
shr rax, 0x18
movzx ecx, byte [rax + r10 + 0xfa4]
mov eax, edx
shl ecx, 8
or r8d, ecx
shr rax, 8
shl r8d, 8
movzx eax, al
movzx ecx, byte [rax + r10 + 0xfa4]
or r8d, ecx
movzx ecx, dl
shl r8d, 8
movzx eax, byte [rcx + r10 + 0xfa4]
or r8d, eax
xor r8d, r11d
mov r11d, ebp
mov ebp, r8d
sub r12, 1
jne 0x14006602d
xor ebx, r14d
mov rdx, r9
mov dword [r9], ebx
mov rcx, r10
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 r15
pop r14
pop r12
jmp fcn.140066e98

Function at 0x140066190
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
and qword [rax + 0x18], 0
mov rdi, rdx
mov rsi, rcx
mov dword [rax - 0x18], 0xf0000040
xor edx, edx
lea rcx, [rax + 0x18]
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400661f2
mov rcx, qword [rsp + 0x50]
mov r8, rsi
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
cmp eax, 1
sete bl
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test bl, bl
jne 0x1400661fd
mov rdx, rdi
mov rcx, rsi
call fcn.140066e10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400663b0
Capabilities:
Encode data using xor

Disassembly:
xor r11d, r11d
mov r8, rdx
mov word [rcx + 0x10b5], r11w
mov byte [rcx + 0x10b4], r11b
mov al, byte [rdx]
test al, al
je 0x1400663fc
mov dl, r11b
mov r9b, r11b
mov r10b, r11b
add dl, al
add r10b, al
xor r9b, al
rol dl, 1
inc r8
mov byte [rcx + 0x10b6], dl
mov byte [rcx + 0x10b4], r10b
mov byte [rcx + 0x10b5], r9b
mov al, byte [r8]
test al, al
jne 0x1400663d4
ret
Function at 0x140066400
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
add rcx, 0xba4
call fcn.140065930
or r8, 0xffffffffffffffff
xor esi, esi
inc r8
cmp byte [rdi + r8], sil
jne 0x140066427
mov rdx, rdi
or ecx, 0xffffffff
call fcn.14006568c
mov word [rbx + 0x10b8], ax
shr eax, 0x10
mov word [rbx + 0x10ba], ax
mov dword [rbx + 0x10bc], esi
mov al, byte [rdi]
test al, al
je 0x14006649b
mov r8d, esi
mov r9d, esi
movzx edx, al
inc rdi
movzx ecx, al
movzx eax, word [rbx + rdx*4 + 0xba4]
xor ax, cx
xor r9w, ax
mov word [rbx + 0x10bc], r9w
movzx eax, word [rbx + rdx*4 + 0xba6]
add ax, cx
add r8w, ax
mov word [rbx + 0x10be], r8w
mov al, byte [rdi]
test al, al
jne 0x14006645e
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret