joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f8030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movzx edx, byte [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edx*8 - 1]
mov byte [edi + edx*8 + 0xcf], 0
lea esi, [edi + 8]
movzx eax, byte [edi + 0x198]
mov byte [eax + edi + 0xd0], 6
or byte [edi + edx*8 + 0xcf], 0x80
mov al, byte [edi + 0x198]
inc al
movzx ecx, al
cmp ecx, ebx
jge 0x4f8091
nop dword [eax]
nop dword [eax + eax]
inc al
mov byte [ecx + edi + 0xd0], 0
movzx ecx, al
cmp ecx, ebx
jl 0x4f8080
cmp byte [ebp + 0xc], 0
jbe 0x4f80ba
mov eax, esi
nop dword [eax]
mov ecx, dword [eax + 0xc8]
lea eax, [eax + 8]
xor dword [eax - 8], ecx
mov ecx, dword [eax + 0xc4]
xor dword [eax - 4], ecx
sub edx, 1
jne 0x4f80a0
push esi
call fcn.004f6410
mov al, byte [ebp + 0x10]
add esp, 4
test al, al
je 0x4f80e0
mov ecx, dword [ebp + 8]
sub esi, ecx
movzx edx, al
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x4f80d2
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4f80f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], esi
mov cl, byte [esi + 0x198]
mov byte [ebp - 1], cl
test cl, cl
je 0x4f81bf
mov al, byte [ebp + 0x10]
shl al, 3
sub al, cl
movzx edx, bl
movzx ecx, al
movzx eax, al
cmp ecx, ebx
cmovbe edx, eax
movzx eax, byte [ebp - 1]
mov dword [ebp - 8], edx
add eax, 0xd0
xor dl, dl
add eax, esi
cmp byte [ebp - 8], dl
jbe 0x4f815a
mov ebx, dword [ebp - 8]
mov esi, eax
movzx ecx, dl
inc dl
mov al, byte [ecx + edi]
mov byte [ecx + esi], al
cmp dl, bl
jb 0x4f8145
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 0xc]
add byte [esi + 0x198], dl
movzx eax, dl
movzx edx, byte [ebp + 0x10]
add edi, eax
sub ebx, eax
movzx eax, byte [esi + 0x198]
lea ecx, [edx*8]
cmp eax, ecx
jne 0x4f81bf
cmp byte [ebp + 0x10], 0
jbe 0x4f81aa
lea ecx, [esi + 8]
nop word [eax + eax]
mov eax, dword [ecx + 0xc8]
lea ecx, [ecx + 8]
xor dword [ecx - 8], eax
mov eax, dword [ecx + 0xc4]
xor dword [ecx - 4], eax
sub edx, 1
jne 0x4f8190
mov eax, esi
add eax, 8
push eax
call fcn.004f6410
add esp, 4
mov byte [esi + 0x198], 0
mov cl, byte [ebp + 0x10]
movzx eax, cl
mov dword [ebp + 0xc], eax
shl eax, 3
cmp ebx, eax
jb 0x4f821d
lea eax, [esi + 8]
mov dword [ebp + 8], eax
test cl, cl
je 0x4f81f9
mov esi, dword [ebp + 0xc]
mov edx, edi
nop
mov ecx, dword [edx]
lea eax, [eax + 8]
xor dword [eax - 8], ecx
mov ecx, dword [edx + 4]
add edx, 8
xor dword [eax - 4], ecx
sub esi, 1
jne 0x4f81e0
mov eax, dword [ebp + 8]
push eax
call fcn.004f6410
mov ecx, dword [ebp + 0xc]
add esp, 4
lea eax, [ecx*8]
mov cl, byte [ebp + 0x10]
sub ebx, eax
add edi, eax
cmp ebx, eax
mov eax, dword [ebp + 8]
jae 0x4f81d5
mov esi, dword [ebp - 0xc]
xor dl, dl
test ebx, ebx
je 0x4f8243
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + edi]
inc dl
mov byte [ecx + esi + 0xd0], al
movzx ecx, dl
cmp ecx, ebx
jb 0x4f8230
add byte [esi + 0x198], dl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4fc000
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x298], 2
jne 0x4fc012
pop ebp
jmp fcn.004fce40
pop ebp
jmp fcn.004fcf60
Function at 0x4fc7c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x294]
cmp eax, 0xffffffff
jne 0x4fc7f1
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af618
mov esp, ebp
pop ebp
ret 8
cmp byte [ebp + 8], 0
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], 0
je 0x4fc854
push 0
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 0x1c], 1
push ecx
push 0
push 0
push 0xc
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 0x7148
push ecx
push 0x98000004
push eax
mov dword [ebp - 0x18], 0x1d0d8
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 4
lea eax, [ebp - 0xc]
push eax
push 8
push 0xffff
push dword [esi + 0x294]
jmp 0x4fc862
push 4
lea ecx, [ebp - 0x10]
push ecx
push 8
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.005af618
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1add
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x68cc00]
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 esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov edi, dword [ebp + 0x10]
xorps xmm0, xmm0
mov ebx, dword [ebp + 8]
push str.ck_getsockname_ipv4
push edi
mov dword [ebp - 0x34], eax
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
call fcn.00447f50
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00434a50
mov eax, dword [ebp - 0x34]
mov dword [eax], 0
mov eax, dword [esi + 0x294]
cmp eax, 0xffffffff
je 0x4fcf1d
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x10
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4fcefd
test eax, eax
js 0x4fcefd
push dword [ebp - 0x2c]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov ecx, ebx
call fcn.00431790
push dword [ebp - 0x2e]
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0x34]
mov bl, 1
movzx eax, ax
mov dword [ecx], eax
jmp 0x4fcf2b
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_getsockname
call dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
push 0
push eax
call fcn.004ff260
add esp, 0xc
jmp 0x4fcf29
mov eax, dword [edi]
mov ecx, edi
push str.Cannot_get_socket_name:_INVALID_SOCKET.
call dword [eax + 0x14]
xor bl, bl
lea ecx, [ebp - 0x20]
call fcn.00448050
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.005af618
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4fcf60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1b1d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x68cc00]
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 esi, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov edi, dword [ebp + 0x10]
xorps xmm0, xmm0
mov ebx, dword [ebp + 8]
push str.ck_getsockname_ipv6
push edi
mov dword [ebp - 0x40], eax
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
call fcn.00447f50
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00434a50
mov eax, dword [ebp - 0x40]
mov dword [eax], 0
mov eax, dword [esi + 0x294]
cmp eax, 0xffffffff
je 0x4fd040
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x1c
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4fd020
test eax, eax
js 0x4fd020
mov ecx, ebx
call fcn.00434a50
lea eax, [ebp - 0x34]
push ebx
push eax
call fcn.004fe590
add esp, 8
push dword [ebp - 0x3a]
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0x40]
mov bl, 1
movzx eax, ax
mov dword [ecx], eax
jmp 0x4fd04e
mov eax, dword [edi]
mov ecx, edi
push str.Failed_to_getsockname_ipv6
call dword [eax + 0x14]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
push 0
push eax
call fcn.004ff260
add esp, 0xc
jmp 0x4fd04c
mov eax, dword [edi]
mov ecx, edi
push str.Cannot_get_socket_name:_INVALID_SOCKET.
call dword [eax + 0x14]
xor bl, bl
lea ecx, [ebp - 0x20]
call fcn.00448050
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.005af618
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4ff030
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1cd0
mov eax, dword fs:[0]
push eax
sub esp, 0x860
mov eax, dword [0x68cc00]
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.0046d450
push edi
mov ecx, esi
call fcn.0046d5b0
test al, al
je 0x4ff090
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 0x4ff166
cmp dword [ebx + 0x294], 0xffffffff
jne 0x4ff0b0
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 0x4ff166
lea ecx, [ebp - 0x86c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.0042a020
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 0x4ff11b
push 0
call fcn.004014f0
add esp, 4
cmp dword [ebp - 0x1c], 0x3004bc8d
je 0x4ff12e
push 0
call fcn.004014f0
add esp, 4
mov edx, dword [ebx + 0x294]
test edx, edx
jns 0x4ff184
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.0042a0c0
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.005af618
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x860]
xor eax, eax
test ecx, ecx
je 0x4ff19e
cmp dword [ebp + eax*4 - 0x85c], edx
je 0x4ff19e
inc eax
cmp eax, ecx
jb 0x4ff190
cmp eax, ecx
jne 0x4ff1b7
cmp ecx, 0x200
jae 0x4ff1b7
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 0x4ff13c
test eax, eax
js 0x4ff13c
jne 0x4ff1ea
mov byte [esi + 0x14], 1
jmp 0x4ff13c
mov bl, 1
jmp 0x4ff13e

Function at 0x4ff870
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [esi + 0x294], 0xffffffff
je 0x4ff8e0
cmp byte [ebp + 8], 0
mov al, byte [ecx + 0x129]
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0
je 0x4ff8bc
test al, al
je 0x4ff8b7
mov eax, dword [ecx]
push str.Turning_on_TCP_NODELAY.
call dword [eax + 0x18]
lea eax, [ebp - 8]
jmp 0x4ff8cd
test al, al
je 0x4ff8ca
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.005af618
mov esp, ebp
pop ebp
ret 8
Function at 0x4ff990
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 0x4ff9c1
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.004014f0
add esp, 4
pop esi
pop ebp
ret 8
cmp dword [esi + 0xd8], edx
push edi
lea edi, [esi + 0xd8]
je 0x4ffa37
test edx, edx
je 0x4ffa37
cmp edx, 0x1000
jb 0x4ffa37
mov eax, 0x800000
cmp edx, eax
cmovbe eax, edx
and eax, 0xfffff000
cmp dword [esi + 0x294], 0xffffffff
mov dword [edi], eax
je 0x4ffa37
push ebx
mov ebx, dword [ebp + 0xc]
cmp byte [ebx + 0x129], 0
je 0x4ffa1d
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.00448770
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 0x4ffa40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1d4d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x68cc00]
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 0x4ffa83
mov byte [eax], 0
cmp byte [eax], 0
je 0x4ffad3
cmp byte [esi + 0xd6], 0
jne 0x4ffad3
cmp byte [esi + 0xd5], 0
jne 0x4ffb41
cmp byte [esi + 0xd4], 0
jne 0x4ffb41
cmp byte [edi + 0x133], 0
jne 0x4ffb41
push 2
push 1
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x4ffaf2
push edi
mov ecx, esi
call fcn.004feea0
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.005af618
mov esp, ebp
pop ebp
ret 4
cmp eax, 0xffffffff
je 0x4ffafb
test eax, eax
jns 0x4ffb41
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4ffb41
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.00447f50
push edi
push 0
mov dword [ebp - 4], 0
call fcn.004ff6d0
add esp, 8
lea ecx, [ebp - 0x24]
call fcn.00448050
jmp 0x4ffad3
mov al, 1
jmp 0x4ffad5
Function at 0x500c20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x68a5c0], 0
push edi
mov edi, dword [ebp + 8]
jne 0x500c51
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af618
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 0x500d58
mov edx, 5
mov ecx, 2
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], ecx
push esi
cmp edx, 1
jl 0x500d16
add ecx, 0xffffffff
mov dword [ebp - 0x90], ecx
jns 0x500cc7
dec edx
mov dword [ebp - 0x90], 9
mov dword [ebp - 0x94], edx
mov cl, 9
test edx, edx
je 0x500d16
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 0x500d16
mov edx, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x90]
jmp 0x500ca4
pop esi
test eax, eax
jne 0x500d5c
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.00446c60
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 0x500dcd
cmp eax, 0x276b
jne 0x500d6a
push str.The_underlying_network_subsystem_is_not_ready_for_network_communication.
jmp 0x500dc0
cmp eax, 0x276c
jne 0x500d78
push str.The_version_of_Windows_Sockets_support_requested_is_not_provided_by_this_particular_Windows_Sockets_implementation.
jmp 0x500dc0
cmp eax, 0x2734
jne 0x500d86
push str.A_blocking_Windows_Sockets_1.1_operation_is_in_progress.
jmp 0x500dc0
cmp eax, 0x2753
jne 0x500d94
push str.Limit_on_the_number_of_tasks_supported_by_the_Windows_Sockets_implementation_has_been_reached.
jmp 0x500dc0
cmp eax, 0x271e
jne 0x500da2
push str.The_lpWSAData_is_not_a_valid_pointer.
jmp 0x500dc0
lea eax, [ebp - 0x8c]
push eax
push str.WSAStartup_error:_0x_x
lea eax, [ebp - 0x38]
push 0x32
push eax
call fcn.00446ba0
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 [0x68a5c0], 0
xor ecx, ebp
pop edi
call fcn.005af618
mov esp, ebp
pop ebp
ret
Function at 0x52a490
Capabilities:
Connect socket
Connect udp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x68cc00]
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 0x52a4e0
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.005af618
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
lea ecx, [esi + 0x14]
mov eax, 2
movlpd qword [ebp - 0xc], xmm0
mov word [ebp - 0x14], ax
call fcn.0042f430
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 0x52a54e
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.005af618
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.005af618
mov esp, ebp
pop ebp
ret
Function at 0x52aa50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x68cc00]
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 0x52aa95
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.005af618
mov esp, ebp
pop ebp
ret
cmp dword [edi + 8], 3
jl 0x52aaba
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.005af618
mov esp, ebp
pop ebp
ret
push esi
push ecx
push 0
push dword [ebp + 0x10]
push eax
call fcn.0052b030
add esp, 0x14
test al, al
jne 0x52aafb
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.005af618
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push 2
call fcn.0045c840
add esp, 8
mov ecx, ebx
call fcn.00438c00
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.00402f80
push eax
mov ecx, ebx
call fcn.00438c00
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x52ab6c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
push 0
push eax
call fcn.004ff260
add esp, 0xc
push str.Failed_to_send_DNS_query_on_UDP_socket.
jmp 0x52aad3
inc dword [edi + 8]
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005af618
mov esp, ebp
pop ebp
ret
Function at 0x54d630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [0x691088]
push ebx
push esi
movups xmmword [ebp - 0x24], xmm0
push edi
movups xmm0, xmmword [0x691098]
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 0x691128
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.00547400
movzx eax, al
lea ecx, [ebp - 0x24]
xor eax, 1
shr esi, 0x1f
or eax, esi
push eax
push 0x691128
call fcn.0054fef0
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.00547600
push 0x691128
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.00547400
movzx ecx, al
xor ecx, 1
or ecx, esi
push ecx
push 0x691128
lea ecx, [ebp - 0x24]
call fcn.0054fef0
sub ebx, 1
jns 0x54d661
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.005af618
mov esp, ebp
pop ebp
ret
Function at 0x568390
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 0x5683c7
cmp edx, esi
jae 0x5683ff
lea ecx, [edi + 0xfc]
cmp eax, ecx
ja 0x5683d5
cmp edx, edi
jae 0x5683ff
lea ecx, [ebx + 0xfc]
cmp eax, ecx
ja 0x5683e3
cmp edx, ebx
jae 0x5683ff
lea edx, [esi + 0xfc]
cmp ebx, edx
ja 0x5683f1
cmp ecx, esi
jae 0x5683ff
lea edx, [edi + 0xfc]
cmp ebx, edx
ja 0x56843d
cmp ecx, edi
jb 0x56843d
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 0x568410
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 0x568450
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret