joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4840f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x48420e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
xor esi, esi
lea ebx, [esi + 0x41]
lea eax, [ebp - 4]
mov edx, 0x484224
call fcn.00404760
lea eax, [ebp - 0x2c]
mov edx, ebx
call fcn.004048b0
lea eax, [ebp - 0x2c]
mov edx, 0x484230
call fcn.00404990
mov eax, dword [ebp - 0x2c]
call fcn.00404b88
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp ax, 3
jne 0x4841a9
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
mov edx, ebx
call fcn.004048b0
lea eax, [ebp - 0x30]
mov edx, 0x484230
call fcn.00404990
mov eax, dword [ebp - 0x30]
call fcn.00404b88
push eax
mov eax, dword [0x4c89c0]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
add eax, dword [ebp - 0x20]
adc edx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
inc esi
cmp esi, 0x1a
jne 0x484127
fild qword [ebp - 0x10]
fdiv dword [0x484234]
fdiv dword [0x484234]
fdiv dword [0x484234]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x34]
mov eax, 0x484240
call fcn.0040aba8
mov edx, dword [ebp - 0x34]
mov eax, edi
mov ecx, 0x484250
call fcn.004049d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484215
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.004046ec
lea eax, [ebp - 4]
call fcn.004046c8
ret

Function at 0x4849ac
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov byte [ebp - 2], cl
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, 0x40
call fcn.004027ac
mov dword [ebp - 8], eax
mov edx, 0x40
mov eax, dword [ebp - 8]
call fcn.004075b4
xor eax, eax
push ebp
push 0x484a31
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebp - 8]
mov byte [esi + 0x30], bl
mov al, byte [ebp + 8]
mov byte [esi + 2], al
mov al, byte [ebp - 1]
mov byte [esi + 0xa], al
mov byte [esi + 0xb], 0
mov al, byte [ebp - 2]
mov byte [esi + 0xc], al
mov byte [esi + 0xd], 0
mov byte [esi], 0x32
mov eax, dword [ebp - 8]
push eax
call sub.netapi32.dll_Netbios
mov al, byte [esi + 0x31]
mov byte [ebp - 3], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484a38
mov edx, 0x40
mov eax, dword [ebp - 8]
call fcn.004027cc
ret
Function at 0x486100
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 0x486151
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x486138
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x486128
jmp 0x486151
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 0x486139
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x493fc4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x493fd6
add esp, 0xfffffff0
call fcn.00403c18
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041f634
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 0x4940ed
push ebx
push 0x494918
call fcn.00459c50
mov dword [ebx + 0x1030], eax
mov dl, 1
mov al, 1
call fcn.00407578
mov esi, eax
lea eax, [ebx + 0x1038]
push eax
push esi
call sub.wsock32.dll_WSAStartup
test eax, eax
je 0x494124
push 0x2710
mov ecx, 0x49414c
mov dl, 1
mov eax, dword [0x493b00]
call fcn.00493f80
call fcn.00404080
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x49413b
call fcn.00403c70
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x49489c
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 0x4948b8
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 0x4948ce
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 0x49490c
xor ebx, ebx
mov eax, ebx
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x494a80
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 0x494b1d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi + 0x1034], 0xffffffff
je 0x494b01
test bl, bl
je 0x494ab5
mov dword [ebp - 4], 1
jmp 0x494aba
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 0x494b01
call sub.wsock32.dll_WSAGetLastError
push eax
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
lea ecx, [ebp - 8]
mov eax, esi
call fcn.00495238
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x493b00]
call fcn.00493f80
call fcn.00404080
mov byte [esi + 0x11c8], bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494b24
lea eax, [ebp - 8]
call fcn.004046c8
ret

Function at 0x494b2c
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 0x494bcc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi + 0x1034], 0xffffffff
je 0x494bb0
test bl, bl
je 0x494b61
mov dword [ebp - 4], 1
jmp 0x494b66
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 0x494bb0
call sub.wsock32.dll_WSAGetLastError
push eax
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
lea ecx, [ebp - 8]
mov eax, esi
call fcn.00495238
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x493b00]
call fcn.00493f80
call fcn.00404080
mov byte [esi + 0x11ca], bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494bd3
lea eax, [ebp - 8]
call fcn.004046c8
ret
Function at 0x495008
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 0x4950e8
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, dword [esi + 0x1034]
cmp edi, 0xffffffff
je 0x4950c7
test bl, bl
je 0x495080
push 4
lea eax, [esi + 0x11f0]
push eax
push 0x4001
push 0x3e8
push edi
call sub.wsock32.dll_setsockopt
inc eax
jne 0x4950c7
call sub.wsock32.dll_WSAGetLastError
push eax
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
lea ecx, [ebp - 4]
mov eax, esi
call fcn.00495238
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x493b00]
call fcn.00493f80
call fcn.00404080
jmp 0x4950c7
push 4
lea eax, [esi + 0x11f0]
push eax
push 0x4003
push 0x3e8
push edi
call sub.wsock32.dll_setsockopt
inc eax
jne 0x4950c7
call sub.wsock32.dll_WSAGetLastError
push eax
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
lea ecx, [ebp - 8]
mov eax, esi
call fcn.00495238
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x493b00]
call fcn.00493f80
call fcn.00404080
mov byte [esi + 0x11ec], bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4950ef
lea eax, [ebp - 8]
mov edx, 2
call fcn.004046ec
ret

Function at 0x49519c
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 0x49522a
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 0x1034]
cmp esi, 0xffffffff
je 0x49520b
push 4
lea eax, [ebp - 4]
push eax
push 0x4000
push 0x3e8
push esi
call sub.wsock32.dll_setsockopt
inc eax
jne 0x49520b
call sub.wsock32.dll_WSAGetLastError
push eax
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
lea ecx, [ebp - 8]
mov eax, ebx
call fcn.00495238
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x493b00]
call fcn.00493f80
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 0x495231
lea eax, [ebp - 8]
call fcn.004046c8
ret

Function at 0x499d90
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 0x499e19
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4c9ef8
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x499e03
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040c6a4
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, 0x499e30
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4c8c60]
mov dl, 1
mov eax, dword [0x499594]
call fcn.0040cfd4
call fcn.00404080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499e20
lea eax, [ebp - 0x1c]
call fcn.004046c8
ret
Function at 0x49a4cc
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0049a3f0
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, 0x49a530
call fcn.00499cd8
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x49a522
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 0x49a554
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 0x49a59f
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 0x49a67c
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 0x49a6ad
mov ecx, dword [0x4c8b14]
mov dl, 1
mov eax, dword [0x499594]
call fcn.0040cf98
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 0x49a6da
mov ecx, dword [0x4c8a6c]
mov dl, 1
mov eax, dword [0x499594]
call fcn.0040cf98
call fcn.00404080
xor eax, eax
push ebp
push 0x49a756
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 0x49a732
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.0049a5e4
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.0049a4cc
jmp 0x49a74c
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.00499fc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49a773
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49a954
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.0049a28c
xor eax, eax
push ebp
push 0x49aac5
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 0x49aaaf
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x49a99f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x49a9a9
call fcn.0040412c
jmp 0x49aacc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041b270
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 0x49aaa4
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 0x49aa57
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x49aa44
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.0049a90c
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x49aad8]
cmp dl, byte [eax + 0x28]
je 0x49aaab
call fcn.0040ceb0
jmp 0x49aaab
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041b290
jmp 0x49aaab
cmp ecx, ebx
jge 0x49aa73
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.0041b290
jmp 0x49a9a9
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.0041b270
cmp edx, dword [esp + 4]
jne 0x49aa93
cmp eax, dword [esp]
pop edx
pop eax
jne 0x49a9a9
push ebp
call fcn.0049a90c
pop ecx
jmp 0x49aaab
push ebp
call fcn.0049a90c
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49aacc
mov eax, dword [ebp - 4]
call fcn.0049a298
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49aadc
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 0x49abfe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049a28c
xor eax, eax
push ebp
push 0x49abe1
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 0x49ab2c
call fcn.0040412c
jmp 0x49abe8
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 0x49abcb
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x49abcb
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 0x49abcb
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c6a4
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, 0x49ac18
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4c8c60]
mov dl, 1
mov eax, dword [0x499594]
call fcn.0040cfd4
call fcn.00404080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49abe8
mov eax, dword [ebp - 4]
call fcn.0049a298
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ac05
lea eax, [ebp - 0x28]
call fcn.004046c8
ret
Function at 0x49ac64
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 0x49adae
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049a28c
xor eax, eax
push ebp
push 0x49ad91
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x49acc9
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x49acc9
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 0x49ad7b
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x49acdc
call fcn.0040412c
jmp 0x49ad98
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 0x49ad7b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x49ad7b
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 0x49ad7b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c6a4
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, 0x49adc8
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4c8c60]
mov dl, 1
mov eax, dword [0x499594]
call fcn.0040cfd4
call fcn.00404080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ad98
mov eax, dword [ebp - 4]
call fcn.0049a298
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49adb5
lea eax, [ebp - 0x28]
call fcn.004046c8
ret
Function at 0x4a3f84
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 0x4a3fae
cmp dword [ebx + 0x64], 0
jne 0x4a3fae
cmp dword [ebx + 0x6c], 0
jne 0x4a3fae
mov edi, esi
jmp 0x4a4035
cmp edi, 0xffffffff
jne 0x4a3fb6
dec edi
jmp 0x4a4035
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x4a4035
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.004a3380
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 0x4a4003
mov cx, word [esp]
sub cx, si
jmp 0x4a4005
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4a3fec
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 0x4a402b
mov cx, word [esp]
sub cx, si
jmp 0x4a402d
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4a4014
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4a4092
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.004a3d20
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x4a407d
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 0x4a4092
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4a3f8e
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4aa2e8
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4ca0e0
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x4aa30a
shr eax, 1
xor eax, 0xedb88320
jmp 0x4aa30c
shr eax, 1
dec edx
jne 0x4aa2f8
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4aa2f1
mov byte [0x4ca4e0], 1
pop esi
pop ebx
ret

Function at 0x4aa328
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4ca4e0], 0
jne 0x4aa33f
call fcn.004aa2e8
mov eax, edi
dec eax
test eax, eax
jl 0x4aa368
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4ca0e0]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4aa349
mov eax, ebx
pop edi
pop esi
pop ebx
ret