joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ac180
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, r8
mov rcx, qword [rcx]
mov rsi, rdx
cmp dword [rcx + 8], 3
jne 0x1400ac1ca
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x1400ac1ba
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rcx + 0x10]
mov edx, 1
mov rcx, rsi
call rax
jmp 0x1400ac212
cmp qword [rbx + 0x10], 0
jne 0x1400ac1fe
mov rcx, qword [rcx + 0x10]
lea rdx, [0x1401a717c]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1400ac1fe
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rbx + 0x10]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov rdi, rax
test rax, rax
jne 0x1400ac235
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400ac22c
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400b20f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [str.f2_v_]
mov rdi, rax
test rax, rax
jne 0x1400b2132
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400b2175
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + ioctlsocket]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400b21d2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + ioctlsocket]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + ioctlsocket]
sub rbp, 1
jne 0x1400b2190
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400b2213
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1401b105a]
mov r8d, 1
call qword [rbx + ioctlsocket]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1401b105b]
mov r8d, 1
call qword [rbx + ioctlsocket]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400b21e0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400b2de4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400b2e2e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400b2e2e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400b2e2e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400b2e2e
cmp dword [rcx + 0x84], 0xe
jbe 0x1400b2e2e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400b2e30
xor al, al
add rsp, 0x28
ret
Function at 0x1400c0380
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
mov eax, 0x468
call fcn.1400b2870
sub rsp, rax
mov rax, qword [0x14021e0c0]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor ebp, ebp
mov ebx, edx
test rcx, rcx
jne 0x1400c03b2
xor eax, eax
jmp 0x1400c04d0
test ebx, ebx
je 0x1400c03ab
lea rdx, [0x1401a717c]
mov qword [rsp + 0x460], r14
call fcn.1400ea810
mov r14, rax
test rax, rax
je 0x1400c04c6
xor eax, eax
mov rcx, r14
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
lea rdx, [rsp + 0x20]
call sub.api_ms_win_crt_filesystem_l1_1_0.dll__fstat64i32
test eax, eax
js 0x1400c04be
mov qword [rsp + 0x490], rsi
lea rcx, [rsp + 0x20]
xorps xmm2, xmm2
mov qword [rsp + 0x498], rdi
mov edx, Ordinal_50
call fcn.1400bfef0
mov eax, 0x2000
test word [rsp + 0x26], ax
je 0x1400c0455
cmp ebx, 0xffffffff
mov eax, 0x800
mov rcx, r14
cmove ebx, eax
xor edx, edx
call sub.api_ms_win_crt_stdio_l1_1_0.dll_setbuf
mov edi, 0x400
test ebx, ebx
jle 0x1400c0463
cmp ebx, edi
cmovl edi, ebx
movsxd r8, edi
lea rcx, [rsp + 0x50]
mov r9, r14
mov edx, 1
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
mov rsi, rax
test eax, eax
jle 0x1400c049f
movd xmm2, esi
lea rcx, [rsp + 0x50]
cvtdq2pd xmm2, xmm2
mov edx, esi
call fcn.1400bfef0
add ebp, esi
test ebx, ebx
jle 0x1400c0455
sub ebx, edi
test ebx, ebx
jg 0x1400c0455
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.1400011f0
mov rdi, qword [rsp + 0x498]
mov rsi, qword [rsp + 0x490]
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
mov r14, qword [rsp + 0x460]
mov eax, ebp
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400b2240
add rsp, 0x468
pop rbp
pop rbx
ret

Function at 0x1400c04f0
Capabilities:
Query environment variable

Disassembly:
mov eax, Ordinal_41
call fcn.1400b2870
sub rsp, rax
lea rcx, str.OPENSSL_CONF
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
je 0x1400c0527
mov r8d, 0x1e3
lea rdx, str.cryptoconfconf_mod.c
mov rcx, rax
add rsp, 0x28
jmp fcn.1400c88a0
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x20], rdi
call fcn.1400dca10
xor edx, edx
mov ecx, edx
cmp byte [rax], cl
je 0x1400c0551
nop
cmp ecx, 0x80000000
jae 0x1400c0551
inc rax
inc ecx
cmp byte [rax], dl
jne 0x1400c0540
btr ecx, 0x1f
lea rax, str.openssl.cnf
nop dword [rax]
cmp edx, 0x80000000
jae 0x1400c0572
inc rax
inc edx
cmp byte [rax], 0
jne 0x1400c0560
btr edx, 0x1f
lea eax, [rcx + 2]
add eax, edx
mov r8d, 0x1eb
movsxd rdi, eax
lea rdx, str.cryptoconfconf_mod.c
mov rcx, rdi
call fcn.1400b3cb0
mov rbx, rax
test rax, rax
jne 0x1400c05aa
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
call fcn.1400dca10
mov rdx, rax
mov r8, rdi
mov rcx, rbx
call fcn.1400c8da0
mov r8, rdi
lea rdx, [0x1401a6c8c]
mov rcx, rbx
call fcn.1400c8d20
mov r8, rdi
lea rdx, str.openssl.cnf
mov rcx, rbx
call fcn.1400c8d20
mov rdi, qword [rsp + 0x20]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x1400c6dd0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.1400b2870
sub rsp, rax
mov ecx, dword [rcx]
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1400c6f50
Capabilities:
Set thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.1400b2870
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x1400c7c70
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x60
call fcn.1400b2870
sub rsp, rax
xor edi, edi
mov ebx, r9d
mov esi, r8d
mov rbp, rdx
mov r14, rcx
cmp r9d, 0x17
ja 0x1400c7d5f
mov eax, 0x800005
bt eax, ebx
jae 0x1400c7d5f
call fcn.1400c7a00
cmp eax, 1
jne 0x1400c7d7f
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x34], ebx
cmp esi, 1
jne 0x1400c7cff
or dword [rsp + 0x30], esi
mov r9, qword [rsp + 0x98]
lea r8, [rsp + 0x30]
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebx, eax
test eax, eax
je 0x1400c7d56
mov edx, 0x87
mov dword [rsp + 0x20], 0x2cc
lea r9, str.crypto_bio_b_addr.c
lea ecx, [rdx - 0x67]
lea r8d, [rcx - 0x1e]
call fcn.1400c3630
mov ecx, ebx
call fcn.1400c8250
mov rdx, rax
mov ecx, 1
call fcn.1400c2960
mov eax, edi
jmp 0x1400c7d81
mov edi, 1
mov eax, edi
jmp 0x1400c7d81
mov edx, 0x87
mov dword [rsp + 0x20], 0x2a1
lea r9, str.crypto_bio_b_addr.c
lea ecx, [rdx - 0x67]
lea r8d, [rdx - 4]
call fcn.1400c3630
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400c8e50
Capabilities:
Query environment variable

Disassembly:
mov eax, Ordinal_41
call fcn.1400b2870
sub rsp, rax
cmp dword [0x14022e874], 0
jne 0x1400c8f9e
mov qword [rsp + 0x38], rbx
lea rcx, str.OPENSSL_ia32cap
mov qword [rsp + 0x20], rdi
mov dword [0x14022e874], 1
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rbx, rax
test rax, rax
je 0x1400c8f72
mov qword [rsp + 0x40], rbp
lea r8, [rsp + 0x30]
xor edi, edi
mov qword [rsp + 0x48], rsi
movzx esi, byte [rax]
lea rdx, str._I64i
mov ecx, edi
cmp sil, 0x7e
sete cl
lea rbp, [rcx + rax]
mov rcx, rbp
call fcn.14007be90
test eax, eax
jne 0x1400c8ede
xor r8d, r8d
xor edx, edx
mov rcx, rbp
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
mov eax, eax
mov qword [rsp + 0x30], rax
mov rbp, qword [rsp + 0x40]
cmp sil, 0x7e
mov rsi, qword [rsp + 0x48]
jne 0x1400c8f07
lea rcx, [0x14022fcb0]
call fcn.140001030
mov rcx, qword [rsp + 0x30]
not rcx
and rax, rcx
jmp 0x1400c8f18
cmp byte [rbx], 0x3a
jne 0x1400c8f1d
lea rcx, [0x14022fcb0]
call fcn.140001030
mov qword [rsp + 0x30], rax
mov edx, Ordinal_60
mov dword [0x14022fcb8], edi
mov rcx, rbx
call sub.VCRUNTIME140.dll_strchr
test rax, rax
je 0x1400c8f6b
movzx ebx, byte [rax + 1]
inc rax
cmp bl, 0x7e
sete dil
xor r8d, r8d
xor edx, edx
lea rcx, [rax + rdi]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
cmp bl, 0x7e
jne 0x1400c8f65
not eax
and dword [0x14022fcb8], eax
mov rax, qword [rsp + 0x30]
jmp 0x1400c8f7e
mov dword [0x14022fcb8], eax
mov rax, qword [rsp + 0x30]
jmp 0x1400c8f7e
lea rcx, [0x14022fcb0]
call fcn.140001030
mov rdi, qword [rsp + 0x20]
mov ecx, eax
mov rbx, qword [rsp + 0x38]
bts ecx, 0xa
shr rax, 0x20
mov dword [0x14022fcb4], eax
mov dword [0x14022fcb0], ecx
add rsp, 0x28
ret
Function at 0x1400fcbb0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rdi
push r14
mov eax, 0x40
call fcn.1400b2870
sub rsp, rax
cmp dword [rsp + 0x70], 2
mov rdi, r8
movsxd rbp, r9d
mov r14, rcx
je 0x1400fcc40
test rdx, rdx
je 0x1400fcc2c
mov r9, rdx
xor r8d, r8d
lea rdx, [rsp + 0x30]
xor ecx, ecx
call fcn.1400dee80
cmp dword [rsp + 0x30], 0xffffffff
je 0x1400fcc2c
mov dword [rsp + 0x20], Ordinal_50
mov ecx, reloc.WS2_32.dll_recv
lea r9, str.cryptoececx_meth.c
mov edx, 0x10a
lea r8d, [rcx + 0x56]
call fcn.1400c3630
xor eax, eax
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
test rdi, rdi
je 0x1400fcc36
cmp ebp, 0x20
je 0x1400fcc40
mov dword [rsp + 0x20], Ordinal_60
jmp 0x1400fcbff
mov r8d, Ordinal_60
mov qword [rsp + 0x50], rbx
lea rdx, str.cryptoececx_meth.c
lea ecx, [r8 - 0x12]
call fcn.1400b3ff0
mov rbx, rax
test rax, rax
jne 0x1400fcc8a
lea r9, str.cryptoececx_meth.c
mov dword [rsp + 0x20], reloc.WLDAP32.dll_Ordinal_60
mov edx, 0x10a
lea ecx, [rax + 0x10]
lea r8d, [rax + 0x41]
call fcn.1400c3630
xor eax, eax
jmp 0x1400fcd7a
cmp dword [rsp + 0x70], 0
jne 0x1400fcca4
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
jmp 0x1400fcd65
mov r8d, 0x43
lea rdx, str.cryptoececx_meth.c
lea ecx, [r8 - 0x23]
call fcn.1400f5bc0
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x1400fcceb
lea r9, str.cryptoececx_meth.c
mov dword [rsp + 0x20], 0x45
mov edx, 0x10a
lea ecx, [rax + 0x10]
lea r8d, [rax + 0x41]
call fcn.1400c3630
mov r8d, 0x46
jmp 0x1400fcd1f
cmp dword [rsp + 0x70], 2
jne 0x1400fcd4b
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rax
call fcn.1400bff40
test eax, eax
jg 0x1400fcd32
mov rcx, qword [rbx + 0x20]
lea rdx, str.cryptoececx_meth.c
mov r8d, Ordinal_79
call fcn.1400f5ba0
mov r8d, Ordinal_79
lea rdx, str.cryptoececx_meth.c
mov rcx, rbx
call fcn.1400b3d00
xor eax, eax
jmp 0x1400fcd7a
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 0x1400fcd59
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.14012d750
mov r8, rbx
mov edx, 0x40a
mov rcx, r14
call fcn.1400b9d30
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
Function at 0x14011c570
Capabilities:
Encode data using base64

Disassembly:
xor r10d, r10d
test r8d, r8d
jle 0x14011c663
lea r9, [rdx + 1]
lea r11, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp r8d, 3
jl 0x14011c5eb
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 0x14011c644
movzx edx, byte [r9 - 1]
shl edx, 0x10
cmp r8d, 2
jne 0x14011c602
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 0x14011c62e
lea eax, [r8 + 0x3c]
jmp 0x14011c63a
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 0x14011c587
mov byte [rcx], 0
mov eax, r10d
ret
mov byte [rcx], r10b
mov eax, r10d
ret
Function at 0x14011c870
Capabilities:
Generate random numbers via winapi
Get memory capacity

Disassembly:
push rbx
mov eax, Ordinal_211
call fcn.1400b2870
sub rsp, rax
mov rax, qword [0x14021e0c0]
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 0x14011c902
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x80]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x14011c8f5
xorps xmm2, xmm2
cvtsi2sd xmm2, rbx
test rbx, rbx
jns 0x14011c8e6
addsd xmm2, qword [0x1401dc390]
mov edx, ebx
lea rcx, [rsp + 0x80]
call fcn.1400bfef0
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r9d, reloc.WLDAP32.dll_Ordinal_22
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 0x14011c972
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x80]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x14011c965
xorps xmm2, xmm2
cvtsi2sd xmm2, rbx
test rbx, rbx
jns 0x14011c956
addsd xmm2, qword [0x1401dc390]
mov edx, ebx
lea rcx, [rsp + 0x80]
call fcn.1400bfef0
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x14011c9ad
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x14011c992
mov dword [reloc.WS2_32.dll_accept], eax
jmp 0x14011c9ad
xorps xmm2, xmm2
lea rcx, [rsp + 0x40]
mov edx, 8
call fcn.1400bfef0
cmp dword [reloc.WS2_32.dll_accept], 0
jne 0x14011c9c9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xorps xmm2, xmm2
lea rcx, [rsp + 0x38]
mov edx, 4
mov dword [rsp + 0x38], eax
call fcn.1400bfef0
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
movsd xmm2, qword [0x1401a9630]
lea rcx, [rsp + 0x48]
mov edx, Ordinal_60
call fcn.1400bfef0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movsd xmm2, qword [0x1401a9630]
lea rcx, [rsp + 0x3c]
mov edx, 4
mov dword [rsp + 0x3c], eax
call fcn.1400bfef0
mov eax, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400b2240
add rsp, 0xd0
pop rbx
ret
Function at 0x14012d750
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x50]
mov eax, 0x150
call fcn.1400b2870
sub rsp, rax
mov rax, qword [0x14021e0c0]
xor rax, rsp
mov qword [rbp + 0x40], rax
movups xmm2, xmmword [rdx]
mov rbx, rcx
lea rcx, [rsp + 0x50]
movups xmm0, xmmword [rdx + 0x10]
lea rdx, [rbp - 0x10]
movd eax, xmm2
movups xmmword [rbp], xmm0
and al, 0xf8
psrldq xmm0, 8
movups xmmword [rbp - 0x10], xmm2
mov byte [rbp - 0x10], al
movq rax, xmm0
shr rax, 0x38
and al, 0x3f
or al, 0x40
mov byte [rbp + 0xf], al
call fcn.14012fef0
mov ecx, dword [rsp + 0x78]
mov edx, dword [rbp - 0x60]
mov r8d, dword [rbp - 0x3c]
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rsp + 0x7c]
mov dword [rbp + 0x18], edx
mov edx, dword [rbp - 0x5c]
mov dword [rbp - 0x10], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rbp - 0x80]
mov dword [rbp + 0x1c], edx
mov edx, dword [rbp - 0x58]
mov dword [rbp - 0xc], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rbp - 0x7c]
mov dword [rbp + 0x20], edx
mov edx, dword [rbp - 0x54]
mov dword [rbp - 8], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rbp - 0x78]
mov dword [rbp + 0x24], edx
mov edx, dword [rbp - 0x50]
mov dword [rbp - 4], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rbp - 0x74]
mov dword [rbp + 0x28], edx
mov edx, dword [rbp - 0x4c]
mov dword [rbp], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rbp - 0x70]
mov dword [rbp + 0x2c], edx
mov edx, dword [rbp - 0x48]
mov dword [rbp + 4], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rbp - 0x6c]
mov dword [rbp + 0x30], edx
mov edx, dword [rbp - 0x44]
mov dword [rbp + 8], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov ecx, dword [rbp - 0x68]
mov dword [rbp + 0x34], edx
mov edx, dword [rbp - 0x40]
mov dword [rbp + 0xc], eax
lea eax, [rcx + rdx]
sub edx, ecx
mov dword [rbp + 0x38], edx
lea rcx, [rsp + 0x20]
mov edx, dword [rbp - 0x64]
mov dword [rbp + 0x10], eax
lea eax, [rdx + r8]
sub r8d, edx
lea rdx, [rbp + 0x18]
mov dword [rbp + 0x3c], r8d
mov dword [rbp + 0x14], eax
call fcn.14012dd30
lea r8, [rsp + 0x20]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x10]
call fcn.14012dfb0
lea rdx, [rbp - 0x10]
mov rcx, rbx
call fcn.14012f5e0
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1400b2240
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rbp
ret
Function at 0x140136c00
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
mov eax, 0xb8
call fcn.1400b2870
sub rsp, rax
mov rax, qword [0x14021e0c0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r12, qword [rsp + 0x110]
xor edi, edi
movsxd rsi, r8d
mov rbp, r9
mov r14, rdx
mov rbx, rcx
mov eax, edi
test r9, r9
je 0x140136c66
cmp r9, qword [rcx]
je 0x140136c5c
test rdx, rdx
je 0x140136e49
test r8d, r8d
js 0x140136e49
mov eax, 1
mov qword [rcx], r9
jmp 0x140136c72
mov rbp, qword [rcx]
test rbp, rbp
je 0x140136e49
test r14, r14
je 0x140136d44
mov rcx, rbp
mov qword [rsp + 0xb0], r15
call fcn.1400e5810
mov r15d, eax
cmp eax, 0x80
jle 0x140136cae
mov r8d, Ordinal_41
lea rdx, str.cryptohmachmac.c
lea rcx, str.assertion_failed:_j____int_sizeof_ctx__key_
call fcn.1400c8fb0
cmp r15d, esi
mov r15, qword [rsp + 0xb0]
jge 0x140136d00
mov rcx, qword [rbx + 8]
mov r8, r12
mov rdx, rbp
call fcn.1400de330
test eax, eax
je 0x140136cf9
mov rcx, qword [rbx + 8]
mov r8, rsi
mov rdx, r14
call fcn.1400de5a0
test eax, eax
je 0x140136cf9
mov rcx, qword [rbx + 8]
lea r14, [rbx + 0x20]
mov r8, r14
lea rdx, [rbx + 0x24]
call fcn.1400de250
test eax, eax
jne 0x140136d1e
xor eax, eax
jmp 0x140136e49
cmp esi, 0x80
ja 0x140136cf9
mov r8, rsi
lea rcx, [rbx + 0x24]
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
lea r14, [rbx + 0x20]
mov dword [r14], esi
mov ecx, dword [r14]
cmp ecx, 0x80
je 0x140136d4c
mov eax, ecx
mov r8d, 0x80
sub r8d, ecx
xor edx, edx
lea rcx, [rbx + 0x24]
add rcx, rax
call sub.VCRUNTIME140.dll_memset
jmp 0x140136d4c
test eax, eax
je 0x140136e2f
lea rcx, [rsp + 0x20]
mov rax, rbx
sub rax, rcx
mov rdx, rdi
lea rsi, [rax + 0x24]
lea r14, [rax + 0x25]
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x20]
add rcx, rdx
add rdx, 2
movzx eax, byte [rsi + rcx]
xor al, 0x36
mov byte [rcx], al
movzx eax, byte [r14 + rcx]
xor al, 0x36
mov byte [rcx + 1], al
cmp rdx, 0x80
jl 0x140136d70
mov rcx, qword [rbx + 0x10]
mov r8, r12
mov rdx, rbp
call fcn.1400de330
test eax, eax
je 0x140136cf9
mov rcx, rbp
call fcn.1400e5810
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x20]
movsxd r8, eax
call fcn.1400de5a0
test eax, eax
je 0x140136cf9
nop
lea rcx, [rsp + 0x20]
add rcx, rdi
add rdi, 2
movzx eax, byte [rsi + rcx]
xor al, 0x5c
mov byte [rcx], al
movzx eax, byte [r14 + rcx]
xor al, 0x5c
mov byte [rcx + 1], al
cmp rdi, 0x80
jl 0x140136dd0
mov rcx, qword [rbx + 0x18]
mov r8, r12
mov rdx, rbp
call fcn.1400de330
test eax, eax
je 0x140136cf9
mov rcx, rbp
call fcn.1400e5810
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0x20]
movsxd r8, eax
call fcn.1400de5a0
test eax, eax
je 0x140136cf9
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 8]
call fcn.1400de600
test eax, eax
je 0x140136cf9
mov eax, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400b2240
add rsp, 0xb8
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret