joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f4d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x531ce3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [esp + 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esp + 0x60], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x60], 2
push ecx
push eax
push str.localization.txt
push 0x555c64
push str.global
call fcn.004520f0
mov edx, dword [str.global_]
mov ebp, eax
mov eax, dword [0x555c58]
mov ecx, 0xe
mov dword [esp + 0x30], eax
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x2c], edx
rep stosd dword es:[edi], eax
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x47f4b0
mov ebx, ecx
mov ecx, dword [esp + 0x28]
push 4
push ecx
push ebp
call fcn.0051b14c
mov eax, dword [esp + 0x34]
add esp, 0x24
xor edi, edi
test eax, eax
jle 0x47f5a4
lea ebx, [esp + ebx + 0x18]
mov ecx, dword [ebp + edi*4]
mov edx, ebx
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x47f585
lea edx, [esp + 0x18]
mov ecx, esi
push edx
call fcn.0047f5d0
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jl 0x47f57f
push ebp
call fcn.00452510
mov ecx, dword [esp + 0x5c]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret

Function at 0x480f50
Capabilities:
Get memory capacity

Disassembly:
mov eax, dword [0xcc8f48]
sub esp, 0x20
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x480f68
mov eax, 1
add esp, 0x20
ret
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [0xcc8f48]
mov eax, dword [edx + 0x20]
mov edx, dword [esp + 8]
shl eax, 0x14
cmp eax, edx
sbb eax, eax
inc eax
add esp, 0x20
ret

Function at 0x480f90
Capabilities:
Get disk size

Disassembly:
sub esp, 0x14
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 8]
push ecx
lea eax, [esp + 8]
push edx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ecx, dword [esp]
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
fild qword [esp + 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
fimul dword [esp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
fimul dword [esp + 0xc]
fmul dword [0x5359fc]
fcomp dword [0x535a00]
fnstsw ax
test ah, 5
jp 0x481007
mov eax, 1
add esp, 0x14
ret
xor eax, eax
add esp, 0x14
ret
Function at 0x4815f0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x481609
lea eax, [esp + 4]
push eax
push str.Software2015MOHAA
push connect
jmp 0x481618
lea ecx, [esp + 4]
push ecx
push str.Software2015MOHAA
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x481625
xor eax, eax
ret
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
xor eax, eax
push esi
test edx, edx
mov edx, dword [esp + 0x14]
sete al
push edx
mov edx, dword [esp + 0x10]
lea eax, [eax + eax + 1]
push ecx
push eax
mov eax, dword [esp + 0x14]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret

Function at 0x481670
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x48167e
lea esi, [esp + 0xc]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x481697
lea eax, [esp + 0x18]
push eax
push str.Software2015MOHAA
push connect
jmp 0x4816a6
lea ecx, [esp + 0x18]
push ecx
push str.Software2015MOHAA
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4816b5
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push esi
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x20]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x4816f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword [0x7fd014]
sub esp, 0xc
test eax, eax
push edi
jne 0x4817cd
mov eax, dword [0x7fd018]
test eax, eax
jne 0x4817cd
lea eax, [esp + 4]
mov edi, 1
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push connect
mov dword [0x7fd018], edi
mov dword [esp + 0x14], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4817c7
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push 0x7fd010
push edx
push eax
mov eax, dword [esp + 0x14]
push str.EnableAutodial
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4817bc
mov eax, dword [0x7fd010]
test eax, eax
je 0x4817bc
mov ecx, dword [esp + 4]
push esi
push 4
push 0x7fd01c
push 4
push 0
push str.EnableAutodial
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4817c7
mov eax, dword [0x7fd010]
push eax
push 0x5450fc
call fcn.00464990
push eax
push str.com_autodialdata
call fcn.0044fb30
add esp, 0x10
pop edi
add esp, 0xc
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x7fd014], edi
pop edi
add esp, 0xc
ret
Function at 0x4817e0
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [0x7fd014]
test eax, eax
jne 0x481872
mov eax, dword [0x7fd018]
test eax, eax
je 0x481872
lea eax, [esp]
mov dword [0x7fd018], 0
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x481826
mov dword [0x7fd014], 1
pop ecx
ret
mov ecx, dword [esp]
push esi
push 4
push 0x7fd010
push 4
push 0
push str.EnableAutodial
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x481860
mov dword [0x7fd014], 1
pop ecx
ret
push 0x56e704
push str.com_autodialdata
call fcn.0044fb30
add esp, 8
pop ecx
ret

Function at 0x481880
Capabilities:
Set registry value

Disassembly:
push 1
push 0x56e704
push str.com_autodialdata
call fcn.0044f5a0
mov eax, dword [eax + 0x20]
add esp, 0xc
test eax, eax
je 0x4818c1
push 0x56e704
push str.com_autodialdata
mov dword [0x7fd010], eax
mov dword [0x7fd018], 1
call fcn.0044fb30
add esp, 8
jmp fcn.004817e0
ret

Function at 0x481e90
Capabilities:
Get disk information

Disassembly:
sub esp, 0x108
lea eax, [esp + 4]
push ebx
push eax
xor ebx, ebx
push 0x7fceb8
push str.PATH
push ebx
mov byte [0x7fceb8], bl
mov dword [esp + 0x18], 0x100
call fcn.00481670
add esp, 0x10
test eax, eax
je 0x481f95
push str.mohaa.exe
push 0x7fceb8
push 0x555ef0
lea ecx, [esp + 0x18]
push 0x100
push ecx
call fcn.00465450
lea edx, [esp + 0x20]
push 0x555f00
push edx
call fcn.0051c235
add esp, 0x1c
cmp eax, ebx
je 0x481f8f
mov cl, byte [0x7fceb8]
push eax
mov byte [esp + 8], cl
mov byte [esp + 9], 0x3a
mov byte [esp + 0xa], 0x5c
mov byte [esp + 0xb], bl
call fcn.0051c187
add esp, 4
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x481f8f
push edi
mov edi, 0x7fceb8
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x481f68
cmp byte [edx + 0x7fceb8], 0x5c
jne 0x481f54
mov byte [edx + 0x7fceb8], 0x2f
mov edi, 0x7fceb8
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x481f44
dec edx
pop edi
cmp edx, ebx
jle 0x481f7c
cmp byte [edx + 0x7fceb8], 0x2f
jne 0x481f7c
dec edx
cmp edx, ebx
jg 0x481f6e
mov byte [edx + 0x7fceb9], bl
mov eax, 0x7fceb8
pop ebx
add esp, 0x108
ret
mov byte [0x7fceb8], bl
mov eax, 0x7fceb8
pop ebx
add esp, 0x108
ret

Function at 0x482d30
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [0x7fd008], eax
je 0x482d77
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x482d72
mov ecx, dword [0x7fd008]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x7fd008], 0
mov eax, 1
ret
mov eax, dword [0x7fd008]
xor edx, edx
test eax, eax
sete dl
mov eax, edx
ret
Function at 0x482d90
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x482dc7
cmp dword [esp + 4], 5
jb 0x482dc7
cmp dword [esp + 0x10], 2
jne 0x482dc7
mov eax, 1
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret
Function at 0x483760
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x24]
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], eax
mov esi, dword [0x7fe1e0]
test eax, eax
je 0x483781
mov esi, dword [0x7fd020]
test esi, esi
je 0x4838e8
mov edx, dword [0xcbb714]
lea eax, [esp + 0x2c]
inc edx
lea ecx, [esp + 0x14]
mov dword [0xcbb714], edx
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push 0
push edx
push eax
push esi
mov dword [esp + 0x44], 0x10
call dword [sym.imp.WSOCK32.dll_recvfrom]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4837f4
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4838e8
cmp eax, 0x2746
je 0x4838e8
call fcn.00483160
push eax
push str.NET_GetPacket:__s_n
call fcn.0044cdc0
add esp, 8
jmp 0x4838e8
mov eax, dword [0x7fe1e0]
cmp esi, eax
jne 0x483807
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov ecx, dword [0x7fe238]
test ecx, ecx
je 0x4838a7
cmp esi, eax
jne 0x4838a7
mov ecx, dword [esp + 0x2c]
mov edi, 0x7fe1c4
lea esi, [esp + 0x14]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4838a7
cmp ebx, 0xa
jl 0x4838e8
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jne 0x4838e8
mov cl, byte [eax + 1]
test cl, cl
jne 0x4838e8
mov cl, byte [eax + 2]
test cl, cl
jne 0x4838e8
cmp byte [eax + 3], 1
jne 0x4838e8
mov esi, dword [esp + 0x28]
mov dword [esi], 4
mov eax, dword [ebp + 0xc]
mov cl, byte [eax + 4]
mov byte [esi + 4], cl
mov edx, dword [ebp + 0xc]
mov al, byte [edx + 5]
mov byte [esi + 5], al
mov ecx, dword [ebp + 0xc]
mov dl, byte [ecx + 6]
mov byte [esi + 6], dl
mov eax, dword [ebp + 0xc]
mov cl, byte [eax + 7]
mov byte [esi + 7], cl
mov edx, dword [ebp + 0xc]
mov ax, word [edx + 8]
mov word [esi + 0x12], ax
mov dword [ebp + 0x18], 0xa
jmp 0x4838c4
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00483460
mov esi, dword [esp + 0x30]
add esp, 8
mov dword [ebp + 0x18], 0
cmp ebx, dword [ebp + 0x10]
jne 0x483904
sub esp, 0x14
mov ecx, 5
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00460bd0
push eax
push str.Oversize_packet_from__s_n
call fcn.0044cdc0
add esp, 0x1c
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x483771
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
mov dword [ebp + 0x14], ebx
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
Function at 0x483920
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push ebp
push esi
mov esi, dword [esp + 0x24]
cmp esi, 3
jne 0x483936
mov ebp, dword [0x7fe1e0]
jmp 0x483957
cmp esi, 4
jne 0x483943
mov ebp, dword [0x7fe1e0]
jmp 0x483957
cmp esi, 5
je 0x483951
cmp esi, 6
jne 0x483a44
mov ebp, dword [0x7fd020]
test ebp, ebp
je 0x483a53
lea eax, [esp + 8]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.004833b0
mov eax, dword [0x7fe238]
add esp, 8
test eax, eax
je 0x4839ee
cmp esi, 4
jne 0x4839ee
mov ax, word [esp + 0xa]
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x20]
mov word [0x7fd1c8], ax
mov eax, dword [esp + 0x1c]
mov dword [0x7fd1c4], edx
mov ecx, eax
push edi
mov edx, ecx
mov edi, 0x7fd1ca
shr ecx, 2
mov byte [0x7fd1c0], 0
mov byte [0x7fd1c1], 0
mov byte [0x7fd1c2], 0
mov byte [0x7fd1c3], 1
rep movsd dword es:[edi], dword [esi]
push 0x10
mov ecx, edx
push 0x7fe1c4
add eax, 0xa
push 0
and ecx, 3
push eax
push 0x7fd1c0
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.WSOCK32.dll_sendto]
mov esi, dword [esp + 0x28]
pop edi
jmp 0x483a08
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
lea eax, [esp + 8]
push 0x10
push eax
push 0
push ecx
push edx
push ebp
call dword [sym.imp.WSOCK32.dll_sendto]
cmp eax, 0xffffffff
jne 0x483a53
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x483a53
cmp eax, 0x2741
jne 0x483a2b
cmp esi, 3
je 0x483a53
cmp esi, 6
je 0x483a53
call fcn.00483160
push eax
push str.NET_SendPacket:__s_n
call fcn.0044cdc0
add esp, 8
pop esi
pop ebp
add esp, 0x10
ret
push str.Sys_SendPacket:_bad_address_type
push 0
call fcn.0044d090
add esp, 8
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x483be0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x18
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov edi, dword [esp + 0x28]
mov eax, 1
test edi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push ebp
je 0x483c10
push edi
push str.Opening_IP_socket:__s:_i_n
call fcn.0044cdc0
add esp, 0xc
jmp 0x483c1d
push str.Opening_IP_socket:_localhost:_i_n
call fcn.0044cdc0
add esp, 8
push 0x11
push 2
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x483c59
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x273f
je 0x483c50
call fcn.00483160
push eax
push str.WARNING:_UDP_OpenSocket:_socket:__s
call fcn.0044cdc0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x18
ret
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x483c8b
call fcn.00483160
push eax
push str.WARNING:_UDP_OpenSocket:_ioctl_FIONBIO:__s_n
call fcn.0044cdc0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x18
ret
lea ecx, [esp + 0x10]
push 4
push ecx
push 0x20
push 0xffff
push esi
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x483cc1
call fcn.00483160
push eax
push str.WARNING:_UDP_OpenSocket:_setsockopt_SO_BROADCAST:__s_n
call fcn.0044cdc0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x18
ret
test edi, edi
je 0x483cec
cmp byte [edi], 0
je 0x483cec
push str.localhost
push edi
call fcn.0051bdd0
add esp, 8
test eax, eax
je 0x483cec
lea edx, [esp + 0x14]
push edx
push edi
call fcn.004834c0
add esp, 8
jmp 0x483cf4
mov dword [esp + 0x18], 0
cmp ebp, 0xffffffff
jne 0x483d02
mov word [esp + 0x16], 0
jmp 0x483d0e
push ebp
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0x16], ax
lea eax, [esp + 0x14]
push 0x10
push eax
push esi
mov word [esp + 0x20], 2
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x483d4b
call fcn.00483160
push eax
push str.WARNING:_UDP_OpenSocket:_bind:__s_n
call fcn.0044cdc0
add esp, 8
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x18
ret
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x484180
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
lea eax, [esp + 4]
push ebp
push esi
push edi
push 0x100
push eax
call dword [sym.imp.WSOCK32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x4841ad
pop edi
pop esi
pop ebp
add esp, 0x104
jmp dword [sym.imp.WSOCK32.dll_WSAGetLastError]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x4841cd
pop edi
pop esi
pop ebp
add esp, 0x104
jmp dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov edx, dword [edi]
push edx
push str.Hostname:__s_n
call fcn.0044cdc0
mov eax, dword [edi + 4]
add esp, 8
mov eax, dword [eax]
test eax, eax
je 0x484203
xor esi, esi
push eax
push str.Alias:__s_n
add esi, 4
call fcn.0044cdc0
mov ecx, dword [edi + 4]
add esp, 8
mov eax, dword [esi + ecx]
test eax, eax
jne 0x4841e8
cmp word [edi + 8], 2
jne 0x48429d
xor eax, eax
mov dword [0x7fe22c], eax
mov edx, dword [edi + 0xc]
mov esi, dword [edx]
test esi, esi
je 0x48429d
mov ebp, dword [sym.imp.WSOCK32.dll_ntohl]
cmp eax, 0x10
jge 0x48429d
mov eax, dword [esi]
push eax
call ebp
mov ecx, dword [0x7fe22c]
mov dl, byte [esi]
mov dword [esp + 0xc], eax
mov byte [ecx*4 + 0x7fe1e8], dl
mov dl, byte [esi + 1]
mov byte [ecx*4 + 0x7fe1e9], dl
mov dl, byte [esi + 2]
mov byte [ecx*4 + 0x7fe1ea], dl
mov dl, byte [esi + 3]
mov byte [ecx*4 + 0x7fe1eb], dl
mov ecx, eax
xor edx, edx
and ecx, 0xff
mov dl, ah
push ecx
xor eax, eax
xor ecx, ecx
mov al, byte [esp + 0x12]
mov cl, byte [esp + 0x13]
push edx
push eax
push ecx
push str.IP:__i._i._i._i_n
call fcn.0044cdc0
mov eax, dword [0x7fe22c]
add esp, 0x14
inc eax
mov dword [0x7fe22c], eax
mov edx, dword [edi + 0xc]
mov esi, dword [edx + eax*4]
test esi, esi
jne 0x484224
pop edi
pop esi
pop ebp
add esp, 0x104
ret
Function at 0x4843c0
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x14
push esi
push 0x3e8
push 2
push 6
mov dword [esp + 0x10], 1
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x484409
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x273f
je 0x484402
call fcn.00483160
push eax
push str.WARNING:_IPX_Socket:_socket:__s_n
call fcn.0044cdc0
add esp, 8
xor eax, eax
pop esi
add esp, 0x14
ret
lea eax, [esp + 4]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x484439
call fcn.00483160
push eax
push str.WARNING:_IPX_Socket:_ioctl_FIONBIO:__s_n
call fcn.0044cdc0
add esp, 8
xor eax, eax
pop esi
add esp, 0x14
ret
lea ecx, [esp + 4]
push 4
push ecx
push 0x20
push 0xffff
push esi
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x48446d
call fcn.00483160
push eax
push str.WARNING:_IPX_Socket:_setsockopt_SO_BROADCAST:__s_n
call fcn.0044cdc0
add esp, 8
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
mov dword [esp + 0xe], edx
cmp eax, 0xffffffff
mov word [esp + 8], 6
mov dword [esp + 0xa], ecx
mov word [esp + 0x12], dx
jne 0x484495
mov word [esp + 0x14], cx
jmp 0x4844a1
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0x14], ax
lea eax, [esp + 8]
push 0xe
push eax
push esi
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x4844d5
call fcn.00483160
push eax
push str.WARNING:_IPX_Socket:_bind:__s_n
call fcn.0044cdc0
add esp, 8
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x484760
Capabilities:
Initialize winsock library

Disassembly:
push 0x7fd028
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x484783
push eax
push str.WARNING:_Winsock_initialization_failed__returned__d_n
call fcn.0044cdc0
add esp, 8
ret
push str.Winsock_Initialized_n
mov dword [0x7fe234], 1
call fcn.0044cdc0
call fcn.00484610
push 1
call fcn.00484520
add esp, 8
ret
Function at 0x488a10
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x7fe7e0]
test eax, eax
je 0x488a45
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x7fe7e0]
push eax
call dword [sym.imp.USER32.dll_CloseWindow]
mov ecx, dword [0x7fe7e0]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x7fe7e0], 0
ret

Function at 0x488a50
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x7fec64], eax
mov eax, dword [0x7fec60]
cmp ecx, eax
je 0x488aca
mov edx, dword [0x7fe7e0]
mov dword [0x7fec60], ecx
test edx, edx
je 0x488aca
mov eax, ecx
sub eax, 0
je 0x488ac1
dec eax
je 0x488a9e
dec eax
je 0x488a94
mov dword [esp + 8], ecx
mov dword [esp + 4], str.Invalid_visLevel__d_sent_to_Sys_ShowConsole_n
jmp fcn.00481470
push 6
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
ret
push 1
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x7fe7e4]
push 0xffff
push 0
push 0xb6
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
ret
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
ret

Function at 0x489310
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
mov dword [0xcbb674], eax
call fcn.00436a80
mov eax, dword [esp + 4]
test eax, eax
je 0x48937f
mov eax, dword [0xcbb674]
test eax, eax
jne 0x48937f
mov eax, dword [0x558830]
mov dword [0xcbb670], 1
test eax, eax
jne 0x4893e5
mov eax, dword [0xff28f0]
test eax, eax
jne 0x4893e5
mov eax, dword [0xcbb654]
test eax, eax
je 0x4893e5
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4893e5
push str.vid_restart_n
call fcn.0044bf80
add esp, 4
mov dword [0x558830], 1
ret
push 0
mov dword [0xcbb670], 0
call fcn.0047eb60
mov ecx, dword [0xed0940]
add esp, 4
mov eax, dword [ecx + 0x20]
test eax, eax
jne 0x4893bc
mov edx, dword [0xed0954]
mov eax, dword [edx + 0x20]
test eax, eax
je 0x4893bc
call fcn.00478300
mov dword [0x7fec94], 1
mov eax, dword [0xcbb654]
test eax, eax
je 0x48942d
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x48942d
mov eax, dword [0xcbb668]
push 6
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
ret
push 1
mov dword [0x558830], 0
call fcn.0047eb60
mov ecx, dword [0xcbb668]
add esp, 4
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [0xcbb668]
push 9
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x7fec94]
test eax, eax
je 0x48942d
call fcn.00478350
mov dword [0x7fec94], 0
ret