joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014dfd6
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov eax, edx
lea r9, [rsp + 0x34]
lea ecx, [rsp + 0x34]
xor al, 0x45
mov dword [rcx], eax
add edi, eax
mov dword [rsp + 0x20], 4
and byte [rax + rax], al
add byte [rax], al
add byte [rdx + 0xffff], bh
inc dword [rax]
add byte [rcx - 0x77], al
mov r8d, eax
mov eax, eax
call sub.ws2_32.dll_setsockopt
or dx, word [rsi]
add byte [rbx + 0x474fff8], al
cmp eax, 0xffffffff
je 0x14014e002
xor eax, eax
jmp case.0x140080628.1740
call fcn.140095694
nop
add rsp, 0x38
ret

Function at 0x140150140
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
sub esp, 0xa8
mov rdi, rdx
mov edi, edx
mov rsi, rcx
movups xmm0, xmmword [0x1403b26b8]
add eax, 0x262562
movaps xmmword [rsp + 0x60], xmm0
and al, 0x60
invalid
mov eax, 0xffffffff
invalid
invalid
dec dword [rcx + 0x39]
ror dword [rcx + 0xf], 0x42
ror dword [rdi], 0x57
ror byte [rdi], 0x11
and al, 0x38
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
and al, 0x20
mov rcx, rdx
xor edx, edx
rol byte [rbp + 0x31], cl
rol byte [rbp + 0x31], 0xc9
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
add eax, dword [rcx]
add byte [rax], al
jne 0x1401501b3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
and al, 0x60
cmp eax, 0x103
je 0x1401501ea
test eax, eax
js 0x1401501c4
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x1401501dd
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
add dword [rax], eax
add byte [rax], al
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, [0x1403b2720]
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call case.0x140103edf.1096
lea rcx, [rsp + 0x58]
lea ecx, [rsp + 0x58]
mov rdx, rsi
call fcn.14014e7a0
mov rcx, rax
invalid
call fcn.14014e8b0
mov ecx, 7
invalid
add byte [rax], al
add ch, cl
sub dword [rdi], ecx
invalid

Function at 0x140151740
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
add byte [rax], al
lea rbp, [rsp + 0x80]
add byte [rax], 0
add byte [rax - 0x39], cl
test eax, esi
add eax, dword [rax]
add dh, bh
invalid
invalid
invalid
dec dword [rax - 0x77]
mov qword [rbp + 0x3e0], rcx
mov dword [rbp + 0x3e0], ecx
mov qword [rbp + 0x3c8], 2
add byte [rax], al
add al, byte [rax]
add byte [rax], al
invalid
jmp 0x1401517bf

Function at 0x140156d20
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
test al, 0
add byte [rax], al
add byte [rax - 0x77], cl
mov rdi, rdx
mov rsi, rcx
mov esi, ecx
movups xmm0, xmmword [0x1403b26b8]
mov ecx, 0x290f0025
and eax, 0x44290f00
and al, 0x60
invalid
mov eax, 0xffffffff
cmp r9, rax
cmp ecx, eax
ror dword [rcx + 0xf], 0x42
ror dword [rdi], 0x57
push rdi
ror byte [rdi], 0x11
and al, 0x38
Function at 0x14015b240
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1e0
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x140430108]
cmp rax, 3
jne 0x14015b409
cmp rbx, 0x17f
ja 0x14015b41b
lea r15, [rsp + 0x60]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.1402afaf0
mov byte [rsp + rbx + 0x60], 0
lea rax, [rbx + 1]
cmp rbx, 0xe
ja 0x14015b2b8
xor edx, edx
nop
cmp byte [rsp + rdx + 0x60], 0
je 0x14015b374
inc rdx
cmp rax, rdx
jne 0x14015b2a0
jmp 0x14015b3d0
lea rcx, [rsp + 0x67]
and rcx, 0xfffffffffffffff8
sub rcx, r15
je 0x14015b2ee
je 0x14015b2ee
xor edx, edx
nop word [rax + rax]
cmp byte [rsp + rdx + 0x60], 0
je 0x14015b374
inc rdx
cmp rcx, rdx
jne 0x14015b2d0
lea rdx, [rbx - 0xf]
cmp rcx, rdx
sal dword [rsi + 8], 1
lea rdx, [rbx - 0xf]
call fcn.1402dfaa0
cmp rbx, 0x17f
jbe 0x14015b27a
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
add rsp, 0x1e0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp 0x1402dfb00
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.140043e40
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1402dfb5a
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
cmp qword [rsp + 0x38], 0
je 0x1402dfbe4
mov edx, 1
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.1400224f0
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1402dfbb9
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x1402dfbcc
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bx
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
je 0x1402dfbe4
mov edx, 1
mov rcx, rdi
call fcn.1400224f0
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1401630a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
movq qword [rsp + 0x70], mm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.140150ca0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x140163116
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
and al, 0x60
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.140163250
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x140163124
movdqu xmm6, xmmword [rsp + 0x30]
Function at 0x140164df0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1404301b0]
mov ecx, 0x10
mov edx, 8
call fcn.140022460
test rax, rax
je 0x140164ec6
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1401652c0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140164eb8
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
je 0x140164e96
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.1400224f0
mov edx, 8
mov rcx, qword [rbp - 0x18]
call fcn.1400224f0
call sub.kernel32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1402d9f80
ud2
Function at 0x140165760
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.1402aece0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov rbx, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1402b0760
mov dword [rbp + 0xfec], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r14, [rbp + 0xfec]
mov qword [rbp + 0xfc8], r14
lea r15, case.0x140158446.264
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0xfb0]
mov rcx, rbx
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x140165951
mov r12, qword [sym.imp.kernel32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov r13, qword [sym.imp.kernel32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], rbx
mov ecx, 0xffffffff
mov edx, 1
call r12
cmp dword [rbp + 0xfec], 0
je 0x140165827
cmp dword [rbp + 0xff0], 0
jne 0x140165964
mov eax, dword [rbp + 0xff4]
test rax, rax
je 0x140165964
cmp eax, 0x1000
ja 0x1401659af
xor ebx, ebx
nop word cs:[rax + rax]
cmp rbx, rax
ja 0x140165994
lea rdx, [rbx + rbp]
add rdx, 0xffffffffffffffb0
mov rdi, rax
mov r8d, eax
sub r8d, ebx
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], r15
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call r13
test eax, eax
je 0x140165958
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r12
cmp dword [rbp + 0xfec], 0
je 0x1401658d0
cmp dword [rbp + 0xff0], 0
jne 0x14016595d
mov eax, dword [rbp + 0xff4]
add rbx, rax
mov rax, rdi
cmp rbx, rdi
jne 0x140165870
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], r15
mov rbx, qword [rbp + 0xfe0]
mov rcx, rbx
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x140165827
call sub.kernel32.dll_GetLastError
jmp 0x140165964
call sub.kernel32.dll_GetLastError
mov rbx, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, rbx
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, rbx
mov qword [rbp + 0xfd0], rax
mov rdx, rax
call fcn.1402da630
jmp 0x1401659ca
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov qword [rbp + 0xfd0], rax
mov rcx, rax
call fcn.1402da3e0
ud2
Function at 0x140165a30
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x140165a73
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call sub.kernel32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [fcn.140154950]
mov qword [rbp - 0x28], rax
lea rax, [0x1403b2bd8]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.1402da2c0
ud2

Function at 0x1401680d0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1401681d6
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x140168108
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1401681bf
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1401681a1
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x14016815e
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14016817a
jmp 0x14016816f
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x140168175
cmp eax, 0x6d
jne 0x140168191
mov byte [rsi + 1], 0
jmp 0x140168185
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x140168187
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1402df850
add byte [rax - 0x75], cl
or byte [r8 - 0x75], cl
push rbx
adc cl, ch
push rsi
invalid
invalid
invalid
mov r8d, 0x10
mov rcx, rbx
call fcn.1402df850
mov rax, qword [rbx + 8]
jmp 0x140168108
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1402dfc50
ud2
Function at 0x14016c6a0
Capabilities:
Set file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov ebx, r8d
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140150ca0
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x14016c747
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.140156e30
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x14016c747
mov rcx, rdi
mov edx, ebx
call qword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x14016c723
test rsi, rsi
je 0x14016c71f
mov edx, 2
mov rcx, rdi
call fcn.1400224f0
xor esi, esi
jmp 0x14016c747
call sub.kernel32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14016c744
mov edx, 2
mov rcx, rdi
call fcn.1400224f0
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x140173815
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [rcx]
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x14017381c
test al, 1
je 0x14017383b
test al, 2
jne 0x140173850
xor rax, 3
add rsp, 0x28
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x1403b6d68]
add eax, 0x24351f
mov edx, 0x23
jmp 0x140173863
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x1403b6d28]
mov edx, 0x25
call fcn.1402da450
ud2

Function at 0x14017417b
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call fcn.140172b7b
mov rcx, qword [rax]
movzx eax, bl
lea r9, [rsp + 0x2c]
mov dword [r9], eax
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x1401741b6
xor eax, eax
jmp 0x1401741c4
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x30
pop rbx
ret
Function at 0x1401741ca
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov qword [rsp + 0x60], rdx
mov r14, rcx
lea r12, [rsp + 0x72]
lea r15, [rcx + 0x18]
xor eax, eax
cmp qword [rcx + 0x18], 0xffffffffffffffff
cmove r15, rax
lea rbp, [rsp + 0x42]
mov rbx, qword [r8 + 8]
mov rdi, qword [r8 + 0x10]
mov rcx, rbx
sub rcx, rdi
mov qword [rsp + 0x48], r8
mov rax, qword [r8]
add rax, rdi
mov qword [rsp + 0x50], rax
mov eax, 0x7fffffff
cmp rcx, rax
cmovae rcx, rax
mov qword [rsp + 0x58], rcx
lea r13, [rsp + 0x68]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r14
mov rdx, qword [r14 + 0x10]
mov rcx, r13
mov r8, qword [rsp + 0x60]
xor r9d, r9d
call fcn.140173f73
mov al, byte [rsp + 0x71]
cmp al, 3
je 0x140174367
mov rsi, qword [rsp + 0x68]
cmp al, 2
je 0x14017439f
mov cl, byte [rsp + 0x70]
movzx edx, word [r12 + 4]
mov word [rbp + 4], dx
mov edx, dword [r12]
mov dword [rbp], edx
mov qword [rsp + 0x38], rsi
mov byte [rsp + 0x40], cl
mov byte [rsp + 0x41], al
cmp rbx, rdi
jb 0x1401743b8
mov rcx, r15
lea rdx, str.C:Userscokiss.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.35.0_srciopoll_evented.rs
call fcn.140006bf3
mov rcx, qword [r15]
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
jne 0x14017436e
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
je 0x140174373
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call case.0x140151b04.12
cmp al, 0xd
jne 0x14017433c
mov rax, qword [r15 + 8]
test rax, rax
je 0x14017433c
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1401743cc
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.140095ee0
mov r15, rax
xor ecx, ecx
call fcn.14014d9db
test r15, r15
je 0x140174332
mov ecx, 1
mov rdx, rsi
call fcn.14009604f
mov rsi, r15
mov r14, qword [rsp + 0x28]
mov r15, qword [rsp + 0x30]
mov rcx, rsi
call fcn.140002a47
cmp al, 0xd
jne 0x14017439f
mov qword [rsp + 0x68], rsi
mov rcx, r14
lea rdx, [rsp + 0x38]
call fcn.140173f10
mov rcx, r13
call fcn.14016e725
jmp 0x14017423c
mov eax, 1
jmp 0x1401743a1
movsxd r8, eax
jmp 0x140174376
xor r8d, r8d
lea r8, str.C:Userscokiss.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.35.0_srcio_read_buf.rs
mov rcx, rdi
mov rdx, rbx
call fcn.1402da300
ud2
ud2
Function at 0x140174421
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x28], rcx
and al, 0x28
mov rax, qword [rsp + 0xc0]
lea rbp, [rsp + 0x3a]
and al, 0x3a
lea r13, [rsp + 0x52]
lea r15, [rdx + 0x18]
xor ecx, ecx
cmp qword [rdx + 0x18], 0xffffffffffffffff
cmove r15, rcx
mov r12d, 0x7fffffff
cmp rax, r12
cmovb r12, rax
lea rsi, [rsp + 0x30]
lea esi, [rsp + 0x30]
mov qword [rsp + 0x40], r15
mov rdx, qword [r14 + 0x10]
mov rcx, rsi
mov r8, rbx
call fcn.140174173
mov al, byte [rsp + 0x39]
cmp al, 3
je 0x140174592
mov rcx, qword [rsp + 0x30]
cmp al, 2
je 0x1401745a0
mov dl, byte [rsp + 0x38]
movzx r8d, word [rbp + 4]
mov word [r13 + 4], r8w
mov r8d, dword [rbp]
mov dword [r13], r8d
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x50], dl
mov byte [rsp + 0x51], al
mov rcx, r15
lea rdx, str.C:Userscokiss.cargo_registry_srcindex.crates.io_6f17d22bba15001f_tokio_1.35.0_srciopoll_evented.rs
call fcn.140006bf3
mov rcx, qword [r15]
mov rdx, rdi
mov r8d, r12d
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
jne 0x1401745b2
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
shl rsi, 0x20
or rsi, 2
mov rcx, rsi
call case.0x140151b04.12
cmp al, 0xd
jne 0x140174562
mov rax, qword [r15 + 8]
test rax, rax
je 0x140174562
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x1401745e4
mov r15, r14
mov r14, rbx
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.140095ee0
mov rbx, rax
xor ecx, ecx
call fcn.14014d9db
test rbx, rbx
je 0x140174557
mov ecx, 1
mov rdx, rsi
call fcn.14009604f
mov rsi, rbx
mov rbx, r14
mov r14, r15
mov r15, qword [rsp + 0x40]
mov rcx, rsi
call fcn.140002a47
cmp al, 0xd
jne 0x1401745c3
mov qword [rsp + 0x30], rsi
mov rcx, r14
lea rdx, [rsp + 0x48]
call fcn.140173f10
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.14016e725
jmp 0x140174477
mov rax, qword [rsp + 0x28]
mov qword [rax], 2
jmp 0x1401745d3
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rcx
jmp 0x1401745d3
cdqe
mov rcx, qword [rsp + 0x28]
and qword [rcx], 0
mov qword [rcx + 8], rax
jmp 0x1401745d3
mov rax, qword [rsp + 0x28]
mov qword [rax], 1
mov qword [rax + 8], rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2

Function at 0x14017e577
Capabilities:
Get session user name

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
lea rdx, [rsp + 0x24]
and al, 0x24
Function at 0x1401b3144
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
mov r14d, dword [rsp + 0x70]
mov ebx, r8d
mov dword [rax - 0x18], r14d
mov rbp, r9
mov qword [rax - 0x20], r9
mov rdi, rdx
mov r9, rdx
mov byte [rcx + 0x1c], 1
mov r8, rdx
mov dword [rax - 0x28], ebx
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov rsi, rcx
call fcn.1401d13f8
test ebx, ebx
jne 0x1401b31ad
mov r9, rbp
mov dword [rsp + 0x20], r14d
mov r8, rdi
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov rcx, rsi
call fcn.1401d13f8
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140204464
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movsxd r9, dword [rcx + 0xc]
mov r10, rcx
movsxd rbx, r8d
test r8d, r8d
jle 0x1402044b2
mov r11, r9
xor edi, edi
mov al, byte [rdi + rdx]
mov rcx, qword [r10]
xor byte [rcx + r11], al
lea ecx, [r9 + 1]
xor r9d, r9d
lea rax, [r11 + 1]
cmp ecx, dword [r10 + 8]
cmovl r9d, ecx
xor r11d, r11d
inc rdi
cmp ecx, dword [r10 + 8]
cmovl r11, rax
cmp rdi, rbx
jl 0x140204482
add dword [r10 + 0x10], r8d
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov dword [r10 + 0xc], r9d
ret

Function at 0x140207a7c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, r8
mov r14d, r9d
and ebx, 0x1f
mov rsi, rdx
mov rdi, rcx
movabs r13, 0x9e3779b185ebca87
cmp rbx, 8
jb 0x14020793a
mov ebp, ebx
shr rbp, 3
imul rax, rbp, 0xfffffffffffffff8
add rbx, rax
cmp r14d, 1
jne 0x140207902
lea r8d, [r14 + 7]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.1402afaf0
mov rdx, qword [rsp + 0x50]
jmp 0x140207905
mov rdx, qword [rsi]
xor ecx, ecx
call fcn.140207a44
xor rax, rdi
mov edx, 0x1b
mov rcx, rax
add rsi, 8
call fcn.1402b5450
mov rdi, rax
movabs rax, 0x7a1435883d4d519d
imul rdi, r13
sub rdi, rax
sub rbp, 1
jne 0x1402078e4
mov ebp, 4
movabs r15, 0xc2b2ae3d27d4eb4f
movabs r12, 0x165667b19e3779f9
cmp rbx, rbp
jb 0x140207999
cmp r14d, 1
jne 0x140207974
mov r8d, ebp
lea rcx, [rsp + 0x50]
mov rdx, rsi
call fcn.1402afaf0
mov eax, dword [rsp + 0x50]
jmp 0x140207976
mov eax, dword [rsi]
mov ecx, eax
mov edx, 0x17
imul rcx, r13
add rsi, rbp
xor rcx, rdi
call fcn.1402b5450
mov rdi, rax
imul rdi, r15
add rdi, r12
sub rbx, rbp
test rbx, rbx
je 0x1402079cc
movzx eax, byte [rsi]
movabs rcx, 0x27d4eb2f165667c5
imul rcx, rax
mov edx, 0xb
inc rsi
xor rcx, rdi
call fcn.1402b5450
mov rdi, rax
imul rdi, r13
sub rbx, 1
jne 0x14020799e
mov rbx, qword [rsp + 0x58]
mov rax, rdi
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
shr rax, 0x21
xor rax, rdi
imul rax, r15
mov rcx, rax
shr rcx, 0x1d
xor rcx, rax
imul rcx, r12
mov rax, rcx
shr rax, 0x20
xor rax, rcx
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0x20
mov rsi, rcx
jb 0x140207b08
mov rcx, qword [rcx + 0x20]
mov edx, 0x12
call fcn.1402b5450
mov rcx, qword [rsi + 0x18]
mov edx, 0xc
mov rbx, rax
call fcn.1402b5450
mov rcx, qword [rsi + 0x10]
mov edx, 7
add rbx, rax
call fcn.1402b5450
mov rcx, qword [rsi + 8]
mov edx, 1
add rbx, rax
call fcn.1402b5450
mov rdx, qword [rsi + 8]
lea rcx, [rbx + rax]
call fcn.140207a10
mov rdx, qword [rsi + 0x10]
mov rcx, rax
call fcn.140207a10
mov rdx, qword [rsi + 0x18]
mov rcx, rax
call fcn.140207a10
mov rdx, qword [rsi + 0x20]
mov rcx, rax
call fcn.140207a10
jmp 0x140207b19
mov rax, qword [rcx + 0x18]
movabs rcx, 0x27d4eb2f165667c5
add rax, rcx
mov r8, qword [rsi]
lea rdx, [rsi + 0x28]
xor r9d, r9d
lea rcx, [r8 + rax]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14020789c