joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f820
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14001f854
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14001f840
ret

Function at 0x140021ba0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140021bd1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x140021c4b
mov rdi, r14
mov rcx, rbx
call fcn.14001d770
test rax, rax
jle 0x140021c23
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.1400bbaa0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140021c3b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x140021c43
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140021be5
sub r14, rdi
jmp 0x140021d2f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140021c62
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140021c64
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140021c96
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400bbaa0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140021d2c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140021cd1
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x140021d0d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400c2008
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140021d2c
cmp rbp, rax
ja 0x140021ce0
test rbp, rbp
je 0x140021d2c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400c2008
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140029bc0
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140029d71
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.14001b060
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140029d36
mov qword [rsp + 0x38], rbp
movabs rdi, 0x100000001b3
movabs rbp, 0xcbf29ce484222325
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
xor r9, rbp
mov rcx, qword [rcx]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x12]
imul r9, rdi
xor r9, rdx
movzx edx, byte [rax + 0x13]
imul r9, rdi
xor r9, rdx
imul r9, rdi
and r11, r9
shl r11, 4
add r11, qword [rsi + 0x18]
mov r9, qword [r11]
cmp r9, rbx
jne 0x140029cb0
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140029d25
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x140029ced
mov r10, qword [rdx]
cmp r10, rax
je 0x140029ce7
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 0x140029d25
cmp r9, rdx
je 0x140029d01
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140029d4b
cmp r9, rdx
jne 0x140029cf2
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
jne 0x140029c60
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
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 0x140029d25
lea rcx, str.invalid_hash_bucket_count
call fcn.1400b62a4
int3
Function at 0x140039c40
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r14, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [rax - 0x38], r12d
mov byte [rax + 0x20], r8b
sar r8d, 8
mov byte [rax + 0x21], r8b
sar r8d, 8
mov byte [rax + 0x22], r8b
sar r8d, 8
mov byte [rax + 0x23], r8b
mov qword [rcx], r12
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r12b
mov dword [rax - 0x38], 1
mov rcx, rdx
call fcn.140052cb0
mov edx, eax
xor r8d, r8d
mov rcx, rdi
call fcn.140020bd0
mov r15, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140039cbf
mov r15, qword [rdi]
mov rsi, r12
mov rcx, r14
call fcn.140052cb0
test eax, eax
je 0x140039d0c
mov rbp, r12
lea rbx, [rbp + 1]
mov edx, esi
mov rcx, r14
call fcn.14004f800
mov rcx, rax
call fcn.140050ba0
xor al, byte [rsp + rbp + 0x78]
mov byte [r15 + rsi], al
inc rsi
mov rbp, r12
cmp rbx, 4
cmovl rbp, rbx
mov rcx, r14
call fcn.140052cb0
mov eax, eax
cmp rsi, rax
jb 0x140039cd1
mov rax, rdi
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x14003d340
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rbx, rcx
xor edi, edi
lea rax, [0x14003c060]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], edi
lea ecx, [rdi + 0x18]
call fcn.1400b9b24
mov r9, rax
test rax, rax
je 0x14003d382
mov rax, qword [rbx + 8]
mov qword [r9], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [r9 + 8], xmm0
jmp 0x14003d385
mov r9, rdi
mov qword [rsp + 0x60], r9
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
lea r8, [0x14003dca0]
xor edx, edx
xor ecx, ecx
call fcn.1400c2ed8
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14003d3e5
cmp dword [rsp + 0x38], 0
je 0x14003d3f4
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.1400b633c
test eax, eax
jne 0x14003d3dd
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov ecx, eax
call fcn.1400b6c80
nop
mov dword [rsp + 0x38], edi
mov ecx, 6
call fcn.1400b6cbc
nop
mov ecx, 1
call fcn.1400b6cbc
int3
Function at 0x140041950
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x80
mov rbx, rcx
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140043e20
lea rcx, [rbx + 0x40]
mov rdx, rax
call fcn.140018e70
nop
mov rax, qword [rsp + 0x78]
and eax, 3
sub rax, 1
je 0x14004199b
cmp rax, 1
jne 0x1400419ab
lea rcx, [rsp + 0x40]
jmp 0x1400419a0
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
call rdx
nop
cmp qword [rbx + 0x78], 0
jne 0x1400419bd
xor al, al
add rsp, 0x80
pop rbx
ret
mov byte [rbx + 0x20], 0
mov ecx, 8
call fcn.1400b9b24
test rax, rax
je 0x1400419d3
mov qword [rax], rbx
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140042bc0]
xor edx, edx
xor ecx, ecx
call fcn.1400c2ed8
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140041a30
cmp dword [rbx + 0x148], 0
jne 0x140041a2a
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rbx + 0x140], xmm1
mov al, 1
add rsp, 0x80
pop rbx
ret
call fcn.1400c1234
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call fcn.1400b6cbc
int3
Function at 0x140043fb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd rdi, r8d
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14004400b
mov rcx, qword [rcx + 0x38]
and rcx, 0xfffffffffffffffc
je 0x14004400b
add rcx, 8
lea rdx, [0x1401379d0]
call fcn.1400bc580
test eax, eax
jne 0x14004400b
mov r9, qword [rbx]
lea edx, [rax + 1]
mov r8, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400c2008
call fcn.14001eaa0
int3
Function at 0x14004a6d0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push rdi
push r14
sub rsp, 0x28
mov r8d, dword [reloc.WLDAP32.dll_Ordinal_26]
mov rdi, rcx
movsxd r14, dword [rcx + 0x14]
lea eax, [r8 - 1]
cmp r14d, eax
je 0x14004a8ba
cmp dword [rcx + 0x10], edx
ja 0x14004a8ba
movsd xmm1, qword [0x1400f8fe0]
lea rcx, [0x140135140]
mov qword [rsp + 0x40], rbx
lea rcx, [rcx + r14*4]
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x20], r15
mov esi, dword [rcx + 4]
lea rcx, [rcx + 4]
xorps xmm0, xmm0
inc r14d
cvtsi2sd xmm0, rsi
mulsd xmm0, xmm1
cvttsd2si r15, xmm0
cmp r15d, edx
ja 0x14004a748
cmp r14d, r8d
jl 0x14004a723
mov rbp, rsi
shl rbp, 3
mov rcx, rbp
call fcn.140047c00
mov rbx, rax
test rax, rax
je 0x14004a7ee
mov r8, rbp
xor edx, edx
mov rcx, rax
call fcn.1400bc150
xor r10d, r10d
cmp dword [rdi + 8], r10d
jbe 0x14004a7d8
nop dword [rax]
mov rax, qword [rdi]
mov r9, qword [rax + r10*8]
test r9, r9
je 0x14004a7cf
nop dword [rax]
mov ecx, dword [r9 + 8]
mov r8, qword [r9]
shr ecx, 0x10
xor ecx, dword [r9 + 8]
imul eax, ecx, 0x85ebca6b
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul edx, ecx, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
xor edx, edx
div esi
mov rax, qword [rbx + rdx*8]
mov qword [r9], rax
mov qword [rbx + rdx*8], r9
mov r9, r8
test r8, r8
jne 0x14004a790
inc r10d
cmp r10d, dword [rdi + 8]
jb 0x14004a780
mov rcx, qword [rdi]
test rcx, rcx
je 0x14004a8a5
call fcn.140047be0
jmp 0x14004a8a5
mov rcx, qword [rdi]
mov rdx, rbp
call fcn.140047c20
mov rbx, rax
test rax, rax
jne 0x14004a820
lea eax, [rbx - 1]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rdi
ret
mov ecx, dword [rdi + 8]
mov r8d, esi
sub r8d, ecx
xor edx, edx
shl r8, 3
lea rcx, [rax + rcx*8]
call fcn.1400bc150
xor r10d, r10d
cmp dword [rdi + 8], r10d
jbe 0x14004a8a5
mov r8, qword [rbx + r10*8]
lea r9, [rbx + r10*8]
test r8, r8
je 0x14004a89c
nop
mov ecx, dword [r8 + 8]
shr ecx, 0x10
xor ecx, dword [r8 + 8]
imul eax, ecx, 0x85ebca6b
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul edx, ecx, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
xor edx, edx
div esi
cmp edx, r10d
jne 0x14004a883
mov r9, r8
jmp 0x14004a894
mov rax, qword [r8]
mov qword [r9], rax
mov rax, qword [rbx + rdx*8]
mov qword [r8], rax
mov qword [rbx + rdx*8], r8
mov r8, qword [r9]
test r8, r8
jne 0x14004a850
inc r10d
cmp r10d, dword [rdi + 8]
jb 0x14004a841
mov qword [rdi], rbx
xor eax, eax
mov dword [rdi + 8], esi
mov dword [rdi + 0x14], r14d
mov dword [rdi + 0x10], r15d
jmp 0x14004a804
xor eax, eax
add rsp, 0x28
pop r14
pop rdi
ret
Function at 0x14004a8e0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push rbx
push rsi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x58
mov rax, qword [0x140135558]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r13d, r13d
dec ecx
cmp ecx, 1
mov r15d, edx
mov edx, r13d
mov rbx, 0xffffffffffffffff
seta dl
mov r14, r9
mov rsi, rbx
test r8d, r8d
jne 0x14004ab05
test edx, edx
jne 0x14004ab05
test r9, r9
jne 0x14004a942
mov ecx, 0x2726
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, ebx
jmp 0x14004a97b
mov qword [rsp + 0x90], rdi
xor r8d, r8d
mov qword [rsp + 0x50], r12
mov edx, r15d
mov r12d, 2
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
test rax, rax
jns 0x14004a995
mov eax, ebx
mov rdi, qword [rsp + 0x90]
mov r12, qword [rsp + 0x50]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400b9890
add rsp, 0x58
pop r15
pop r14
pop r13
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x7f000001
mov qword [rbp - 0x28], r13
mov word [rbp - 0x30], r12w
call qword [sym.imp.WS2_32.dll_htonl]
mov r8d, reloc.WS2_32.dll_recv
mov word [rbp - 0x2e], r13w
lea rdx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, ebx
je 0x14004aac2
mov edx, 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, ebx
je 0x14004aac2
xor r8d, r8d
mov edx, r15d
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
test rax, rax
js 0x14004aac2
xorps xmm0, xmm0
mov dword [rbp - 0x38], reloc.WS2_32.dll_recv
lea r8, [rbp - 0x38]
mov rcx, rdi
lea rdx, [rbp - 0x20]
movups xmmword [rbp - 0x20], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, esi
je 0x14004aac2
cmp dword [rbp - 0x38], 0x10
jne 0x14004aaba
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x20]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, esi
je 0x14004aac2
lea r8, [rbp - 0x38]
mov dword [rbp - 0x38], reloc.WS2_32.dll_recv
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov rsi, rax
test rax, rax
js 0x14004aac2
cmp dword [rbp - 0x38], 0x10
jne 0x14004aaba
lea r8, [rbp - 0x38]
mov rcx, rbx
lea rdx, [rbp - 0x20]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14004aac2
cmp dword [rbp - 0x38], 0x10
jne 0x14004aaba
movzx eax, word [rbp - 0x20]
cmp word [rbp - 0x30], ax
jne 0x14004aaba
mov eax, dword [rbp - 0x1c]
cmp dword [rbp - 0x2c], eax
jne 0x14004aaba
movzx eax, word [rbp - 0x1e]
cmp word [rbp - 0x2e], ax
jne 0x14004aaba
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
mov qword [r14], rbx
mov qword [r14 + 8], rsi
jmp 0x14004a96e
mov r14d, 0x2745
jmp 0x14004aacb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
cmp rbx, 0xffffffffffffffff
je 0x14004aae3
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
cmp rsi, 0xffffffffffffffff
je 0x14004aaf2
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, 0xffffffff
jmp 0x14004a96e
mov ecx, 0x273f
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, ebx
jmp 0x14004a97b
Function at 0x14004ab20
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x20
lea r8, [rsp + 0x38]
mov dword [rsp + 0x38], 1
mov edx, 0x8004667e
mov rbx, rcx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x14004ab63
mov r8d, ebx
lea rdx, str.fcntl__d__F_GETFL_
mov rcx, rbx
call fcn.14004b970
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14004abd0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x140135558]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14004ac7c
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp byte [rbx + rdx], 0
jne 0x14004ac10
mov ecx, eax
add rcx, 2
add rcx, rdx
cmp rcx, 0x104
jae 0x14004ac7c
lea rcx, [rsp + 0x20]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14004ac33
movzx eax, word [0x1400f947c]
mov word [rcx], ax
lea rcx, [rsp + 0x20]
dec rcx
nop
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14004ac50
xor edx, edx
nop dword [rax]
movzx eax, byte [rbx + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14004ac60
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x14004ac7e
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400b9890
add rsp, 0x140
pop rbx
ret

Function at 0x14004aca0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x20
xor r8d, r8d
mov rbx, rcx
mov r9, rcx
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call fcn.14004a8e0
test eax, eax
jne 0x14004ad49
mov qword [rsp + 0x30], rdi
lea r8, [rsp + 0x38]
mov rdi, qword [rbx]
mov edx, 0x8004667e
mov rcx, rdi
mov dword [rsp + 0x38], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x14004ad2f
mov r8d, edi
lea rdx, str.fcntl__d__F_GETFL_
mov rcx, rdi
call fcn.14004b970
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbx + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, qword [rsp + 0x30]
mov eax, 0xffffffff
mov qword [rbx + 8], 0xffffffffffffffff
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx + 8]
call fcn.14004ab20
test eax, eax
js 0x14004acfd
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov qword [rbx + 8], 0xffffffffffffffff
mov eax, 0xffffffff
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x20
pop rbx
ret
Function at 0x14004ae30
Capabilities:
Hash data using murmur3

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdx, qword [0x14013bfe0]
xor edi, edi
mov qword [rsp + 0x58], rdi
mov ebx, ecx
test rdx, rdx
je 0x14004ae56
xor ecx, ecx
call fcn.14004c6d0
mov r8, qword [0x140135128]
test r8, r8
je 0x14004aec1
xor edx, edx
mov eax, ebx
shr eax, 0x10
xor eax, ebx
imul ecx, eax, 0x85ebca6b
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
div dword [0x140135130]
mov rcx, qword [r8 + rdx*8]
lea rdx, [r8 + rdx*8]
test rcx, rcx
je 0x14004aeab
cmp dword [rcx + 8], ebx
je 0x14004aeab
mov rax, qword [rcx]
mov rdx, rcx
mov rcx, rax
test rax, rax
jne 0x14004ae98
mov rax, qword [rdx]
test rax, rax
je 0x14004aec1
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x58], rax
jmp 0x14004b01f
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], edi
xor r9d, r9d
mov r8d, ebx
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x14004af2d
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14004af6c
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], dil
jne 0x14004af00
test rax, rax
je 0x14004af6c
cmp byte [rcx + rax - 1], 0xa
jne 0x14004af6c
sub rax, 1
mov byte [rcx + rax], dil
je 0x14004af6c
cmp byte [rax + rcx - 1], 0xd
jne 0x14004af6c
mov byte [rax + rcx - 1], dil
jmp 0x14004af6c
mov edx, reloc.WLDAP32.dll_Ordinal_50
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x14004af55
lea rax, str.LocalAlloc_failed_during_Winsock_error
mov qword [rsp + 0x58], rax
jmp 0x14004b01f
mov r9d, ebx
lea r8, str.winsock_error_0x_08x
mov edx, reloc.WLDAP32.dll_Ordinal_50
mov rcx, rax
call fcn.14004ad70
mov ecx, Ordinal_26
call fcn.140047c00
mov rdi, rax
test rax, rax
jne 0x14004af9a
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rax, str.malloc_failed_during_Winsock_error
mov qword [rsp + 0x58], rax
jmp 0x14004b01f
mov dword [rax + 8], ebx
mov rax, qword [rsp + 0x58]
mov qword [rdi + 0x10], rax
mov r8, qword [0x140135128]
mov eax, dword [0x140135134]
test r8, r8
je 0x14004afc0
cmp eax, dword [0x140135138]
jb 0x14004afdc
lea edx, [rax + 1]
lea rcx, [0x140135128]
call fcn.14004a6d0
mov eax, dword [0x140135134]
mov r8, qword [0x140135128]
inc eax
mov dword [0x140135134], eax
mov ecx, dword [rdi + 8]
shr ecx, 0x10
xor ecx, dword [rdi + 8]
imul eax, ecx, 0x85ebca6b
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul edx, ecx, 0xc2b2ae35
mov eax, edx
shr eax, 0x10
xor eax, edx
xor edx, edx
div dword [0x140135130]
mov rax, qword [r8 + rdx*8]
mov qword [rdi], rax
mov qword [r8 + rdx*8], rdi
mov rax, qword [rsp + 0x58]
mov rdx, qword [0x14013bfe0]
test rdx, rdx
je 0x14004b037
xor ecx, ecx
call fcn.14004c6e0
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14004ca50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r13
sub rsp, 0x40
mov r9, qword [rcx]
lea rbx, [rcx + 0x128]
xor esi, esi
mov qword [rsp + 0x78], r9
mov r13, r8
mov rdi, rdx
movzx ebp, si
test rdx, rdx
jns 0x14004ca8b
xor eax, eax
add rsp, 0x40
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
cmp qword [rbx], rsi
je 0x14004caab
mov eax, dword [rbx + 0x10]
lea r14, [rbx + 0xc]
mov r15d, edi
cmp dword [r14], eax
jb 0x14004cacc
jmp 0x14004cab2
lea r14, [rcx + 0x134]
mov edx, dword [r14]
mov rcx, rbx
inc edx
call fcn.14004c790
mov rcx, qword [rsp + 0x70]
mov r15d, edi
mov r9, qword [rsp + 0x78]
mov r8, qword [rbx]
test r8, r8
jne 0x14004cad9
mov rbx, rsi
jmp 0x14004cb0b
xor edx, edx
mov eax, r15d
ror eax, 2
add eax, r15d
div dword [rcx + 0x130]
mov rcx, qword [r8 + rdx*8]
lea rbx, [r8 + rdx*8]
test rcx, rcx
je 0x14004cb0b
cmp qword [rcx + 8], rdi
je 0x14004cb0b
mov rax, qword [rcx]
mov rbx, rcx
mov rcx, rax
test rax, rax
jne 0x14004caf7
mov rax, qword [rbx]
mov qword [rsp + 0x80], r12
test rax, rax
jne 0x14004cb4c
mov rdx, qword [r9 + 0x38]
lea ecx, [rax + 1]
add rdx, 0x20
call fcn.140047b50
test rax, rax
je 0x14004cc7f
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], esi
mov word [rax + 0x1c], si
mov qword [rax], rsi
mov qword [rbx], rax
inc dword [r14]
movzx edi, word [rax + 0x18]
lea rbx, [rax + 0x10]
movzx r14d, word [rbx + 0xa]
mov eax, edi
movzx r12d, word [rbx + 0xc]
neg eax
movzx r9d, word [r13 + 0x68]
sbb cx, cx
and cx, 2
movzx eax, cx
or ax, 4
test r14d, r14d
cmove ax, cx
mov ecx, 0x80
movzx r8d, ax
or r8w, cx
test r12d, r12d
cmove r8w, ax
test r9b, 2
je 0x14004cba1
inc edi
cmp edi, 1
jne 0x14004cba1
lea ebp, [rcx - 0x7e]
test r9b, 4
je 0x14004cbb4
inc r14d
cmp r14d, 1
jne 0x14004cbb4
or bp, 4
test r9b, r9b
jns 0x14004cbc5
inc r12d
cmp r12d, 1
jne 0x14004cbc5
or bp, cx
cmp edi, 0xffff
ja 0x14004cc70
cmp r14d, 0xffff
ja 0x14004cc70
cmp r12d, 0xffff
ja 0x14004cc70
cmp dword [0x14013bf68], esi
je 0x14004cc0f
mov rcx, qword [rbx]
test rcx, rcx
je 0x14004cc0f
movzx eax, r9b
xor al, byte [rcx + 0x68]
test al, 0x20
je 0x14004cc0f
lea rcx, str.Tried_to_mix_edge_triggered_and_non_edge_triggered_events_on_fd__d
jmp 0x14004cc77
test bp, bp
je 0x14004cc41
mov rdx, qword [r13 + 0x38]
lea rax, [rbx + 0x10]
mov rcx, qword [rsp + 0x70]
and r9w, 0x20
mov qword [rsp + 0x20], rax
or r9w, bp
mov rax, qword [rsp + 0x78]
call qword [rax + reloc.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x14004cc7f
mov esi, 1
mov rcx, qword [rbx]
lea rax, [r13 + 0x48]
mov word [rbx + 8], di
mov word [rbx + 0xa], r14w
mov word [rbx + 0xc], r12w
mov qword [rax], rcx
test rcx, rcx
je 0x14004cc65
mov rcx, qword [rbx]
mov qword [rcx + 0x50], rax
mov qword [rbx], r13
mov eax, esi
mov qword [r13 + 0x50], rbx
jmp 0x14004cc84
lea rcx, str.Too_many_events_reading_or_writing_on_fd__d
mov edx, r15d
call fcn.14004ba00
mov eax, 0xffffffff
mov r12, qword [rsp + 0x80]
mov r14, qword [rsp + 0x38]
mov r15, qword [rsp + 0x30]
add rsp, 0x40
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret