joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400066e0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rdx], 0
mov rdi, rdx
mov rbx, rcx
jne 0x1400066f8
mov qword [rdx], rcx
cmp dword [rdx + 8], 0
jne 0x140006705
mov dword [rdx + 8], 0x400
cmp qword [rdx + 0x10], 0
jne 0x140006725
mov eax, dword [0x1400673c4]
inc eax
mov dword [0x1400673c4], eax
movsxd rax, dword [0x1400673c4]
mov qword [rdx + 0x10], rax
mov qword [rsp + 0x40], rbp
add rcx, 0x178
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbx + 0x154], 0xffffffff
jne 0x14000675f
mov rcx, rbx
call fcn.140006650
test eax, eax
jne 0x1400068f0
movsxd rcx, dword [rbx + 0x154]
lea rdx, [0x14005c800]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x1400067a3
call fcn.14000a830
mov rcx, rax
lea r9, str.hloop_post_event
lea r8, str._s:_hloop_post_event_failed__n
mov edx, 4
call fcn.140009dc0
jmp 0x1400068f0
xor ebp, ebp
lea r14d, [rbp + 0x10]
cmp qword [rbx + 0x168], rbp
jne 0x1400067fb
mov qword [rbx + 0x170], rbp
mov qword [rbx + 0x160], rbp
mov qword [rbx + 0x168], r14
lock inc dword [0x1400673c8]
mov ecx, 0x400
call fcn.140038aa8
mov rsi, rax
test rax, rax
je 0x14000691a
xor edx, edx
mov r8d, 0x400
mov rcx, rax
call fcn.1400326f0
mov qword [rbx + 0x158], rsi
mov r8, qword [rbx + 0x160]
mov rsi, qword [rbx + 0x168]
cmp r8, rsi
jne 0x140006880
mov rcx, qword [rbx + 0x158]
lea eax, [rsi + rsi]
test eax, eax
cmove eax, r14d
shl rsi, 6
movsxd r12, eax
mov rbp, r12
shl rbp, 6
lock inc dword [0x1400673c8]
test rcx, rcx
je 0x14000683f
lock inc dword [0x1400673cc]
mov rdx, rbp
call fcn.140038ab0
mov r14, rax
test rax, rax
je 0x14000693e
cmp rbp, rsi
jbe 0x140006869
sub rbp, rsi
lea rcx, [rax + rsi]
mov r8, rbp
xor edx, edx
call fcn.1400326f0
mov r9, qword [rbx + 0x170]
mov qword [rbx + 0x158], r14
mov qword [rbx + 0x168], r12
jmp 0x1400068b2
mov r9, qword [rbx + 0x170]
lea rax, [r9 + r8]
cmp rax, rsi
jne 0x1400068b2
mov rcx, qword [rbx + 0x158]
shl r9, 6
shl r8, 6
lea rdx, [rcx + r9]
call fcn.140032040
mov r9, rbp
mov qword [rbx + 0x170], rbp
mov rdx, qword [rbx + 0x160]
movups xmm0, xmmword [rdi]
mov rax, qword [rbx + 0x158]
add rdx, r9
shl rdx, 6
movups xmmword [rdx + rax], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rdx + rax + 0x10], xmm1
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rdx + rax + 0x20], xmm0
movups xmm1, xmmword [rdi + 0x30]
movups xmmword [rdx + rax + 0x30], xmm1
inc qword [rbx + 0x160]
lea rcx, [rbx + 0x178]
mov r14, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, 2
call fcn.14003521c
mov rcx, rax
lea rdx, str.malloc_failed__n
call fcn.1400096c0
mov ecx, 0xffffffff
call fcn.140039714
int3
mov ecx, 2
call fcn.14003521c
mov rcx, rax
lea rdx, str.realloc_failed__n
call fcn.1400096c0
mov ecx, 0xffffffff
call fcn.140039714
int3
Function at 0x140007970
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push r12
push r14
sub rsp, 0x48
mov qword [rsp + 0x70], rbp
xor r12d, r12d
mov qword [rsp + 0x80], rdi
mov r14d, r12d
mov qword [rsp + 0x40], r15
mov rsi, rcx
nop word [rax + rax]
movsxd rcx, dword [rsi + 0x48]
lea r8, [rsp + 0x78]
mov rdx, qword [rsi + 0x60]
inc r14d
mov dword [rsp + 0x78], 0x1c
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
test eax, eax
js 0x140007afb
mov rdx, qword [rsi + 0x58]
lea r8, [rsp + 0x78]
movsxd r15, ebx
mov rcx, r15
mov dword [rsp + 0x78], 0x1c
call qword [sym.imp.WS2_32.dll_getsockname]
mov rcx, qword [rsi]
mov edx, ebx
call fcn.140007170
mov rcx, qword [rsi + 0x110]
mov rbx, rax
mov qword [rax + 0x110], rcx
mov rcx, qword [rsi + 0x20]
mov qword [rax + 0x20], rcx
mov rdx, qword [rsi + 0x178]
test rdx, rdx
je 0x140007a1d
mov rcx, rax
call fcn.1400095a0
cmp dword [rsi + 0x40], 0x1000000
jne 0x140007acd
cmp qword [rbx + 0x180], r12
jne 0x140007abc
mov rdi, qword [rsi + 0x188]
test rdi, rdi
jne 0x140007a6e
mov rdi, qword [0x1400673f0]
test rdi, rdi
jne 0x140007a6e
call fcn.14000cd40
or dword [rsi + 0x3c], 0x8000
mov rdi, rax
mov qword [rsi + 0x188], rax
test rax, rax
je 0x140007af4
mov ecx, 0x188
call fcn.140038aa8
mov rbp, rax
test rax, rax
je 0x140007aed
mov rcx, rax
call fcn.140010320
lea rdx, [rdi + 0x498]
mov rcx, rbp
call fcn.1400108d0
lea r9, [0x14000ce90]
mov qword [rsp + 0x20], r12
lea r8, [0x14000ce50]
mov rdx, r15
mov rcx, rbp
call fcn.1400107d0
mov qword [rbx + 0x180], rbp
mov rcx, rbx
mov dword [rbx + 0x40], 0x1000000
call fcn.1400077a0
jmp 0x140007ade
mov rax, qword [rbx + 0x110]
test rax, rax
je 0x140007ade
mov rcx, rbx
call rax
cmp r14d, 3
jl 0x1400079a0
jmp 0x140007b86
mov ebx, 0x412
jmp 0x140007b1d
mov ebx, 0x411
jmp 0x140007b1d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
je 0x140007b86
cmp eax, 0x2714
je 0x140007b86
lea rcx, str.accept
call fcn.140038fec
mov eax, ebx
mov dword [rsi + 0x4c], ebx
cdq
mov qword [rsp + 0x30], r12
xor eax, edx
mov dword [rsp + 0x28], pe_nt_image_headers64
sub eax, edx
lea rbx, [0x1400674d0]
mov r8d, eax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
call fcn.14000a830
mov rcx, rax
lea r9, str.nio_accept
mov eax, dword [rsi + 0x4c]
lea r8, str._s:_listenfd_d_accept_error:__s:_d_n
mov dword [rsp + 0x30], eax
mov edx, 4
mov eax, dword [rsi + 0x48]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], eax
call fcn.140009dc0
mov r15, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x70]
add rsp, 0x48
pop r14
pop r12
pop rsi
pop rbx
ret
Function at 0x140007bb0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
mov dword [rsp + 0x50], 0x1c
movsxd rcx, dword [rcx + 0x48]
lea r8, [rsp + 0x50]
mov rdx, qword [rbx + 0x60]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jns 0x140007be3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140007c6b
movsxd rcx, dword [rbx + 0x48]
lea r8, [rsp + 0x50]
mov rdx, qword [rbx + 0x58]
mov dword [rsp + 0x50], 0x1c
call qword [sym.imp.WS2_32.dll_getsockname]
cmp dword [rbx + 0x40], 0x1000000
jne 0x140007d15
mov rax, qword [rbx + 0x180]
test rax, rax
jne 0x140007cf3
mov rax, qword [rbx + 0x188]
test rax, rax
jne 0x140007c52
mov rax, qword [0x1400673f0]
test rax, rax
jne 0x140007c52
call fcn.14000cd40
or dword [rbx + 0x3c], 0x8000
mov qword [rbx + 0x188], rax
test rax, rax
jne 0x140007c52
mov eax, 0x411
jmp 0x140007c6b
mov edx, dword [rbx + 0x48]
mov rcx, rax
call fcn.14000ced0
test rax, rax
jne 0x140007cec
mov eax, 0x412
xor ecx, ecx
mov qword [rsp + 0x58], rdi
mov dword [rbx + 0x4c], eax
lea rdi, [0x1400674d0]
cdq
mov qword [rsp + 0x30], rcx
xor eax, edx
mov dword [rsp + 0x28], pe_nt_image_headers64
sub eax, edx
mov qword [rsp + 0x20], rdi
mov r8d, eax
xor r9d, r9d
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
call fcn.14000a830
mov rcx, rax
lea r9, str.nio_connect
mov eax, dword [rbx + 0x4c]
lea r8, str._s:_connfd_d_connect_error:__s:_d_n
mov dword [rsp + 0x30], eax
mov edx, 3
mov eax, dword [rbx + 0x48]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
call fcn.140009dc0
mov rcx, rbx
call fcn.1400089c0
mov rdi, qword [rsp + 0x58]
add rsp, 0x40
pop rbx
ret
mov qword [rbx + 0x180], rax
mov rdx, qword [rbx + 0x190]
test rdx, rdx
je 0x140007d07
mov rcx, rax
call fcn.1400107f0
mov rcx, rbx
call fcn.140007870
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rbx + 0x140]
test rcx, rcx
je 0x140007d35
call fcn.140006fc0
xor ecx, ecx
mov qword [rbx + 0x140], rcx
mov dword [rbx + 0x120], ecx
or dword [rbx + 0x3c], 0x10
mov rax, qword [rbx + 0x118]
test rax, rax
je 0x140007d4a
mov rcx, rbx
call rax
add rsp, 0x40
pop rbx
ret

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

Disassembly:
sub rsp, 0x38
mov eax, dword [rcx + 0x40]
mov r10, rdx
cmp eax, 0x100
je 0x140007dce
cmp eax, 0x1000
je 0x140007dce
cmp eax, 0x2000
je 0x140007dce
cmp eax, 0x100000
je 0x140007dbc
cmp eax, 0x1000000
je 0x140007da9
mov ecx, dword [rcx + 0x48]
add rsp, 0x38
jmp fcn.14003e75c
mov rcx, qword [rcx + 0x180]
movsxd r8, r8d
add rsp, 0x38
jmp fcn.140012b20
movsxd rcx, dword [rcx + 0x48]
xor r9d, r9d
add rsp, 0x38
jmp qword [sym.imp.WS2_32.dll_send]
mov rdx, qword [rcx + 0x60]
mov r9d, reloc.WS2_32.dll_recv
movsxd rcx, dword [rcx + 0x48]
mov eax, 0x1c
cmp word [rdx], 2
cmove eax, r9d
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov rdx, r10
call qword [sym.imp.WS2_32.dll_sendto]
add rsp, 0x38
ret
Function at 0x140007e10
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x30
mov rbx, rcx
mov qword [rsp + 0x48], rdi
mov ecx, dword [rcx + 0x40]
nop word [rax + rax]
mov rdx, qword [rbx + 0x90]
mov rbp, qword [rbx + 0x78]
add rbp, rdx
test byte [rbx + 0x98], 2
je 0x140007e55
mov edi, dword [rbx + 0x9c]
add edi, dword [rbx + 0x88]
jmp 0x140007e5b
mov edi, dword [rbx + 0x80]
sub edi, edx
cmp ecx, 0x100
je 0x140007eb8
cmp ecx, 0x1000
je 0x140007eb8
cmp ecx, 0x2000
je 0x140007eb8
mov rdx, rbp
cmp ecx, 0x100000
je 0x140007ea6
cmp ecx, 0x1000000
je 0x140007e95
mov ecx, dword [rbx + 0x48]
mov r8d, edi
call fcn.14003d9d8
jmp 0x140007ee6
mov rcx, qword [rbx + 0x180]
movsxd r8, edi
call fcn.140012370
jmp 0x140007ee6
movsxd rcx, dword [rbx + 0x48]
xor r9d, r9d
mov r8d, edi
call qword [sym.imp.WS2_32.dll_recv]
jmp 0x140007ee6
movsxd rcx, dword [rbx + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov rax, qword [rbx + 0x60]
mov r8d, edi
mov rdx, rbp
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 0x1c
call qword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
test eax, eax
js 0x140007f38
je 0x140007f5c
cmp eax, edi
jge 0x140007ef8
cdqe
mov byte [rax + rbp], 0
movsxd rax, esi
mov r8d, esi
add qword [rbx + 0x90], rax
mov rdx, rbp
mov rax, qword [rbx]
mov rcx, qword [rax + 0x20]
mov qword [rbx + 0x68], rcx
mov rcx, rbx
call fcn.140009160
cmp esi, edi
jne 0x140007f6d
test byte [rbx + 0x3c], 0x20
jne 0x140007f6d
cmp dword [rbx + 0x40], 0x1000000
jne 0x140007f6d
mov ecx, 0x1000000
jmp 0x140007e30
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [rax - 0x2714]
cmp ecx, 0x24
ja 0x140007f59
movabs rdx, 0x1080000001
bt rdx, rcx
jb 0x140007f6d
mov dword [rbx + 0x4c], eax
test dword [rbx + 0x40], 0xff00000
je 0x140007f6d
mov rcx, rbx
call fcn.1400089c0
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
Function at 0x140007f90
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push r12
push r13
sub rsp, 0x40
mov rbx, rcx
add rcx, 0xc8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, qword [rbx + 0xb0]
xor r13d, r13d
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
mov ecx, reloc.WS2_32.dll_recv
test rdx, rdx
je 0x14000816c
cmp qword [rbx + 0xb0], r13
jne 0x140007fe9
mov r14, r13
jmp 0x140008004
mov rax, qword [rbx + 0xc0]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0xa8]
lea r14, [rax + rcx*8]
mov ecx, reloc.WS2_32.dll_recv
mov rax, qword [r14 + 0x10]
mov r15, qword [r14]
mov esi, dword [r14 + 8]
sub esi, eax
lea rbp, [rax + r15]
mov eax, dword [rbx + 0x40]
cmp eax, 0x100
je 0x14000806e
cmp eax, 0x1000
je 0x14000806e
cmp eax, 0x2000
je 0x14000806e
mov rdx, rbp
cmp eax, 0x100000
je 0x14000805c
cmp eax, 0x1000000
je 0x14000804b
mov ecx, dword [rbx + 0x48]
mov r8d, esi
call fcn.14003e75c
jmp 0x14000809a
mov rcx, qword [rbx + 0x180]
movsxd r8, esi
call fcn.140012b20
jmp 0x14000809a
movsxd rcx, dword [rbx + 0x48]
xor r9d, r9d
mov r8d, esi
call qword [sym.imp.WS2_32.dll_send]
jmp 0x14000809a
mov rdx, qword [rbx + 0x60]
mov eax, 0x1c
mov r8d, esi
cmp word [rdx], 2
cmove eax, ecx
movsxd rcx, dword [rbx + 0x48]
mov dword [rsp + 0x28], eax
xor r9d, r9d
mov qword [rsp + 0x20], rdx
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_sendto]
mov edi, eax
test eax, eax
js 0x14000813d
je 0x140008154
cdqe
add qword [r14 + 0x10], rax
mov rax, qword [rbx]
sub dword [rbx + 0xf0], edi
mov rcx, qword [rax + 0x20]
mov rax, qword [rbx + 0x100]
mov qword [rbx + 0x70], rcx
test rax, rax
je 0x1400080d8
mov r8d, edi
mov rdx, rbp
mov rcx, rbx
call rax
cmp edi, esi
jne 0x14000812e
test r15, r15
je 0x1400080f0
mov rcx, r15
call fcn.140037f04
lock inc dword [0x1400673cc]
inc qword [rbx + 0xc0]
mov rax, qword [rbx + 0xc0]
mov rdx, qword [rbx + 0xb0]
mov rcx, rax
dec rdx
cmp rax, qword [rbx + 0xb8]
mov qword [rbx + 0xb0], rdx
cmove rcx, r13
mov qword [rbx + 0xc0], rcx
test byte [rbx + 0x3c], 0x20
je 0x140007fcd
lea rcx, [rbx + 0xc8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140008191
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x14000812e
cmp eax, 0x2714
je 0x14000812e
mov dword [rbx + 0x4c], eax
lea rcx, [rbx + 0xc8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test dword [rbx + 0x40], 0xff00000
je 0x140008191
jmp 0x140008189
lea rcx, [rbx + 0xc8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [rbx + 0x3c]
bt eax, 0xd
jae 0x140008191
btr eax, 0xd
mov dword [rbx + 0x3c], eax
mov rcx, rbx
call fcn.1400089c0
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop r13
pop r12
pop rbx
ret
Function at 0x140008270
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rdx, qword [rcx + 0x60]
mov eax, reloc.WS2_32.dll_recv
mov r8d, 0x1c
mov rbx, rcx
movsxd rcx, dword [rcx + 0x48]
cmp word [rdx], 2
cmove r8d, eax
call qword [sym.imp.WS2_32.dll_connect]
mov edi, eax
test eax, eax
jns 0x140008317
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140008368
lea rcx, str.connect
call fcn.140038fec
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx]
lea rdx, [rsp + 0x20]
mov dword [rbx + 0x4c], eax
xorps xmm0, xmm0
xor eax, eax
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
lea rax, [0x140007400]
mov qword [rsp + 0x38], rax
mov eax, dword [rbx + 0x44]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rbx
call fcn.1400066e0
mov eax, edi
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
test edi, edi
jne 0x140008368
mov rcx, qword [rbx]
lea rdx, [rsp + 0x20]
xor eax, eax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x20], rax
xorps xmm0, xmm0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
lea rax, [0x140007d50]
mov qword [rsp + 0x38], rax
mov eax, dword [rbx + 0x44]
mov qword [rsp + 0x48], rax
movdqa xmmword [rsp + 0x50], xmm0
call fcn.1400066e0
xor eax, eax
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov eax, dword [rbx + 0x120]
lea rdx, [0x1400075c0]
mov rcx, qword [rbx]
test eax, eax
mov r8d, 0x2710
mov r9d, 1
cmovne r8d, eax
call fcn.140006e50
mov qword [rbx + 0x140], rax
mov qword [rax + 0x28], rbx
mov eax, dword [rbx + 0x3c]
bts eax, 7
cmp dword [rbx + 0x48], 3
mov dword [rbx + 0x3c], eax
jge 0x1400083ba
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov rdi, qword [rbx]
mov qword [rsp + 0x70], rsi
lea rsi, [0x1400081c0]
test al, 2
jne 0x140008403
mov eax, dword [0x1400673c4]
inc eax
mov dword [0x1400673c4], eax
movsxd rax, dword [0x1400673c4]
mov qword [rbx + 0x10], rax
mov eax, dword [rbx + 0x3c]
mov qword [rbx + 0x18], rsi
test al, 2
jne 0x1400083fd
or eax, 2
mov dword [rbx + 0x3c], eax
mov rax, qword [rbx]
inc dword [rax + 0x44]
inc dword [rdi + 0x130]
test byte [rbx + 0x3c], 8
jne 0x140008411
mov rcx, rbx
call fcn.140008d90
test byte [rbx + 0x50], 4
mov qword [rbx + 0x18], rsi
mov rsi, qword [rsp + 0x70]
jne 0x140008435
mov edx, dword [rbx + 0x48]
mov r8d, 4
mov rcx, rdi
call fcn.14000ac60
or dword [rbx + 0x50], 4
mov rbx, qword [rsp + 0x78]
xor eax, eax
add rsp, 0x60
pop rdi
ret
Function at 0x14000b290
Capabilities:
Convert ip address from string
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x1e0
mov rax, qword [0x140063040]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
je 0x14000b392
cmp byte [rdx], 0
je 0x14000b392
mov ecx, 1
xor eax, eax
lock cmpxchg dword [0x1400673e8], ecx
jne 0x14000b2ed
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, 2
lea r8, [rbx + 4]
mov ecx, edi
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x14000b30e
mov word [rbx], di
jmp 0x14000b3b4
mov edi, reloc.WS2_32.dll_socket
lea r8, [rbx + 8]
mov ecx, edi
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x14000b32a
mov word [rbx], di
lea r9, [rsp + 0x20]
mov qword [rsp + 0x20], 0
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x14000b3c3
mov rdi, qword [rsp + 0x20]
test rdi, rdi
je 0x14000b3a5
cmp qword [rdi + 0x20], 0
je 0x14000b3a5
cmp qword [rdi + 0x10], 0
je 0x14000b3a5
mov rdx, rdi
cmp dword [rdx + 4], 2
je 0x14000b377
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x14000b365
mov rdx, rdi
mov r8, qword [rdx + 0x10]
mov rcx, rbx
mov rdx, qword [rdx + 0x20]
call fcn.140032040
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x14000b3a5
mov edi, 2
mov word [rcx], di
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbx + 4], eax
movzx eax, word [rbx]
cmp ax, 2
je 0x14000b3b4
cmp ax, 0x17
jne 0x14000b3c1
movzx ecx, bp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbx + 2], ax
xor eax, eax
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400310d0
mov rbx, qword [rsp + 0x218]
add rsp, 0x1e0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000b4d0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x1f0
mov rax, qword [0x140063040]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov r14, r9
xor eax, eax
mov r15d, 1
lock cmpxchg dword [0x1400673e8], r15d
jne 0x14000b521
mov ecx, 0x202
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, 0xffffffff
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
xor esi, esi
mov r12d, 2
mov ecx, 0x7f000001
mov qword [rsp + 0x30], rsi
mov ebx, edi
mov word [rsp + 0x28], r12w
call qword [sym.imp.WS2_32.dll_htonl]
xor r8d, r8d
mov word [rsp + 0x2a], si
mov edx, r15d
mov dword [rsp + 0x2c], eax
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
movsxd rsi, eax
mov rbp, rax
test eax, eax
jns 0x14000b589
lea rcx, str.socket
call fcn.140038fec
cmp ebp, ebx
je 0x14000b672
jmp 0x14000b64d
mov r8d, dword [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x14000b5ac
lea rcx, str.bind
jmp 0x14000b648
mov edx, r15d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jns 0x14000b5c8
lea rcx, str.listen
jmp 0x14000b648
lea r8, [rsp + 0x20]
mov rcx, rsi
lea rdx, [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x14000b5e8
lea rcx, str.getsockname
jmp 0x14000b648
xor r8d, r8d
mov edx, r15d
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
test eax, eax
jns 0x14000b607
lea rcx, str.socket
jmp 0x14000b648
mov r8d, dword [rsp + 0x20]
lea rdx, [rsp + 0x28]
movsxd rcx, ebx
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x14000b627
lea rcx, str.connect
jmp 0x14000b648
lea r8, [rsp + 0x20]
mov rcx, rsi
lea rdx, [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
test eax, eax
jns 0x14000b679
lea rcx, str.accept
call fcn.140038fec
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
cmp ebx, 0xffffffff
je 0x14000b664
movsxd rcx, ebx
call qword [sym.imp.WS2_32.dll_closesocket]
cmp edi, 0xffffffff
je 0x14000b672
movsxd rcx, edi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
jmp 0x14000b68b
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
mov dword [r14], ebx
mov dword [r14 + 4], edi
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.1400310d0
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140013100
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov r8, rdx
mov rbx, r9
xor edx, edx
mov rbp, rcx
call fcn.1400326f0
mov r8, rbx
mov rdx, rdi
mov rcx, rbp
call fcn.140032040
mov rdx, qword [rsp + 0x58]
xor r8d, r8d
mov r9, qword [rsp + 0x50]
sub rsi, rdx
add rbp, rsi
cmp rdx, 8
jb 0x140013188
mov r10, r9
mov r11d, 8
sub r10, rbp
mov rax, rbp
sub r11, rbp
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [r10 + rax]
add r8, 8
xor qword [rax], rcx
lea rax, [rax + 8]
lea rcx, [r11 + rax]
cmp rcx, rdx
jbe 0x140013170
mov rcx, rdx
sub rcx, r8
cmp r8, rdx
jae 0x140013261
cmp rcx, 0x40
jb 0x140013241
lea r10, [rdx - 1]
lea rax, [r9 - 1]
add r10, rbp
add rax, rdx
lea r11, [r8 + rbp]
lea rbx, [r8 + r9]
cmp r11, rax
ja 0x1400131c5
cmp r10, rbx
jae 0x140013241
and ecx, 0x3f
mov r10, rdx
sub r10, rcx
mov rcx, r9
lea rax, [r11 + 0x10]
sub rcx, rbp
nop dword [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r8, 0x40
movdqu xmm1, xmmword [rcx + rax - 0x10]
movdqu xmm2, xmmword [rax + rcx]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmm1, xmmword [rcx + rax - 0x30]
pxor xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm0, xmmword [rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [rcx + rax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
cmp r8, r10
jb 0x1400131e0
cmp r8, rdx
jae 0x140013261
sub r9, rbp
lea rcx, [r8 + rbp]
sub rdx, r8
nop dword [rax + rax]
movzx eax, byte [rcx + r9]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140013250
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret