joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e280
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45e323
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdi
test byte [rax], al
lea rdx, [rax + 0x10]
mov rsi, qword [rsp + 0x68]
mov rcx, rdi
mov rax, rdx
mov rbx, rsi
call fcn.0045abc0
nop
test bl, bl
je 0x45e31d
mov qword [rsp + 0x18], rax
lea rcx, [0x0045e360]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp], rcx
call fcn.0046cfa0
xorps xmm15, xmm15
mov r14, qword [0x007c0c10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0046d0c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.0045e280
Function at 0x467ca0
Capabilities:
Access peb ldr_data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x78
mov qword [rsp + 0x30], r14
mov rax, qword [r14 + 0x30]
inc dword [rax + 0xd8]
mov byte [r14 + 0xbf], 1
mov qword [r14 + 0x10], 0xfffffffffffffade
mov rax, qword [r14 + 0x30]
mov rcx, qword [rax + 0xa0]
mov ecx, dword [rcx + 0x14]
mov dword [rax + 0x2b4], ecx
mov rax, qword [r14 + 0x30]
mov rax, qword [rax + 0xa0]
inc dword [rax + 0x14]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x18], rax
call fcn.00448020
mov qword [rsp + 0x20], rax
mov rbx, qword [rsp + 0x18]
mov rcx, rax
mov rax, qword [rsp + 0x80]
call fcn.00440260
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x38]
mov qword [rax + 0x70], rcx
mov rdx, qword [rax + 0x40]
mov qword [rax + 0x78], rdx
mov rdx, qword [rax + 0x68]
mov qword [rax + 0x80], rdx
cmp qword [rax], rcx
ja 0x467d46
nop word [rax + rax]
cmp qword [rax + 8], rcx
jae 0x467d94
mov rdx, qword [rax + 0x38]
lea rbx, [0x00440be0]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsp + 0x18]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x50]
mov qword [rsp], rcx
call fcn.0046cfa0
xorps xmm15, xmm15
mov r14, qword [0x007c0c10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x30]
mov ebx, 2
mov ecx, 3
nop
call fcn.00439d60
mov rdx, qword [rsp + 0x30]
mov rsi, qword [rdx + 0x70]
cmp qword [rdx], rsi
ja 0x467db9
cmp qword [rdx + 8], rsi
jae 0x467dfc
lea rax, [0x00440ae0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rdx
lea rax, [rsp + 0x38]
mov qword [rsp], rax
nop dword [rax]
call fcn.0046cfa0
xorps xmm15, xmm15
mov r14, qword [0x007c0c10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rdx + 0x80]
test rax, rax
je 0x467e0d
cmp qword [rdx], rax
ja 0x467e13
cmp qword [rdx + 8], rax
jae 0x467e4e
lea rax, [0x004409e0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rdx
lea rax, [rsp + 0x38]
mov qword [rsp], rax
call fcn.0046cfa0
xorps xmm15, xmm15
mov r14, qword [0x007c0c10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
lea rax, [0x0069ea70]
mov qword [rsp], rax
call fcn.0046cfa0
xorps xmm15, xmm15
mov r14, qword [0x007c0c10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
nop dword [rax]
call fcn.00448020
mov rbx, qword [rsp + 0x28]
mov rcx, rax
mov rax, qword [rsp + 0x80]
call fcn.00440260
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x30]
dec dword [rax + 0xd8]
add rsp, 0x78
pop rbp
ret
Function at 0x46a0c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x46a237
movzx edx, byte [rax]
test edx, edx
jne 0x46a0f4
nop dword [rax]
test r8b, r8b
jne 0x46a0f4
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x46a107
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x46a1f7
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x46a1e5
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x46a1d7
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x46a15d
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x46a1a0
mov eax, 1
cmp rax, rbx
ja 0x46a18b
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.0046f460
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x46a1cf
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x46a193
mov rcx, r11
mov eax, r12d
jmp 0x46a162
mov rcx, rbx
call fcn.0046f3a0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0046f3a0
mov eax, r8d
mov rcx, rbx
call fcn.0046f460
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x46a22d
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x46a1f0
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x46a10d
mov eax, edx
mov rcx, rbx
call fcn.0046f3a0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0046f3a0
nop
int3

Function at 0x46b9a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x46ba4f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x00458280]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0046cfa0
xorps xmm15, xmm15
mov r14, qword [0x007c0c10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0046d0c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.0046b9a0
Function at 0x46eec0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x404283
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.00409da0
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046d0c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x404260
cmp byte [0x007c09ed], 0
je 0x46eed5
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x46c100
jmp 0x404260

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

Disassembly:
mov rcx, qword [0x007c0ce8]
mov eax, dword [rax]
xor rcx, rax
xor rax, rbx
xor rax, qword [0x007c0ce0]
mul rcx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x007c09ed], 0
je 0x46ef15
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x007c1020]
aesenc xmm0, xmmword [0x007c1030]
aesenc xmm0, xmmword [0x007c1040]
movq rax, xmm0
ret
jmp 0x409f80

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

Disassembly:
mov rcx, qword [0x007c0ce8]
mov rax, qword [rax]
xor rcx, rax
xor rax, rbx
xor rax, qword [0x007c0ce0]
mul rcx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x007c09ed], 0
je 0x46ef56
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x007c1020]
aesenc xmm0, xmmword [0x007c1030]
aesenc xmm0, xmmword [0x007c1040]
movq rax, xmm0
ret
jmp 0x409fc0

Function at 0x470d00
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x470d34
mov rcx, 0x28
jmp 0x470d3f
shl rcx, 3
add rcx, 0x1480
mov qword [0x007c0c10], rcx
pop rbp
ret
Function at 0x48a540
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x48ac7f
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x48a56d
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x48a7f1
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x48a81d
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x006bfce0]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x004c8260]
lea rbx, [0x006be7a0]
call fcn.004675a0
inc rax
cmp rax, r8
jge 0x48a842
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x48a877
lea rdi, [0x004c82e0]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x48a563
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x48a85b
jmp 0x48a830
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call fcn.0046d0c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp fcn.0048a540

Function at 0x48ae20
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x48ae37
inc rax
cmp rax, 4
jge 0x48ae4f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x48ae34
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x48ae60
inc rax
cmp rax, 4
jge 0x48ae6e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x48ae97
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x48ae7b
jmp 0x48ae5d

Function at 0x490880
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x49094a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.004037a0
xorps xmm15, xmm15
mov r14, qword [0x007c0c10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x49092f
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004c8360]
xor ebx, ebx
mov rcx, rdx
call fcn.00468940
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.00491740
inc rbx
cmp rcx, rbx
jae 0x49091e
mov edi, 1
lea rsi, [0x004c8360]
call fcn.00468a20
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x006be908]
lea rsi, [0x006bdfe8]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046d0c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00490880
Function at 0x4a0c40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4a0cec
push rbp
mov rbp, rsp
sub rsp, 0x40
mov byte [rsp + 0x60], cl
mov byte [rsp + 0x61], dil
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], cl
call fcn.004037a0
xorps xmm15, xmm15
mov r14, qword [0x007c0c10]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
je 0x4a0cb3
lea rax, [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.0044f760
movzx edx, byte [rsp + 0x61]
movzx esi, byte [rsp + 0x60]
xor ecx, ecx
jmp 0x4a0cc6
mov rax, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rbp
ret
inc rcx
cmp rbx, rcx
jle 0x4a0cd9
movzx edi, byte [rax + rcx]
cmp dil, sil
jne 0x4a0cc3
mov byte [rax + rcx], dl
jmp 0x4a0cc3
mov rcx, rbx
mov rbx, rax
xor eax, eax
call fcn.00469380
add rsp, 0x40
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov byte [rsp + 0x18], cl
mov byte [rsp + 0x19], dil
nop
call fcn.0046d0c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
movzx ecx, byte [rsp + 0x18]
movzx edi, byte [rsp + 0x19]
jmp fcn.004a0c40
Function at 0x140001330
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14000df80], eax
jle 0x1400014af
lea rcx, [0x14000df80]
call fcn.140006138
cmp dword [0x14000df80], 0xffffffff
jne 0x1400014af
xor edx, edx
lea rcx, [0x14000cbf8]
mov r8d, 0x1388
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov qword [0x14000cbf0], 0
movdqa xmmword [0x14000cbe0], xmm0
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
mov r9, rax
cmp rbx, 0x989680
jne 0x1400013ba
imul rax, r9, 0x64
jmp 0x140001437
cmp rbx, 0x16e3600
jne 0x140001419
movabs r10, 0xb2f4fc0794908cf3
mov rax, r10
imul r9
mov rax, r10
lea r8, [r9 + rdx]
sar r8, 0x18
mov rcx, r8
shr rcx, 0x3f
add r8, rcx
imul rcx, r8, 0x16e3600
sub r9, rcx
imul rcx, r9, 0x3b9aca00
imul rcx
add rdx, rcx
sar rdx, 0x18
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, r8, 0x3b9aca00
add rax, rdx
jmp 0x140001437
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
imul rcx, rcx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
mov r8, rax
mov dword [0x14000df7c], 0xffffffff
mov dword [0x14000cbfc], eax
lea rbx, [0x14000cbe0]
mov edx, 1
nop word [rax + rax]
mov eax, r8d
shr eax, 0x1e
xor eax, r8d
imul r8d, eax, 0x6c078965
add r8d, edx
mov dword [rbx + rdx*4 + 0x1c], r8d
inc rdx
cmp rdx, 0x270
jb 0x140001460
lea rcx, [0x140007640]
mov dword [0x14000cbf8], 0x270
call fcn.140006414
lea rcx, [0x14000df80]
call fcn.1400060cc
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x14000cbe0]
add rsp, 0x20
pop rbx
ret

Function at 0x1400014c0
Capabilities:
Encode data using xor

Disassembly:
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, qword [rcx + 8]
mov r15, rcx
mov rdi, qword [rcx]
cmp rdi, r14
je 0x140001535
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
cmp byte [rdi + 0x14], 0
je 0x14000151d
cmp qword [rdi + 8], 0
mov rbp, qword [rdi]
jbe 0x14000151d
mov rsi, rbp
nop dword [rax + rax]
lea rcx, [r15 + 0x18]
call fcn.140005710
shr eax, 0x18
xor byte [rsi], al
inc rsi
mov rax, rsi
sub rax, rbp
cmp rax, qword [rdi + 8]
jb 0x140001500
add rdi, 0x18
cmp rdi, r14
jne 0x1400014e8
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140001650
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov r15, rdx
mov r13, rcx
xorps xmm0, xmm0
xor eax, eax
mov rsi, qword [rdx + 8]
sub rsi, qword [rdx]
add rsi, 0x10
movdqu xmmword [rsp + 0x68], xmm0
mov edi, eax
mov qword [rsp + 0x78], rax
mov r12d, eax
mov r14d, eax
je 0x14000171f
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
ja 0x1400018af
cmp rsi, 0x1000
jb 0x1400016e9
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x1400018b5
call fcn.1400061b0
test rax, rax
je 0x140001848
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x1400016f4
mov rcx, rsi
call fcn.1400061b0
mov r14, rax
mov rbx, r14
mov qword [rsp + 0x68], rbx
lea rdi, [r14 + rsi]
mov r12, rdi
mov qword [rsp + 0x78], rdi
mov r8, rsi
xor edx, edx
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
mov rbp, rdi
mov qword [rsp + 0x70], rdi
jmp 0x140001729
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
mov rdx, qword [r15]
mov r8, qword [r15 + 8]
sub r8, rdx
sub r12d, r14d
mov dword [rsp + 0x48], 1
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [r13 + 8]
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
test eax, eax
jne 0x14000188c
mov esi, dword [rsp + 0x80]
mov rcx, rbp
sub rcx, rbx
cmp rsi, rcx
jae 0x140001793
lea rbp, [rsi + rbx]
jmp 0x1400017d1
jbe 0x1400017d1
mov rax, rdi
sub rax, rbx
cmp rsi, rax
jbe 0x1400017be
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.1400052a0
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
jmp 0x1400017d1
sub rsi, rcx
mov r8, rsi
xor edx, edx
mov rcx, rbp
call sub.VCRUNTIME140.dll_memset
add rbp, rsi
lea rax, [rsp + 0x68]
cmp r15, rax
je 0x14000181f
mov rcx, qword [r15]
test rcx, rcx
je 0x140001810
mov rdx, qword [r15 + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14000180b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000184f
mov rcx, r8
call fcn.14000642c
mov qword [r15], rbx
mov qword [r15 + 8], rbp
mov qword [r15 + 0x10], rdi
xor ebx, ebx
xor edi, edi
test rbx, rbx
je 0x140001861
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x140001856
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001856
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, rdi
mov rcx, rbx
call fcn.14000642c
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140006070
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.Encryption_failed
lea rcx, [rsp + 0x50]
call fcn.140001240
lea rdx, [0x14000a668]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140004eb0
int3
call fcn.140001110
int3
Function at 0x140001b70
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
xor ecx, ecx
mov dword [rsp + 0x30], ecx
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx], rcx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rcx
mov ecx, 0x20
call fcn.1400061b0
mov rcx, rax
mov qword [rbx], rax
add rax, 0x20
mov qword [rbx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
lea rax, [rcx + 0x20]
mov qword [rbx + 8], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140001c5d
mov r8, qword [rbx]
mov rdx, qword [rbx + 8]
sub rdx, r8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
xor edx, edx
mov rcx, qword [rsp + 0x58]
test eax, eax
je 0x140001c34
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140006070
add rsp, 0x70
pop rbx
ret
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea rdx, str.Failed_to_generate_random_key
lea rcx, [rsp + 0x38]
call fcn.140001240
lea rdx, [0x14000a668]
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Failed_to_acquire_crypto_context
lea rcx, [rsp + 0x38]
call fcn.140001240
lea rdx, [0x14000a668]
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140001c80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
lea rbx, [0x14000df90]
mov eax, dword [rcx + rax]
cmp dword [0x14000cbd8], eax
jle 0x140001d17
lea rcx, [0x14000cbd8]
call fcn.140006138
cmp dword [0x14000cbd8], 0xffffffff
jne 0x140001d17
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [0x14000f314], 0xffffffff
mov dword [0x14000df94], eax
mov r8d, 1
nop word [rax + rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, r8d
mov dword [rbx + r8*4 + 4], eax
inc r8
cmp r8, 0x270
jb 0x140001ce0
mov dword [0x14000df90], 0x270
lea rcx, [0x14000cbd8]
call fcn.1400060cc
mov rcx, rbx
call fcn.140005710
mov ecx, eax
imul rax, rcx, 0x1c3
cmp eax, 0x24
ja 0x140001d46
nop dword [rax]
mov rcx, rbx
call fcn.140005710
mov ecx, eax
imul rax, rcx, 0x1c3
cmp eax, 0x25
jb 0x140001d30
shr rax, 0x20
sub rax, 0x7fffffce
xor rax, 0xffffffff80000000
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.1400046b0
add rsp, 0x20
pop rbx
ret
Function at 0x140001f10
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x13d0
call fcn.140007140
sub rsp, rax
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x24], ecx
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx], rcx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rcx
mov edi, 1
mov dword [rsp + 0x24], edi
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
nop dword [rax]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edi
mov dword [rsp + rdi*4 + 0x34], ecx
inc rdi
cmp rdi, 0x270
jb 0x140001f80
mov dword [rsp + 0x30], 0x270
mov byte [rsp + 0x20], 0x90
mov edi, 0xa
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140001fc4
mov byte [rdx], 0x90
inc qword [rbx + 8]
jmp 0x140001fd1
lea r8, [rsp + 0x20]
mov rcx, rbx
call fcn.1400053f0
sub rdi, 1
jne 0x140001fb1
mov r8, qword [rsi]
mov r9, qword [rsi + 8]
sub r9, r8
mov rdx, qword [rbx + 8]
mov rcx, rbx
call fcn.140005060
mov edi, 0x14
lea rcx, [rsp + 0x30]
call fcn.140005710
shr eax, 0x18
mov byte [rsp + 0x20], al
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140002015
mov byte [rdx], al
inc qword [rbx + 8]
jmp 0x140002022
lea r8, [rsp + 0x20]
mov rcx, rbx
call fcn.1400053f0
sub rdi, 1
jne 0x140001ff2
mov rcx, qword [rbx]
lea rdx, [rcx + 0xa]
lea r8, [rsp + 0x30]
call fcn.140004c00
mov rdx, qword [rsi + 8]
sub rdx, qword [rsi]
mov rcx, qword [rbx]
add rcx, 0xa
add rcx, rdx
lea r8, [rsp + 0x30]
mov rdx, qword [rbx + 8]
call fcn.140004c00
mov rax, rbx
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.140006070
lea r11, [rsp + 0x13d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret