joyce8/EMBER2024-capa huggingface dataset:
Function at 0x500100
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x860
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov ecx, esi
mov edi, dword [ebp + 0xc]
call fcn.0046ecc0
push edi
mov ecx, esi
call fcn.0046ee20
test al, al
je 0x500160
mov byte [esi + 0x15], 1
mov ecx, edi
mov eax, dword [edi]
push str.Wait_for_data_on_socket_aborted_by_app
call dword [eax + 0x14]
xor al, al
jmp 0x500236
cmp dword [ebx + 0x294], 0xffffffff
jne 0x500180
mov eax, dword [edi]
mov ecx, edi
push str.Cannot_wait_for_socket_data:_not_connected__invalid_socket_
call dword [eax + 0x14]
mov byte [esi + 0x16], 1
xor al, al
jmp 0x500236
lea ecx, [ebp - 0x86c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.0042a200
mov dword [ebp - method.ckFdSet.virtual_0], vtable.ckFdSet.0
mov dword [ebp - 0x864], 0x3004bc8d
mov dword [ebp - 0x1c], 0x3004bc8d
push 0x40
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x860], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp - 0x864], 0x3004bc8d
je 0x5001eb
push 0
call fcn.00401520
add esp, 4
cmp dword [ebp - 0x1c], 0x3004bc8d
je 0x5001fe
push 0
call fcn.00401520
add esp, 4
mov edx, dword [ebx + 0x294]
test edx, edx
jns 0x500254
mov byte [esi + 0x16], 1
xor bl, bl
lea ecx, [ebp - 0x86c]
mov dword [ebp - method.ckFdSet.virtual_0], vtable.ckFdSet.0
mov dword [ebp - 0x864], 0
mov dword [ebp - 0x1c], 0
call fcn.0042a2a0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x860]
xor eax, eax
test ecx, ecx
je 0x50026e
cmp dword [ebp + eax*4 - 0x85c], edx
je 0x50026e
inc eax
cmp eax, ecx
jb 0x500260
cmp eax, ecx
jne 0x500287
cmp ecx, 0x200
jae 0x500287
mov dword [ebp + eax*4 - 0x85c], edx
inc dword [ebp - 0x860]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
lea eax, [ebp - 0x860]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x50020c
test eax, eax
js 0x50020c
jne 0x5002ba
mov byte [esi + 0x14], 1
jmp 0x50020c
mov bl, 1
jmp 0x50020e

Function at 0x500940
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [esi + 0x294], 0xffffffff
je 0x5009b0
cmp byte [ebp + 8], 0
mov al, byte [ecx + 0x129]
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0
je 0x50098c
test al, al
je 0x500987
mov eax, dword [ecx]
push str.Turning_on_TCP_NODELAY.
call dword [eax + 0x18]
lea eax, [ebp - 8]
jmp 0x50099d
test al, al
je 0x50099a
mov eax, dword [ecx]
push str.Turning_off_TCP_NODELAY.
call dword [eax + 0x18]
lea eax, [ebp - 0xc]
push 4
push eax
push 1
push 6
push dword [esi + 0x294]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 8
Function at 0x500a60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi + 0xd0], 0x4901fb2a
je 0x500a91
mov ecx, dword [ebp + 0xc]
push str.Internal_error:_Socket_object_already_deleted.
mov eax, dword [ecx]
call dword [eax + 0x14]
push 0
call fcn.00401520
add esp, 4
pop esi
pop ebp
ret 8
cmp dword [esi + 0xd8], edx
push edi
lea edi, [esi + 0xd8]
je 0x500b07
test edx, edx
je 0x500b07
cmp edx, 0x1000
jb 0x500b07
mov eax, 0x800000
cmp edx, eax
cmovbe eax, edx
and eax, 0xfffff000
cmp dword [esi + 0x294], 0xffffffff
mov dword [edi], eax
je 0x500b07
push ebx
mov ebx, dword [ebp + 0xc]
cmp byte [ebx + 0x129], 0
je 0x500aed
mov eax, dword [ebx]
mov ecx, ebx
push str.Setting_SO_SNDBUF_size
call dword [eax + 0x18]
push dword [edi]
mov ecx, ebx
push str.sendBufSize
call fcn.00448a10
push 4
push edi
push 0x1001
push 0xffff
push dword [esi + 0x294]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop ebx
pop edi
pop esi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5d4d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x294]
lea eax, [esi + 0x290]
mov edi, dword [ebp + 8]
cmp ecx, 0xffffffff
jne 0x500b53
mov byte [eax], 0
cmp byte [eax], 0
je 0x500ba3
cmp byte [esi + 0xd6], 0
jne 0x500ba3
cmp byte [esi + 0xd5], 0
jne 0x500c11
cmp byte [esi + 0xd4], 0
jne 0x500c11
cmp byte [edi + 0x133], 0
jne 0x500c11
push 2
push 1
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x500bc2
push edi
mov ecx, esi
call fcn.004fff70
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret 4
cmp eax, 0xffffffff
je 0x500bcb
test eax, eax
jns 0x500c11
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x500c11
push str.isConnected_recv_peek
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push edi
lea ecx, [ebp - 0x24]
movq qword [ebp - 0x24], xmm0
call fcn.004481f0
push edi
push 0
mov dword [ebp - 4], 0
call fcn.005007a0
add esp, 8
lea ecx, [ebp - 0x24]
call fcn.004482f0
jmp 0x500ba3
mov al, 1
jmp 0x500ba5
Function at 0x501cf0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x6905c8], 0
push edi
mov edi, dword [ebp + 8]
jne 0x501d21
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret
push ebx
push 0x190
lea eax, [ebp - 0x224]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [ebp - 0x224]
add esp, 0xc
push eax
push 0x909
call ebx
mov dword [ebp - 0x8c], eax
cmp eax, 0x276c
jne 0x501e28
mov edx, 5
mov ecx, 2
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], ecx
push esi
cmp edx, 1
jl 0x501de6
add ecx, 0xffffffff
mov dword [ebp - 0x90], ecx
jns 0x501d97
dec edx
mov dword [ebp - 0x90], 9
mov dword [ebp - 0x94], edx
mov cl, 9
test edx, edx
je 0x501de6
movzx ecx, cl
movzx eax, dl
shl cx, 8
or cx, ax
lea eax, [ebp - 0x224]
push 0x190
push 0
push eax
movzx esi, cx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push esi
call ebx
mov dword [ebp - 0x8c], eax
cmp eax, 0x276c
jne 0x501de6
mov edx, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x90]
jmp 0x501d74
pop esi
test eax, eax
jne 0x501e2c
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x94]
push eax
push str.Using_ws2_32.dll_version__d__d
lea eax, [ebp - 0x88]
push 0x50
push eax
call fcn.00446f00
mov eax, dword [edi]
lea ecx, [ebp - 0x88]
add esp, 0x14
push ecx
push str.ws2_32_DLL_Version
mov ecx, edi
call dword [eax + 0x2c]
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x501e9d
cmp eax, 0x276b
jne 0x501e3a
push str.The_underlying_network_subsystem_is_not_ready_for_network_communication.
jmp 0x501e90
cmp eax, 0x276c
jne 0x501e48
push str.The_version_of_Windows_Sockets_support_requested_is_not_provided_by_this_particular_Windows_Sockets_implementation.
jmp 0x501e90
cmp eax, 0x2734
jne 0x501e56
push str.A_blocking_Windows_Sockets_1.1_operation_is_in_progress.
jmp 0x501e90
cmp eax, 0x2753
jne 0x501e64
push str.Limit_on_the_number_of_tasks_supported_by_the_Windows_Sockets_implementation_has_been_reached.
jmp 0x501e90
cmp eax, 0x271e
jne 0x501e72
push str.The_lpWSAData_is_not_a_valid_pointer.
jmp 0x501e90
lea eax, [ebp - 0x8c]
push eax
push str.WSAStartup_error:_0x_x
lea eax, [ebp - 0x38]
push 0x32
push eax
call fcn.00446e40
add esp, 0x10
lea ecx, [ebp - 0x38]
push ecx
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 4]
test eax, eax
pop ebx
sete al
mov byte [0x6905c8], 0
xor ecx, ebp
pop edi
call fcn.005b34c8
mov esp, ebp
pop ebp
ret
Function at 0x52bff0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8c3d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
mov edi, dword [ebp + 0x14]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
push str.dns_gethostbyname
push edi
mov dword [ebp - 0x48], eax
movq qword [ebp - 0x44], xmm0
mov dword [ebp - 0x3c], 0
call fcn.004481f0
mov eax, dword [ebp - 0x48]
mov ecx, ebx
mov dword [ebp - 4], 0
mov dword [eax], 0
call fcn.0042cb70
mov eax, dword [edi]
mov ecx, edi
push esi
push str.hostname
call dword [eax + 0x2c]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edx, eax
test edx, edx
je 0x52c0d6
mov ecx, dword [edx + 0xc]
mov ecx, dword [ecx]
test ecx, ecx
je 0x52c085
mov eax, dword [ecx]
jmp 0x52c087
xor eax, eax
mov ecx, dword [ebp - 0x48]
mov dword [ecx], eax
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
lea eax, [ecx + 3]
push eax
lea eax, [ecx + 2]
push eax
lea eax, [ecx + 1]
push eax
push ecx
push str._b._b._b._b
lea eax, [ebp - 0x38]
push 0x28
push eax
call fcn.004470a0
add esp, 0x1c
lea eax, [ebp - 0x38]
mov ecx, ebx
push eax
call fcn.00431a20
cmp byte [edi + 0x129], 0
je 0x52c0d2
push ebx
push 0x610784
mov ecx, edi
call fcn.00448d80
mov bl, 1
jmp 0x52c0d8
xor bl, bl
lea ecx, [ebp - 0x44]
call fcn.004482f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret
Function at 0x52d330
Capabilities:
Connect socket
Connect udp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
push 0
push 2
push 2
mov dword [esi + 4], 0
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x52d380
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_create_a_UDP_socket.
call dword [eax + 0x14]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
lea ecx, [esi + 0x1c]
mov eax, 2
movlpd qword [ebp - 0xc], xmm0
mov word [ebp - 0x14], ax
call fcn.0042f610
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x35
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x52d3ee
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_specify_a_UDP_socket_destination_address.
call dword [eax + 0x14]
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
mov dword [esi], 0xffffffff
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.005b34c8
mov esp, ebp
pop ebp
ret
Function at 0x52dba0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
cmp eax, 0xffffffff
jne 0x52dbe5
mov eax, dword [esi]
mov ecx, esi
push str.Cannot_send_to_invalid_UDP_socket
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret
cmp dword [edi + 8], 6
jl 0x52dc0a
mov eax, dword [esi]
mov ecx, esi
push str.Too_many_retries_for_this_nameserver.
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret
push esi
push ecx
push 0
push dword [ebp + 0x10]
push eax
call fcn.0052e180
add esp, 0x14
test al, al
jne 0x52dc4b
push str.Waited__but_cannot_send_on_UDP_socket_without_waiting_longer.
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
push dword [edi]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], 0xffffffff
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 2
call fcn.0045dff0
add esp, 8
mov ecx, ebx
call fcn.00438ea0
movzx ecx, byte [ebp - 8]
push 0
mov byte [eax], cl
movzx ecx, byte [ebp - 7]
mov byte [eax + 1], cl
mov ecx, ebx
mov edx, dword [edi + 8]
mov al, byte [ebp - 8]
mov byte [edi + edx*2 + 0xc], al
mov edx, dword [edi + 8]
mov al, byte [ebp - 7]
mov byte [edi + edx*2 + 0xd], al
call fcn.00402fb0
push eax
mov ecx, ebx
call fcn.00438ea0
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x52dcbc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
push 0
push eax
call fcn.00500330
add esp, 0xc
push str.Failed_to_send_DNS_query_on_UDP_socket.
jmp 0x52dc23
inc dword [edi + 8]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b34c8
mov esp, ebp
pop ebp
ret
Function at 0x5509c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [0x6970d8]
push ebx
push esi
movups xmmword [ebp - 0x24], xmm0
push edi
movups xmm0, xmmword [0x6970e8]
mov edi, dword [ebp + 8]
mov ebx, 0xff
movups xmmword [ebp - 0x14], xmm0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 8]
push 0x697178
lea eax, [ecx + ecx]
shr ecx, 0x1f
mov dword [ebp - 0x24], eax
lea eax, [edx + edx]
or ecx, eax
shr edx, 0x1f
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + ecx]
shr ecx, 0x1f
or edx, eax
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x18]
lea eax, [edx + edx]
shr edx, 0x1f
or ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + ecx]
shr ecx, 0x1f
or edx, eax
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x10]
lea eax, [edx + edx]
shr edx, 0x1f
or ecx, eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + ecx]
shr ecx, 0x1f
or edx, eax
lea eax, [esi + esi]
or ecx, eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x24]
call fcn.0054a790
movzx eax, al
lea ecx, [ebp - 0x24]
xor eax, 1
shr esi, 0x1f
or eax, esi
push eax
push 0x697178
call fcn.00553280
mov edx, dword [ebp + 0xc]
mov eax, ebx
shr eax, 5
mov ecx, ebx
and ecx, 0x1f
mov eax, dword [edx + eax*4]
shr eax, cl
lea ecx, [ebp - 0x24]
and eax, 1
push eax
push edi
call fcn.0054a990
push 0x697178
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.0054a790
movzx ecx, al
xor ecx, 1
or ecx, esi
push ecx
push 0x697178
lea ecx, [ebp - 0x24]
call fcn.00553280
sub ebx, 1
jns 0x5509f1
movups xmm0, xmmword [ebp - 0x24]
mov ecx, dword [ebp - 4]
xor ecx, ebp
movups xmmword [edi], xmm0
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [edi + 0x10], xmm0
pop edi
pop esi
pop ebx
call fcn.005b34c8
mov esp, ebp
pop ebp
ret
Function at 0x56b760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
dec eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
movd xmm0, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0xfc]
pshufd xmm4, xmm0, 0
push edi
mov edi, dword [ebp + 0x14]
lea edx, [eax + 0xfc]
cmp eax, ecx
ja 0x56b797
cmp edx, esi
jae 0x56b7cf
lea ecx, [edi + 0xfc]
cmp eax, ecx
ja 0x56b7a5
cmp edx, edi
jae 0x56b7cf
lea ecx, [ebx + 0xfc]
cmp eax, ecx
ja 0x56b7b3
cmp edx, ebx
jae 0x56b7cf
lea edx, [esi + 0xfc]
cmp ebx, edx
ja 0x56b7c1
cmp ecx, esi
jae 0x56b7cf
lea edx, [edi + 0xfc]
cmp ebx, edx
ja 0x56b80d
cmp ecx, edi
jb 0x56b80d
sub edi, ebx
mov dword [ebp + 0x18], 0x40
sub ebx, esi
sub eax, esi
mov dword [ebp + 0xc], eax
nop
mov edx, dword [esi]
lea ecx, [ebx + esi]
mov eax, dword [ecx + edi]
lea esi, [esi + 4]
xor edx, eax
and edx, dword [ebp - 4]
xor eax, edx
mov dword [ecx], eax
mov eax, dword [esi - 4]
mov ecx, dword [ebp + 0xc]
xor eax, edx
sub dword [ebp + 0x18], 1
mov dword [ecx + esi - 4], eax
jne 0x56b7e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub esi, edi
sub ebx, edi
sub eax, edi
mov ecx, 0x10
nop dword [eax + eax]
lea edi, [edi + 0x10]
movups xmm3, xmmword [esi + edi - 0x10]
movups xmm1, xmmword [edi - 0x10]
movaps xmm2, xmm3
pxor xmm2, xmm1
pand xmm2, xmm4
movaps xmm0, xmm2
pxor xmm2, xmm3
pxor xmm0, xmm1
movups xmmword [ebx + edi - 0x10], xmm0
movups xmmword [eax + edi - 0x10], xmm2
sub ecx, 1
jne 0x56b820
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x56bd00
Capabilities:
Encode data using xor
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x194]
push ebx
mov ebx, dword [ebp + 8]
mov edx, 2
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movd eax, xmm0
movups xmmword [ebp - 0x14], xmm1
and al, 0xf8
psrldq xmm1, 0xf
movups xmmword [ebp - 0x24], xmm0
mov byte [ebp - 0x24], al
movd eax, xmm1
and al, 0x3f
or al, 0x40
mov byte [ebp - 5], al
mov eax, dword [ebp + 0x10]
add eax, 8
movd xmm1, dword [eax - 8]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
lea eax, [eax + 0x10]
punpcklwd xmm1, xmm0
lea ecx, [ecx + 0x40]
movups xmmword [ecx - 0x50], xmm1
movd xmm1, dword [eax - 0x14]
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movd xmm1, dword [eax - 0x10]
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movd xmm1, dword [eax - 0xc]
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
sub edx, 1
jne 0x56bd53
push esi
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1a4]
push eax
call fcn.0056bf20
lea eax, [ebp - 0x124]
push eax
push eax
call fcn.0056b860
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.0056b350
add esp, 0x1c
lea esi, [ebp - 0xa4]
mov ecx, 0x20
lea edi, [ebp - 0x224]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
xor edx, edx
pop edi
pop esi
nop word [eax + eax]
mov eax, dword [edx + 0x63b190]
add eax, dword [ebp + edx - 0xa4]
add ecx, eax
movzx eax, cl
mov dword [ebp + edx - 0xa4], eax
add edx, 4
shr ecx, 8
cmp edx, 0x7c
jb 0x56be00
mov eax, dword [ebp - 0x28]
sub eax, 0xffffff80
add eax, ecx
mov dword [ebp - 0x28], eax
shr eax, 7
and eax, 1
neg eax
movd xmm0, eax
xor eax, eax
pshufd xmm2, xmm0, 0
nop dword [eax]
nop word [eax + eax]
movups xmm1, xmmword [ebp + eax - 0xa4]
movups xmm0, xmmword [ebp + eax - 0x224]
pxor xmm0, xmm1
pand xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [ebp + eax - 0xa4], xmm0
movups xmm1, xmmword [ebp + eax - 0x94]
movups xmm0, xmmword [ebp + eax - 0x214]
pxor xmm0, xmm1
pand xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [ebp + eax - 0x94], xmm0
movups xmm1, xmmword [ebp + eax - 0x84]
movups xmm0, xmmword [ebp + eax - 0x204]
pxor xmm0, xmm1
pand xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [ebp + eax - 0x84], xmm0
movups xmm1, xmmword [ebp + eax - 0x74]
movups xmm0, xmmword [ebp + eax - 0x1f4]
pxor xmm0, xmm1
pand xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [ebp + eax - 0x74], xmm0
add eax, 0x40
cmp eax, 0x80
jb 0x56be50
xor eax, eax
nop word [eax + eax]
mov cl, byte [ebp + eax*4 - 0xa4]
mov byte [ebx + eax], cl
inc eax
cmp eax, 0x20
jb 0x56bef0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.005b34c8
mov esp, ebp
pop ebp
ret
Function at 0x56cd20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
movzx ebx, byte [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
neg ebx
push edi
lea edi, [eax + 0x7c]
lea ecx, [esi + 0x7c]
movd xmm0, ebx
pshufd xmm2, xmm0, 0
cmp eax, ecx
ja 0x56cd68
cmp edi, esi
jb 0x56cd68
sub esi, eax
lea edi, [edx + 0x20]
mov edx, dword [eax + esi]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, ebx
xor dword [eax - 4], edx
sub edi, 1
jne 0x56cd50
pop edi
pop esi
pop ebx
pop ebp
ret
mov edi, esi
lea ecx, [eax + 0x10]
sub edi, eax
nop
movups xmm1, xmmword [ecx - 0x10]
lea ecx, [ecx + 0x20]
movups xmm0, xmmword [esi + edx*4]
add edx, 8
pxor xmm0, xmm1
pand xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [ecx - 0x30], xmm0
movups xmm1, xmmword [ecx - 0x20]
movups xmm0, xmmword [edi + ecx - 0x20]
pxor xmm0, xmm1
pand xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [ecx - 0x20], xmm0
cmp edx, 0x20
jl 0x56cd70
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x56cdc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 5
push edi
mov edi, dword [esi + 0x7c]
lea edx, [esi + 0x70]
xor edi, 0x7f
dec edi
shr edi, 0x1f
nop dword [eax + eax]
mov ecx, dword [edx - 0xc]
lea edx, [edx - 0x18]
mov eax, dword [edx + 0x10]
xor ecx, 0xff
xor eax, 0xff
dec ecx
dec eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
mov eax, dword [edx + 0x20]
xor eax, 0xff
dec eax
shr eax, 0x1f
and ecx, eax
mov eax, dword [edx + 0x14]
xor eax, 0xff
dec eax
shr eax, 0x1f
and ecx, eax
mov eax, dword [edx + 0x1c]
xor eax, 0xff
dec eax
shr eax, 0x1f
and ecx, eax
mov eax, dword [edx + 0x18]
xor eax, 0xff
dec eax
shr eax, 0x1f
and ecx, eax
and edi, ecx
sub ebx, 1
jne 0x56cde0
mov ecx, 0xec
sub ecx, dword [esi]
shr ecx, 0x1f
and ecx, edi
neg ecx
mov eax, ecx
movzx edx, cl
and eax, 0x7f
sub dword [esi + 0x7c], eax
mov eax, 0x1e
nop dword [eax + eax]
sub dword [esi + eax*4], edx
dec eax
test eax, eax
jg 0x56ce60
and ecx, 0xed
sub dword [esi], ecx
pop edi
pop esi
pop ebx
pop ebp
ret