joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140186ae0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, reloc.WS2_32.dll_recvfrom
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov esi, 0x8000
or edi, 2
mov ecx, reloc.WS2_32.dll_select
and ax, si
cmove edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
and ax, si
mov ecx, 0x5c
mov esi, edi
or esi, 4
test ax, ax
cmove esi, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x5b
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, esi
mov ecx, reloc.WS2_32.dll_sendto
or edi, 8
or bx, ax
cmovns edi, esi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, edi
mov ecx, 0x90
or ebx, 0x10
and al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
and al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x140189b00
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140396c80]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor edx, edx
lea rcx, [rbp - 0x60]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x1403c4652]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1e0], rdi
sub r14, 0x480
lea r15, [0x1403c43d8]
xor r13d, r13d
lea r12, [0x1403c46f2]
mov ebx, reloc.WLDAP32.dll_Ordinal_32
movsx esi, word [r15]
cmp esi, 0xffffffff
je 0x140189ca5
cmp ebx, 0x140
jb 0x140189c20
cmp ebx, 0x14e
ja 0x140189c20
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], WSAGetLastError
mov dword [rsp + 0x64], WSAGetLastError
mov dword [rsp + 0x68], WSACleanup
mov dword [rsp + 0x6c], reloc.WS2_32.dll_WSAGetLastError
mov dword [rsp + 0x70], WSAGetLastError
mov dword [rsp + 0x74], WSACleanup
mov dword [rsp + 0x78], WSAGetLastError
mov edi, dword [r14]
jmp 0x140189c2f
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x140189c72
mov dword [rsp + 0x28], r13d
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x140189ca5
mov qword [rsp + 0x38], r13
lea r8, [rbp - 0x80]
mov qword [rsp + 0x30], r13
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r12, 5
add r14, 4
add r15, 2
cmp ebx, 0x15c
jle 0x140189b82
mov rdi, qword [rsp + 0x1e0]
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.1400be7c0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14018b2a0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
jne 0x14018b2d0
lea rdx, [0x1402f73c8]
mov ecx, 0x10008
call fcn.1401892e0
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x14018d510
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140396c80]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1403c4f68], 0
lea rax, str.libOSMesa.dll
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
je 0x14018d565
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400be7c0
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1403c4f68], rax
test rax, rax
jne 0x14018d5a8
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x14018d570
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.140181330
jmp 0x14018d6cd
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1403c4f68]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x1403c4f70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1403c4f68]
lea rdx, str.OSMesaDestroyContext
mov qword [0x1403c4f78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1403c4f68]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x1403c4f80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1403c4f68]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x1403c4f88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1403c4f68]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x1403c4f90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1403c4f68]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x1403c4f98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1403c4f70], 0
mov qword [0x1403c4fa0], rax
je 0x14018d69f
cmp qword [0x1403c4f80], 0
je 0x14018d69f
cmp qword [0x1403c4f88], 0
je 0x14018d69f
cmp qword [0x1403c4f90], 0
je 0x14018d69f
cmp qword [0x1403c4f98], 0
je 0x14018d69f
test rax, rax
je 0x14018d69f
mov eax, 1
jmp 0x14018d6cf
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140181330
mov rcx, qword [0x1403c4f68]
test rcx, rcx
je 0x14018d6cd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1403c4f68], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400be7c0
add rsp, 0x48
ret
Function at 0x1401b8760
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0xc0
call fcn.1400be950
sub rsp, rax
mov rax, qword [0x140396c80]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov eax, dword [rdx + 8]
xor r12d, r12d
mov dword [rsp + 0x24], eax
mov r13, rdx
sub eax, r8d
mov edi, r8d
mov rsi, rcx
mov qword [rsp + 0x28], rcx
mov ebp, r12d
mov dword [rsp + 0x20], eax
cmp dword [rdx + 0xc], r8d
jae 0x1401b87d0
mov r8d, 0x4d6
lea rdx, [0x1402fd058]
lea rcx, str.assertion_failed:_rec__orig_len___md_size
call fcn.1401d5810
cmp edi, 0x40
jbe 0x1401b87ee
mov r8d, 0x4d7
lea rdx, [0x1402fd058]
lea rcx, str.assertion_failed:_md_size___EVP_MAX_MD_SIZE
call fcn.1401d5810
mov ecx, dword [r13 + 0xc]
lea rax, [rsp + 0x30]
neg rax
lea r14, [rsp + 0x30]
and eax, 0x3f
add r14, rax
lea eax, [rdi + 0x100]
cmp ecx, eax
jbe 0x1401b8819
mov ebp, ecx
sub ebp, edi
sub ebp, 0x100
mov r8, rdi
xor edx, edx
mov rcx, r14
mov ebx, r12d
mov r15, rdi
call sub.VCRUNTIME140.dll_memset
mov r10d, dword [r13 + 0xc]
mov r9d, r12d
cmp ebp, r10d
jae 0x1401b88c3
mov r13, qword [r13 + 0x18]
mov r11d, dword [rsp + 0x20]
mov esi, dword [rsp + 0x24]
nop dword [rax]
mov eax, ebp
mov ecx, ebp
sub ecx, esi
xor eax, r11d
xor ecx, esi
lea r8d, [rax - 1]
not eax
shr eax, 0x1f
shr r8d, 0x1f
and r8d, eax
mov eax, ebp
xor eax, esi
neg r8d
or ecx, eax
or r12d, r8d
xor ecx, ebp
mov eax, ebp
shr ecx, 0x1f
and r8d, r9d
neg ecx
or ebx, r8d
and r12d, ecx
inc ebp
movzx edx, byte [rax + r13]
movzx eax, r12b
mov ecx, r9d
and al, dl
inc r9d
or byte [rcx + r14], al
mov ecx, r9d
sub ecx, edi
mov eax, edi
xor ecx, edi
xor eax, r9d
or ecx, eax
xor ecx, r9d
shr ecx, 0x1f
neg ecx
and r9d, ecx
cmp ebp, r10d
jb 0x1401b8850
mov rsi, qword [rsp + 0x28]
test edi, edi
je 0x1401b8906
nop word [rax + rax]
mov ecx, ebx
lea rsi, [rsi + 1]
mov eax, ebx
inc ebx
xor rax, 0x20
movzx eax, byte [rax + r14]
movzx eax, byte [rcx + r14]
mov ecx, ebx
sub ecx, edi
mov byte [rsi - 1], al
xor ecx, edi
mov eax, edi
xor eax, ebx
or ecx, eax
xor ecx, ebx
shr ecx, 0x1f
neg ecx
and ebx, ecx
sub r15, 1
jne 0x1401b88d0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400be7c0
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401b9540
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400be950
sub rsp, rax
mov rax, qword [rcx + 8]
lea esi, [r9 + 1]
mov rbx, rdx
mov r10, rcx
mov edx, dword [rdx + 8]
mov r9, qword [rax + 0xc0]
test byte [r9 + 0x68], 1
je 0x1401b95ce
lea eax, [rsi + r8]
cmp eax, edx
ja 0x1401b95d2
mov eax, r8d
sub edx, r8d
add qword [rbx + 0x18], rax
add qword [rbx + 0x20], rax
sub dword [rbx + 0xc], r8d
mov dword [rbx + 8], edx
mov rax, qword [rbx + 0x18]
lea ecx, [rdx - 1]
mov qword [rsp + 0x38], rdi
movzx edi, byte [rcx + rax]
mov rcx, qword [r10 + 0x110]
call fcn.14001c0d0
mov rcx, rax
call fcn.1401cb230
mov r8d, dword [rbx + 8]
and eax, 0x200000
je 0x1401b95df
sub r8d, edi
mov eax, 1
dec r8d
jmp 0x1401b967e
cmp esi, edx
jbe 0x1401b958f
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
lea ecx, [rdi + rsi]
mov r9d, r8d
sub r9d, ecx
mov esi, 0x100
xor r9d, ecx
mov eax, r8d
xor eax, ecx
or r9d, eax
xor r9d, r8d
shr r9d, 0x1f
dec r9d
cmp r8d, esi
cmovb esi, r8d
xor r10d, r10d
test esi, esi
je 0x1401b965f
mov r11d, edi
mov qword [rsp + 0x30], rbp
mov rbp, qword [rbx + 0x18]
shr r11d, 0x1f
mov eax, r10d
mov ecx, edi
sub ecx, r10d
shr eax, 0x1f
shr ecx, 0x1f
xor cl, al
xor al, r11b
or cl, al
mov eax, r8d
sub eax, r10d
xor cl, r11b
dec cl
dec eax
movzx edx, cl
inc r10d
movzx ecx, byte [rax + rbp]
xor ecx, edi
and edx, ecx
not edx
and r9d, edx
cmp r10d, esi
jb 0x1401b9620
mov rbp, qword [rsp + 0x30]
not r9d
lea eax, [rdi + 1]
movzx ecx, r9b
dec ecx
shr ecx, 0x1f
neg ecx
and eax, ecx
sub r8d, eax
mov eax, ecx
and eax, 1
not ecx
or eax, ecx
mov rdi, qword [rsp + 0x38]
mov dword [rbx + 8], r8d
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x1401cc0f0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
mov eax, 0x468
call fcn.1400be950
sub rsp, rax
mov rax, qword [0x140396c80]
xor rax, rsp
mov qword [rsp + 0x450], rax
xor ebp, ebp
mov ebx, edx
test rcx, rcx
je 0x1401cc233
test edx, edx
je 0x1401cc233
lea rdx, [0x1402996a4]
mov qword [rsp + 0x460], r14
call fcn.140211cd0
mov r14, rax
test rax, rax
je 0x1401cc227
xorps xmm0, xmm0
mov rcx, rax
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
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 0x1401cc21f
mov qword [rsp + 0x490], rsi
lea edx, [rbp + 0x30]
xorps xmm2, xmm2
mov qword [rsp + 0x498], rdi
lea rcx, [rsp + 0x20]
call fcn.1401cbb70
mov eax, 0x2000
test word [rsp + 0x26], ax
je 0x1401cc1b6
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 0x1401cc1c4
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 0x1401cc200
movd xmm2, esi
lea rcx, [rsp + 0x50]
cvtdq2pd xmm2, xmm2
mov edx, esi
call fcn.1401cbb70
add ebp, esi
test ebx, ebx
jle 0x1401cc1b6
sub ebx, edi
test ebx, ebx
jg 0x1401cc1b6
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.1401e3740
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
jmp 0x1401cc235
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400be7c0
add rsp, 0x468
pop rbp
pop rbx
ret
Function at 0x1401cc350
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400be950
sub rsp, rax
mov r12, rcx
xor ebx, ebx
xor ecx, ecx
mov esi, ebx
mov ebp, r8d
mov r15, rdx
call fcn.1401fb660
mov r14, rax
test rax, rax
je 0x1401cc4ae
test r12, r12
jne 0x1401cc47a
lea rcx, str.OPENSSL_CONF
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
test rax, rax
je 0x1401cc3d7
mov r8d, 0x1e3
lea rdx, str.cryptoconfconf_mod.c
mov rcx, rax
call fcn.1401d5220
mov rsi, rax
test rax, rax
je 0x1401cc4b3
jmp 0x1401cc47d
call fcn.140208bd0
mov rcx, rax
mov eax, ebx
cmp byte [rcx], al
je 0x1401cc3f5
cmp eax, 0x80000000
jae 0x1401cc3f5
inc rcx
inc eax
cmp byte [rcx], bl
jne 0x1401cc3e5
btr eax, 0x1f
lea rdx, str.openssl.cnf
mov ecx, ebx
cmp ecx, 0x80000000
jae 0x1401cc413
inc rdx
inc ecx
cmp byte [rdx], bl
jne 0x1401cc402
btr ecx, 0x1f
lea rdx, str.cryptoconfconf_mod.c
add ecx, 2
mov r8d, 0x1eb
add eax, ecx
movsxd rdi, eax
mov rcx, rdi
call fcn.1401bebb0
mov rsi, rax
test rax, rax
jne 0x1401cc441
mov rsi, rbx
jmp 0x1401cc4b3
call fcn.140208bd0
mov rdx, rax
mov r8, rdi
mov rcx, rsi
call fcn.1401d5720
mov r8, rdi
lea rdx, [0x140295f54]
mov rcx, rsi
call fcn.1401d56a0
mov r8, rdi
lea rdx, str.openssl.cnf
mov rcx, rsi
call fcn.1401d56a0
jmp 0x1401cc47d
mov rsi, r12
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call fcn.1401fb610
test eax, eax
jg 0x1401cc4f1
test bpl, 0x10
je 0x1401cc4ae
call fcn.1401cf160
and eax, 0xfff
cmp eax, 0x72
jne 0x1401cc4ae
call fcn.1401ce5d0
mov ebx, 1
test r12, r12
jne 0x1401cc4c8
mov r8d, Ordinal_143
lea rdx, str.cryptoconfconf_mod.c
mov rcx, rsi
call fcn.1401bec00
mov rcx, r14
call fcn.1401fb3a0
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
test r15, r15
je 0x1401cc50e
mov r8, r15
xor edx, edx
mov rcx, r14
call fcn.1401fb560
test rax, rax
jne 0x1401cc524
test bpl, 0x20
je 0x1401cc4a4
lea r8, str.openssl_conf
xor edx, edx
mov rcx, r14
call fcn.1401fb560
test rax, rax
je 0x1401cc4a4
mov rdx, rax
mov rcx, r14
call fcn.1401fb4f0
mov rdi, rax
test rax, rax
je 0x1401cc4ae
mov rcx, rax
call fcn.1401be980
test eax, eax
jle 0x1401cc4a9
nop dword [rax + rax]
mov edx, ebx
mov rcx, rdi
call fcn.1401beb80
mov r9d, ebp
mov rcx, r14
mov r8, qword [rax + 0x10]
mov rdx, qword [rax + 8]
call fcn.1401cc8c0
test eax, eax
jg 0x1401cc577
test bpl, 1
je 0x1401cc58a
mov rcx, rdi
inc ebx
call fcn.1401be980
cmp ebx, eax
jl 0x1401cc550
jmp 0x1401cc4a9
mov ebx, eax
jmp 0x1401cc4ae
Function at 0x1401d4590
Capabilities:
Get thread local storage value

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

Function at 0x1401d4710
Capabilities:
Set thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.1400be950
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 0x1401d57d0
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 0x1401d5807
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 0x1401d57f0
movzx eax, r9b
ret
Function at 0x1401f9fc0
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.1400be950
sub rsp, rax
xor edi, edi
mov ebx, r9d
mov esi, r8d
mov rbp, rdx
mov r14, rcx
cmp r9d, 0x17
ja 0x1401fa0a1
mov eax, 0x800005
bt eax, ebx
jae 0x1401fa0a1
call fcn.1401ff2e0
cmp eax, 1
jne 0x1401fa0c1
mov eax, dword [rsp + 0x90]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x38], eax
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
cmp esi, 1
jne 0x1401fa041
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 0x1401fa098
mov edx, 0x87
mov dword [rsp + 0x20], 0x2b5
lea r9, str.crypto_bio_b_addr.c
lea ecx, [rdx - 0x67]
lea r8d, [rcx - 0x1e]
call fcn.1401cf2c0
mov ecx, ebx
call fcn.1401fa590
mov rdx, rax
mov ecx, 1
call fcn.1401ce450
mov eax, edi
jmp 0x1401fa0c3
mov edi, 1
mov eax, edi
jmp 0x1401fa0c3
mov edx, 0x87
mov dword [rsp + 0x20], 0x289
lea r9, str.crypto_bio_b_addr.c
lea ecx, [rdx - 0x67]
lea r8d, [rdx - 4]
call fcn.1401cf2c0
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 0x140209b60
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, Ordinal_60
call fcn.1400be950
sub rsp, rax
mov r10, r8
mov r11, rcx
test r9, r9
jne 0x140209b9f
mov edx, 0xe2
mov dword [rsp + 0x20], 0x9a
lea r9, str.crypto_asn1_a_int.c
lea ecx, [rax - 0x2b]
lea r8d, [rdx - 4]
call fcn.1401cf2c0
xor eax, eax
add rsp, 0x38
ret
movzx r8d, byte [r8]
and r8d, 0x80
test rdx, rdx
je 0x140209bb2
mov dword [rdx], r8d
cmp r9, 1
jne 0x140209bd4
test r11, r11
je 0x140209bca
movzx eax, byte [r10]
test r8d, r8d
je 0x140209bc8
neg al
mov byte [rcx], al
mov eax, 1
add rsp, 0x38
ret
movzx ecx, byte [r10]
mov qword [rsp + 0x40], rbx
xor ebx, ebx
mov eax, ebx
test cl, cl
jne 0x140209bf1
mov eax, 1
mov ebx, eax
jmp 0x140209c9f
cmp cl, 0xff
jne 0x140209cdd
mov eax, 1
lea rcx, [r9 - 1]
mov edx, ebx
cmp r9, rax
jbe 0x140209c8f
cmp rcx, 8
jb 0x140209c80
and ecx, 7
mov rdx, r9
sub rdx, rcx
xorps xmm2, xmm2
xorps xmm3, xmm3
movd xmm1, dword [rax + r10]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
por xmm2, xmm1
movd xmm1, dword [rax + r10 + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
por xmm1, xmm3
movdqa xmm3, xmm1
cmp rax, rdx
jb 0x140209c23
por xmm2, xmm1
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd edx, xmm2
cmp rax, r9
jae 0x140209c8f
nop
movzx ecx, byte [rax + r10]
inc rax
or edx, ecx
cmp rax, r9
jb 0x140209c80
test edx, edx
mov eax, ebx
setne al
test edx, edx
setne bl
test edx, edx
je 0x140209cdd
movzx ecx, byte [r10 + 1]
and ecx, 0x80
cmp r8d, ecx
jne 0x140209cdd
mov edx, 0xe2
mov dword [rsp + 0x20], 0xbb
lea r9, str.crypto_asn1_a_int.c
mov ecx, reloc.WS2_32.dll_listen
lea r8d, [rdx - 5]
call fcn.1401cf2c0
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x38
ret
mov ecx, eax
sub r9, rcx
test r11, r11
je 0x140209d31
neg r8d
mov qword [rsp + 0x30], rdi
lea r8, [rbx + r10]
sbb edi, edi
add r8, r9
movzx edi, dil
mov ecx, edi
and ecx, 1
test r9, r9
je 0x140209d2c
mov rdx, r8
sub rdx, rbx
sub rdx, r10
nop
movzx eax, byte [r8 - 1]
lea r8, [r8 - 1]
dec rdx
xor eax, edi
add ecx, eax
mov byte [rdx + r11], cl
shr ecx, 8
test rdx, rdx
jne 0x140209d10
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rax, r9
add rsp, 0x38
ret
Function at 0x14021cda0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400be950
sub rsp, rax
mov rbx, rcx
mov rsi, rdx
mov rcx, rdx
call fcn.1401e8df0
test eax, eax
je 0x14021cddf
xor edx, edx
mov rcx, rbx
call fcn.1401e9280
mov eax, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rbp
mov ebp, dword [rsi + 8]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], r14
mov r14, qword [rsi]
lea eax, [rbp - 1]
movsxd rdi, eax
xor eax, eax
mov rcx, qword [r14 + rdi*8]
cmp rcx, 1
sete al
sub ebp, eax
cmp rsi, rbx
je 0x14021ce27
mov edx, ebp
mov rcx, rbx
call fcn.1401e9760
test rax, rax
je 0x14021ce8d
mov eax, dword [rsi + 0x10]
mov dword [rbx + 0x10], eax
mov rcx, qword [r14 + rdi*8]
mov rax, qword [rbx]
mov rdx, rcx
xor rdx, 1
inc rdx
neg rdx
shl rdx, 0x3f
lea r8, [rax + rdi*8]
shr rcx, 1
je 0x14021ce47
mov qword [r8], rcx
test rdi, rdi
jle 0x14021ce7e
sub r14, rax
nop
mov rcx, qword [r14 + r8 - 8]
lea r8, [r8 - 8]
mov rax, rcx
dec rdi
shr rax, 1
or rax, rdx
mov rdx, rcx
xor rdx, 1
mov qword [r8], rax
inc rdx
neg rdx
shl rdx, 0x3f
test rdi, rdi
jg 0x14021ce50
mov dword [rbx + 8], ebp
test ebp, ebp
jne 0x14021ce88
mov dword [rbx + 0x10], ebp
mov eax, 1
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rsi
ret
Function at 0x140222db0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rdi
push r14
mov eax, 0x40
call fcn.1400be950
sub rsp, rax
cmp dword [rsp + 0x70], 2
mov rdi, r8
movsxd rbp, r9d
mov r14, rcx
je 0x140222e40
test rdx, rdx
je 0x140222e2c
mov r9, rdx
xor r8d, r8d
lea rdx, [rsp + 0x30]
xor ecx, ecx
call fcn.14020a3a0
cmp dword [rsp + 0x30], 0xffffffff
je 0x140222e2c
mov dword [rsp + 0x20], gethostbyname
mov ecx, reloc.WS2_32.dll_recv
lea r9, str.cryptoececx_meth.c
mov edx, 0x10a
lea r8d, [rcx + 0x56]
call fcn.1401cf2c0
xor eax, eax
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
test rdi, rdi
je 0x140222e36
cmp ebp, 0x20
je 0x140222e40
mov dword [rsp + 0x20], Ordinal_60
jmp 0x140222dff
mov r8d, Ordinal_60
mov qword [rsp + 0x50], rbx
lea rdx, str.cryptoececx_meth.c
lea ecx, [r8 - 0x12]
call fcn.1401bef30
mov rbx, rax
test rax, rax
jne 0x140222e8a
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.1401cf2c0
xor eax, eax
jmp 0x140222f76
cmp dword [rsp + 0x70], 0
jne 0x140222ea4
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140222f61
mov r8d, 0x43
lea rdx, str.cryptoececx_meth.c
lea ecx, [r8 - 0x23]
call fcn.14021c6a0
mov qword [rbx + 0x20], rax
test rax, rax
jne 0x140222eeb
lea r9, str.cryptoececx_meth.c
mov dword [rsp + 0x20], 0x45
mov edx, 0x10a
lea ecx, [rax + 0x10]
lea r8d, [rax + 0x41]
call fcn.1401cf2c0
mov r8d, 0x46
jmp 0x140222f1f
cmp dword [rsp + 0x70], 2
jne 0x140222f47
mov edx, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rax
call fcn.1401cbbc0
mov rcx, qword [rbx + 0x20]
test eax, eax
jg 0x140222f32
mov r8d, Ordinal_79
lea rdx, str.cryptoececx_meth.c
call fcn.14021c680
mov r8d, Ordinal_79
lea rdx, str.cryptoececx_meth.c
mov rcx, rbx
call fcn.1401bec00
xor eax, eax
jmp 0x140222f76
and byte [rcx], 0xf8
mov rax, qword [rbx + 0x20]
and byte [rax + 0x1f], 0x7f
mov rax, qword [rbx + 0x20]
or byte [rax + 0x1f], 0x40
jmp 0x140222f55
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.14025d220
mov r8, rbx
mov edx, 0x40a
mov rcx, r14
call fcn.1401c5ae0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret