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

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x140
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1402de400]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
lea rax, vtable.TArray_class_TInI::TInISection____ptr64__10__class_TDefaultAllocator_.0
mov qword [rcx], rax
xor esi, esi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], rsi
mov dword [rcx + 0x20], esi
mov qword [rcx + 0x28], rsi
mov dword [rcx + 0x30], esi
mov dword [rcx + 0x34], esi
mov dword [rcx + 0x38], esi
mov dword [rcx + 0x40], edx
mov dword [rcx + 0x44], esi
lea rax, vtable.TArray_class_TPinger::PING_ITEM____ptr64__10__class_TDefaultAllocator_.0
mov qword [rcx + 0x48], rax
mov qword [rcx + 0x50], rsi
mov qword [rcx + 0x58], rsi
mov qword [rcx + 0x60], rsi
add rcx, 0x68
mov edx, 0x7d0
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
nop
lea rcx, [rbx + 0x90]
call fcn.140008680
nop
mov qword [rbx + 0x4a8], 0xffffffffffffffff
lea rcx, str.GOTOHTTP_PROXY
call fcn.1401e76b8
test rax, rax
jne 0x140008fa8
mov r8d, 0x100
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov r11d, eax
dec r11
js 0x140008fa3
cmp byte [rsp + r11 + 0x30], 0x5c
je 0x140008f53
sub r11, 1
jns 0x140008f43
jmp 0x140008fa3
mov byte [rsp + r11 + 0x30], 0
mov r8d, esi
lea rax, str.proxy.ini
inc rax
inc r8d
cmp byte [rax], 0
jne 0x140008f63
lea eax, [r8 + 1]
movsxd rcx, eax
add rcx, r11
cmp rcx, 0x100
ja 0x140008fa3
mov byte [rsp + r11 + 0x30], 0x5c
movsxd r8, r8d
test r8, r8
js 0x140008fa3
lea rcx, [rsp + r11 + 0x31]
inc r8
lea rdx, str.proxy.ini
call fcn.1401e3ed0
lea rax, [rsp + 0x30]
lea rdx, [0x14029d054]
mov rcx, rax
call fcn.1401e696c
mov rdi, rax
test rax, rax
jne 0x140008fc8
mov dword [rbx + 0x38], 0xffffffff
jmp 0x140008fdb
mov rdx, rax
mov rcx, rbx
call fcn.140002e00
mov rcx, rdi
call fcn.1401e67bc
xor r8d, r8d
lea rdx, str.proxy
mov rcx, rbx
call fcn.140002b70
mov rdi, rax
test rax, rax
je 0x140009023
lea rdx, str.type
mov rcx, rax
call fcn.140001ef0
test eax, eax
js 0x140009023
movsxd rcx, eax
add rcx, rcx
mov rax, qword [rdi + 8]
mov rcx, qword [rax + rcx*8 + 8]
test rcx, rcx
je 0x140009023
call fcn.1400099b0
mov esi, eax
mov dword [rbx + 0x44], esi
test esi, esi
je 0x1400090b0
xor r8d, r8d
lea rdx, str.proxy
mov rcx, rbx
call fcn.140002b70
mov rdi, rax
test rax, rax
je 0x1400090b0
lea rdx, str.passc
mov rcx, rax
call fcn.140001ef0
test eax, eax
js 0x1400090b0
movsxd rcx, eax
add rcx, rcx
mov rax, qword [rdi + 8]
mov rcx, qword [rax + rcx*8 + 8]
test rcx, rcx
je 0x1400090b0
xor r9d, r9d
mov r8d, 0x100
lea rdx, [rsp + 0x30]
call fcn.140003ba0
test rax, rax
je 0x1400090b0
lea rdx, str.proxy
mov rcx, rbx
call fcn.140002ce0
test rax, rax
je 0x1400090b0
lea r8, [rsp + 0x30]
lea rdx, str.pass
mov rcx, rax
call fcn.1400021e0
nop
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1401e42a0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400097a0
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov ebx, r8d
mov rbp, rdx
mov rdi, rcx
mov ecx, 0x50
call fcn.1401e37b4
mov qword [rsp + 0x68], rax
xor esi, esi
test rax, rax
je 0x1400097f3
mov r9, rdi
mov r8d, ebx
mov rdx, rbp
mov rcx, rax
call fcn.140008a70
mov rbx, rax
jmp 0x1400097f6
mov rbx, rsi
test rbx, rbx
je 0x1400098c9
cmp qword [rbx + 8], 0
jne 0x1400098b7
lea rax, [rbx + 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x10000
mov r9, qword [rbx + 0x18]
lea r8, section..text
mov edx, 0xa004
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
je 0x140009847
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
cmp qword [rbx + 8], 0
setne sil
test esi, esi
je 0x1400098b7
mov esi, 0xa
mov r8, qword [rdi + 0x60]
lea rdx, [r8 + 1]
mov rcx, qword [rdi + 0x58]
cmp rdx, rcx
jbe 0x1400098a0
lea rax, [rcx + 0xa]
cmp rdx, rax
jbe 0x14000987c
mov rsi, r8
sub rsi, rcx
inc rsi
lea rdx, [rcx + rsi]
shl rdx, 3
mov rcx, qword [rdi + 0x50]
call fcn.1401e4a98
test rax, rax
je 0x14000989c
mov qword [rdi + 0x50], rax
add qword [rdi + 0x58], rsi
jmp 0x1400098a0
xor al, al
jmp 0x1400098b2
mov rcx, qword [rdi + 0x60]
mov rax, qword [rdi + 0x50]
mov qword [rax + rcx*8], rbx
inc qword [rdi + 0x60]
mov al, 1
movzx eax, al
jmp 0x1400098cb
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
jmp 0x1400098cb
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14000b0f0
Capabilities:
Enumerate files on windows

Disassembly:
push rbx
push rbp
sub rsp, 0x288
mov rax, qword [0x1402de400]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9, rcx
mov rbx, rdx
lea r8, str._s.
lea rcx, [rsp + 0x160]
mov edx, 0x104
call fcn.1401e5f98
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14000b1ed
mov qword [rsp + 0x2b0], rsi
mov qword [rsp + 0x280], rdi
nop dword [rax + rax]
test byte [rsp + 0x20], 0x10
je 0x14000b1aa
lea rsi, [rsp + 0x4c]
lea rdi, [0x14029dba0]
mov ecx, 2
repe cmpsb byte [rsi], byte [rdi]
je 0x14000b1be
lea rsi, [rsp + 0x4c]
lea rdi, [0x14029dba4]
mov ecx, 3
repe cmpsb byte [rsi], byte [rdi]
je 0x14000b1be
mov rax, qword [rbx]
lea rdx, [rsp + 0x4c]
mov r8d, 1
mov rcx, rbx
call qword [rax]
test eax, eax
jne 0x14000b1d0
jmp 0x14000b1be
mov rax, qword [rbx]
lea rdx, [rsp + 0x4c]
xor r8d, r8d
mov rcx, rbx
call qword [rax]
test eax, eax
jne 0x14000b1d0
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14000b160
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdi, qword [rsp + 0x280]
mov rsi, qword [rsp + 0x2b0]
xor eax, eax
jmp 0x14000b1f0
or eax, 0xffffffff
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401e42a0
add rsp, 0x288
pop rbp
pop rbx
ret
Function at 0x14000c2d0
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x80
mov rdi, rdx
xor edx, edx
mov rbx, r8
mov rsi, rcx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x5c]
call fcn.1401e42d0
mov dword [rsp + 0x20], 0x67452301
mov dword [rsp + 0x24], 0xefcdab89
mov dword [rsp + 0x28], 0x98badcfe
mov dword [rsp + 0x2c], 0x10325476
test rdi, rdi
je 0x14000c330
lea rcx, [rsp + 0x20]
mov r8, rdi
mov rdx, rsi
call fcn.14000b670
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000b790
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14000c460
Capabilities:
Encrypt data using curve25519
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ecx, 0x80
call fcn.1401e3610
xor edx, edx
mov r8d, 0x80
mov rcx, rax
mov rsi, rax
call fcn.1401e42d0
mov rcx, qword [0x1402e4c20]
xor ebp, ebp
mov qword [rsi + 0x18], rcx
mov ecx, 0x160
mov dword [rsi + 4], ebp
call fcn.1401e3610
lea r8d, [rbp + 0x70]
xor edx, edx
lea rcx, [rax + 8]
mov rdi, rax
mov qword [rsi + 0x10], rax
mov qword [rax], rbp
call fcn.1401e42d0
lea edx, [rbp + 0x20]
lea rcx, [rdi + 0x11c]
mov dword [rdi + 8], 0x6a09e667
mov dword [rdi + 0xc], 0xbb67ae85
mov dword [rdi + 0x10], 0x3c6ef372
mov dword [rdi + 0x14], 0xa54ff53a
mov dword [rdi + 0x18], 0x510e527f
mov dword [rdi + 0x1c], 0x9b05688c
mov dword [rdi + 0x20], 0x1f83d9ab
mov dword [rdi + 0x24], 0x5be0cd19
mov dword [rdi + 0x74], 0x20
mov qword [rsi + 0x20], rbp
mov qword [rsi + 0x28], rbp
call fcn.14000def0
and byte [rdi + 0x13b], 0x3f
and byte [rdi + 0x11c], 0xf8
or byte [rdi + 0x13b], 0x40
lea rcx, [rdi + 0xfc]
lea rdx, [rdi + 0x11c]
mov dword [rdi + 0xf8], 0x1d
call fcn.140014eb0
mov rbx, qword [rsp + 0x30]
mov dword [rsi + 8], ebp
mov qword [rsi + 0x60], rbp
mov qword [rsi + 0x68], rbp
mov qword [rsi + 0x70], rbp
mov rbp, qword [rsp + 0x38]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14000c610
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov r9, qword [rcx + 0x68]
mov rbx, rcx
movsxd rcx, dword [rcx]
movsxd rax, dword [r9 + 0xc]
mov r8d, dword [r9 + 8]
mov rdx, rax
sub r8d, eax
add rdx, qword [r9]
xor r9d, r9d
call sub.WS2_32.dll_send
mov r11d, eax
test eax, eax
je 0x14000c64e
jns 0x14000c65e
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x14000c67d
mov dword [rbx + 4], 5
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov rax, qword [rbx + 0x68]
add dword [rax + 0xc], r11d
mov rcx, qword [rbx + 0x68]
mov eax, dword [rcx + 8]
cmp dword [rcx + 0xc], eax
jne 0x14000c67d
mov eax, 1
add rsp, 0x20
pop rbx
ret
xor eax, eax
mov dword [rbx + 4], 3
add rsp, 0x20
pop rbx
ret
Function at 0x14000c690
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x60], 0
mov rbx, rcx
jne 0x14000c6cb
mov ecx, 0x818
call fcn.1401e3610
xor ecx, ecx
lea rdx, [rax + 0x18]
mov dword [rax + 0x10], 0x800
mov dword [rax + 8], 0x800
mov dword [rax + 0xc], ecx
mov dword [rax + 0x14], ecx
mov qword [rax], rdx
mov qword [rbx + 0x60], rax
mov rcx, qword [rbx + 0x60]
cmp dword [rcx + 0x14], 0
jne 0x14000c78d
movsxd rax, dword [rcx + 0xc]
mov r8d, 5
xor r9d, r9d
mov rdx, rax
sub r8d, eax
add rdx, qword [rcx]
movsxd rcx, dword [rbx]
call sub.WS2_32.dll_recv
mov r11d, eax
test eax, eax
jne 0x14000c70e
mov dword [rbx + 4], 5
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
test eax, eax
jns 0x14000c72d
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x14000c6fe
mov dword [rbx + 4], 2
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rax, qword [rbx + 0x60]
add dword [rax + 0xc], r11d
mov rcx, qword [rbx + 0x60]
cmp dword [rcx + 0xc], 5
jl 0x14000c71e
mov rax, qword [rcx]
mov qword [rsp + 0x30], rdi
movzx edx, byte [rax + 3]
movzx eax, byte [rax + 4]
mov dword [rcx + 0x14], 1
shl edx, 8
or edx, eax
lea edi, [rdx + 5]
cmp dword [rcx + 0x10], edi
jl 0x14000c768
mov dword [rcx + 8], edi
jmp 0x14000c784
movsxd rdx, edx
add rdx, 0x1d
call fcn.1401e4a98
mov rcx, rax
add rax, 0x18
mov qword [rcx], rax
mov dword [rcx + 0x10], edi
mov dword [rcx + 8], edi
mov rdi, qword [rsp + 0x30]
mov qword [rbx + 0x60], rcx
mov rcx, qword [rbx + 0x60]
mov r8d, dword [rcx + 8]
cmp dword [rcx + 0xc], r8d
jge 0x14000c7de
movsxd rax, dword [rcx + 0xc]
xor r9d, r9d
mov rdx, rax
sub r8d, eax
add rdx, qword [rcx]
movsxd rcx, dword [rbx]
call sub.WS2_32.dll_recv
mov r11d, eax
test eax, eax
je 0x14000c6fe
test eax, eax
js 0x14000c712
mov rax, qword [rbx + 0x60]
add dword [rax + 0xc], r11d
mov rcx, qword [rbx + 0x60]
mov eax, dword [rcx + 8]
cmp dword [rcx + 0xc], eax
jl 0x14000c71e
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x14000cc20
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
cmp dword [rcx + 8], 5
mov esi, r8d
mov r13, rdx
mov rbx, rcx
mov ebp, r8d
jne 0x14000cd3e
cmp qword [rcx + 0x68], 0
je 0x14000cc7c
call fcn.14000c610
test eax, eax
jle 0x14000cd40
mov rcx, qword [rbx + 0x68]
call fcn.1401e36c8
xor edi, edi
sub esi, dword [rbx + 0x78]
mov qword [rbx + 0x68], rdi
jmp 0x14000cc81
xor edi, edi
mov dword [rcx + 0x78], edi
mov dword [rbx + 4], edi
test esi, esi
jle 0x14000cd3e
mov r14d, 0x4000
movsxd rdx, dword [rbx + 0x78]
mov r12d, esi
cmp esi, r14d
cmovg r12d, r14d
mov r9d, reloc.WS2_32.dll_socket
mov rcx, rbx
movsxd r8, r12d
add rdx, r13
call fcn.14000ce80
mov r11, rax
mov qword [rbx + 0x68], rax
test rax, rax
je 0x14000cd34
add dword [rbx + 0x78], r12d
movsxd rax, dword [rax + 0xc]
mov r8d, dword [r11 + 8]
movsxd rcx, dword [rbx]
mov rdx, rax
sub r8d, eax
add rdx, qword [r11]
xor r9d, r9d
sub esi, r12d
call sub.WS2_32.dll_send
mov r11d, eax
test eax, eax
je 0x14000cd26
js 0x14000cd0f
mov rax, qword [rbx + 0x68]
add dword [rax + 0xc], r11d
mov rcx, qword [rbx + 0x68]
mov eax, dword [rcx + 8]
cmp dword [rcx + 0xc], eax
jne 0x14000cd1b
call fcn.1401e36c8
mov qword [rbx + 0x68], rdi
test esi, esi
jg 0x14000cc92
jmp 0x14000cd3e
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x14000cd26
mov dword [rbx + 4], 3
mov eax, edi
jmp 0x14000cd40
or edi, 0xffffffff
mov dword [rbx + 4], 5
mov eax, edi
jmp 0x14000cd40
mov dword [rbx + 4], 5
or ebp, 0xffffffff
mov eax, ebp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x14000def0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0xa0
mov rax, qword [0x1402de400]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov ebx, dword [0x1402e4b1c]
mov rsi, rdx
mov rdi, rcx
test ebx, ebx
jne 0x14000df37
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov dword [0x1402e4b1c], eax
jmp 0x14000df3f
inc ebx
mov dword [0x1402e4b1c], ebx
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x60]
call fcn.1401e42d0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x20], 0x67452301
lea ecx, [rax + 0x20]
mov dword [rsp + 0x24], 0xefcdab89
mov dword [rsp + 0x28], 0x98badcfe
mov dword [rsp + 0x2c], 0x10325476
mov dword [rsp + 0x30], 0xc3d2e1f0
mov ebp, 4
lea r12, [0x1402e4b1c]
cmp ecx, eax
jae 0x14000df92
inc dword [rsp + 0x38]
mov dword [rsp + 0x34], ecx
mov ecx, dword [rsp + 0x7c]
test rcx, rcx
je 0x14000e001
lea rax, [rcx + 4]
cmp rax, 0x40
jae 0x14000dfb6
mov dword [rsp + rcx + 0x3c], ebx
add dword [rsp + 0x7c], ebp
jmp 0x14000e040
mov ebx, 0x40
mov rdx, r12
sub rbx, rcx
lea rcx, [rsp + rcx + 0x3c]
mov r8, rbx
call fcn.1401e3ed0
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x20]
mov r8d, 1
call fcn.140149440
xor edx, edx
lea rcx, [rsp + 0x3c]
lea r8d, [rdx + 0x40]
add r12, rbx
sub rbp, rbx
mov dword [rsp + 0x7c], 0
call fcn.1401e42d0
mov rbx, rbp
shr rbx, 6
test rbx, rbx
je 0x14000e027
lea rcx, [rsp + 0x20]
mov r8, rbx
mov rdx, r12
call fcn.140149440
shl rbx, 6
add r12, rbx
sub rbp, rbx
test rbp, rbp
je 0x14000e040
lea rcx, [rsp + 0x3c]
mov r8, rbp
mov rdx, r12
mov dword [rsp + 0x7c], ebp
call fcn.1401e3ed0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x80]
call fcn.1400114d0
test rsi, rsi
je 0x14000e099
cmp rsi, 0x14
jbe 0x14000e086
lea rcx, [rsp + 0x80]
add rdi, 0x14
sub rsi, 0x14
mov rax, qword [rcx]
mov qword [rdi - 0x14], rax
mov rax, qword [rcx + 8]
mov qword [rdi - 0xc], rax
mov eax, dword [rcx + 0x10]
mov dword [rdi - 4], eax
jne 0x14000e057
jmp 0x14000e099
lea rdx, [rsp + 0x80]
mov r8, rsi
mov rcx, rdi
call fcn.1401e3ed0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1401e42a0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x14000e190
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x38
mov rsi, qword [rcx + 0x70]
mov rdi, r9
mov rbp, r8
movsxd rcx, dword [rsi + 0x70]
mov rbx, rdx
test ecx, ecx
je 0x14000e1f8
mov rdx, rcx
test r9, r9
je 0x14000e1d7
cmp ecx, 0x40
jae 0x14000e1d7
movzx eax, byte [rdx + rsi + 0x30]
inc rbx
inc ecx
xor al, byte [rbp]
inc rdx
inc rbp
sub rdi, 1
mov byte [rbx - 1], al
jne 0x14000e1b6
mov dword [rsi + 0x70], ecx
test rdi, rdi
je 0x14000e317
cmp ecx, 0x40
jne 0x14000e1f8
add dword [rsi + 0x20], 1
mov dword [rsi + 0x70], 0
jne 0x14000e1f8
inc dword [rsi + 0x24]
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r14
mov r14d, dword [rsi + 0x20]
mov qword [rsp + 0x30], r15
mov r15d, edi
lea rax, [rsi + 0x20]
and r15d, 0x3f
mov r13d, r15d
mov dword [rsp + 0x60], r15d
sub rdi, r13
cmp rdi, 0x40
jb 0x14000e2a5
mov qword [rsp + 0x68], r12
mov r15d, 0x10000000
lea r13, [rsi + 0x20]
nop word [rax + rax]
mov r12, rdi
shr r12, 6
cmp r12, r15
cmova r12, r15
add r14d, r12d
mov eax, r14d
cmp rax, r12
jae 0x14000e25f
sub r12, rax
xor r14d, r14d
shl r12, 6
mov r9, rsi
mov rdx, rbp
mov rcx, rbx
mov r8, r12
mov qword [rsp + 0x20], r13
call fcn.140138200
sub rdi, r12
add rbp, r12
add rbx, r12
mov dword [r13], r14d
test r14d, r14d
jne 0x14000e28e
inc dword [rsi + 0x24]
cmp rdi, 0x40
jae 0x14000e240
mov r15d, dword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
lea rax, [rsi + 0x20]
mov r13, r15
mov r14, qword [rsp + 0x78]
test r15d, r15d
je 0x14000e30d
xor ecx, ecx
lea rdi, [rsi + 0x30]
mov r9, rsi
mov qword [rdi], rcx
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rcx
mov qword [rdi + 0x18], rcx
mov qword [rdi + 0x20], rcx
mov qword [rdi + 0x28], rcx
mov qword [rdi + 0x30], rcx
lea r8d, [rcx + 0x40]
mov qword [rdi + 0x38], rcx
mov rcx, rdi
mov rdx, rdi
mov qword [rsp + 0x20], rax
call fcn.140138200
test r15d, r15d
je 0x14000e309
sub rbp, rbx
movzx eax, byte [rbx + rbp]
inc rbx
inc rdi
xor al, byte [rdi - 1]
sub r13, 1
mov byte [rbx - 1], al
jne 0x14000e2f3
mov dword [rsi + 0x70], r15d
mov r15, qword [rsp + 0x30]
mov r13, qword [rsp + 0x70]
mov eax, 1
add rsp, 0x38
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140010b20
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x90
mov rbx, rdx
xor edx, edx
mov rsi, r8
mov rdi, rcx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x70]
call fcn.1401e42d0
lea rcx, [rsp + 0x20]
mov r8, rbx
mov rdx, rdi
mov dword [rsp + 0x20], 0x6a09e667
mov dword [rsp + 0x24], 0xbb67ae85
mov dword [rsp + 0x28], 0x3c6ef372
mov dword [rsp + 0x2c], 0xa54ff53a
mov dword [rsp + 0x30], 0x510e527f
mov dword [rsp + 0x34], 0x9b05688c
mov dword [rsp + 0x38], 0x1f83d9ab
mov dword [rsp + 0x3c], 0x5be0cd19
mov dword [rsp + 0x8c], 0x20
call fcn.140010be0
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140010d10
lea rcx, [rsp + 0x20]
mov edx, reloc.WS2_32.dll_WSASetLastError
call fcn.140137cc0
lea r11, [rsp + 0x90]
mov rax, rsi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140011030
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x150
mov rax, qword [0x1402de400]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov ebp, dword [rcx + 0xf8]
xor esi, esi
movsxd rdi, r8d
mov r12, rdx
mov rbx, rcx
mov dword [rcx + 0xfc], 0x40
test r9d, r9d
jne 0x14001109f
lea rax, [0x140010ac0]
mov dword [rcx + 0xf8], 0x20
mov qword [rcx + 0xe0], rax
lea rax, [fcn.140010be0]
mov qword [rcx + 0xe8], rax
lea rax, [fcn.140010d10]
jmp 0x1400110cc
lea rax, [0x140011650]
mov dword [rcx + 0xf8], reloc.WS2_32.dll_sendto
mov qword [rcx + 0xe0], rax
lea rax, [fcn.1400113a0]
mov qword [rcx + 0xe8], rax
lea rax, [fcn.1400114d0]
mov qword [rcx + 0xf0], rax
test rdx, rdx
je 0x1400111f7
cmp edi, 0x40
jle 0x140011117
call qword [rbx + 0xe0]
test eax, eax
je 0x140011110
mov r8, rdi
mov rdx, r12
mov rcx, rbx
call qword [rbx + 0xe8]
test eax, eax
je 0x140011110
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [rbx + 0xf0]
test eax, eax
jne 0x14001112e
xor eax, eax
jmp 0x1400111fe
cmp edi, 0x90
ja 0x140011110
lea rcx, [rsp + 0x20]
mov r8, rdi
call fcn.1401e3ed0
mov ebp, edi
cmp ebp, 0x90
je 0x14001114d
mov eax, ebp
mov r8d, 0x90
xor edx, edx
lea rcx, [rsp + rax + 0x20]
sub r8d, ebp
call fcn.1401e42d0
mov rcx, rsi
movzx eax, byte [rsp + rcx + 0x20]
add rcx, 2
xor al, 0x36
mov byte [rsp + rcx + 0xae], al
movzx eax, byte [rsp + rcx + 0x1f]
xor al, 0x36
cmp rcx, 0x90
mov byte [rsp + rcx + 0xaf], al
jl 0x140011150
mov rcx, rbx
call qword [rbx + 0xe0]
test eax, eax
je 0x1400111fc
lea rdx, [rsp + 0xb0]
mov r8d, 0x40
mov rcx, rbx
call qword [rbx + 0xe8]
test eax, eax
je 0x1400111fc
mov rcx, rsi
movzx eax, byte [rsp + rcx + 0x20]
add rcx, 2
xor al, 0x5c
mov byte [rsp + rcx + 0xae], al
movzx eax, byte [rsp + rcx + 0x1f]
xor al, 0x5c
cmp rcx, 0x90
mov byte [rsp + rcx + 0xaf], al
jl 0x1400111a4
lea rcx, [rbx + 0x70]
call qword [rbx + 0xe0]
test eax, eax
je 0x1400111fc
lea rdx, [rsp + 0xb0]
lea rcx, [rbx + 0x70]
mov r8d, 0x40
call qword [rbx + 0xe8]
test eax, eax
je 0x1400111fc
mov esi, 1
mov eax, esi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401e42a0
add rsp, 0x150
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140014eb0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x1402de400]
xor rax, rsp
mov qword [rsp + 0x168], rax
mov rax, qword [rdx]
mov qword [rsp + 0x70], rcx
lea rcx, [r11 - 0x60]
mov qword [rcx], rax
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
mov rax, qword [rdx + 0x18]
lea rdx, [r11 - 0x60]
mov qword [rcx + 0x18], rax
mov rax, qword [r11 - 0x48]
and byte [r11 - 0x60], 0xf8
shr rax, 0x38
lea rcx, [r11 - 0x128]
and al, 0x3f
or al, 0x40
mov byte [r11 - 0x41], al
call fcn.140013e40
mov ecx, dword [rsp + 0xd0]
mov r14d, dword [rsp + 0xb0]
mov r12d, dword [rsp + 0xb4]
mov eax, dword [rsp + 0xa8]
mov r15d, dword [rsp + 0xe0]
mov esi, dword [rsp + 0xb8]
mov r13d, dword [rsp + 0xe4]
mov ebx, dword [rsp + 0xbc]
mov ebp, dword [rsp + 0xe8]
mov r10d, dword [rsp + 0xc0]
mov edi, dword [rsp + 0xec]
mov r11d, dword [rsp + 0xf0]
mov r8d, dword [rsp + 0xc8]
mov r9d, dword [rsp + 0xf4]
mov edx, dword [rsp + 0xcc]
add eax, ecx
mov ecx, dword [rsp + 0xd4]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0xac]
add eax, ecx
mov ecx, dword [rsp + 0xc4]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0xd8]
add eax, r14d
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xdc]
add eax, r12d
mov dword [rsp + 0x2c], eax
lea eax, [r15 + rsi]
sub r15d, esi
mov dword [rsp + 0x30], eax
lea eax, [r13 + rbx]
sub r13d, ebx
mov dword [rsp + 0x34], eax
lea eax, [rbp + r10]
sub ebp, r10d
mov dword [rsp + 0x38], eax
lea eax, [rdi + rcx]
sub edi, ecx
mov dword [rsp + 0x3c], eax
lea eax, [r11 + r8]
mov dword [rsp + 0x58], r15d
mov dword [rsp + 0x40], eax
lea eax, [r9 + rdx]
mov dword [rsp + 0x5c], r13d
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x60], ebp
sub eax, dword [rsp + 0xa8]
mov dword [rsp + 0x64], edi
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0xd4]
sub eax, dword [rsp + 0xac]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0xd8]
sub eax, r14d
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0xdc]
sub eax, r12d
sub r11d, r8d
mov dword [rsp + 0x68], r11d
mov dword [rsp + 0x54], eax
sub r9d, edx
lea rcx, [rsp + 0x120]
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x6c], r9d
call fcn.140012b20
lea r8, [rsp + 0x120]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.140011c20
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x20]
call fcn.140011980
lea rcx, [rsp + 0x148]
mov edx, 0x20
call fcn.140137cc0
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.1401e42a0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret