joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b070
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400ecdc0]
xor rax, rsp
mov qword [rsp + 0x50], rax
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x14000b164
nop dword [rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x14000b0cb
sub rbx, 0x8000000
jmp 0x14000b15b
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b164
cmp dword [rsp + 0x40], 0x10000
jne 0x14000b13f
cmp qword [rsp + 0x38], 0x10000
jb 0x14000b13f
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call sub.KERNEL32.dll_VirtualAlloc
test rax, rax
jne 0x14000b166
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x14000b164
sub rbx, 0x10000
jmp 0x14000b15b
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x14000b0b0
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14003e240
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14000b260
Capabilities:
Hook routines via microsoft detours

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [rcx - 0x7ff80000]
mov r9, rcx
cmp rcx, 0x7ff80000
ja 0x14000b27e
mov ebx, 0x80000
mov qword [rsp + 0x30], rdi
lea rdi, [rcx + 0x7ff80000]
cmp r9, 0xffffffff80000000
jb 0x14000b29a
mov rdi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x14000b2b1
cmp byte [rcx + 1], 0x25
jne 0x14000b2f5
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x14000b2bd
cmp al, 0xe9
jne 0x14000b2f5
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, r9
cmp rcx, r9
jae 0x14000b2e0
cmp rcx, 0xffffffff80000000
jae 0x14000b2d7
lea rdi, [rcx + 0x7ff80000]
jmp 0x14000b2f5
mov rdi, 0xfffffffffff80000
jmp 0x14000b2f5
lea rbx, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x14000b2f5
mov ebx, 0x80000
mov rax, qword [0x1400f2608]
mov rcx, qword [0x1400f2618]
test rax, rax
jne 0x14000b317
test rcx, rcx
je 0x14000b32e
mov rax, rcx
mov qword [0x1400f2608], rcx
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x14000b32e
cmp rdx, rbx
jb 0x14000b32e
cmp rdx, rdi
jbe 0x14000b3e8
mov qword [0x1400f2608], rcx
mov rax, rcx
test rcx, rcx
je 0x14000b372
mov rdx, rcx
test rcx, rcx
je 0x14000b35c
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x14000b35c
cmp rcx, rbx
jb 0x14000b35c
cmp rcx, rdi
jbe 0x14000b3e8
mov rax, qword [rax + 8]
mov qword [0x1400f2608], rax
mov rdx, rax
mov rcx, rax
test rax, rax
jne 0x14000b340
movzx eax, r9w
mov r8, rdi
sub r9, rax
mov rdx, rbx
mov rcx, r9
call fcn.14000b180
test rax, rax
je 0x14000b42b
mov dword [rax], 0x52727464
lea rdx, [rax + 0xffa8]
xor r8d, r8d
mov qword [0x1400f2608], rax
mov qword [rax + 0x10], r8
mov r9d, 0x2a7
mov rcx, qword [0x1400f2618]
mov qword [rax + 8], rcx
lea rcx, [rax + 0xff60]
mov qword [0x1400f2618], rax
nop word [rax + rax]
mov qword [rdx], r8
lea rdx, [rdx - 0x60]
mov r8, rcx
sub rcx, 0x60
sub r9, 1
jne 0x14000b3d0
mov qword [rax + 0x10], r8
mov rdx, qword [rax + 0x10]
cmp rdx, rbx
jb 0x14000b42b
cmp rdx, rdi
ja 0x14000b42b
mov rcx, qword [rdx + 0x48]
movdqa xmm0, xmmword [0x1400d97d0]
mov qword [rax + 0x10], rcx
mov rax, rdx
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14000b440
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400ecdc0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp dword [0x1400f253c], 0
jne 0x14000b504
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x1400f253c], ecx
jne 0x14000b504
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x1400f2618]
mov qword [rsp + 0x30], rdi
xor edi, edi
mov qword [0x1400f2628], rdi
mov qword [0x1400f2620], rdi
mov qword [0x1400f2610], rdi
test rbx, rbx
je 0x14000b4e0
nop word [rax + rax]
lea r9, [rsp + 0x20]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000b4d8
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14000b4b0
jmp 0x14000b4e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov dword [0x1400f2538], edi
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14003e240
add rsp, 0x38
ret
mov eax, 0x10dd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14003e240
add rsp, 0x38
ret
Function at 0x14000bb00
Capabilities:
Suspend thread

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400f2538]
test eax, eax
jne 0x14000bba5
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rax, 0xfffffffffffffffe
jne 0x14000bb25
xor eax, eax
add rsp, 0x28
ret
mov ecx, reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rdi
call fcn.14003e268
mov rcx, 0xfffffffffffffffe
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x14000bb85
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, reloc.WS2_32.dll_recv
mov rcx, rdi
call fcn.14003e260
mov rdi, qword [rsp + 0x20]
mov eax, ebx
mov dword [0x1400f2538], ebx
mov rbx, qword [rsp + 0x30]
mov qword [0x1400f2610], 0
add rsp, 0x28
ret
mov rax, qword [0x1400f2620]
mov qword [rdi], rax
xor eax, eax
mov qword [rdi + 8], 0xfffffffffffffffe
mov qword [0x1400f2620], rdi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x14000c100
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x1400ecdc0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rax, qword gs:[0x30]
xor r14d, r14d
mov ebp, r14d
mov dword [rsp + 0x30], r14d
mov esi, r14d
mov rdi, qword [rax + 0x40]
nop word [rax + rax]
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8d, dword [rsp + 0x30]
mov rsi, r14
test r8d, r8d
je 0x14000c1ae
lea ecx, [r8 + r8]
xor edx, edx
mov dword [rsp + 0x30], ecx
mov rax, qword gs:[0x30]
mov r8d, ecx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
je 0x14000c2d1
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov rdx, rsi
mov ecx, 5
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x14000c1cc
cmp eax, 0xc0000004
je 0x14000c150
test rsi, rsi
je 0x14000c2d1
mov qword [rsp + 0xc0], rbx
mov rbx, rsi
cmp qword [rsi + 0x50], rdi
je 0x14000c1f9
mov eax, dword [rbx]
test eax, eax
je 0x14000c2ad
add rbx, rax
cmp qword [rbx + 0x50], rdi
jne 0x14000c1e6
xorps xmm1, xmm1
xorps xmm0, xmm0
mov edi, r14d
mov qword [rsp + 0x40], getservbyname
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x58], r14
movups xmmword [rsp + 0x70], xmm1
mov qword [rsp + 0x48], r14
movups xmmword [rsp + 0x80], xmm1
mov qword [rsp + 0x50], r14
movups xmmword [rsp + 0x90], xmm1
cmp dword [rbx + 4], r14d
jbe 0x14000c2ad
nop dword [rax + rax]
mov eax, edi
lea r8, [rsp + 0x40]
mov edx, 0x40
lea rcx, [rsp + 0x38]
lea r9, [rax + rax*4]
shl r9, 4
add r9, 0x128
add r9, rbx
call qword [sym.imp.ntdll.dll_NtOpenThread]
test eax, eax
js 0x14000c2a6
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x70]
mov r9d, 0x30
mov qword [rsp + 0x20], r14
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x14000c29b
mov rax, qword [rsp + 0x78]
cmp qword [rax + 0x58], r14
je 0x14000c29b
inc ebp
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtClose]
inc edi
cmp edi, dword [rbx + 4]
jb 0x14000c240
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0xc0]
mov eax, ebp
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14003e240
lea r11, [rsp + 0xb0]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14000c860
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x58]
mov ebx, dword [rcx - 0x10]
call fcn.14000c100
mov ebp, eax
mov r15d, 1
lea ecx, [rbp - 1]
lea edx, [rcx + rcx*2]
lea r12d, [rdx*8 + 0x28]
mov rdx, qword gs:[0x30]
lea r8d, [r12 + r12]
mov rcx, qword [rdx + 0x60]
lea edx, [r15 + 7]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r14, rax
test rax, rax
je 0x14000ca40
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], r13
xor r13d, r13d
mov dword [rax], r13d
mov edi, r13d
mov dword [rax + 4], r15d
mov rdx, qword gs:[0x30]
mov qword [rsp + 0x50], rsi
cmp rbx, qword [rdx + 0x48]
mov dword [rax + 8], ebp
cmove ebx, r13d
mov dword [rax + 0xc], ebx
test ebp, ebp
je 0x14000c940
lea rsi, [rax + 0x18]
mov rbx, rsi
mov rax, qword gs:[0x30]
mov edx, 8
mov r8d, 0x818
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rbx], rax
test rax, rax
je 0x14000ca50
add rax, 0x10
inc edi
mov qword [rbx], rax
add rbx, 0x18
cmp edi, ebp
jb 0x14000c901
lea rsi, [r12 + r14]
mov r8d, r12d
mov rcx, rsi
mov rdx, r14
call fcn.14009ade0
mov r9d, r12d
mov r8, r14
mov edx, 0x23
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtSetInformationProcess]
test eax, eax
js 0x14000ca15
mov rax, qword [0x1400f24f0]
mov rcx, qword [rax + 0x60]
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebp, ebp
je 0x14000ca00
mov rdi, r14
lea rbx, [rsi + 0x18]
sub rdi, rsi
mov rsi, rbp
nop dword [rax + rax]
mov rax, qword gs:[0x30]
xor edx, edx
mov rcx, qword [rax + 0x60]
lea r8d, [rdx + 0x28]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rcx, qword [rbx + rdi]
lea rbx, [rbx + 0x18]
mov qword [rax + 0x18], rcx
mov rcx, qword [rbx - 0x18]
mov qword [rax + 0x20], rcx
mov rcx, qword [rbx + rdi - 0x10]
mov qword [rax + 0x10], rcx
mov rcx, qword [0x1400f24f0]
mov rdx, qword [rcx + 0x60]
mov rcx, qword [rdx + 0x58]
add rdx, 0x50
mov qword [rax], rdx
mov qword [rax + 8], rcx
mov qword [rcx], rax
mov qword [rdx + 8], rax
sub rsi, r15
jne 0x14000c9a0
mov rcx, qword [0x1400f24f0]
mov rcx, qword [rcx + 0x60]
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword gs:[0x30]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r13, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov eax, r15d
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
test edi, edi
je 0x14000ca89
mov ebx, edi
nop word [rax + rax]
mov rax, qword gs:[0x30]
xor edx, edx
mov r8, qword [rsi]
sub r8, 0x10
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rsi, [rsi + 0x18]
sub rbx, r15
jne 0x14000ca60
mov r15d, r13d
jmp 0x14000ca15
Function at 0x14000cd40
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x50
mov rsi, r9
mov r14, r8
mov r15, rdx
movups xmm0, xmmword [rcx]
movups xmmword [rax - 0x38], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax - 0x28], xmm1
movsd xmm0, qword [rcx + 0x20]
movsd qword [rax - 0x18], xmm0
xor ecx, ecx
movq rax, xmm1
mov dword [rax], ecx
mov dword [r8], ecx
mov qword [r9], rcx
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov edx, 8
lea r8d, [rdx + 0x38]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
jne 0x14000cdbc
mov eax, 0xc0000017
jmp 0x14000ce7d
mov rax, qword [0x1400f24f0]
mov rcx, qword [rax + 0x60]
add rcx, 0x10
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.ntdll.dll_RtlFindClearBitsAndSet]
mov edi, eax
cmp eax, 0xffffffff
jne 0x14000ce02
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0xc000009a
jmp 0x14000ce7d
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rbx + 0x10], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rbx + 0x20], xmm1
movsd xmm0, qword [rsp + 0x40]
movsd qword [rbx + 0x30], xmm0
mov qword [rbx + 0x38], r15
mov rax, qword [rbx + 0x20]
mov dword [rax], edi
mov dword [rbx + 0x34], edi
mov rax, qword [0x1400f24f0]
mov rcx, qword [rax + 0x60]
add rcx, 0x20
call qword [sym.imp.ntdll.dll_RtlAcquireSRWLockExclusive]
mov rax, qword [0x1400f24f0]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 8]
mov qword [rbx], rcx
mov qword [rbx + 8], rax
mov qword [rax], rbx
mov qword [rcx + 8], rbx
mov rax, qword [0x1400f24f0]
mov rcx, qword [rax + 0x60]
add rcx, 0x20
call qword [sym.imp.ntdll.dll_RtlReleaseSRWLockExclusive]
mov qword [rsi], rbx
mov dword [r14], edi
xor eax, eax
jmp 0x14000ce7d
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop r15
ret
Function at 0x14000dd70
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x30
mov rax, qword [0x1400ecdc0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rcx, qword [0x1400f2530]
mov ebp, 0xffffffff
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [0x1400f2508]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rsi, qword [0x1400f2500]
test rsi, rsi
je 0x14000df6b
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rsi]
cmp rbx, qword [rsi + 8]
je 0x14000df18
nop dword [rax]
mov rcx, qword [rbx]
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x20], 0x103
jne 0x14000de08
mov rsi, qword [0x1400f2500]
add rbx, 0x18
jmp 0x14000df0e
mov rax, qword [0x1400f24f0]
mov rcx, qword [rax + 0x60]
add rcx, 0x20
call qword [sym.imp.ntdll.dll_RtlAcquireSRWLockExclusive]
mov rax, qword [0x1400f24f0]
mov rsi, qword [rbx + 0x10]
mov rcx, qword [rax + 0x60]
mov rdi, qword [rcx]
cmp rdi, rcx
je 0x14000de72
nop dword [rax]
nop dword [rax + rax]
mov rax, qword gs:[0x30]
xor edx, edx
mov r8d, dword [rdi + 0x34]
mov rcx, qword [rax + 0x60]
mov r8, qword [rsi + r8*8 + 0x10]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword [0x1400f24f0]
mov rdi, qword [rdi]
cmp rdi, qword [rax + 0x60]
jne 0x14000de40
mov rax, qword [rbx + 8]
xor edx, edx
mov r8, qword [rax + 0x18]
mov rax, qword gs:[0x30]
sub r8, 0x10
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword gs:[0x30]
xor edx, edx
mov r8, qword [rbx + 8]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword gs:[0x30]
xor edx, edx
mov r8, qword [rbx + 0x10]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword [0x1400f24f0]
mov rcx, qword [rax + 0x60]
add rcx, 0x20
call qword [sym.imp.ntdll.dll_RtlReleaseSRWLockExclusive]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [0x1400f2500]
lea rdx, [rbx + 0x18]
mov rcx, rbx
mov r8, qword [rsi + 8]
sub r8, rdx
call fcn.14009ade0
add qword [rsi + 8], 0xffffffffffffffe8
cmp rbx, qword [rsi + 8]
jne 0x14000dde0
mov rdi, qword [rsi]
lea rcx, [0x1400f2508]
mov rbx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [0x1400f2530]
mov edx, 0x3e8
cmp rdi, rbx
cmove edx, ebp
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [0x1400f2508]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rsi, qword [0x1400f2500]
test rsi, rsi
jne 0x14000ddd0
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
lea rcx, [0x1400f2508]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14003e240
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
Function at 0x1400208e4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
test rdx, rdx
je 0x140020914
movzx eax, byte [rcx + r9]
movabs r10, 0x100000001b3
xor r8, rax
inc r9
imul r8, r10
cmp r9, rdx
jb 0x1400208f6
mov rax, r8
ret

Function at 0x140020930
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x238
mov ecx, 0x202
lea rdx, [rsp + 0x90]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140020956
add rsp, 0x238
ret
lea rdx, str.Failed_to_initialize_network_subsystem
lea rcx, [rsp + 0x20]
call fcn.1400054e0
nop
xor r8d, r8d
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140024a00
lea rdx, [0x1400e9520]
lea rcx, [rsp + 0x40]
call fcn.140040698
int3
Function at 0x140023980
Capabilities:
Check for software breakpoints

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x180
mov rbx, rdx
mov rdi, rcx
mov r14, rcx
mov qword [rsp + 0x1b0], rcx
call fcn.140023430
lea rcx, [r14 + 0x88]
call fcn.140025b20
cmp byte [r14 + 0x1e3], 0
jne 0x140023a4a
lea rsi, vtable.std::ios_base.0
mov rcx, rbx
call fcn.140025b20
mov r8d, 1
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.14002fca0
nop
mov rax, qword [rbx]
lea rdx, [rsp + 0x108]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
nop
jmp 0x140023a20
lea rcx, [rsp + 0x120]
call fcn.140030100
nop
mov qword [rsp + 0x120], rsi
lea rcx, [rsp + 0x120]
call fcn.140020308
nop
cmp dword [rbx + 0x50], 0x64
je 0x1400239d1
cmp byte [rdi + 0x30], 0
je 0x140023a60
mov rcx, rbx
call fcn.140022bd0
test al, al
jne 0x140023a60
mov al, 1
jmp 0x140023a62
xor al, al
mov byte [rdi + 0x1e1], al
cmp byte [rdi + 0x1e2], 0
je 0x140023b74
mov eax, dword [rbx + 0x50]
cmp eax, 0xc8
jl 0x140023b74
cmp eax, 0xcc
je 0x140023b74
cmp eax, 0x130
je 0x140023b74
mov rcx, rbx
call fcn.140022b60
test al, al
je 0x140023ae8
mov ecx, 0x140
call fcn.140031d60
mov qword [rsp + 0x1a0], rax
test rax, rax
je 0x140023ad8
lea r8, [rdi + 0x88]
mov r9d, 1
mov rdx, rdi
mov rcx, rax
call fcn.1400317d0
xor ecx, ecx
jmp 0x140023adc
xor ecx, ecx
mov eax, ecx
lea rdx, [rax + 0xc8]
jmp 0x140023bae
lea rdx, [0x1400ec848]
mov rcx, rbx
call fcn.140025e10
test al, al
je 0x140023b3b
mov ecx, pe_nt_image_headers64
call fcn.140031460
mov rsi, rax
mov qword [rsp + 0x1a0], rax
test rax, rax
je 0x140023b35
mov rcx, rbx
call fcn.140022b90
mov r9d, 1
mov r8, rax
mov rdx, rdi
mov rcx, rsi
call fcn.140030f80
xor ecx, ecx
jmp 0x140023b39
xor ecx, ecx
mov eax, ecx
jmp 0x140023ba7
mov ecx, 0x110
call fcn.140030c80
mov qword [rsp + 0x1a0], rax
test rax, rax
je 0x140023b67
mov r8d, 1
mov rdx, rdi
mov rcx, rax
call fcn.1400307b0
xor ecx, ecx
jmp 0x140023b6b
xor ecx, ecx
mov eax, ecx
lea rdx, [rax + 0x98]
jmp 0x140023bae
mov ecx, pe_nt_image_headers64
call fcn.140031460
mov qword [rsp + 0x1a0], rax
test rax, rax
je 0x140023ba3
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, rax
call fcn.140030f80
xor ecx, ecx
jmp 0x140023ba7
xor ecx, ecx
mov eax, ecx
lea rdx, [rax + 0xa0]
test rax, rax
cmove rdx, rcx
lea rcx, [r14 + 0x1f8]
call fcn.140023280
mov rax, qword [r14 + 0x200]
test rax, rax
je 0x140023be1
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x180
pop r14
pop rdi
pop rsi
ret
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14000ed30
lea rdx, [0x1400e8a60]
lea rcx, [rsp + 0x20]
call fcn.140040698
int3
Function at 0x140033220
Capabilities:
Resolve dns

Disassembly:
push rbx
sub rsp, 0x80
mov rax, rdx
mov rbx, rcx
cmp qword [rdx + 0x10], 0
je 0x1400332cb
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x50], 4
cmp qword [rdx + 0x18], 0xf
jbe 0x14003325e
mov rax, qword [rdx]
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1400332cb
mov rax, qword [rsp + 0x98]
mov r8, qword [rax + 0x20]
lea rdx, [r8 + 8]
mov r8d, dword [r8 + 0x18]
lea rcx, [rsp + 0x28]
call fcn.140032a80
nop
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140032a00
nop
lea rcx, [rsp + 0x28]
call fcn.140032b00
mov rax, rbx
add rsp, 0x80
pop rbx
ret
mov rcx, rbx
call fcn.140032ad0
mov rax, rbx
add rsp, 0x80
pop rbx
ret

Function at 0x140034df0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
cmp qword [rdx + 0x18], 0xf
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov rdi, rcx
mov dword [rsp + 0x28], r8d
mov rbx, rdx
mov rcx, rdx
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
jbe 0x140034e24
mov rcx, qword [rdx]
lea r9, [rsp + 0x78]
xor edx, edx
lea r8, [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140034e60
mov rdx, qword [rsp + 0x78]
mov rcx, rdi
call fcn.140034930
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rbx, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x60
pop rdi
ret
mov rdx, rbx
mov ecx, eax
call fcn.140034c60
int3

Function at 0x140035080
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0xf0
mov rcx, qword [rcx + 0x10]
mov rbx, rdx
cmp rcx, 0xffffffffffffffff
je 0x1400350ec
lea r8, [rax + 8]
mov dword [rax + 8], 0x80
lea rdx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400350d3
mov r8d, dword [rsp + 0x100]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.14002adc0
mov rax, rbx
add rsp, 0xf0
pop rbx
ret
call fcn.1400361b0
mov rcx, rbx
call fcn.14002ae60
mov rax, rbx
add rsp, 0xf0
pop rbx
ret
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.140024910
lea rdx, [0x1400e97a0]
lea rcx, [rsp + 0x28]
call fcn.140040698
int3