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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, qword [0x140213a00]
cmp byte [rbx + 0x2f30], 0
je 0x1400187ac
cmp qword [rbx + 0x2f38], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x2f40]
je 0x140018794
mov r9d, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test r9d, r9d
jns 0x14001873b
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140019fd0
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov dword [rdi], ebp
mov rcx, rdi
mov r8, rsi
call fcn.140007f30
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x2f38]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x2f48]
cmove ecx, ebp
test rax, rax
movsxd r8, ecx
lea rcx, [0x1402139f8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
mov r8, rsi
mov rcx, rdi
call fcn.140007f30
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
Function at 0x140018a40
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push r13
sub rsp, 0x38
mov r13, qword [0x140213a00]
mov qword [rsp + 0x50], rbx
mov rbx, rdx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rdi
mov rdi, rcx
mov qword [rsp + 0x30], r12
test rdx, rdx
jne 0x140018a7e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x140018a75
test r13, r13
je 0x140018a8a
inc dword [r13 + 0x3bc]
lea rcx, [rbx + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x58], rax
mov rsi, rax
lea r12, [rax + rbx]
call sub.VCRUNTIME140.dll_memcpy
xor ebp, ebp
mov byte [r12], 0
xor edi, edi
mov rcx, rsi
cmp rsi, r12
jae 0x140018c53
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
nop dword [rax]
movzx eax, byte [rcx]
cmp al, 0xa
je 0x140018c97
cmp al, 0xd
je 0x140018c97
mov rbx, rcx
cmp rcx, r12
jae 0x140018b03
nop dword [rax + rax]
movzx eax, byte [rbx]
cmp al, 0xa
je 0x140018b03
cmp al, 0xd
je 0x140018b03
inc rbx
cmp rbx, r12
jb 0x140018af0
mov byte [rbx], 0
movzx eax, byte [rcx]
cmp al, 0x3b
je 0x140018c37
cmp al, 0x5b
jne 0x140018c1e
cmp rbx, rcx
jbe 0x140018c1e
cmp byte [rbx - 1], 0x5d
lea rsi, [rbx - 1]
jne 0x140018c1e
lea r14, [rcx + 1]
mov byte [rsi], 0
mov r8, rsi
mov rcx, r14
sub r8, r14
mov edx, 0x5d
call sub.VCRUNTIME140.dll_memchr
mov r15, rax
test rax, rax
je 0x140018c37
lea rcx, [rax + 1]
mov edx, 0x5b
sub rsi, rcx
mov r8, rsi
call sub.VCRUNTIME140.dll_memchr
mov r11, rax
test rax, rax
je 0x140018c37
mov r10, qword [0x140213a00]
lea r8, [r14 + 1]
mov byte [r15], 0
mov esi, 0xffffffff
movzx r9d, byte [r14]
mov ecx, esi
test r9b, r9b
je 0x140018bca
cmp r9b, 0x23
jne 0x140018ba7
cmp byte [r8], r9b
jne 0x140018ba7
cmp byte [r8 + 1], r9b
cmove ecx, esi
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
lea rax, [0x1401774f0]
inc r8
xor ecx, dword [rax + rdx*4]
test r9b, r9b
jne 0x140018b95
mov r8d, dword [r10 + 0x2f10]
xor eax, eax
not ecx
test r8d, r8d
jle 0x140018bf4
mov r9, qword [r10 + 0x2f18]
lea rdx, [r9 + 8]
cmp dword [rdx], ecx
je 0x140018bfa
inc eax
add rdx, 0x30
cmp eax, r8d
jl 0x140018be5
xor edi, edi
xor ebp, ebp
jmp 0x140018c37
cdqe
lea rdi, [rax + rax*2]
shl rdi, 4
add rdi, r9
je 0x140018bf6
mov rax, qword [rdi + 0x10]
lea r8, [r11 + 1]
mov rdx, rdi
mov rcx, r13
call rax
mov rbp, rax
jmp 0x140018c37
test rdi, rdi
je 0x140018c37
test rbp, rbp
je 0x140018c37
mov r9, rcx
mov r8, rbp
mov rcx, r13
mov rdx, rdi
call qword [rdi + 0x18]
lea rcx, [rbx + 1]
cmp rcx, r12
jb 0x140018ad0
mov rsi, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
test rsi, rsi
je 0x140018c7e
mov rax, qword [0x140213a00]
test rax, rax
je 0x140018c7e
dec dword [rax + 0x3bc]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [r13 + 0x2ef4], 1
add rsp, 0x38
pop r13
pop rsi
ret
inc rcx
jmp 0x140018ad0
Function at 0x140018ca0
Capabilities:
Write file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov rbx, qword [0x140213a00]
xor r15d, r15d
mov r14, rcx
mov dword [rbx + 0x2ef8], r15d
test rcx, rcx
je 0x140018dcb
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
lea rdi, [rbx + 0x2f00]
mov dword [rbx + 0x2ef8], r15d
mov ecx, dword [rdi + 4]
test ecx, ecx
jns 0x140018d04
mov eax, ecx
cdq
sub eax, edx
mov edx, r15d
sar eax, 1
add eax, ecx
mov rcx, rdi
test eax, eax
cmovg edx, eax
call fcn.140019fd0
mov dword [rdi], r15d
cmp dword [rdi + 4], r15d
jne 0x140018d1a
mov edx, 8
mov rcx, rdi
call fcn.140019fd0
movsxd rcx, dword [rdi]
mov ebp, r15d
mov rax, qword [rdi + 8]
mov byte [rcx + rax], r15b
inc dword [rdi]
cmp dword [rbx + 0x2f10], r15d
jle 0x140018d65
mov rsi, r15
nop word [rax + rax]
mov r9, qword [rbx + 0x2f18]
mov r8, rdi
add r9, rsi
mov rcx, rbx
mov rdx, r9
call qword [r9 + 0x20]
inc ebp
add rsi, 0x30
cmp ebp, dword [rbx + 0x2f10]
jl 0x140018d40
mov eax, dword [rdi]
lea rdx, [0x14017734c]
test eax, eax
lea rdi, [0x1402139f8]
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x2f08]
cmove ecx, r15d
test rax, rax
movsxd rsi, ecx
mov rcx, r14
cmovne rdi, rax
call fcn.140007430
mov rbp, qword [rsp + 0x40]
mov rbx, rax
test rax, rax
je 0x140018dc1
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
Function at 0x1400246f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, 0xff000000
je 0x140024881
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movss xmm3, dword [rsp + 0x70]
xorps xmm0, xmm0
comiss xmm3, xmm0
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
jbe 0x140024760
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.140024110
mov r8d, dword [rbx + 0x80]
mov r9d, edi
mov rdx, qword [rbx + 0x88]
mov rcx, rbx
call fcn.140023770
mov dword [rbx + 0x80], 0
jmp 0x14002486d
mov edx, 6
movaps xmmword [rsp + 0x30], xmm6
lea r8d, [rdx - 2]
call fcn.140022630
movzx edx, word [rbx + 0x4c]
mov rax, qword [rbx + 0x38]
movss xmm1, dword [rsi]
movss xmm2, dword [rbp + 4]
movss xmm3, dword [rbp]
lea ecx, [rdx + 1]
movss xmm6, dword [rax + 4]
movss xmm5, dword [rax]
movss xmm4, dword [rsi + 4]
mov rax, qword [rbx + 0x58]
mov word [rax], dx
mov rax, qword [rbx + 0x58]
mov word [rax + 2], cx
lea ecx, [rdx + 2]
mov rax, qword [rbx + 0x58]
mov word [rax + 4], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 6], dx
add dx, 3
mov rax, qword [rbx + 0x58]
mov word [rax + 8], cx
mov rax, qword [rbx + 0x58]
mov word [rax + 0xa], dx
movsd xmm0, qword [rbp]
mov rax, qword [rbx + 0x50]
movsd qword [rax], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 8], xmm5
movss dword [rax + 0xc], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x10], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x14], xmm1
movss dword [rax + 0x18], xmm2
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x1c], xmm5
movss dword [rax + 0x20], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x24], edi
movsd xmm0, qword [rsi]
mov rax, qword [rbx + 0x50]
movsd qword [rax + 0x28], xmm0
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x30], xmm5
movss dword [rax + 0x34], xmm6
mov rax, qword [rbx + 0x50]
mov dword [rax + 0x38], edi
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x3c], xmm3
movss dword [rax + 0x40], xmm4
mov rax, qword [rbx + 0x50]
movss dword [rax + 0x44], xmm5
movss dword [rax + 0x48], xmm6
mov rax, qword [rbx + 0x50]
movaps xmm6, xmmword [rsp + 0x30]
mov dword [rax + 0x4c], edi
add qword [rbx + 0x50], 0x50
add dword [rbx + 0x4c], 4
add qword [rbx + 0x58], 0xc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140031450
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edx, dword [rcx + 0x10]
mov rbx, rcx
mov edi, edx
and edi, 7
je 0x1400314ad
cmp edx, edi
jge 0x1400314a3
mov r9, qword [rcx + 8]
mov r10d, dword [rcx + 0x14]
mov rax, qword [rbx]
cmp rax, r9
jb 0x14003147f
xor cl, cl
jmp 0x140031488
movzx ecx, byte [rax]
inc rax
mov qword [rbx], rax
movzx eax, cl
mov ecx, edx
shl eax, cl
add edx, 8
or eax, r10d
mov dword [rbx + 0x10], edx
mov dword [rbx + 0x14], eax
mov r10d, eax
cmp edx, 0x18
jle 0x140031473
mov ecx, edi
shr dword [rbx + 0x14], cl
sub edx, edi
mov dword [rbx + 0x10], edx
xor r9d, r9d
mov ecx, edx
test edx, edx
jle 0x1400314ee
mov eax, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r10d, al
nop dword [rax]
nop word [rax + rax]
shr eax, 8
inc r9d
mov byte [rdx], r10b
lea rdx, [rdx + 1]
sub ecx, 8
mov dword [rbx + 0x14], eax
movzx r10d, al
test ecx, ecx
jg 0x1400314d0
mov dword [rbx + 0x10], ecx
movsxd rcx, r9d
cmp rcx, 4
jge 0x140031522
mov r8, qword [rbx + 8]
nop dword [rax + rax]
mov rax, qword [rbx]
cmp rax, r8
jb 0x14003150c
xor dl, dl
jmp 0x140031515
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x140031500
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
je 0x140031578
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.zlib_corrupt
mov qword [rdx + rcx], rax
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx]
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x1400315b0
mov rax, qword gs:[0x58]
mov edx, 0x18
mov rcx, qword [rax]
lea rax, str.read_past_buffer
mov qword [rdx + rcx], rax
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x1400315ca
mov rcx, rbx
call fcn.140030b70
test eax, eax
je 0x14003156b
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14004cc80
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x28
test dword [rcx + 0x58], 0x100000
mov r10, rdx
je 0x14004cd0b
movzx r9d, byte [rdx]
lea r8, [rdx + 1]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14004cce0
lea r10, [0x1401774f0]
nop dword [rax]
cmp r9b, 0x23
jne 0x14004ccc3
cmp byte [r8], r9b
jne 0x14004ccc3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r10 + rdx*4]
test r9b, r9b
jne 0x14004ccb0
mov rcx, qword [0x140213a00]
not eax
cmp dword [rcx + 0x1a60], eax
jne 0x14004ccf7
mov dword [rcx + 0x1a64], eax
cmp dword [rcx + 0x1a9c], eax
jne 0x14004cd5d
mov byte [rcx + 0x1aa0], 1
add rsp, 0x28
ret
mov qword [rsp + 0x20], rbx
xor edx, edx
mov rbx, qword [0x140213a00]
mov rcx, r10
mov r8, qword [rbx + 0x1a18]
movsxd rax, dword [r8 + 0xc0]
mov r8, qword [r8 + 0xc8]
mov r8d, dword [r8 + rax*4 - 4]
call fcn.140007380
cmp dword [rbx + 0x1a60], eax
jne 0x14004cd49
mov dword [rbx + 0x1a64], eax
cmp dword [rbx + 0x1a9c], eax
jne 0x14004cd58
mov byte [rbx + 0x1aa0], 1
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x140059cb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140207010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r14d, edx
mov r12d, r8d
lea rdx, [rcx + 0x20]
mov r15, rcx
call fcn.140059c60
mov r13, rax
lea rcx, [rax + 0x18]
call fcn.140072940
mov r8, qword [0x140213ae0]
mov rdi, rax
movzx edx, al
sub rdx, 0x1f
lea rcx, [rax + 0xe1]
and edx, 0x7f
shr rcx, 7
lea rbx, [r8 + 0x76f822]
and ecx, 7
lea rbp, [rbx + 8]
add rcx, r8
lea rcx, [rcx + rdx*8]
add rcx, 0x37451c0
call fcn.140072940
movabs rcx, 0x78e5108e826510e1
mov rsi, rax
add rcx, rdi
xor rsi, rcx
xor rsi, rbx
cmp rbx, rbp
jae 0x140059d64
nop dword [rax]
mov rcx, rbx
call fcn.140072940
xor rsi, rax
add rbx, 8
cmp rbx, rbp
jb 0x140059d50
mov rcx, qword [0x140213ad8]
lea rdx, [r13 + 0x10]
xor r14d, esi
lea r8, [rsp + 0x30]
xor edi, edi
xor r14d, ebp
xor r14d, 0x7d9aef1e
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x30], r14d
lea r9d, [rdi + 4]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test r12d, r12d
je 0x140059df1
lea rcx, [r15 + 0x118]
call fcn.1400730b0
mov ebx, eax
test eax, eax
jg 0x140059db2
mov edx, edi
jmp 0x140059dcb
lea rcx, [r15 + 0x110]
call fcn.140072940
lea edx, [rbx + rbx*4]
shl edx, 2
add rdx, 0xffffffffffffffec
add rdx, rax
mov rcx, qword [0x140213ad8]
lea r8, [rsp + 0x30]
add rdx, 0x10
mov dword [rsp + 0x30], r12d
mov r9d, 4
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400762e0
mov rbx, qword [rsp + 0x98]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140059e20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
add rcx, 0xa0
call fcn.140072940
mov r9, qword [0x140213ae0]
mov rdi, rax
movzx r8d, al
sub r8, 0x2f
lea rcx, [rax - 0xaf]
and r8d, 0x7f
shr rcx, 7
lea rbx, [r9 + 0x766b32]
and ecx, 7
lea rbp, [rbx + 8]
add rcx, r9
lea rcx, [rcx + r8*8]
add rcx, 0x37451c0
call fcn.140072940
movabs rcx, 0x9233688ba979db51
mov rsi, rax
add rcx, rdi
xor rsi, rcx
xor rsi, rbx
cmp rbx, rbp
jae 0x140059eba
mov rcx, rbx
call fcn.140072940
xor rsi, rax
add rbx, 8
cmp rbx, rbp
jb 0x140059ea6
lea rcx, [r14 + 0x98]
call fcn.140072940
mov rbx, qword [rsp + 0x30]
xor rax, rbp
mov rbp, qword [rsp + 0x38]
movabs rcx, 0x6dcc9774568624ae
mov rdi, qword [rsp + 0x48]
xor rax, rcx
cmp rax, rsi
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop r14
ret
Function at 0x140077024
Capabilities:
Parse pe header

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

Disassembly:
xor r9b, r9b
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
mov qword [rsp + 0x10], rdx
mov r10, qword [rsp + 0x10]
test r8, r8
je 0x14009d157
sub r10, rax
nop
movzx edx, byte [r10 + rax]
movzx ecx, byte [rax]
lea rax, [rax + 1]
xor dl, cl
or r9b, dl
sub r8, 1
jne 0x14009d140
movzx eax, r9b
ret

Function at 0x1400a6040
Capabilities:
Encode data using base64

Disassembly:
xor r10d, r10d
test r8d, r8d
jle 0x1400a6133
lea r9, [rdx + 1]
lea r11, [0x140148e60]
cmp r8d, 3
jl 0x1400a60bb
movzx eax, byte [r9]
movzx edx, byte [r9 - 1]
shl rdx, 8
or rdx, rax
movzx eax, byte [r9 + 1]
shl rdx, 8
or rdx, rax
mov rax, rdx
shr rax, 0x12
movzx eax, byte [rax + r11]
mov byte [rcx], al
mov rax, rdx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [rcx + 1], al
mov rax, rdx
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [rcx + 2], al
add rcx, 3
and edx, 0x3f
movzx eax, byte [rdx + r11]
mov byte [rcx], al
jmp 0x1400a6114
movzx edx, byte [r9 - 1]
shl edx, 0x10
cmp r8d, 2
jne 0x1400a60d2
movzx eax, byte [r9]
shl eax, 8
or edx, eax
mov rax, rdx
shr rax, 0x12
movzx eax, byte [rax + r11]
mov byte [rcx], al
mov rax, rdx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r11]
mov byte [rcx + 1], al
cmp r8d, 1
jne 0x1400a60fe
lea eax, [r8 + 0x3c]
jmp 0x1400a610a
shr rdx, 6
and edx, 0x3f
movzx eax, byte [rdx + r11]
mov byte [rcx + 2], al
add rcx, 3
mov byte [rcx], 0x3d
add r10d, 4
add r9, 3
sub r8d, 3
inc rcx
test r8d, r8d
jg 0x1400a6057
mov byte [rcx], 0
mov eax, r10d
ret
mov byte [rcx], r10b
mov eax, r10d
ret

Function at 0x1400a79d0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x28
call fcn.140124210
sub rsp, rax
lea rcx, str.OPENSSL_CONF
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
je 0x1400a7a07
mov r8d, 0x1e3
lea rdx, str.....openssl_1.1.0fcryptoconfconf_mod.c
mov rcx, rax
add rsp, 0x28
jmp fcn.140087010
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
call fcn.1400dd480
xor edx, edx
mov ecx, edx
cmp byte [rax], cl
je 0x1400a7a31
nop
cmp ecx, 0x80000000
jae 0x1400a7a31
inc rax
inc ecx
cmp byte [rax], dl
jne 0x1400a7a20
btr ecx, 0x1f
lea rax, str.openssl.cnf
nop dword [rax]
cmp edx, 0x80000000
jae 0x1400a7a52
inc rax
inc edx
cmp byte [rax], 0
jne 0x1400a7a40
btr edx, 0x1f
lea eax, [rcx + 2]
add eax, edx
mov r8d, 0x1eb
movsxd rdi, eax
lea rdx, str.....openssl_1.1.0fcryptoconfconf_mod.c
mov rcx, rdi
call fcn.140078050
mov rbx, rax
test rax, rax
jne 0x1400a7a8a
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
call fcn.1400dd480
mov rdx, rax
mov r8, rdi
mov rcx, rbx
call fcn.140087510
mov r8, rdi
lea rdx, [0x1401494cc]
mov rcx, rbx
call fcn.140087490
mov r8, rdi
lea rdx, str.openssl.cnf
mov rcx, rbx
call fcn.140087490
mov rdi, qword [rsp + 0x20]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x1400b1580
Capabilities:
Generate random numbers via winapi
Get memory capacity

Disassembly:
push rbx
mov eax, 0xd0
call fcn.140124210
sub rsp, rax
mov rax, qword [0x140207010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000040
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebx, 0x40
test eax, eax
je 0x1400b1612
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x80]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400b1605
xorps xmm2, xmm2
cvtsi2sd xmm2, rbx
test rbx, rbx
jns 0x1400b15f6
addsd xmm2, qword [0x14014ac90]
mov edx, ebx
lea rcx, [rsp + 0x80]
call fcn.14007eb20
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r9d, 0x16
mov dword [rsp + 0x20], 0xf0000040
lea r8, str.Intel_Hardware_Cryptographic_Service_Provider
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400b1682
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x80]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400b1675
xorps xmm2, xmm2
cvtsi2sd xmm2, rbx
test rbx, rbx
jns 0x1400b1666
addsd xmm2, qword [0x14014ac90]
mov edx, ebx
lea rcx, [rsp + 0x80]
call fcn.14007eb20
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [0x140207ce8], 0
je 0x1400b16bd
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x1400b16a2
mov dword [0x140207ce8], eax
jmp 0x1400b16bd
xorps xmm2, xmm2
lea rcx, [rsp + 0x40]
mov edx, 8
call fcn.14007eb20
cmp dword [0x140207ce8], 0
jne 0x1400b16d9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xorps xmm2, xmm2
lea rcx, [rsp + 0x38]
mov edx, 4
mov dword [rsp + 0x38], eax
call fcn.14007eb20
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
movsd xmm2, qword [0x1401efc70]
lea rcx, [rsp + 0x48]
mov edx, 0x38
call fcn.14007eb20
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movsd xmm2, qword [0x1401efc70]
lea rcx, [rsp + 0x3c]
mov edx, 4
mov dword [rsp + 0x3c], eax
call fcn.14007eb20
mov eax, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400762e0
add rsp, 0xd0
pop rbx
ret
Function at 0x1400b7a90
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rdi
push r14
mov eax, 0x40
call fcn.140124210
sub rsp, rax
cmp dword [rsp + 0x70], 2
mov rdi, r8
movsxd rbp, r9d
mov r14, rcx
je 0x1400b7b20
test rdx, rdx
je 0x1400b7b0c
mov r9, rdx
xor r8d, r8d
lea rdx, [rsp + 0x30]
xor ecx, ecx
call fcn.14009ee10
cmp dword [rsp + 0x30], 0xffffffff
je 0x1400b7b0c
mov dword [rsp + 0x20], 0x2f
mov ecx, reloc.WS2_32.dll_recv
lea r9, str.....openssl_1.1.0fcryptoececx_meth.c
mov edx, 0x10a
lea r8d, [rcx + 0x56]
call fcn.14007a160
xor eax, eax
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
test rdi, rdi
je 0x1400b7b16
cmp ebp, 0x20
je 0x1400b7b20
mov dword [rsp + 0x20], 0x35
jmp 0x1400b7adf
mov r8d, 0x3a
mov qword [rsp + 0x50], rbx
lea rdx, str.....openssl_1.1.0fcryptoececx_meth.c
lea ecx, [r8 - 0x12]
call fcn.140078390
mov rbx, rax
test rax, rax
jne 0x1400b7b6a
lea r9, str.....openssl_1.1.0fcryptoececx_meth.c
mov dword [rsp + 0x20], 0x3c
mov edx, 0x10a
lea ecx, [rax + 0x10]
lea r8d, [rax + 0x41]
call fcn.14007a160
xor eax, eax
jmp 0x1400b7c5a
cmp dword [rsp + 0x70], 0
jne 0x1400b7b84
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400b7c45
mov r8d, 0x43
lea rdx, str.....openssl_1.1.0fcryptoececx_meth.c
lea ecx, [r8 - 0x23]
call fcn.1400862b0
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x1400b7bcb
lea r9, str.....openssl_1.1.0fcryptoececx_meth.c
mov dword [rsp + 0x20], 0x45
mov edx, 0x10a
lea ecx, [rax + 0x10]
lea r8d, [rax + 0x41]
call fcn.14007a160
mov r8d, 0x46
jmp 0x1400b7bff
cmp dword [rsp + 0x70], 2
jne 0x1400b7c2b
mov edx, 0x20
mov rcx, rax
call fcn.14007eb70
test eax, eax
jg 0x1400b7c12
mov rcx, qword [rbx + 0x20]
lea rdx, str.....openssl_1.1.0fcryptoececx_meth.c
mov r8d, 0x4b
call fcn.140086290
mov r8d, 0x4c
lea rdx, str.....openssl_1.1.0fcryptoececx_meth.c
mov rcx, rbx
call fcn.1400780a0
xor eax, eax
jmp 0x1400b7c5a
mov rax, qword [rbx + 0x20]
and byte [rax], 0xf8
mov rax, qword [rbx + 0x20]
and byte [rax + 0x1f], 0x7f
mov rax, qword [rbx + 0x20]
or byte [rax + 0x1f], 0x40
jmp 0x1400b7c39
movups xmm0, xmmword [rdi]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rax + 0x10], xmm1
mov rdx, qword [rbx + 0x20]
mov rcx, rbx
call fcn.1400e2770
mov r8, rbx
mov edx, 0x40a
mov rcx, r14
call fcn.14007ee10
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret