joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007950
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 0x140007985
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140007a0c
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 0x140007b3b
mov rbp, qword [rbx + 0x180]
test rbp, rbp
jne 0x140007a8c
mov rax, qword [rbx + 0x188]
test rax, rax
jne 0x1400079f4
mov rax, qword [0x140068160]
test rax, rax
jne 0x1400079f4
call fcn.14000cb80
or dword [rbx + 0x3c], 0x8000
mov qword [rbx + 0x188], rax
test rax, rax
jne 0x1400079f4
mov eax, 0x411
jmp 0x140007a0c
mov edx, dword [rbx + 0x48]
mov rcx, rax
call fcn.14000d040
mov rbp, rax
test rax, rax
jne 0x140007a85
mov eax, 0x412
mov dword [rbx + 0x4c], eax
lea rdi, [0x140068250]
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.14000a710
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.140009cd0
mov rcx, rbx
call fcn.140008840
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 0x140007b26
mov rcx, 0xffffffffffffffff
mov qword [rsp + 0x68], rsi
mov rsi, rcx
inc rsi
cmp byte [r14 + rsi], 0
jne 0x140007ab0
cmp rsi, 0xff
ja 0x140007b21
mov r8, qword [rbp + 0x160]
test r8, r8
je 0x140007aee
nop
inc rcx
cmp byte [r8 + rcx], 0
jne 0x140007ad0
test rcx, rcx
je 0x140007ae6
mov rdi, r8
xor eax, eax
rep stosb byte [rdi], al
mov rcx, r8
call fcn.14003c094
lea rdx, [rsi + 1]
mov ecx, 1
call fcn.140039240
mov qword [rbp + 0x160], rax
test rax, rax
je 0x140007b21
mov r8, rsi
mov rdx, r14
mov rcx, rax
call fcn.140037340
mov rax, qword [rbp + 0x160]
mov byte [rsi + rax], 0
mov rsi, qword [rsp + 0x68]
mov rcx, rbx
call fcn.140007670
mov r14, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
mov rcx, qword [rbx + 0x140]
test rcx, rcx
je 0x140007b5b
call fcn.140006bc0
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 0x140007b70
mov rcx, rbx
call rax
add rsp, 0x40
pop rdi
pop rbp
pop rbx
ret
Function at 0x140007ba0
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 0x140007d0d
cmp eax, 0x1000
je 0x140007d0d
cmp eax, 0x2000
je 0x140007d0d
cmp eax, 0x100000
je 0x140007ced
cmp eax, 0x1000000
je 0x140007c08
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.140042a44
mov rbx, qword [rcx + 0x180]
test rbx, rbx
je 0x140007cd8
cmp qword [rbx], 0
je 0x140007cd8
cmp dword [rbx + 8], 0x1b
je 0x140007c38
mov rcx, rbx
call fcn.14000de40
test eax, eax
jne 0x140007d64
mov rax, qword [rbx + 0x78]
mov rcx, rdi
mov edi, 0x4000
test rax, rax
je 0x140007c58
cmp dword [rax + 0x48], 0x304
mov edx, 0x3fff
cmove edi, edx
cmp rcx, rdi
cmovbe rdi, rcx
cmp qword [rbx + 0x150], 0
je 0x140007c89
mov rcx, rbx
call fcn.140010ae0
test eax, eax
je 0x140007d62
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 0x140007cb1
mov rcx, qword [rbx + 0x138]
mov r8, rdi
mov rdx, rsi
call fcn.140037340
mov edx, 1
mov rcx, rbx
call fcn.140010ba0
test eax, eax
jne 0x140007d64
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 0x140007d64
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 0x140007d80
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 0x140007dc5
mov edi, dword [rbx + 0x9c]
add edi, dword [rbx + 0x88]
jmp 0x140007dcb
mov edi, dword [rbx + 0x80]
sub edi, edx
cmp ecx, 0x100
je 0x140007e28
cmp ecx, 0x1000
je 0x140007e28
cmp ecx, 0x2000
je 0x140007e28
mov rdx, rbp
cmp ecx, 0x100000
je 0x140007e16
cmp ecx, 0x1000000
je 0x140007e05
mov ecx, dword [rbx + 0x48]
mov r8d, edi
call fcn.140041cc0
jmp 0x140007e56
mov rcx, qword [rbx + 0x180]
movsxd r8, edi
call fcn.1400112b0
jmp 0x140007e56
movsxd rcx, dword [rbx + 0x48]
xor r9d, r9d
mov r8d, edi
call qword [sym.imp.WS2_32.dll_recv]
jmp 0x140007e56
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 0x140007e7b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140007ee7
cmp eax, 0x2714
je 0x140007ee7
cmp eax, 0x2738
jne 0x140007ed2
mov esi, edi
test edi, edi
jne 0x140007e87
mov eax, dword [rbx + 0x40]
test eax, 0xff00000
jne 0x140007edf
cmp esi, edi
jge 0x140007e92
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.140008f60
cmp esi, edi
jne 0x140007ee7
test byte [rbx + 0x3c], 0x20
jne 0x140007ee7
cmp dword [rbx + 0x40], 0x1000000
jne 0x140007ee7
mov ecx, 0x1000000
jmp 0x140007da0
mov dword [rbx + 0x4c], eax
mov eax, dword [rbx + 0x40]
test eax, 0xff00000
je 0x140007ee7
mov rcx, rbx
call fcn.140008840
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret
Function at 0x140008170
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 0x140008217
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140008268
lea rcx, str.connect
call fcn.14003d17c
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, [0x140007000]
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.1400062e0
mov eax, edi
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
test edi, edi
jne 0x140008268
xor ecx, ecx
mov qword [rsp + 0x40], rbx
lea rax, [0x140007b80]
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.1400062e0
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov eax, dword [rbx + 0x120]
lea rdx, [0x1400073c0]
mov rcx, qword [rbx]
test eax, eax
mov r8d, 0x2710
mov r9d, 1
cmovne r8d, eax
call fcn.140006a50
mov qword [rbx + 0x140], rax
lea rdx, [0x1400080c0]
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.140006e30
Function at 0x14000a960
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 0x14000aa24
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 0x14000a9ff
sub ecx, 1
je 0x14000a9e2
cmp ecx, 1
jne 0x14000aa15
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 0x14000aa12
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 0x14000aa0b
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 0x14000a990
dec r10d
mov eax, 0xaaaaaaab
mul r10d
mov ecx, r10d
shr edx, 1
lea eax, [rdx + rdx*2]
sub ecx, eax
jne 0x14000aa75
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 0x14000aaa9
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 0x14000b090
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 [0x140068158], ecx
jne 0x14000b0ca
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.1400353c0
add rsp, 0x1d8
ret
Function at 0x14000b0f0
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 0x14000b1f2
cmp byte [rdx], 0
je 0x14000b1f2
mov ecx, 1
xor eax, eax
lock cmpxchg dword [0x140068158], ecx
jne 0x14000b14d
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 0x14000b16e
mov word [rbx], di
jmp 0x14000b214
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 0x14000b18a
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 0x14000b223
mov rdi, qword [rsp + 0x20]
test rdi, rdi
je 0x14000b205
cmp qword [rdi + 0x20], 0
je 0x14000b205
cmp qword [rdi + 0x10], 0
je 0x14000b205
mov rdx, rdi
cmp dword [rdx + 4], 2
je 0x14000b1d7
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x14000b1c5
mov rdx, rdi
mov r8, qword [rdx + 0x10]
mov rcx, rbx
mov rdx, qword [rdx + 0x20]
call fcn.140037340
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x14000b205
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 0x14000b214
cmp ax, 0x17
jne 0x14000b221
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.1400353c0
mov rbx, qword [rsp + 0x218]
add rsp, 0x1e0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000b330
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.14000b090
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 0x14000b3c7
lea rcx, str.socket
call fcn.14003d17c
cmp ebp, ebx
je 0x14000b4b3
jmp 0x14000b48e
mov r8d, dword [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x14000b3ea
lea rcx, str.bind
jmp 0x14000b489
mov edx, 1
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jns 0x14000b408
lea rcx, str.listen
jmp 0x14000b489
lea r8, [rsp + 0x20]
mov rcx, rsi
lea rdx, [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x14000b428
lea rcx, str.getsockname
jmp 0x14000b489
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 0x14000b448
lea rcx, str.socket
jmp 0x14000b489
mov r8d, dword [rsp + 0x20]
lea rdx, [rsp + 0x28]
movsxd rcx, ebx
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x14000b468
lea rcx, str.connect
jmp 0x14000b489
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 0x14000b4ba
lea rcx, str.accept
call fcn.14003d17c
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
cmp ebx, 0xffffffff
je 0x14000b4a5
movsxd rcx, ebx
call qword [sym.imp.WS2_32.dll_closesocket]
cmp edi, 0xffffffff
je 0x14000b4b3
movsxd rcx, edi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
jmp 0x14000b4cc
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.1400353c0
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 0x14000d620
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 0x14000d6b6
mov rcx, qword [rsi]
test rcx, rcx
je 0x14000d6b6
mov rdi, qword [rbx + 0x270]
test rdi, rdi
je 0x14000d683
mov ecx, dword [rcx]
sub ecx, 9
je 0x14000d66e
cmp ecx, 1
jne 0x14000d677
mov ecx, 0xd8
jmp 0x14000d673
mov ecx, 0x68
xor eax, eax
rep stosb byte [rdi], al
mov rcx, qword [rbx + 0x270]
call fcn.14003c094
mov rdx, qword [rbx + 0x278]
test rdx, rdx
je 0x14000d6aa
mov rax, qword [rsi]
movzx ecx, byte [rax + 5]
add rcx, rcx
je 0x14000d6a2
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call fcn.14003c094
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 0x14000d833
xor ebx, ebx
lea rax, [0x14005d0c0]
lea edx, [rcx + 0x68]
mov qword [rdi], rax
mov qword [rdi + 8], rbx
mov qword [rdi + 0x10], rbx
lea ecx, [rbx + 1]
call fcn.140039240
mov qword [rdi + 8], rax
test rax, rax
jne 0x14000d710
mov eax, 0xffffae80
jmp 0x14000d838
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 0x14000d833
mov rcx, qword [rdx]
test rcx, rcx
je 0x14000d833
mov ecx, dword [rcx]
sub ecx, 9
je 0x14000d76f
cmp ecx, 1
jne 0x14000d833
mov rcx, qword [rdx + 8]
call fcn.140020bd0
test eax, eax
je 0x14000d7af
jmp 0x14000d838
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.140018990
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 0x14000d833
lea rax, [0x14005d0c8]
mov qword [rdi + 8], rbx
mov edx, 0xd8
mov qword [rdi], rax
mov ecx, 1
mov qword [rdi + 0x10], rbx
call fcn.140039240
mov qword [rdi + 8], rax
test rax, rax
je 0x14000d706
xor edx, edx
mov r8d, 0xd8
mov rcx, rax
call fcn.140036690
mov rcx, qword [rbp + 0x68]
add rcx, 0x280
call fcn.140018b90
jmp 0x14000d838
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 0x14000fd00
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.140010f90
mov r9d, eax
test eax, eax
jne 0x14000fee6
cmp dword [rdi + 0xe0], 0x16
je 0x14000fdaf
cmp qword [rdi], 0
je 0x14000fda4
cmp qword [rdi + 0x150], 0
mov rcx, rdi
je 0x14000fd70
call fcn.140010ae0
mov r9d, 0xffff8900
jmp 0x14000fee6
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.140010ba0
mov r9d, 0xffff8900
jmp 0x14000fee6
mov r11, qword [rdi + 0xd0]
cmp byte [r11], 0x14
jne 0x14000fd4d
cmp qword [rdi + 0xf8], 0x10
je 0x14000fe28
cmp qword [rdi], 0
je 0x14000fe1d
cmp qword [rdi + 0x150], 0
mov rcx, rdi
je 0x14000fde9
call fcn.140010ae0
mov r9d, 0xffff8d00
jmp 0x14000fee6
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.140010ba0
mov r9d, 0xffff8d00
jmp 0x14000fee6
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 0x14000fe40
mov ecx, r10d
movzx eax, r10w
shr ecx, 0x10
or ecx, eax
je 0x14000fec8
cmp qword [rdi], 0
je 0x14000fec0
cmp qword [rdi + 0x150], 0
mov rcx, rdi
je 0x14000fe8c
call fcn.140010ae0
mov r9d, 0xffff9200
jmp 0x14000fee6
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.140010ba0
mov r9d, 0xffff9200
jmp 0x14000fee6
mov rax, qword [rdi + 0x68]
cmp byte [rax], 0
je 0x14000fee3
mov rax, qword [rdi]
cmp byte [rax + 8], 0
jne 0x14000fee6
mov dword [rdi + 8], 0xa
jmp 0x14000fee6
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.1400353c0
add rsp, 0x40
pop rdi
ret
Function at 0x140010630
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.140037340
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 0x140010670
mov rcx, r8
sub rcx, rdx
cmp rdx, r8
jae 0x14001076b
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
cmp rcx, 0x40
jb 0x140010745
lea rdi, [rdx + rbx]
lea rax, [r11 + 7]
lea r10, [rbx + 7]
lea rsi, [rdx + r11]
cmp rdi, rax
ja 0x1400106c7
cmp r10, rsi
jae 0x140010745
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 0x1400106e0
cmp rdx, r8
jae 0x140010761
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 0x140010750
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret