joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483174
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4831c5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4831ac
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x48319c
jmp 0x4831c5
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4831ad
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x490b14
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404b78
mov eax, dword [ebp - 8]
call fcn.00404b78
xor eax, eax
push ebp
push 0x490bc2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00403114
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 8]
call fcn.00404b88
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404b88
mov esi, eax
push esi
push esi
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x490ba7
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00490a38
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00490adc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490bc9
lea eax, [ebp - 8]
mov edx, 2
call fcn.004046ec
ret

Function at 0x490bd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404b78
mov eax, dword [ebp - 8]
call fcn.00404b78
mov eax, dword [ebp + 8]
call fcn.00404b78
xor eax, eax
push ebp
push 0x490cb0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00403114
mov dword [ebp - 0x50], 0x44
push dword [ebp - 4]
push 0x490cc8
push dword [ebp + 8]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404a48
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 8]
call fcn.00404b88
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00404b88
push eax
mov eax, dword [ebp - 4]
call fcn.00404b88
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x490c8d
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00490a38
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00490adc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490cb7
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004046ec
lea eax, [ebp + 8]
call fcn.004046c8
ret
Function at 0x491304
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x491316
add esp, 0xfffffff0
call fcn.00403c18
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f58c
mov dword [ebx + 0x1034], 0xffffffff
mov byte [ebx + 0x11c8], 1
mov byte [ebx + 0x11c9], 1
mov byte [ebx + 0x11ca], 0
mov dword [ebx + 0x11cc], 0x222
mov byte [ebx + 0x11d0], 0
mov word [ebx + 0x11d2], 0
mov byte [ebx + 0x11d4], 0
mov byte [ebx + 0x11d5], 0
mov byte [ebx + 0x11d6], 0
mov byte [ebx + 0x11d7], 0
mov byte [ebx + 0x11d8], 0
mov byte [ebx + 0x11d9], 0
mov byte [ebx + 0x11da], 0
mov byte [ebx + 0x11db], 0
mov byte [ebx + 0x11dc], 0
mov byte [ebx + 0x11dd], 0
mov word [ebx + 0x11de], 0x5678
mov byte [ebx + 0x11e0], 0
mov byte [ebx + 0x11e1], 0
mov byte [ebx + 0x11e2], 0
mov byte [ebx + 0x11e3], 0
mov byte [ebx + 0x11e4], 0xff
mov byte [ebx + 0x11e5], 0xff
mov byte [ebx + 0x11e6], 0xff
mov byte [ebx + 0x11e7], 0xff
mov byte [ebx + 0x11e8], 0xff
mov byte [ebx + 0x11e9], 0xff
mov word [ebx + 0x11ea], 0x5678
mov byte [ebx + 0x11ec], 0
mov dword [ebx + 0x11f0], 4
mov dword [ebx + 0x11f4], 4
test byte [ebx + 0x1c], 0x10
jne 0x49142d
push ebx
push 0x491c58
call fcn.00456f6c
mov dword [ebx + 0x1030], eax
mov dl, 1
mov al, 1
call fcn.00407530
mov esi, eax
lea eax, [ebx + 0x1038]
push eax
push esi
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x491464
push 0x2710
mov ecx, 0x49148c
mov dl, 1
mov eax, dword [0x490e40]
call fcn.004912c0
call fcn.00404080
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x49147b
call fcn.00403c70
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x491bdc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov dword [esp], ecx
mov edi, edx
mov esi, eax
mov bl, 1
mov word [esp + 4], 6
xor eax, eax
lea edx, [esp + 6]
mov cl, byte [esi + eax + 0x11e0]
mov byte [edx], cl
inc eax
inc edx
cmp eax, 4
jne 0x491bf8
xor eax, eax
lea edx, [esp + 0xa]
mov cl, byte [esi + eax + 0x11e4]
mov byte [edx], cl
inc eax
inc edx
cmp eax, 6
jne 0x491c0e
mov ax, word [esi + 0x11ea]
xchg al, ah
mov word [esp + 0x10], ax
push 0xe
lea eax, [esp + 8]
push eax
push 0
mov eax, dword [esp + 0xc]
push eax
push edi
mov eax, dword [esi + 0x1034]
push eax
call sub.wsock32.dll_sendto
inc eax
jne 0x491c4c
xor ebx, ebx
mov eax, ebx
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x491dc0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x491e5d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi + 0x1034], 0xffffffff
je 0x491e41
test bl, bl
je 0x491df5
mov dword [ebp - 4], 1
jmp 0x491dfa
xor eax, eax
mov dword [ebp - 4], eax
push 4
lea eax, [ebp - 4]
push eax
push 0x20
push 0xffff
mov eax, dword [esi + 0x1034]
push eax
call sub.wsock32.dll_setsockopt
inc eax
jne 0x491e41
call sub.wsock32.dll_WSAGetLastError
push eax
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
lea ecx, [ebp - 8]
mov eax, esi
call fcn.00492578
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x490e40]
call fcn.004912c0
call fcn.00404080
mov byte [esi + 0x11c8], bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491e64
lea eax, [ebp - 8]
call fcn.004046c8
ret

Function at 0x491e6c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x491f0c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi + 0x1034], 0xffffffff
je 0x491ef0
test bl, bl
je 0x491ea1
mov dword [ebp - 4], 1
jmp 0x491ea6
xor eax, eax
mov dword [ebp - 4], eax
push 4
lea eax, [ebp - 4]
push eax
push 0x4005
push 0x3e8
mov eax, dword [esi + 0x1034]
push eax
call sub.wsock32.dll_setsockopt
inc eax
jne 0x491ef0
call sub.wsock32.dll_WSAGetLastError
push eax
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
lea ecx, [ebp - 8]
mov eax, esi
call fcn.00492578
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x490e40]
call fcn.004912c0
call fcn.00404080
mov byte [esi + 0x11ca], bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491f13
lea eax, [ebp - 8]
call fcn.004046c8
ret
Function at 0x492348
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x492428
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, dword [esi + 0x1034]
cmp edi, 0xffffffff
je 0x492407
test bl, bl
je 0x4923c0
push 4
lea eax, [esi + 0x11f0]
push eax
push 0x4001
push 0x3e8
push edi
call sub.wsock32.dll_setsockopt
inc eax
jne 0x492407
call sub.wsock32.dll_WSAGetLastError
push eax
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
lea ecx, [ebp - 4]
mov eax, esi
call fcn.00492578
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x490e40]
call fcn.004912c0
call fcn.00404080
jmp 0x492407
push 4
lea eax, [esi + 0x11f0]
push eax
push 0x4003
push 0x3e8
push edi
call sub.wsock32.dll_setsockopt
inc eax
jne 0x492407
call sub.wsock32.dll_WSAGetLastError
push eax
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
lea ecx, [ebp - 8]
mov eax, esi
call fcn.00492578
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x490e40]
call fcn.004912c0
call fcn.00404080
mov byte [esi + 0x11ec], bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49242f
lea eax, [ebp - 8]
mov edx, 2
call fcn.004046ec
ret

Function at 0x4924dc
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49256a
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 0x1034]
cmp esi, 0xffffffff
je 0x49254b
push 4
lea eax, [ebp - 4]
push eax
push 0x4000
push 0x3e8
push esi
call sub.wsock32.dll_setsockopt
inc eax
jne 0x49254b
call sub.wsock32.dll_WSAGetLastError
push eax
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
lea ecx, [ebp - 8]
mov eax, ebx
call fcn.00492578
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x490e40]
call fcn.004912c0
call fcn.00404080
mov eax, dword [ebp - 4]
mov dword [ebx + 0x11f4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492571
lea eax, [ebp - 8]
call fcn.004046c8
ret

Function at 0x4970d0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x497159
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4c1efc
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x497143
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040c61c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x497170
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4c09e4]
mov dl, 1
mov eax, dword [0x4968d4]
call fcn.0040cf4c
call fcn.00404080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497160
lea eax, [ebp - 0x1c]
call fcn.004046c8
ret
Function at 0x49780c
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00497730
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403af0
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x497870
call fcn.00497018
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x497862
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403af0
pop esi
pop ebx
ret

Function at 0x497894
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404b88
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00403114
test ebx, ebx
je 0x4978df
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x4979bc
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4979ed
mov ecx, dword [0x4c089c]
mov dl, 1
mov eax, dword [0x4968d4]
call fcn.0040cf10
call fcn.00404080
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x497a1a
mov ecx, dword [0x4c07f8]
mov dl, 1
mov eax, dword [0x4968d4]
call fcn.0040cf10
call fcn.00404080
xor eax, eax
push ebp
push 0x497a96
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403af0
cmp byte [ebp + 8], 0
je 0x497a72
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00497924
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0049780c
jmp 0x497a8c
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00497304
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x497ab3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x497c94
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004975cc
xor eax, eax
push ebp
push 0x497e05
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x497def
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x497cdf
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x497ce9
call fcn.0040412c
jmp 0x497e0c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041b1c8
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x497de4
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x497d97
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x497d84
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403af0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.00497c4c
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x497e18]
cmp dl, byte [eax + 0x28]
je 0x497deb
call fcn.0040ce28
jmp 0x497deb
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041b1e8
jmp 0x497deb
cmp ecx, ebx
jge 0x497db3
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041b1e8
jmp 0x497ce9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041b1c8
cmp edx, dword [esp + 4]
jne 0x497dd3
cmp eax, dword [esp]
pop edx
pop eax
jne 0x497ce9
push ebp
call fcn.00497c4c
pop ecx
jmp 0x497deb
push ebp
call fcn.00497c4c
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497e0c
mov eax, dword [ebp - 4]
call fcn.004975d8
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x497e1c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x497f3e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004975cc
xor eax, eax
push ebp
push 0x497f21
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x497e6c
call fcn.0040412c
jmp 0x497f28
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x497f0b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x497f0b
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403af0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x497f0b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c61c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x497f58
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4c09e4]
mov dl, 1
mov eax, dword [0x4968d4]
call fcn.0040cf4c
call fcn.00404080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497f28
mov eax, dword [ebp - 4]
call fcn.004975d8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497f45
lea eax, [ebp - 0x28]
call fcn.004046c8
ret
Function at 0x497fa4
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4980ee
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004975cc
xor eax, eax
push ebp
push 0x4980d1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x498009
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x498009
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x4980bb
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x49801c
call fcn.0040412c
jmp 0x4980d8
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4980bb
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4980bb
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403af0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4980bb
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c61c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x498108
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4c09e4]
mov dl, 1
mov eax, dword [0x4968d4]
call fcn.0040cf4c
call fcn.00404080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4980d8
mov eax, dword [ebp - 4]
call fcn.004975d8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4980f5
lea eax, [ebp - 0x28]
call fcn.004046c8
ret
Function at 0x4a12c4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
test edi, edi
jne 0x4a12ee
cmp dword [ebx + 0x64], 0
jne 0x4a12ee
cmp dword [ebx + 0x6c], 0
jne 0x4a12ee
mov edi, esi
jmp 0x4a1375
cmp edi, 0xffffffff
jne 0x4a12f6
dec edi
jmp 0x4a1375
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x4a1375
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.004a06c0
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4a1343
mov cx, word [esp]
sub cx, si
jmp 0x4a1345
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4a132c
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4a136b
mov cx, word [esp]
sub cx, si
jmp 0x4a136d
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4a1354
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4a13d2
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.004a1060
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x4a13bd
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x4a13d2
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4a12ce
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4a7628
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4c20e4
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x4a764a
shr eax, 1
xor eax, 0xedb88320
jmp 0x4a764c
shr eax, 1
dec edx
jne 0x4a7638
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4a7631
mov byte [0x4c24e4], 1
pop esi
pop ebx
ret

Function at 0x4a7668
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4c24e4], 0
jne 0x4a767f
call fcn.004a7628
mov eax, edi
dec eax
test eax, eax
jl 0x4a76a8
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4c20e4]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4a7689
mov eax, ebx
pop edi
pop esi
pop ebx
ret