joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180019134
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
and qword [rbp - 0x11], 0
xorps xmm0, xmm0
and qword [rbp + 0xf], 0
mov esi, r8d
mov r8d, reloc.WS2_32.dll_recvfrom
mov dword [rbp + 0x67], 0x10400
mov rdi, rdx
mov rbx, rcx
movups xmmword [rbp + 0x17], xmm0
lea r14d, [r8 - 0xf]
mov edx, r14d
mov ecx, r14d
movups xmmword [rbp + 0x27], xmm0
movups xmmword [rbp + 0x37], xmm0
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
jne 0x1800191a1
call qword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1800192eb
xor edx, edx
lea rcx, [rbp + 0x17]
lea r8d, [rdx + 0x30]
call qword [sym.imp.ntdll.dll_memset]
lea r9, [rbp - 0x11]
mov dword [rbp + 0x1b], r14d
lea r8, [rbp + 0x17]
mov dword [rbp + 0x1f], r14d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x1800191e1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1800192eb
cmp qword [rbp - 0x11], 0
je 0x1800191d6
movzx ecx, si
mov word [rbp + 7], r14w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 9], ax
mov r8d, reloc.WS2_32.dll_recv
mov rax, qword [rbp - 0x11]
lea rdx, [rbp + 7]
mov rcx, qword [rax + 0x20]
mov eax, dword [rcx + 4]
mov rcx, qword [rbx]
mov dword [rbp + 0xb], eax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x180019196
mov rcx, qword [rbx]
lea r9, [rbp + 0x67]
mov esi, 0xffff
mov r14d, 4
mov edx, esi
mov dword [rsp + 0x20], r14d
mov r8d, 0x1002
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx]
lea r9, [rbp + 0x67]
mov r8d, 0x1001
mov dword [rsp + 0x20], r14d
mov edx, esi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbx]
lea edi, [r14 - 3]
lea r9, [rbp - 0x19]
mov dword [rbp - 0x19], edi
lea r8d, [r14 + 4]
mov dword [rsp + 0x20], r14d
mov edx, esi
call qword [sym.imp.WS2_32.dll_setsockopt]
and qword [rsp + 0x40], 0
lea r9d, [r14 + 8]
and qword [rsp + 0x38], 0
lea r8, [rbp - 9]
mov rcx, qword [rbx]
mov eax, 0x2710
and dword [rbp - 0x15], 0
mov edx, 0x98000004
mov dword [rbp - 5], eax
mov dword [rbp - 1], eax
lea rax, [rbp - 0x15]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rbp - 9], edi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rbx]
lea r9, [rbp + 0x7f]
lea r8d, [r14 + 0x7c]
mov dword [rbp + 0x7f], 0xa0001
mov edx, esi
mov dword [rsp + 0x20], r14d
call qword [sym.imp.WS2_32.dll_setsockopt]
xor eax, eax
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180019304
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov esi, r8d
mov edx, 0x48
mov rbx, rcx
call qword [sym.imp.KERNEL32.DLL_IsBadReadPtr]
test eax, eax
je 0x180019334
xor eax, eax
jmp 0x18001937f
lea rcx, [rbx + 0x18]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_send]
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, 0x48
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.DLL_IsBadReadPtr]
test eax, eax
je 0x180019373
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_ExitThread]
lea rcx, [rbx + 0x18]
call qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
and dword [rbp + 0x20], 0
mov rbx, rdx
mov r14d, r8d
mov rdi, rcx
mov rcx, rbx
xor edx, edx
mov r8d, 0x1000
call qword [sym.imp.ntdll.dll_memset]
and dword [rbp - 0x2c], 0
lea rsi, [rdi + 8]
and dword [rsi], 0
xor r9d, r9d
and qword [rbp - 0x20], 0
xorps xmm0, xmm0
xor r8d, r8d
mov qword [rbp - 0x28], rbx
xor ecx, ecx
mov dword [rbp - 0x30], 0x1000
lea edx, [r9 + 1]
movdqu xmmword [rbp - 0x18], xmm0
call qword [sym.imp.KERNEL32.DLL_CreateEventW]
and qword [rsp + 0x30], 0
lea rdx, [rbp - 0x30]
mov rcx, qword [rdi]
mov r9, rsi
mov qword [rbp - 8], rax
mov r8d, 1
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x3e5
jne 0x180019482
xor r8d, r8d
lea rdx, [rbp - 8]
mov r9d, r14d
lea ecx, [r8 + 1]
call qword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
test eax, eax
je 0x18001945e
cmp eax, 0x102
jne 0x180019482
jmp 0x18001947a
mov rcx, qword [rdi]
lea rax, [rbp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8, rsi
lea rdx, [rbp - 0x20]
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x180019491
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x18001aa0c
Capabilities:
Enumerate gui resources

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, 0x60
mov rsi, qword [rcx]
mov r14, rdx
mov rbx, rcx
call fcn.180003698
mov rcx, qword [rbx + 0x58]
mov rdx, rax
mov rbp, rax
call qword [sym.imp.USER32.dll_EnumWindows]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
mov rcx, rbp
mov dword [rsp + 0x54], 0x2072024
mov dword [rsp + 0x44], 0x12001
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
call qword [rbp + 0x30]
and dword [rsp + 0x4c], 0
add eax, 8
and dword [rsp + 0x50], 0
mov dword [rsp + 0x48], eax
call fcn.180003698
mov rcx, rax
mov rdi, rax
call qword [rax + 0x18]
mov r8d, gethostname
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [rdi + 0x28]
xor edx, edx
mov rcx, r14
call qword [r14 + gethostname]
mov r8d, 8
mov rcx, rdi
mov rdx, rax
call qword [rdi + 0x28]
mov rcx, rbp
call qword [rbp + 0x30]
xor edx, edx
mov rcx, rbp
mov ebx, eax
call qword [rbp + gethostname]
mov r8d, ebx
mov rcx, rdi
mov rdx, rax
call qword [rdi + 0x28]
mov rcx, rdi
call qword [rdi + 0x30]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call qword [rdi + gethostname]
mov r8d, ebx
mov rcx, rsi
mov rdx, rax
call qword [rsi + 0x30]
mov rcx, rdi
call fcn.1800037c0
mov rcx, r14
call fcn.1800037c0
mov rcx, rbp
call fcn.1800037c0
lea r11, [rsp + 0x60]
xor eax, eax
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x18001f5c4
Capabilities:
Encode data using xor

Disassembly:
mov r8d, r8d
jmp 0x18001f5c4
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r11, r8
mov r10, rdx
mov r9d, ecx
test rdx, rdx
jne 0x18001f5ed
xor eax, eax
jmp 0x18001f872
lea r15, [0x180000000]
not r9d
cmp r8, 0x17
jb 0x18001f803
test r10b, 3
je 0x18001f629
movzx ecx, byte [r10]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc r10
xor r9d, dword [r15 + rax*4 + 0x4f850]
sub r11, 1
jne 0x18001f601
movabs rax, 0xcccccccccccccccd
xor edi, edi
mul r11
xor esi, esi
xor ebp, ebp
mov rbx, rdx
xor r14d, r14d
shr rbx, 4
lea rax, [rbx + rbx*4]
shl rax, 2
sub r11, rax
sub rbx, 1
mov qword [rsp + 0x80], r11
mov qword [rsp + 0x88], rbx
je 0x18001f7bc
xor r9d, dword [r10]
lea rdx, [0x180000000]
xor edi, dword [r10 + 4]
mov r12d, 1
xor esi, dword [r10 + 8]
xor ebp, dword [r10 + 0xc]
xor r14d, dword [r10 + 0x10]
movzx eax, r9b
add r10, 0x14
mov r13d, r9d
mov r11d, edi
mov ebx, esi
mov r9d, dword [r15 + rax*4 + 0x4fc50]
movzx eax, dil
mov qword [rsp + 0x78], r10
mov edi, dword [r15 + rax*4 + 0x4fc50]
movzx eax, sil
mov esi, dword [r15 + rax*4 + 0x4fc50]
mov eax, ebp
mov qword [rsp + 0x20], rax
mov r10, qword [rsp + 0x20]
movzx eax, bpl
mov ebp, dword [r15 + rax*4 + 0x4fc50]
mov eax, r14d
mov qword [rsp + 0x28], rax
movzx eax, r14b
mov r14d, dword [r15 + rax*4 + 0x4fc50]
mov r15d, 0x100
lea eax, [r12*8]
inc r12d
movsxd r8, eax
mov rax, r13
mov rcx, r8
shr rax, cl
movzx ecx, al
mov rax, r11
add rcx, r15
xor r9d, dword [rdx + rcx*4 + 0x4fc50]
mov rcx, r8
shr rax, cl
movzx ecx, al
mov rax, rbx
add rcx, r15
xor edi, dword [rdx + rcx*4 + 0x4fc50]
mov rcx, r8
shr rax, cl
movzx edx, al
lea rax, [0x180000000]
add rdx, r15
xor esi, dword [rax + rdx*4 + 0x4fc50]
mov rax, r10
shr rax, cl
movzx edx, al
lea rax, [0x180000000]
add rdx, r15
xor ebp, dword [rax + rdx*4 + 0x4fc50]
lea rdx, [0x180000000]
mov rax, qword [rsp + 0x28]
shr rax, cl
movzx ecx, al
add rcx, r15
add r15, 0x100
xor r14d, dword [rdx + rcx*4 + 0x4fc50]
cmp r12d, 4
jl 0x18001f6f2
sub qword [rsp + 0x88], 1
lea r15, [0x180000000]
mov r10, qword [rsp + 0x78]
jne 0x18001f66b
mov r11, qword [rsp + 0x80]
lea r15, [0x180000000]
xor r9d, dword [r10]
mov ecx, r9d
call fcn.18001f888
xor eax, dword [r10 + 4]
xor eax, edi
mov ecx, eax
call fcn.18001f888
xor eax, dword [r10 + 8]
xor eax, esi
mov ecx, eax
call fcn.18001f888
xor eax, dword [r10 + 0xc]
xor eax, ebp
mov ecx, eax
call fcn.18001f888
xor eax, dword [r10 + 0x10]
xor eax, r14d
mov ecx, eax
call fcn.18001f888
mov r9d, eax
add r10, 0x14
cmp r11, 8
jb 0x18001f845
mov rdx, r11
shr rdx, 3
imul rcx, rdx, 0xfffffffffffffff8
add r11, rcx
mov r8d, 8
movzx ecx, byte [r10]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc r10
xor r9d, dword [r15 + rax*4 + 0x4f850]
sub r8, 1
jne 0x18001f81d
sub rdx, 1
jne 0x18001f817
test r11, r11
je 0x18001f86c
movzx ecx, byte [r10]
mov eax, r9d
xor rcx, rax
shr r9d, 8
movzx eax, cl
inc r10
xor r9d, dword [r15 + rax*4 + 0x4f850]
sub r11, 1
jne 0x18001f84a
not r9d
mov eax, r9d
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001f888
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8d, 4
movzx edx, cl
lea rax, [0x18004f850]
shr ecx, 8
xor ecx, dword [rax + rdx*4]
sub r8, 1
jne 0x18001f88e
mov eax, ecx
ret
Function at 0x180025440
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rcx, rdx
mov rdi, r8
mov rbx, rdx
call qword [sym.imp.WS2_32.dll_inet_addr]
mov eax, eax
mov esi, 0xffffffff
cmp rax, rsi
jne 0x18002549b
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x180025486
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
cmp rax, rsi
jne 0x18002549b
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov dword [rdi + 4], eax
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x1800255d0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x20
lea r8, [rsp + 0x38]
mov dword [rsp + 0x38], 1
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ebx, ebx
test eax, eax
setne bl
test eax, eax
je 0x180025613
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.ioctlsocket_FIONBIO_1_failed_with_error__d_n
mov ecx, 1
mov r8d, eax
call fcn.1800264d0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x180025620
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x70
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x2d0], ebx
je 0x180025733
lea r9, [rax + 8]
mov dword [rax + 8], 1
mov edx, 0xffff
mov dword [rax - 0x58], 4
lea r8d, [rbx + 8]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x180025699
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
lea rdx, str.setsockopt_SO_KEEPALIVE_1_failed_with_error__d_n
lea ecx, [rbx + 1]
call fcn.1800264d0
lea eax, [rbx + 1]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
imul eax, dword [rsi + 0x2d0], 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rbx
mov r9d, reloc.WS2_32.dll_inet_ntoa
mov qword [rsp + 0x38], rbx
mov edx, 0x98000004
mov rcx, rdi
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x5c], eax
imul eax, dword [rsi + 0x2d8], 0x3e8
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x180025733
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, dword [rsp + 0x60]
lea rdx, str.WSAIoctl_SIO_KEEPALIVE_VALS_1__lu__lu_failed_with_error__d_n
mov r8d, dword [rsp + 0x5c]
mov ecx, 1
mov dword [rsp + 0x20], eax
call fcn.1800264d0
mov eax, 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rcx, [0x180051e24]
mov dword [rsp + 0x80], 1
call qword [sym.imp.WS2_32.dll_getprotobyname]
mov edx, 6
test rax, rax
je 0x180025759
movsx edx, word [rax + 0x10]
lea r9, [rsp + 0x80]
mov dword [rsp + 0x20], 4
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r8, [rsp + 0x98]
mov dword [rsp + 0x98], 1
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
setne bl
test eax, eax
je 0x1800257bc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.ioctlsocket_FIONBIO_1_failed_with_error__d_n
mov ecx, 1
mov r8d, eax
call fcn.1800264d0
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1800257d0
Capabilities:
Get socket status

Disassembly:
mov r11, rsp
sub rsp, 0x248
mov rcx, qword [rcx]
lea rdx, [rsp + 0x30]
xor eax, eax
mov qword [rsp + 0x38], rcx
mov qword [r11 + 8], rax
inc ecx
lea rax, [r11 + 8]
mov dword [rsp + 0x30], 1
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
add rsp, 0x248
ret
Function at 0x180025bc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
call sub.msvcrt.dll__errno
xor ebp, ebp
xor r9d, r9d
mov r8d, ebx
mov dword [rax], ebp
mov rax, qword [rdi + 0x380]
mov rcx, qword [rdi + 0x3f8]
test rax, rax
je 0x180025c21
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
mov qword [rsp + 0x28], rdx
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
jmp 0x180025c2a
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
test ebx, ebx
js 0x180025c45
jne 0x180025c41
mov eax, 0xffffffff
jmp 0x180025c69
mov eax, ebx
jmp 0x180025c69
cmp edx, 0x2733
je 0x180025c64
mov eax, 0xffffffff
cmp edx, 0x2714
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, ecx
jmp 0x180025c69
mov eax, 0xfffffffc
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x380], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x180025ceb
call fcn.180023f70
mov rdx, qword [rbx + 0x380]
xor r9d, r9d
mov rcx, qword [rbx + 0x3f8]
mov r8d, edi
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
test eax, eax
je 0x180025cdb
lea rax, [rdx + 0x10]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
jmp 0x180025d15
mov qword [rsp + 0x20], rdx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_sendto]
jmp 0x180025d15
mov rax, qword [rcx + 0x360]
test byte [rax + 0x2e], 1
je 0x180025d05
mov ecx, dword [rcx + 0x3f8]
call sub.msvcrt.dll__write
jmp 0x180025d15
mov rcx, qword [rcx + 0x3f8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x180025d6e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x180025d55
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x180025d55
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x180025d55
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x180025d69
or dword [rbx + 0x424], 0x40
mov eax, 0xfffffffc
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
movsx edx, byte [rcx + 0x435]
mov rcx, qword [rcx]
jmp fcn.18002f600
Function at 0x18002f320
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x20
test byte [rdx + 0xc0], 4
mov rbx, rcx
jne 0x18002f35b
mov edx, 0x5f
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x18002f35b
mov r8d, 0x60
lea rdx, [0x1800534e8]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.180029310
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsx rax, byte [rcx + 0x435]
mov esi, 2
imul rbx, rax, 0x138
xor r8d, r8d
mov edx, esi
add rbx, qword [rcx]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x2d8], rax
cmp rax, 0xffffffffffffffff
je 0x18002f5d0
xor r8d, r8d
mov edx, esi
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x2e0], rax
cmp rax, 0xffffffffffffffff
je 0x18002f5d0
mov ecx, 0x7f000001
mov word [rbx + reloc.SHELL32.dll_IsUserAnAdmin], si
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbx + 0x2ac], eax
lea r8d, [rsi + 0xe]
xor eax, eax
lea rdx, [rbx + reloc.SHELL32.dll_IsUserAnAdmin]
mov word [rbx + 0x2aa], ax
mov rcx, qword [rbx + 0x2d8]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x18002f5d0
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x30]
mov rcx, qword [rbx + 0x2d8]
lea rdx, [rbx + reloc.SHELL32.dll_IsUserAnAdmin]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x18002f5d0
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea r8, str.lws_plat_pipe_create
mov ecx, 1
lea rdx, str._s:_failed_n
call fcn.1800264d0
mov rbx, qword [rsp + 0x38]
mov eax, 1
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
sub rsp, 0x38
movsxd rax, edx
xor r9d, r9d
imul rdx, rax, 0x138
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
lea r8d, [r9 + 1]
add rcx, rdx
mov byte [rsp + 0x48], 0
lea rdx, [rsp + 0x48]
lea rax, [rcx + reloc.SHELL32.dll_IsUserAnAdmin]
mov rcx, qword [rcx + 0x2e0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
cmp eax, 1
setne cl
mov eax, ecx
add rsp, 0x38
ret

Function at 0x18002f660
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1c8
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x18002f683
add rsp, 0x1c8
ret
mov r8d, eax
lea rdx, str.WSAStartup_failed_with_error:__d_n
mov ecx, 1
call fcn.1800264d0
mov eax, 1
add rsp, 0x1c8
ret
Function at 0x180030d30
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x150
mov rsi, r8
mov r15, rdx
lea r8, str.nsc_regen
xor edx, edx
mov rbp, r9
mov rbx, rcx
mov edi, 1
call fcn.1800307e0
mov r14d, eax
test eax, eax
js 0x180030eeb
mov r9, qword [rbx + 0x28]
lea r8, str._s.tmp
lea edx, [rdi + 0x7f]
lea rcx, [rsp + 0x50]
call fcn.180029150
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll__unlink
mov edx, 0x101
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x7f]
call sub.msvcrt.dll__open
mov dword [rsp + 0x40], eax
test eax, eax
js 0x180030eaf
lea r8d, [rdi + 0x1b]
mov ecx, eax
lea rdx, str._Netscape_HTTP_Cookie_File_n
call sub.msvcrt.dll__write
cmp eax, 0x1c
jne 0x180030ea2
test rsi, rsi
je 0x180030e0c
mov ecx, dword [rsp + 0x40]
mov r8d, ebp
mov rdx, rsi
call sub.msvcrt.dll__write
movsxd rcx, eax
cmp rcx, rbp
jne 0x180030ea2
mov ecx, dword [rsp + 0x40]
lea rdx, [0x180057ffc]
mov r8d, edi
call sub.msvcrt.dll__write
cmp eax, edi
jne 0x180030ea2
mov qword [rbx + 0x88], 0
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rbp
call fcn.1800298e0
lea r9, [rsp + 0x20]
mov qword [rsp + 0x30], rax
lea r8, [0x180030f10]
mov byte [rsp + 0x44], 0
mov edx, r14d
mov qword [rbx + 0x90], 0
mov rcx, rbx
call fcn.1800310e0
test eax, eax
jne 0x180030ea2
mov ecx, dword [rsp + 0x40]
call sub.msvcrt.dll__close
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x40], 0xffffffff
call sub.msvcrt.dll__unlink
mov rdx, qword [rbx + 0x28]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_rename
mov r8, qword [rbx + 0x90]
test r8, r8
je 0x180030e9e
lea rdx, [0x180030790]
mov rcx, rbx
call fcn.180026fb0
xor edi, edi
jmp 0x180030eaf
mov ecx, dword [rsp + 0x40]
test ecx, ecx
js 0x180030eaf
call sub.msvcrt.dll__close
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll__unlink
mov r9, qword [rbx + 0x28]
lea r8, str._s.LCK
mov edx, 0x80
lea rcx, [rsp + 0xd0]
call fcn.180029150
mov ecx, r14d
call sub.msvcrt.dll__close
lea rcx, [rsp + 0xd0]
call sub.msvcrt.dll__unlink
lea r11, [rsp + 0x150]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1800310e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x130
mov rbp, r8
mov ecx, edx
xor edi, edi
xor r8d, r8d
xor edx, edx
mov r13, r9
xor esi, esi
xor r12d, r12d
xor r15b, r15b
lea r14d, [rdi + 1]
call sub.msvcrt.dll__lseek
cmp eax, 0xffffffff
jne 0x18003112a
jmp 0x180031283
mov qword [rsp + 0x188], rbx
xor ebx, ebx
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x178]
lea rdx, [rsp + 0x30]
movsxd rax, esi
mov r8d, 0x100
sub r8d, esi
add rdx, rax
call sub.msvcrt.dll__read
test eax, eax
jg 0x180031171
mov r15b, 1
cmp edi, esi
je 0x180031277
jmp 0x180031173
add esi, eax
movsxd rcx, esi
lea rax, [rsp + 0x30]
nop dword [rax + rax]
cmp rbx, rcx
jge 0x1800311fc
inc rbx
inc edi
cmp byte [rax + rbx - 1], 0xa
jne 0x180031180
cmp byte [rsp + 0x30], 0x23
movsxd rbx, edi
jne 0x18003119f
xor ebp, ebp
jmp 0x1800311c3
mov rcx, qword [rsp + 0x170]
lea rax, [rbx - 1]
or r14d, 2
mov qword [rsp + 0x20], rax
mov r8d, r14d
lea r9, [rsp + 0x30]
mov rdx, r13
call rbp
mov ebp, eax
sub esi, edi
lea rdx, [rsp + 0x30]
movsxd r8, esi
lea rcx, [rsp + 0x30]
add rdx, rbx
mov r14d, 1
xor r12d, r12d
call sub.ntdll.dll_memmove
xor edi, edi
xor ebx, ebx
test ebp, ebp
jne 0x180031279
mov rbp, qword [rsp + 0x180]
jmp 0x180031140
test edi, edi
je 0x180031266
test r12d, r12d
jne 0x18003125d
cmp r14d, 1
jne 0x180031216
test esi, esi
je 0x180031227
cmp byte [rsp + 0x30], 0x23
je 0x18003125d
cmp esi, edi
jne 0x180031227
test r15b, r15b
je 0x180031227
mov r8d, 2
jmp 0x18003122a
xor r8d, r8d
mov rcx, qword [rsp + 0x170]
lea r9, [rsp + 0x30]
movsxd rax, edi
or r8d, r14d
mov rdx, r13
mov qword [rsp + 0x20], rax
call rbp
xor edi, edi
xor ebx, ebx
xor esi, esi
mov ebp, eax
test eax, eax
jne 0x180031279
mov rbp, qword [rsp + 0x180]
jmp 0x180031263
mov r12d, 1
xor r14d, r14d
test r15b, r15b
je 0x180031140
cmp esi, edi
jne 0x180031140
xor ebp, ebp
mov rbx, qword [rsp + 0x188]
mov eax, ebp
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret