joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007990
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x40
mov rbx, rcx
mov dword [rsp + 0x60], 0x1c
movsxd rcx, dword [rcx + 0x48]
lea r8, [rsp + 0x60]
mov rdx, qword [rbx + 0x60]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jns 0x1400079c5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140007a4c
movsxd rcx, dword [rbx + 0x48]
lea r8, [rsp + 0x60]
mov rdx, qword [rbx + 0x58]
mov dword [rsp + 0x60], 0x1c
call qword [sym.imp.WS2_32.dll_getsockname]
cmp dword [rbx + 0x40], 0x1000000
jne 0x140007b7b
mov rbp, qword [rbx + 0x180]
test rbp, rbp
jne 0x140007acc
mov rax, qword [rbx + 0x188]
test rax, rax
jne 0x140007a34
mov rax, qword [0x140068180]
test rax, rax
jne 0x140007a34
call fcn.14000cbc0
or dword [rbx + 0x3c], 0x8000
mov qword [rbx + 0x188], rax
test rax, rax
jne 0x140007a34
mov eax, 0x411
jmp 0x140007a4c
mov edx, dword [rbx + 0x48]
mov rcx, rax
call fcn.14000d080
mov rbp, rax
test rax, rax
jne 0x140007ac5
mov eax, 0x412
mov dword [rbx + 0x4c], eax
lea rdi, [0x140068270]
cdq
xor ecx, ecx
mov qword [rsp + 0x30], rcx
xor eax, edx
sub eax, edx
mov dword [rsp + 0x28], pe_nt_image_headers64
mov r8d, eax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
call fcn.14000a750
mov rcx, rax
lea r9, str.nio_connect
mov eax, dword [rbx + 0x4c]
lea r8, str._s:_connfd_d_connect_error:__s:_d
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.140009d10
mov rcx, rbx
call fcn.140008880
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
mov qword [rbx + 0x180], rax
mov qword [rsp + 0x70], r14
mov r14, qword [rbx + 0x190]
test r14, r14
je 0x140007b66
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x68], rsi
mov rsi, rcx
inc rsi
cmp byte [r14 + rsi], 0
jne 0x140007af0
cmp rsi, 0xff
ja 0x140007b61
mov r8, qword [rbp + 0x160]
test r8, r8
je 0x140007b2e
nop
inc rcx
cmp byte [r8 + rcx], 0
jne 0x140007b10
test rcx, rcx
je 0x140007b26
mov rdi, r8
xor eax, eax
rep stosb byte [rdi], al
mov rcx, r8
call fcn.14003c184
lea rdx, [rsi + 1]
mov ecx, 1
call fcn.140039280
mov qword [rbp + 0x160], rax
test rax, rax
je 0x140007b61
mov r8, rsi
mov rdx, r14
mov rcx, rax
call fcn.140037380
mov rax, qword [rbp + 0x160]
mov byte [rsi + rax], 0
mov rsi, qword [rsp + 0x68]
mov rcx, rbx
call fcn.1400076b0
mov r14, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
mov rcx, qword [rbx + 0x140]
test rcx, rcx
je 0x140007b9b
call fcn.140006c00
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 0x140007bb0
mov rcx, rbx
call rax
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
Function at 0x140007be0
Capabilities:
Get local ipv4 addresses
Get socket information
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov eax, dword [rcx + 0x40]
mov rsi, rdx
movsxd rdi, r8d
mov rbx, rcx
cmp eax, 0x100
je 0x140007d4d
cmp eax, 0x1000
je 0x140007d4d
cmp eax, 0x2000
je 0x140007d4d
cmp eax, 0x100000
je 0x140007d2d
cmp eax, 0x1000000
je 0x140007c48
mov ecx, dword [rcx + 0x48]
mov r8d, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.140042ba8
mov rbx, qword [rcx + 0x180]
test rbx, rbx
je 0x140007d18
cmp qword [rbx], 0
je 0x140007d18
cmp dword [rbx + 8], 0x1b
je 0x140007c78
mov rcx, rbx
call fcn.14000de80
test eax, eax
jne 0x140007da4
mov rax, qword [rbx + 0x78]
mov rcx, rdi
mov edi, 0x4000
test rax, rax
je 0x140007c98
cmp dword [rax + 0x48], 0x304
mov edx, 0x3fff
cmove edi, edx
cmp rcx, rdi
cmovbe rdi, rcx
cmp qword [rbx + 0x150], 0
je 0x140007cc9
mov rcx, rbx
call fcn.140010b20
test eax, eax
je 0x140007da2
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov qword [rbx + 0x148], rdi
mov dword [rbx + 0x140], reloc.WS2_32.dll_socket
test rdi, rdi
je 0x140007cf1
mov rcx, qword [rbx + 0x138]
mov r8, rdi
mov rdx, rsi
call fcn.140037380
mov edx, 1
mov rcx, rbx
call fcn.140010be0
test eax, eax
jne 0x140007da4
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, 0xffff8f00
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
movsxd rcx, dword [rcx + 0x48]
xor r9d, r9d
mov r8d, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.WS2_32.dll_send]
mov rdx, qword [rcx + 0x60]
mov eax, 0x1c
mov ecx, reloc.WS2_32.dll_recv
mov r8d, edi
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, rsi
call qword [sym.imp.WS2_32.dll_sendto]
mov rdx, qword [rbx + 0x58]
mov edi, eax
cmp word [rdx + 2], 0
jne 0x140007da4
movsxd rcx, dword [rbx + 0x48]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 0x1c
call qword [sym.imp.WS2_32.dll_getsockname]
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140007dc0
Capabilities:
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 0x140007e05
mov edi, dword [rbx + 0x9c]
add edi, dword [rbx + 0x88]
jmp 0x140007e0b
mov edi, dword [rbx + 0x80]
sub edi, edx
cmp ecx, 0x100
je 0x140007e68
cmp ecx, 0x1000
je 0x140007e68
cmp ecx, 0x2000
je 0x140007e68
mov rdx, rbp
cmp ecx, 0x100000
je 0x140007e56
cmp ecx, 0x1000000
je 0x140007e45
mov ecx, dword [rbx + 0x48]
mov r8d, edi
call fcn.140041e30
jmp 0x140007e96
mov rcx, qword [rbx + 0x180]
movsxd r8, edi
call fcn.1400112f0
jmp 0x140007e96
movsxd rcx, dword [rbx + 0x48]
xor r9d, r9d
mov r8d, edi
call qword [sym.imp.WS2_32.dll_recv]
jmp 0x140007e96
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
jns 0x140007ebb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140007f27
cmp eax, 0x2714
je 0x140007f27
cmp eax, 0x2738
jne 0x140007f12
mov esi, edi
test edi, edi
jne 0x140007ec7
mov eax, dword [rbx + 0x40]
test eax, 0xff00000
jne 0x140007f1f
cmp esi, edi
jge 0x140007ed2
movsxd rax, esi
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.140008fa0
cmp esi, edi
jne 0x140007f27
test byte [rbx + 0x3c], 0x20
jne 0x140007f27
cmp dword [rbx + 0x40], 0x1000000
jne 0x140007f27
mov ecx, 0x1000000
jmp 0x140007de0
mov dword [rbx + 0x4c], eax
mov eax, dword [rbx + 0x40]
test eax, 0xff00000
je 0x140007f27
mov rcx, rbx
call fcn.140008880
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
Function at 0x1400081b0
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], 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 0x140008257
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1400082a8
lea rcx, str.connect
call fcn.14003d290
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
mov qword [rsp + 0x40], rbx
mov dword [rbx + 0x4c], eax
lea rdx, [rsp + 0x20]
lea rax, [0x140007040]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
mov eax, dword [rbx + 0x44]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rcx
mov rcx, qword [rbx]
mov qword [rsp + 0x48], rax
movdqa xmmword [rsp + 0x50], xmm0
call fcn.140006320
mov eax, edi
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
test edi, edi
jne 0x1400082a8
xor ecx, ecx
mov qword [rsp + 0x40], rbx
lea rax, [0x140007bc0]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x20]
mov eax, dword [rbx + 0x44]
xorps xmm0, xmm0
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rcx
mov rcx, qword [rbx]
mov qword [rsp + 0x48], rax
movdqa xmmword [rsp + 0x50], xmm0
call fcn.140006320
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov eax, dword [rbx + 0x120]
lea rdx, [0x140007400]
mov rcx, qword [rbx]
test eax, eax
mov r8d, 0x2710
mov r9d, 1
cmovne r8d, eax
call fcn.140006a90
mov qword [rbx + 0x140], rax
lea rdx, [0x140008100]
mov r8d, 4
mov rcx, rbx
mov qword [rax + 0x28], rbx
or dword [rbx + 0x3c], 0x80
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
jmp fcn.140006e70
Function at 0x14000a9a0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
xor r10d, r10d
lea rsi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
mov edi, edx
mov rbx, rcx
mov r9d, r10d
test edx, edx
je 0x14000aa64
mov r11, rcx
nop dword [rax]
mov eax, 0xaaaaaaab
mov ecx, r10d
mul r10d
shr edx, 1
lea eax, [rdx + rdx*2]
sub ecx, eax
je 0x14000aa3f
sub ecx, 1
je 0x14000aa22
cmp ecx, 1
jne 0x14000aa55
lea eax, [r10 - 1]
mov ecx, r9d
movzx edx, byte [rax + rbx]
inc r9d
movzx eax, byte [r11]
and edx, 0xf
shr eax, 6
lea eax, [rax + rdx*4]
movzx eax, byte [rax + rsi]
mov byte [rcx + r8], al
movzx eax, byte [r11]
and eax, 0x3f
movzx eax, byte [rax + rsi]
mov byte [r9 + r8], al
jmp 0x14000aa52
lea eax, [r10 - 1]
movzx edx, byte [rax + rbx]
movzx eax, byte [r11]
and edx, 3
shl edx, 4
shr eax, 4
add edx, eax
movzx eax, byte [rdx + rsi]
jmp 0x14000aa4b
movzx eax, byte [r11]
shr rax, 2
movzx eax, byte [rax + rsi]
mov ecx, r9d
mov byte [rcx + r8], al
inc r9d
inc r10d
inc r11
cmp r10d, edi
jb 0x14000a9d0
dec r10d
mov eax, 0xaaaaaaab
mul r10d
mov ecx, r10d
shr edx, 1
lea eax, [rdx + rdx*2]
sub ecx, eax
jne 0x14000aab5
movzx ecx, byte [r10 + rbx]
and ecx, 3
mov edx, r9d
inc r9d
add rcx, rcx
movzx ecx, byte [rsi + rcx*8]
mov byte [rdx + r8], cl
mov byte [r9 + r8], 0x3d
inc r9d
mov byte [r9 + r8], 0x3d
lea eax, [r9 + 1]
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
cmp ecx, 1
jne 0x14000aae9
movzx edx, byte [r10 + rbx]
and edx, 0xf
mov ecx, r9d
inc r9d
movzx eax, byte [rsi + rdx*4]
mov byte [rcx + r8], al
lea eax, [r9 + 1]
mov byte [r9 + r8], 0x3d
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov rbx, qword [rsp + 8]
mov eax, r9d
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x14000b0d0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140066010]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 1
xor eax, eax
lock cmpxchg dword [0x140068178], ecx
jne 0x14000b10a
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140035400
add rsp, 0x1d8
ret
Function at 0x14000b130
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 [0x140066010]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
je 0x14000b232
cmp byte [rdx], 0
je 0x14000b232
mov ecx, 1
xor eax, eax
lock cmpxchg dword [0x140068178], ecx
jne 0x14000b18d
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 0x14000b1ae
mov word [rbx], di
jmp 0x14000b254
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 0x14000b1ca
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 0x14000b263
mov rdi, qword [rsp + 0x20]
test rdi, rdi
je 0x14000b245
cmp qword [rdi + 0x20], 0
je 0x14000b245
cmp qword [rdi + 0x10], 0
je 0x14000b245
mov rdx, rdi
cmp dword [rdx + 4], 2
je 0x14000b217
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x14000b205
mov rdx, rdi
mov r8, qword [rdx + 0x10]
mov rcx, rbx
mov rdx, qword [rdx + 0x20]
call fcn.140037380
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x14000b245
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 0x14000b254
cmp ax, 0x17
jne 0x14000b261
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.140035400
mov rbx, qword [rsp + 0x218]
add rsp, 0x1e0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000b370
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140066010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r14, r9
call fcn.14000b0d0
mov edi, 0xffffffff
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
xor esi, esi
mov r15d, 2
mov ecx, 0x7f000001
mov qword [rsp + 0x30], rsi
mov ebx, edi
mov word [rsp + 0x28], r15w
call qword [sym.imp.WS2_32.dll_htonl]
xor r8d, r8d
mov word [rsp + 0x2a], si
lea edx, [rdi + 2]
mov dword [rsp + 0x2c], eax
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_socket]
movsxd rsi, eax
mov rbp, rax
test eax, eax
jns 0x14000b407
lea rcx, str.socket
call fcn.14003d290
cmp ebp, ebx
je 0x14000b4f3
jmp 0x14000b4ce
mov r8d, dword [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x14000b42a
lea rcx, str.bind
jmp 0x14000b4c9
mov edx, 1
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jns 0x14000b448
lea rcx, str.listen
jmp 0x14000b4c9
lea r8, [rsp + 0x20]
mov rcx, rsi
lea rdx, [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x14000b468
lea rcx, str.getsockname
jmp 0x14000b4c9
xor r8d, r8d
mov ecx, r15d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
test eax, eax
jns 0x14000b488
lea rcx, str.socket
jmp 0x14000b4c9
mov r8d, dword [rsp + 0x20]
lea rdx, [rsp + 0x28]
movsxd rcx, ebx
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x14000b4a8
lea rcx, str.connect
jmp 0x14000b4c9
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 0x14000b4fa
lea rcx, str.accept
call fcn.14003d290
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
cmp ebx, 0xffffffff
je 0x14000b4e5
movsxd rcx, ebx
call qword [sym.imp.WS2_32.dll_closesocket]
cmp edi, 0xffffffff
je 0x14000b4f3
movsxd rcx, edi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
jmp 0x14000b50c
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 + 0x38]
xor rcx, rsp
call fcn.140035400
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14000d660
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x68]
mov rbp, rcx
lea rsi, [rbx + 0x268]
test rsi, rsi
je 0x14000d6f6
mov rcx, qword [rsi]
test rcx, rcx
je 0x14000d6f6
mov rdi, qword [rbx + 0x270]
test rdi, rdi
je 0x14000d6c3
mov ecx, dword [rcx]
sub ecx, 9
je 0x14000d6ae
cmp ecx, 1
jne 0x14000d6b7
mov ecx, 0xd8
jmp 0x14000d6b3
mov ecx, 0x68
xor eax, eax
rep stosb byte [rdi], al
mov rcx, qword [rbx + 0x270]
call fcn.14003c184
mov rdx, qword [rbx + 0x278]
test rdx, rdx
je 0x14000d6ea
mov rax, qword [rsi]
movzx ecx, byte [rax + 5]
add rcx, rcx
je 0x14000d6e2
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call fcn.14003c184
mov rdi, rsi
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov rax, qword [rbp + 0x68]
xor ecx, ecx
xorps xmm0, xmm0
movups xmmword [rax + 0x268], xmm0
mov qword [rax + 0x278], rcx
mov rdi, qword [rbp + 0x68]
add rdi, 0x268
je 0x14000d873
xor ebx, ebx
lea rax, [0x14005d110]
lea edx, [rcx + 0x68]
mov qword [rdi], rax
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbx
lea ecx, [rbx + 1]
call fcn.140039280
mov qword [rdi + 8], rax
test rax, rax
jne 0x14000d750
mov eax, 0xffffae80
jmp 0x14000d878
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
mov qword [rax + 0x60], rcx
mov rdx, qword [rbp + 0x68]
add rdx, 0x268
je 0x14000d873
mov rcx, qword [rdx]
test rcx, rcx
je 0x14000d873
mov ecx, dword [rcx]
sub ecx, 9
je 0x14000d7af
cmp ecx, 1
jne 0x14000d873
mov rcx, qword [rdx + 8]
call fcn.140020c10
test eax, eax
je 0x14000d7ef
jmp 0x14000d878
mov rax, qword [rdx + 8]
mov qword [rax + 0x40], rbx
mov dword [rax + 0x48], 0x6a09e667
mov dword [rax + 0x4c], 0xbb67ae85
mov dword [rax + 0x50], 0x3c6ef372
mov dword [rax + 0x54], 0xa54ff53a
mov dword [rax + 0x58], 0x510e527f
mov dword [rax + 0x5c], 0x9b05688c
mov dword [rax + 0x60], 0x1f83d9ab
mov dword [rax + 0x64], 0x5be0cd19
mov rcx, qword [rbp + 0x68]
add rcx, 0x280
call fcn.1400189d0
mov rax, qword [rbp + 0x68]
xor ecx, ecx
xorps xmm0, xmm0
movups xmmword [rax + 0x280], xmm0
mov qword [rax + 0x290], rcx
mov rdi, qword [rbp + 0x68]
add rdi, 0x280
je 0x14000d873
lea rax, [0x14005d118]
mov qword [rdi + 8], rbx
mov edx, 0xd8
mov qword [rdi], rax
mov ecx, 1
mov qword [rdi + 0x10], rbx
call fcn.140039280
mov qword [rdi + 8], rax
test rax, rax
je 0x14000d746
xor edx, edx
mov r8d, 0xd8
mov rcx, rax
call fcn.1400366d0
mov rcx, qword [rbp + 0x68]
add rcx, 0x280
call fcn.140018bd0
jmp 0x14000d878
mov eax, 0xffffaf00
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000fd40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x140066010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
mov r9, qword [rcx + 0x68]
mov rdi, rcx
movzx r8d, byte [rax + 8]
xor r8d, 1
call qword [r9 + 0x28]
mov rcx, rdi
call fcn.140010fd0
mov r9d, eax
test eax, eax
jne 0x14000ff26
cmp dword [rdi + 0xe0], 0x16
je 0x14000fdef
cmp qword [rdi], 0
je 0x14000fde4
cmp qword [rdi + 0x150], 0
mov rcx, rdi
je 0x14000fdb0
call fcn.140010b20
mov r9d, 0xffff8900
jmp 0x14000ff26
mov rax, qword [rdi + 0x138]
mov edx, 1
mov dword [rdi + 0x140], socket
mov qword [rdi + 0x148], 2
mov byte [rax], 2
mov rax, qword [rdi + 0x138]
mov byte [rax + 1], 0xa
call fcn.140010be0
mov r9d, 0xffff8900
jmp 0x14000ff26
mov r11, qword [rdi + 0xd0]
cmp byte [r11], 0x14
jne 0x14000fd8d
cmp qword [rdi + 0xf8], 0x10
je 0x14000fe68
cmp qword [rdi], 0
je 0x14000fe5d
cmp qword [rdi + 0x150], 0
mov rcx, rdi
je 0x14000fe29
call fcn.140010b20
mov r9d, 0xffff8d00
jmp 0x14000ff26
mov rax, qword [rdi + 0x138]
mov edx, 1
mov dword [rdi + 0x140], socket
mov qword [rdi + 0x148], 2
mov byte [rax], 2
mov rax, qword [rdi + 0x138]
mov byte [rax + 1], 0x32
call fcn.140010be0
mov r9d, 0xffff8d00
jmp 0x14000ff26
xor r8d, r8d
lea rax, [rsp + 0x20]
add r11, 4
mov r10d, r8d
sub r11, rax
nop word [rax + rax]
lea rax, [rsp + 0x20]
add rax, r8
inc r8
movzx ecx, byte [r11 + rax]
movzx edx, byte [rax]
xor edx, ecx
or r10d, edx
cmp r8, 0xc
jb 0x14000fe80
mov ecx, r10d
movzx eax, r10w
shr ecx, 0x10
or ecx, eax
je 0x14000ff08
cmp qword [rdi], 0
je 0x14000ff00
cmp qword [rdi + 0x150], 0
mov rcx, rdi
je 0x14000fecc
call fcn.140010b20
mov r9d, 0xffff9200
jmp 0x14000ff26
mov rax, qword [rdi + 0x138]
mov edx, 1
mov dword [rdi + 0x140], socket
mov qword [rdi + 0x148], 2
mov byte [rax], 2
mov rax, qword [rdi + 0x138]
mov byte [rax + 1], 0x33
call fcn.140010be0
mov r9d, 0xffff9200
jmp 0x14000ff26
mov rax, qword [rdi + 0x68]
cmp byte [rax], 0
je 0x14000ff23
mov rax, qword [rdi]
cmp byte [rax + 8], 0
jne 0x14000ff26
mov dword [rdi + 8], 0xa
jmp 0x14000ff26
inc dword [rdi + 8]
xor eax, eax
lea rdi, [rsp + 0x20]
mov ecx, ntohl
rep stosb byte [rdi], al
mov eax, r9d
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140035400
add rsp, 0x40
pop rdi
ret
Function at 0x140010670
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rdx, r8
xor ecx, ecx
mov r8, r9
mov qword [rbx], rcx
mov dword [rbx + 8], ecx
mov rcx, rbx
call fcn.140037380
mov r11, qword [rsp + 0x50]
add rbx, 4
mov r9, r11
mov r8d, 8
sub r9, rbx
xor edx, edx
mov r10d, r8d
mov rax, rbx
sub r10, rbx
nop
mov rcx, qword [r9 + rax]
add rdx, r8
xor rcx, qword [rax]
mov qword [rax], rcx
lea rax, [rax + 8]
lea rcx, [r10 + rax]
cmp rcx, r8
jbe 0x1400106b0
mov rcx, r8
sub rcx, rdx
cmp rdx, r8
jae 0x1400107ab
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
cmp rcx, 0x40
jb 0x140010785
lea rdi, [rdx + rbx]
lea rax, [r11 + 7]
lea r10, [rbx + 7]
lea rsi, [rdx + r11]
cmp rdi, rax
ja 0x140010707
cmp r10, rsi
jae 0x140010785
and ecx, 0x3f
mov r10, r8
sub r10, rcx
lea rax, [rdi + 0x10]
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add rdx, 0x40
movdqu xmm1, xmmword [r9 + rax - 0x10]
movdqu xmm2, xmmword [rax + r9]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmm1, xmmword [r9 + 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 [r9 + rax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
cmp rdx, r10
jb 0x140010720
cmp rdx, r8
jae 0x1400107a1
lea rcx, [rdx + rbx]
sub r8, rdx
nop dword [rax]
movzx eax, byte [rcx + r9]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x140010790
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret