joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479df0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [edx + 0x2a0]
mov dword [esp], ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
lea esi, [ecx + 0x17]
shl esi, 4
add esi, edx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x479eb1
cmp dword [edx + ecx*4 + 0x160], 0x47a210
jne 0x479eb1
cmp dword [esi], 0
je 0x479e38
test edi, edi
je 0x479eb1
mov ebx, dword [edx + ecx*4 + 0x148]
mov ecx, ebx
push 0
push 0
push 0xffffffffffffffff
call fcn.004922d0
add esp, 0xc
cmp eax, 0xffffffff
je 0x479eb1
test al, 1
je 0x479eb1
mov ecx, dword [esi]
test ecx, ecx
jne 0x479e9a
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x4e8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x5449e0]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
jne 0x479e89
lea eax, [ecx + 0x1b]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x479eb1
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47a0e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x54300c]
xor eax, ebp
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov edx, dword [ecx + 0xc]
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov ebx, dword [edx + eax*4 + 0x148]
push eax
mov dword [ebp - 0x110], ecx
call fcn.00479df0
add esp, 4
test eax, eax
je 0x47a139
mov dword [esi], 0x1b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp + 0x14]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x47a1b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x47a17e
xor edi, edi
mov dword [esi], 0x51
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
push ecx
lea edx, [ebp - 0x10c]
mov ecx, ebx
call fcn.00498f00
add esp, 4
push eax
push str.Send_failure:__s
push dword [ebp - 0x110]
call fcn.00479fc0
mov eax, dword [ebp - 0x110]
add esp, 0xc
mov dword [eax + 0x964], ebx
mov dword [esi], 0x37
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
Function at 0x47a620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
mov esi, edx
cmp byte [edi + 0x711], 0
je 0x47a6ac
cmp dword [edi + 0x1b0], 0
je 0x47a66c
mov dl, 1
call fcn.00479da0
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push edi
call eax
add esp, 0x14
xor dl, dl
mov ecx, edi
mov esi, eax
call fcn.00479da0
pop edi
mov eax, esi
pop esi
pop ebp
ret
mov ecx, esi
sub ecx, 0
je 0x47a67d
sub ecx, 1
je 0x47a67d
sub ecx, 1
jne 0x47a6ac
push dword [edi + 0x148]
lea eax, [esi*2 + 0x524c54]
push 1
add eax, esi
push 2
push eax
call fcn.004f732d
push dword [edi + 0x148]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004f732d
add esp, 0x20
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x47a840
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x54300c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor eax, eax
push edi
push 4
mov edi, edx
cmp byte [esi + 0x71f], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x47a89b
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.00479f40
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x6bc]
mov dword [ebp - 0x10], 1
call fcn.0047a710
mov ecx, dword [esi + 0x6c0]
imul eax, eax, 0x3e8
mov dword [ebp - 0xc], eax
call fcn.0047a710
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x47a905
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.00479f40
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
Function at 0x47b290
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x54300c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
push 0x80
mov dword [ebp - 0x190], eax
mov ebx, ecx
lea eax, [ebp - 0x188]
mov dword [ebp - 0x18c], 0x80
push 0
push eax
call fcn.004b6620
add esp, 0xc
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x188]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x47b311
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea edx, [ebp - 0x108]
push ecx
mov ecx, esi
call fcn.00498f00
add esp, 4
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x47b357
push dword [ebp - 0x190]
mov edx, dword [ebp - 0x18c]
lea ecx, [ebp - 0x188]
push edi
call fcn.0047b100
add esp, 8
test al, al
jne 0x47b360
call fcn.004c0b08
mov esi, dword [eax]
call fcn.004c0b08
push ecx
lea edx, [ebp - 0x108]
mov ecx, esi
mov edi, eax
call fcn.00498f00
add esp, 4
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00479fc0
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret

Function at 0x47bb70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x54300c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 4
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 1
push eax
push 1
push 6
push edx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x47bbce
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [ebp - 0x108]
mov ecx, eax
call fcn.00498f00
add esp, 4
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.00479f40
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret

Function at 0x47bbe0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x549698]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
push esi
mov esi, ecx
test eax, eax
jne 0x47bc38
push 3
sub esp, 8
lea ecx, [eax + 6]
xor edx, edx
call fcn.0048c3d0
add esp, 0xc
test al, al
je 0x47bc2c
mov dword [0x549698], 2
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x549698], 1
jmp 0x47bc3d
cmp eax, 2
je 0x47bc79
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x47bc62
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x47bc79
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47c7a0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + edx]
mov edx, 0x1505
cmp esi, edi
jae 0x47c7c8
mov cl, byte [esi]
call fcn.0048a8d0
movsx ecx, al
inc esi
mov eax, edx
shl eax, 5
add edx, eax
xor edx, ecx
cmp esi, edi
jb 0x47c7b0
pop edi
movzx eax, dl
pop esi
ret
Function at 0x492130
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x14], edx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
test edx, edx
je 0x492150
cmp dword [edx], 0
jne 0x492170
mov eax, dword [ebp + 8]
test eax, eax
je 0x49215c
cmp dword [eax], 0
jne 0x492170
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4922b7
cmp dword [eax], 0
je 0x4922b7
lea esi, [ebp - 0x10]
test ebx, ebx
jg 0x492196
jl 0x49217d
test ecx, ecx
jae 0x492184
xor esi, esi
jmp 0x49227b
test ebx, ebx
jl 0x49226d
jg 0x492196
test ecx, ecx
je 0x49226d
mov eax, ecx
mov edx, 0x1a9fbe77
mul edx
mov edi, 0x624dd2f
mov dword [ebp - 0x10], eax
mov esi, edx
mov eax, ecx
mov ecx, 0x1a9fbe77
mul edi
push 0
mov edi, eax
mov dword [ebp - 4], edx
mov eax, ebx
mul ecx
push 0x3e8
mov ecx, eax
mov ebx, edx
mov eax, dword [ebp + 0x14]
mov edx, 0x624dd2f
mul edx
add ecx, esi
mov dword [ebp - 0xc], eax
adc ebx, 0
add edi, ecx
mov ecx, dword [ebp - 4]
adc ecx, 0
mov dword [ebp - 0x20], edi
mov edi, dword [ebp + 0x10]
xor eax, eax
add ebx, ecx
mov ecx, dword [ebp - 0xc]
adc eax, eax
add ecx, ebx
mov ebx, dword [ebp + 0x14]
mov esi, ebx
adc edx, eax
mov eax, edi
sub eax, ecx
sbb esi, edx
shrd eax, esi, 1
shr esi, 1
add eax, ecx
adc esi, edx
shrd eax, esi, 9
shr esi, 9
push esi
push eax
mov dword [ebp - 4], eax
call fcn.004f48c0
sub edi, eax
push 0
push 0x3e8
sbb ebx, edx
push ebx
push edi
call fcn.004f48c0
test esi, esi
jl 0x492259
jg 0x49223c
mov ecx, dword [ebp - 4]
cmp ecx, 0x7fffffff
jbe 0x49225c
mov edx, dword [ebp - 0x14]
lea esi, [ebp - 0x10]
mov edi, dword [ebp - 0x18]
mov ecx, closesocket
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jmp 0x49227b
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
lea esi, [ebp - 0x10]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jmp 0x49227b
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x492287
cmp dword [eax], 0
jne 0x492289
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x492295
cmp dword [ecx], 0
jne 0x492297
xor ecx, ecx
test edx, edx
je 0x4922a0
cmp dword [edx], 0
jne 0x4922a2
xor edx, edx
push esi
push eax
push ecx
push edx
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push ecx
call fcn.004920e0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x499a10
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x54300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x28]
mov edi, edx
push eax
mov esi, ecx
call fcn.00498430
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.0048aa50
mov ecx, edi
mov ebx, eax
call fcn.0048aa50
push 1
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x499ad9
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x28]
push eax
call fcn.00498430
mov edx, eax
sub esp, 0xc
mov eax, dword [ebp - 8]
mov ecx, esp
sub esp, 0x10
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0xc], eax
mov ecx, esp
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
call fcn.004984e0
add esp, 0x20
test edx, edx
ja 0x499b06
jb 0x499ac7
cmp eax, 0x3e8
ja 0x499b06
push 1
call edi
push 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x499a70
test ebx, ebx
je 0x499ae6
push ebx
call fcn.004c0774
add esp, 4
test esi, esi
je 0x499af3
push esi
call fcn.004c0774
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x499b13
push ebx
call fcn.004c0774
add esp, 4
test esi, esi
je 0x499b20
push esi
call fcn.004c0774
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
Function at 0x49d540
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x49d69e
push esi
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x49d68a
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49d58e
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49d582
sub eax, edx
inc eax
jmp 0x49d590
xor eax, eax
cmp dword [esi + 4], 2
mov dword [ebp - 4], eax
jne 0x49d648
cmp dword [esi + 0x18], 0
je 0x49d648
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x49d648
cmp ecx, 0x10
jb 0x49d648
add eax, 0x30
push eax
call dword [0x5449e0]
mov edi, eax
add esp, 4
test edi, edi
je 0x49d67f
mov ecx, dword [esi]
lea edx, [edi + 0x20]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0x10
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], edx
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 4]
mov dword [edx + 0xc], eax
test ecx, ecx
je 0x49d636
lea eax, [edx + 0x10]
push ecx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.004c0200
add esp, 0xc
mov eax, dword [ebp - 8]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x49d645
mov dword [eax + 0x1c], edi
mov dword [ebp - 8], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x49d578
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
pop edi
test eax, eax
je 0x49d665
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x49d686
mov ecx, ebx
call fcn.0049d520
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 8
jmp 0x49d656
test ebx, ebx
jne 0x49d696
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a1b70
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push 0
push dword [ebp + 8]
mov edi, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 4
mov dword [ebp + 0xc], esi
call fcn.004b6620
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000040
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4a1c41
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4a1c23
push 0
push edi
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4a1c23
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 0x14]
push 0
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push dword [ebp - 4]
call edi
test eax, eax
je 0x4a1c23
cmp esi, dword [ebp - 0xc]
jb 0x4a1c23
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 4]
test eax, eax
je 0x4a1c31
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4a1c41
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a2020
Capabilities:
Create thread

Disassembly:
push 0
push 0
push edx
push 0x485f00
push 0
push 0
call fcn.00504b1d
add esp, 0x18
test eax, eax
je 0x4a203f
cmp eax, 0xffffffff
jne 0x4a2041
xor eax, eax
ret
Function at 0x4a2090
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x54300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_socket]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 6
push 1
push 2
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x2c], 1
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4a2265
mov eax, 2
mov dword [ebp - 0xc], 0
push 0x7f000001
mov dword [ebp - 8], 0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x10], eax
xor eax, eax
push 4
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0xffff
push esi
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4a2253
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4a2253
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4a2253
cmp dword [ebp - 0x28], 0x10
jl 0x4a2253
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x4a2253
push 0
push 1
push 2
call ebx
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x4a2253
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4a2253
mov ebx, 1
mov ecx, esi
mov edx, ebx
call fcn.00499890
test eax, eax
js 0x4a2253
push 0
push 0x2710
mov edx, ebx
mov dword [ebp - 0x34], esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x30], ebx
call fcn.004923b0
add esp, 8
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x4a2253
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4a2253
cmp dword [ebp - 0x28], 0x10
jl 0x4a2253
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x10
push eax
lea eax, [ebp - 0x24]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x4a2253
cmp dword [ebp - 0x28], 0x10
jl 0x4a2253
mov ax, word [ebp - 0x14]
cmp ax, word [ebp - 0x24]
jne 0x4a2253
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jne 0x4a2253
mov ax, word [ebp - 0x12]
cmp ax, word [ebp - 0x22]
jne 0x4a2253
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
Function at 0x4a8d70
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4a8da2
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4a8e80
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x3c
mov edi, edx
call dword [0x5449e0]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4a8ea6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0xc]
mov dword [esi], fcn.004a8d70
lea eax, [ecx + 8]
mov dword [esi + 4], ecx
push ecx
mov dword [esi + 8], eax
call fcn.004a8d70
cmp ebx, 0x40
jbe 0x4a8ef9
push ebx
push edi
push dword [esi + 4]
call fcn.004a8db0
mov edi, dword [esi + 8]
push dword [esi + 4]
add edi, 8
push edi
call fcn.004a8dd0
push dword [esi + 4]
mov ebx, 0x20
mov dword [ebp + 8], ebx
call fcn.004a8d70
push dword [esi + 8]
call fcn.004a8d70
add esp, 0x20
jmp 0x4a8f0a
push dword [esi + 8]
call fcn.004a8d70
add esp, 8
xor eax, eax
test ebx, ebx
je 0x4a8f50
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
movzx eax, byte [edi]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 4]
call fcn.004a8db0
movzx eax, byte [edi]
lea edi, [edi + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 8]
call fcn.004a8db0
add esp, 0x18
sub ebx, 1
jne 0x4a8f10
cmp dword [ebp + 8], 0x40
jae 0x4a8f86
mov eax, dword [ebp - 0xc]
mov edi, 0x40
sub edi, eax
jmp 0x4a8f60
push 1
push 0x522456
push dword [esi + 4]
call fcn.004a8db0
push 1
push 0x52243f
push dword [esi + 8]
call fcn.004a8db0
add esp, 0x18
sub edi, 1
jne 0x4a8f60
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a964f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [ebp + 8]
mov esi, ecx
call fcn.004a956a
test al, al
je 0x4a96a7
xor ebx, ebx
mov byte [esi + 0x98], bl
cmp dword [esi + 0x58], ebx
jne 0x4a967f
mov ecx, dword [esi]
call fcn.004746e0
neg eax
sbb al, al
inc al
jmp 0x4a96a7
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push esi
push 0x4aa2f7
push ebx
push ebx
mov dword [esi + 0x94], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x78], eax
setne al
pop esi
pop ebx
pop ecx
pop ebp
ret 4