joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021ca0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
xor esi, esi
mov rcx, qword [rcx + 0xe8]
test rcx, rcx
je 0x140021ccc
call fcn.140055ce0
mov qword [rbx + 0xe8], rsi
mov rcx, qword [rbx]
call fcn.140055920
lea rdi, [rbx + 0xf0]
cmp qword [rdi + 0x18], 0x10
mov rcx, rdi
jb 0x140021ce8
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140021d28
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140021d23
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140021f28
mov rcx, r8
call fcn.140133ef4
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rdi], sil
mov rdx, qword [rbx + 0xd0]
cmp rdx, 0x10
jb 0x140021d78
mov rcx, qword [rbx + 0xb8]
inc rdx
cmp rdx, 0x1000
jb 0x140021d73
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140021f28
mov rcx, r8
call fcn.140133ef4
mov qword [rbx + 0xc8], rsi
mov qword [rbx + 0xd0], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx + 0xb8], sil
mov rdx, qword [rbx + 0xa8]
cmp rdx, 0x10
jb 0x140021dd2
mov rcx, qword [rbx + 0x90]
inc rdx
cmp rdx, 0x1000
jb 0x140021dcd
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140021f28
mov rcx, r8
call fcn.140133ef4
mov qword [rbx + 0xa0], rsi
mov qword [rbx + 0xa8], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx + 0x90], sil
mov rdx, qword [rbx + 0x88]
cmp rdx, 0x10
jb 0x140021e29
mov rcx, qword [rbx + 0x70]
inc rdx
cmp rdx, 0x1000
jb 0x140021e24
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140021f28
mov rcx, r8
call fcn.140133ef4
mov qword [rbx + 0x80], rsi
mov qword [rbx + 0x88], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx + 0x70], sil
mov rdx, qword [rbx + 0x60]
cmp rdx, 0x10
jb 0x140021e7a
mov rcx, qword [rbx + 0x48]
inc rdx
cmp rdx, 0x1000
jb 0x140021e75
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140021f28
mov rcx, r8
call fcn.140133ef4
mov qword [rbx + 0x58], rsi
mov qword [rbx + 0x60], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx + 0x48], sil
mov rdx, qword [rbx + 0x40]
cmp rdx, 0x10
jb 0x140021ec1
mov rcx, qword [rbx + 0x28]
inc rdx
cmp rdx, 0x1000
jb 0x140021ebc
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140021f28
mov rcx, r8
call fcn.140133ef4
mov qword [rbx + 0x38], rsi
mov qword [rbx + 0x40], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx + 0x28], sil
mov rdx, qword [rbx + 0x20]
cmp rdx, 0x10
jb 0x140021f08
mov rcx, qword [rbx + 8]
inc rdx
cmp rdx, 0x1000
jb 0x140021f03
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140021f28
mov rcx, r8
call fcn.140133ef4
mov qword [rbx + 0x18], rsi
mov byte [rbx + 8], sil
mov rsi, qword [rsp + 0x38]
mov qword [rbx + 0x20], reloc.OLEAUT32.dll_SafeArrayDestroy
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.14013d094
int3
Function at 0x14002e430
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x10b0
call fcn.1401345a0
sub rsp, rax
lea rbp, [rsp + 0x40]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x1401c7b80]
xor rax, rsp
mov qword [rbp + 0x1060], rax
mov qword [rbp], r9
mov r14, r8
mov r15, rdx
test r8, r8
je 0x14002e645
mov r9d, 0x1000
lea rdx, [rbp + 0x60]
call fcn.14002ab90
test al, al
jne 0x14002e4f4
call fcn.140004040
mov r8, rax
movabs rax, 0x14631c545ec05b16
mov qword [rbp], rax
movabs rax, 0xfd18cc63e1c12b12
mov rcx, qword [rbp]
mov qword [rbp + 0x20], rcx
mov qword [rbp], rax
movabs rax, 0xda8129b81f4eb160
mov rcx, qword [rbp]
mov qword [rbp + 0x28], rcx
mov qword [rbp], rax
movabs rax, 0x85a1445b6588ec29
mov rcx, qword [rbp]
mov qword [rbp + 0x30], rcx
movabs rcx, 0x85a1442817ed8848
mov qword [rbp], rax
jmp 0x14002e5d1
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp byte [r15 + rdi], 0
jne 0x14002e500
movsxd rax, dword [rbp + 0x9c]
lea rcx, [rbp + 0x60]
add rcx, rax
xor esi, esi
movzx eax, word [rcx + 0x14]
lea r13, [rcx + 0x18]
movzx r12d, word [rcx + 6]
add r13, rax
test r12d, r12d
je 0x14002e579
nop
lea rcx, [rsi + rsi*4]
mov r8, rdi
lea rbx, [rcx*8]
mov rdx, r15
add rbx, r13
mov rcx, rbx
call fcn.140138e70
test eax, eax
jne 0x14002e572
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x14002e560
cmp rdi, rax
je 0x14002e671
inc esi
cmp esi, r12d
jb 0x14002e530
call fcn.140004040
mov r8, rax
movabs rax, 0x14631c545ec05b16
mov qword [rbp], rax
movabs rax, 0xe318cc6cedd52b12
mov rcx, qword [rbp]
mov qword [rbp + 0x20], rcx
mov qword [rbp], rax
movabs rax, 0xbfe967b21a4fb66a
mov rcx, qword [rbp]
mov qword [rbp + 0x28], rcx
mov qword [rbp], rax
mov rcx, qword [rbp]
mov qword [rbp + 0x30], rcx
movabs rcx, 0x85a1442817ed8848
mov qword [rbp], rcx
mov rax, qword [rbp]
lea rdx, [rbp + 0x20]
mov qword [rbp + 0x38], rax
movabs rax, 0x330d7d177e9d764d
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x40], rax
movabs rax, 0x9038a80284b30b66
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x48], rax
movabs rax, 0xbfe909dd733bd50f
mov qword [rbp], rax
mov rax, qword [rbp]
mov qword [rbp + 0x50], rax
mov qword [rbp], rcx
mov rcx, r8
mov rax, qword [rbp]
mov qword [rbp + 0x58], rax
vmovdqu ymm0, ymmword [rbp + 0x40]
vpxor ymm1, ymm0, ymmword [rbp + 0x20]
vmovdqa ymmword [rbp + 0x20], ymm1
vzeroupper
call fcn.140007aa0
xor eax, eax
mov rcx, qword [rbp + 0x1060]
xor rcx, rsp
call fcn.1401339b0
mov rbx, qword [rsp + 0x10f8]
add rsp, 0x10b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x14002e579
mov ecx, dword [rbx + 8]
lea rdx, [rbp + 0x60]
add rdx, rax
je 0x14002e579
test ecx, ecx
je 0x14002e579
mov rax, qword [rbp]
test rax, rax
je 0x14002e69f
mov dword [rax], ecx
lea rax, [rbp + 0x60]
sub r14, rax
lea rax, [rdx + r14]
jmp 0x14002e647
Function at 0x140035f70
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rsi, rdx
mov rdi, rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x14003607b
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14003607b
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xor edx, edx
mov qword [rsp + 0x30], rdx
mov ecx, dword [rax + rsi + 0xb0]
test ecx, ecx
jne 0x140035fd4
mov qword [rdi], rdx
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rdx
jmp 0x140036088
lea rbx, [rsi + rcx]
mov ebp, dword [rax + rsi + 0xb4]
add rbp, rbx
mov eax, dword [rbx]
mov rcx, qword [rsp + 0x28]
test eax, eax
je 0x140036069
nop dword [rax]
mov r8d, eax
cmp r8, rbp
jae 0x140036069
mov r9d, dword [rbx + 4]
test r9d, r9d
je 0x140036069
lea rax, [r8 + rsi]
mov qword [rsp + 0x38], rax
lea rax, [rbx + 8]
mov qword [rsp + 0x40], rax
lea rax, [r9 - 8]
shr rax, 1
mov dword [rsp + 0x48], eax
cmp rcx, rdx
je 0x140036041
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rcx], xmm0
movsd xmm1, qword [rsp + 0x48]
movsd qword [rcx + 0x10], xmm1
add rcx, 0x18
mov qword [rsp + 0x28], rcx
jmp 0x14003605d
lea r8, [rsp + 0x38]
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140036670
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov eax, dword [rbx + 4]
add rbx, rax
mov eax, dword [rbx]
test eax, eax
jne 0x140035ff0
mov rax, qword [rsp + 0x20]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rdx
jmp 0x140036088
xor edx, edx
mov qword [rcx], rdx
mov qword [rcx + 8], rdx
mov qword [rcx + 0x10], rdx
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140037770
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
mov rax, qword [0x1401c7b80]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor edx, edx
lea r9, [rsp + 0x20]
mov rsi, rcx
xor r14d, r14d
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov ebx, r14d
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400377f9
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, SafeArrayDestroy
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1400377b0
test eax, eax
jns 0x14003781a
test rbx, rbx
je 0x14003781f
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140037913
test rbx, rbx
jne 0x140037826
xor eax, eax
jmp 0x140037913
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rdi
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x1400378f3
nop
mov ebp, edi
lea rdx, [rbx + 0x30]
imul rax, rbp, 0x128
mov qword [rsp + 0x28], r14
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], reloc.OLEAUT32.dll_SafeArrayDestroy
movzx ecx, word [rax + rbx + 0x2e]
add rcx, rax
add rdx, rcx
inc r8
cmp byte [rdx + r8], r14b
jne 0x140037872
lea rcx, [rsp + 0x28]
call fcn.140004ec0
cmp qword [rsi + 0x18], 0x10
mov rdx, rsi
jb 0x140037892
mov rdx, qword [rsi]
cmp qword [rsp + 0x40], 0x10
lea rcx, [rsp + 0x28]
cmovae rcx, qword [rsp + 0x28]
call fcn.14014b408
test eax, eax
je 0x140037929
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x1400378e9
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400378e4
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140037984
call fcn.140133ef4
inc edi
cmp edi, dword [rbx]
jb 0x140037840
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401339b0
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
imul rax, rbp, 0x128
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
mov rdi, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14003797f
mov rcx, qword [rsp + 0x28]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003797a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140037984
call fcn.140133ef4
mov rax, rdi
jmp 0x140037906
call fcn.14013d094
int3
Function at 0x14003a870
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14003a895
test rdx, rdx
je 0x14003a8a7
cmp rdx, 0x40
jae 0x14003a8b6
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, 0x40
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14003a895
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x14003a895
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x14003a895
lea rdi, [rax + rbx]
mov rcx, rax
test rsi, rsi
je 0x14003a8fb
test rdi, rdi
je 0x14003a895
cmp rdi, rbx
jb 0x14003a895
add rax, 0xf8
cmp rax, rsi
ja 0x14003a895
cmp rax, 0xf8
jb 0x14003a895
cmp rax, rcx
jb 0x14003a895
jmp 0x14003a90d
mov edx, 0xf8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14003a895
cmp dword [rdi], 0x4550
jne 0x14003a895
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14003a930
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14003a99e
mov edx, 0x40
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14003a99e
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x14003a99e
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x14003a99e
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14003a99e
cmp dword [rdi], 0x4550
jne 0x14003a99e
mov rcx, rbx
call fcn.14003aad0
test al, al
jne 0x14003a99e
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x14003a9b0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14003aa1e
mov edx, 0x40
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14003aa1e
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x14003aa1e
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x14003aa1e
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14003aa1e
cmp dword [rdi], 0x4550
jne 0x14003aa1e
mov rcx, rbx
call fcn.14003aad0
test al, al
je 0x14003aa1e
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x14003aad0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14003ab4e
mov edx, 0x40
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14003ab4e
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x14003ab4e
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x14003ab4e
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14003ab4e
cmp dword [rdi], 0x4550
jne 0x14003ab4e
mov edx, 0xf8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x14003ab4e
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x14003ab4e
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
add rsp, 0x20
pop rdi
ret

Function at 0x14003cd70
Capabilities:
Allocate or change rwx memory
Inspect section memory permissions

Disassembly:
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x40
xor r13d, r13d
lea rax, [rsp + 0x30]
mov rsi, r9
mov dword [rsp + 0x30], r13d
mov rdi, r8
mov qword [rsp + 0x20], rax
mov r8d, 0x1000
mov r15, rdx
lea r9d, [r13 + 2]
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x14003cdbc
add rsp, 0x40
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
mov qword [rsp + 0x78], rbp
mov bpl, 1
test rdi, rdi
je 0x14003cefe
mov rdx, rsi
mov rcx, rdi
call fcn.14003a870
test rax, rax
je 0x14003cefe
mov qword [rsp + 0x70], rbx
mov rcx, rdi
lea rbx, [rax + 4]
call fcn.14003aad0
test rbx, rbx
je 0x14003ce16
cmp rbx, rdi
jb 0x14003ce16
mov rax, rbx
sub rax, rdi
lea rcx, [rax + 0x14]
cmp rcx, rsi
ja 0x14003ce16
cmp rcx, 0x14
jb 0x14003ce16
cmp rcx, rax
jae 0x14003ce19
mov rbx, r13
test rbx, rbx
je 0x14003cef9
mov qword [rsp + 0x80], r14
movzx r14d, word [rbx + 2]
mov rbx, r13
test r14, r14
je 0x14003cef1
nop dword [rax + rax]
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.14003ad20
mov r8, rax
test rax, rax
je 0x14003cef1
mov edx, dword [rax + 0x24]
mov ecx, edx
and ecx, 0xe0000000
cmp ecx, 0xe0000000
jne 0x14003ce75
mov r9d, 0x40
jmp 0x14003ceba
mov eax, edx
and eax, 0x60000000
cmp eax, 0x60000000
jne 0x14003ce8b
mov r9d, 0x20
jmp 0x14003ceba
bt edx, 0x1d
jae 0x14003ce99
mov r9d, 0x20
jmp 0x14003ceba
mov eax, edx
mov r9d, 4
and eax, 0xc0000000
cmp eax, 0xc0000000
je 0x14003ceba
bt edx, 0x1e
mov eax, 2
cmovb r9d, eax
mov ecx, dword [r8 + 0xc]
lea rax, [rsp + 0x30]
mov r8d, esi
mov qword [rsp + 0x20], rax
sub r8d, ecx
lea rdx, [r15 + rcx]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
movzx ebp, bpl
cmove ebp, r13d
inc rbx
cmp rbx, r14
jb 0x14003ce40
mov r14, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x70]
movzx eax, bpl
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14004e1d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
cmp qword [rdx + 0x18], 0x10
mov r9, qword [rdx + 0x10]
jb 0x14004e1de
mov rdx, qword [rdx]
xor r8d, r8d
movabs rax, 0xcbf29ce484222325
test r9, r9
je 0x14004e214
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [r8 + rdx]
inc r8
xor rax, rcx
imul rax, r10
cmp r8, r9
jb 0x14004e200
ret
Function at 0x14005e7c0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rsi, [rcx + rdx]
mov rbx, rcx
mov edi, 0x1505
cmp rcx, rsi
jae 0x14005e45b
movzx ecx, byte [rbx]
call fcn.14006d500
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x14005e440
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
movzx eax, dil
add rsp, 0x20
pop rdi
ret
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14005e7f6
call fcn.14006e670
test al, al
jne 0x14005e7f6
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14005ea90
mov rdx, qword [rsp + 0x30]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x14005e420
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140067ae0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x140067b22
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x130
mov rax, qword [0x1401c7b80]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, qword [rsp + 0x180]
mov rdi, r8
movsxd r8, edx
mov rsi, r9
mov rdx, qword [rcx + 0x18]
mov rbp, rcx
mov r14, qword [rdx + r8*8 + 0x1e8]
call fcn.140068130
test eax, eax
je 0x140067ca8
mov dword [rbx], reloc.WLDAP32.dll_Ordinal_27
mov rax, 0xffffffffffffffff
jmp 0x140067d15
xor r9d, r9d
mov r8d, esi
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
mov dword [rbx], 0
cmp rdi, 0xffffffffffffffff
jne 0x140067d12
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp eax, 0x2733
jne 0x140067ce2
xor edi, edi
mov dword [rbx], 0x51
jmp 0x140067d12
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, esi
call fcn.140055d60
mov r8, rax
lea rdx, str.Send_failure:__s
mov rcx, rbp
call fcn.1400678e0
mov dword [rbp + 0xdd4], esi
mov dword [rbx], gethostname
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1401339b0
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140068130
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd r9, r8d
lea rbx, [rdx + 0x230]
mov rax, r9
mov rbp, rcx
shl rax, 5
add rbx, rax
mov rax, qword [rdx + 0x3e0]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x84], 3
je 0x14006821d
lea rax, [0x140067b70]
cmp qword [rdx + r9*8 + 0x210], rax
jne 0x14006821d
cmp qword [rbx], 0
je 0x14006819b
test rdi, rdi
je 0x14006821d
mov rsi, qword [rdx + r9*8 + 0x1e8]
mov rdx, 0xffffffffffffffff
mov r8, rdx
xor r9d, r9d
mov rcx, rsi
call fcn.140077910
cmp eax, 0xffffffff
je 0x14006821d
test al, 1
je 0x14006821d
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400681fc
mov eax, dword [rbp + 0x724]
add eax, eax
movsxd rcx, eax
mov qword [rbx + 8], rcx
call qword [section..data]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
jne 0x1400681ee
lea eax, [rcx + 0x1b]
jmp 0x14006821f
mov rdi, qword [rbx + 8]
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rcx
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14006821d
add qword [rbx + 0x10], rcx
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400683e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x278], 0
jne 0x14006841a
mov rcx, qword [rcx + 0x1e8]
cmp rcx, 0xffffffffffffffff
je 0x14006841a
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x14006841a
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x140068640
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x1401c7b80]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], pe_nt_image_headers64
mov rax, rdx
mov rbx, r8
mov rsi, rcx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rdi, r9
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400686e5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.140055d60
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x14006872b
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rdi
mov r8, rbx
call fcn.140068240
test al, al
jne 0x140068736
call fcn.14014d964
mov ebx, dword [rax]
call fcn.14014d964
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.140055d60
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1400678e0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1401339b0
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x140069cb0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1401c7b80]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov dword [rsp + 0x20], 4
mov eax, esi
lea r9, [rsp + 0x50]
cmp byte [rcx + 0xb2b], al
mov rdi, rdx
mov rbx, rcx
mov edx, 0xffff
setne al
lea r8d, [rsi + 8]
mov rcx, rdi
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x140069d1f
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, rbx
call fcn.1400679c0
jmp 0x140069dae
mov ecx, dword [rbx + 0xa8c]
mov dword [rsp + 0x58], 1
call fcn.140069fe0
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0xa90]
call fcn.140069fe0
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, reloc.WS2_32.dll_inet_ntoa
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140069dae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov r9d, eax
mov rcx, rbx
call fcn.1400679c0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401339b0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140069dd0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1401c7b80]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rax, rdx
mov dword [rsp + 0x30], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rbx, rcx
lea r9, [rsp + 0x30]
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x140069e46
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.140055d60
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, rbx
call fcn.1400679c0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401339b0
add rsp, 0x150
pop rbx
ret