joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fc20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4429ee
mov eax, dword fs:[0]
push eax
sub esp, 0x52c
mov eax, dword [0x45aeb8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
je 0x43fe00
xor ecx, ecx
mov word [ebp - 0x4cc], cx
push 0x18e
push 0
lea edx, [ebp - 0x4ca]
push edx
call fcn.00419450
add esp, 0xc
xor eax, eax
mov word [ebp - 0x33c], ax
push 0x18e
push 0
lea ecx, [ebp - 0x33a]
push ecx
call fcn.00419450
add esp, 0xc
xor edx, edx
mov word [ebp - 0x1a4], dx
push 0x18e
push 0
lea eax, [ebp - 0x1a2]
push eax
call fcn.00419450
add esp, 0xc
mov dword [ebp - 0x1a8], 0x190
lea ecx, [ebp - 0x1a8]
push ecx
lea edx, [ebp - 0x4cc]
push edx
push 0
push 0
push str.PortName
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1a8], 0x190
push 0
push 0x190
lea edx, [ebp - 0x1a4]
push edx
push 0
push 0xc
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
push 0x44d970
lea eax, [ebp - 0x1a4]
push eax
call fcn.004078f0
add esp, 8
test eax, eax
jne 0x43fd41
push 0x44d978
lea ecx, [ebp - 0x1a4]
push ecx
call fcn.004078f0
add esp, 8
test eax, eax
je 0x43fe00
lea edx, [ebp - 0x4cc]
push edx
lea ecx, [ebp - 0x4f0]
call fcn.0043dd70
mov dword [ebp - 4], 0
lea eax, [ebp - 0x4f0]
push eax
mov ecx, dword [ebp + 0x14]
add ecx, 0x6c
call fcn.0043de60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4f0]
call fcn.0043db70
push str.NMEA
lea ecx, [ebp - 0x514]
call fcn.0043dd70
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x514]
push ecx
mov ecx, dword [ebp + 0x14]
add ecx, 0xb4
call fcn.0043de60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x514]
call fcn.0043db70
lea edx, [ebp - 0x1a4]
push edx
lea ecx, [ebp - 0x538]
call fcn.0043dd70
mov dword [ebp - 4], 2
lea eax, [ebp - 0x538]
push eax
mov ecx, dword [ebp + 0x14]
add ecx, 0x90
call fcn.0043de60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x538]
call fcn.0043db70
mov al, 1
jmp 0x43fe02
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00418496
mov esp, ebp
pop ebp
ret
Function at 0x441620
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4435c5
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x45aeb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push str.CCdRomTools::IsCdromReady_Begin
lea ecx, [ebp - 0x30]
call fcn.00401610
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call fcn.00441590
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00401650
cmp dword [ebp + 8], 0
je 0x441693
mov ecx, dword [ebp + 8]
add ecx, 4
mov dword [ebp - 0x6c], ecx
jmp 0x44169a
mov dword [ebp - 0x6c], 0
mov edx, dword [ebp - 0x6c]
push edx
call fcn.00441590
add esp, 4
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.00403bd0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4416d2
cmp dword [ebp - 0x10], 0
jg 0x441705
jl 0x4416d2
cmp dword [ebp - 0x14], 0
ja 0x441705
push str.CCdRomTools::IsCdromReady_false
lea ecx, [ebp - 0x4c]
call fcn.00401610
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00441590
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00401650
xor al, al
jmp 0x441736
push str.CCdRomTools::IsCdromReady_true
lea ecx, [ebp - 0x68]
call fcn.00401610
mov dword [ebp - 4], 2
lea edx, [ebp - 0x68]
push edx
call fcn.00441590
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00401650
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x441f30
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443922
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x45aeb8]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe8], 0
lea ecx, [ebp - 0x28]
call fcn.00404090
mov dword [ebp - 4], 0
mov dword [ebp - 0x54], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x10], eax
push 0x44d5e8
lea ecx, [ebp - 0x50]
call fcn.0043dd70
mov byte [ebp - 4], 1
cmp dword [ebp - 0x10], 0
je 0x44202c
mov eax, dword [ebp - 0x10]
and eax, 1
je 0x442016
mov esi, dword [ebp - 0x54]
add esi, 0x41
push 0
lea ecx, [ebp - 0x4c]
call fcn.00407980
mov word [eax], si
lea ecx, [ebp - 0x4c]
call fcn.00403bd0
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x442016
lea ecx, [ebp - 0xe4]
call fcn.00407910
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe4]
push ecx
lea edx, [ebp - 0x50]
push edx
call fcn.00441dd0
add esp, 8
movzx eax, al
test eax, eax
je 0x442007
lea ecx, [ebp - 0xe4]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004079b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe4]
call fcn.00406500
mov edx, dword [ebp - 0x10]
shr edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x54]
add eax, 1
mov dword [ebp - 0x54], eax
jmp 0x441f96
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404100
mov edx, dword [ebp - 0xe8]
or edx, 1
mov dword [ebp - 0xe8], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0043db70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404200
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.00418496
mov esp, ebp
pop ebp
ret
Function at 0x401130
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40113b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x40123e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4a2380]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4a2380]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4a2380]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4a2380]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4a2380]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4a2380]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4a2380]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4a2380]
xor eax, edx
inc ecx
dec edi
jne 0x401156
pop edi
test esi, esi
je 0x401260
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4a2380]
xor eax, edx
inc ecx
dec esi
jne 0x401242
pop esi
pop ebx
not eax
ret
Function at 0x411050
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x144
mov ecx, dword [eax]
push str._restore
mov eax, dword [edx + ecx*4]
push eax
call fcn.004a06d0
add esp, 8
test eax, eax
jne 0x411141
push ebx
lea ecx, [esp + 4]
push esi
push ecx
push 0x2001f
push eax
push str.SoftwareEmulatorsSnes9X
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41113a
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [esp + 0x24]
push eax
push edx
push eax
push eax
mov dword [esp + 0x34], eax
push eax
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41113a
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x88]
push edx
push ecx
lea edx, [esp + 0x1c]
push 0
lea ecx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x1c]
dec eax
push ecx
push eax
push edx
mov dword [esp + 0x30], 0x64
mov dword [esp + 0x34], 0xc8
call esi
test eax, eax
jne 0x41112b
mov ecx, dword [esp + 8]
lea eax, [esp + 0x20]
push eax
push ecx
mov bl, 1
call fcn.00411150
mov eax, dword [esp + 0x10]
add esp, 8
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x41112d
xor bl, bl
mov eax, dword [esp + 0xc]
dec eax
test bl, bl
mov dword [esp + 0xc], eax
jne 0x4110c6
call fcn.00411750
pop esi
pop ebx
add esp, 0x144
ret

Function at 0x411150
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x144
lea eax, [esp]
push ebx
push esi
push eax
push 0x2001f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41121b
push eax
push eax
push eax
push eax
mov ecx, dword [esp + 0x18]
push eax
push eax
mov dword [esp + 0x24], eax
push eax
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41121b
lea edx, [esp + 0x18]
lea ecx, [esp + 0x14]
push edx
lea edx, [esp + 0x88]
push ecx
push edx
lea ecx, [esp + 0x1c]
push 0
lea edx, [esp + 0x30]
push ecx
dec eax
push edx
push eax
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x30], 0x64
mov dword [esp + 0x34], 0xc8
call esi
test eax, eax
jne 0x41120c
mov edx, dword [esp + 8]
lea ecx, [esp + 0x20]
push ecx
push edx
mov bl, 1
call fcn.00411150
mov ecx, dword [esp + 0x10]
add esp, 8
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x41120e
xor bl, bl
mov eax, dword [esp + 0xc]
dec eax
test bl, bl
mov dword [esp + 0xc], eax
jne 0x4111a7
pop esi
pop ebx
add esp, 0x144
ret
Function at 0x434360
Capabilities:
Create thread
Initialize winsock library

Disassembly:
mov al, byte [0x7c7fa8]
sub esp, 0x190
push ebx
xor ebx, ebx
cmp al, bl
jne 0x4343f0
mov al, byte [0x73829e]
mov byte [0x7c7fa8], 1
cmp al, bl
jne 0x4343b9
push 0xc7
push str.Initialising_Windows_sockets_interface...
push 0x7c5c74
call fcn.00497920
mov eax, dword [0x716648]
add esp, 0xc
mov byte [0x7c5d3b], bl
push ebx
push ebx
push 0x400
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 4]
push ecx
push 1
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x4343f0
push 0xc7
push str.Call_to_init_Windows_sockets_failed._Do_you_have_WinSock2_installed_
push 0x7c5d3c
call fcn.00497920
add esp, 0xc
mov byte [0x7c5e03], bl
xor al, al
pop ebx
add esp, 0x190
ret
mov edx, dword [0x7c5110]
push edx
call sub.WSOCK32.dll_closesocket
mov dword [0x7c5110], 0xffffffff
mov byte [0x7c50fa], bl
mov byte [0x73829d], bl
mov byte [0x7c50f8], bl
mov byte [0x7c50f9], bl
mov byte [0x7c50fa], bl
mov byte [0x7c50fb], bl
mov byte [0x7c50fc], bl
mov byte [0x7c5107], bl
mov byte [0x7c5109], bl
mov dword [0x7c5110], ebx
mov eax, dword [0x7c5114]
cmp eax, ebx
je 0x434454
push eax
call fcn.00496684
add esp, 4
mov eax, dword [esp + 0x198]
push eax
call fcn.0049d280
mov dword [0x7c5114], eax
mov eax, dword [0x7c5118]
add esp, 4
cmp eax, ebx
je 0x43447b
push eax
call fcn.00496684
add esp, 4
mov ecx, dword [esp + 0x1a0]
push ecx
call fcn.0049d280
mov edx, dword [esp + 0x1a0]
add esp, 4
mov dword [0x7c5118], eax
mov dword [0x7c511c], edx
mov byte [0x7c5108], bl
mov eax, dword [0x71665c]
cmp eax, ebx
jne 0x4344bc
push ebx
push 0x78
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x71665c], eax
cmp dword [0x7c510c], ebx
jne 0x4344d3
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x7c510c], eax
push ebx
push ebx
push 0x434cb0
call fcn.00497c57
add esp, 0xc
mov al, 1
pop ebx
add esp, 0x190
ret
Function at 0x435c80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov esi, ebx
mov byte [0x7c5109], 0
mov al, byte [0x7c50fb]
test al, al
jne 0x435cfd
mov ebp, dword [esp + 0x14]
cmp esi, 0x200
mov eax, esi
jle 0x435cb1
mov eax, 0x200
push 0
push eax
push edi
push ebp
call sub.WSOCK32.dll_send
test eax, eax
jge 0x435cd5
call fcn.00496219
cmp dword [eax], 4
je 0x435cf0
call fcn.00496219
cmp dword [eax], 0xb
jne 0x435cfd
jmp 0x435cf0
je 0x435cfd
sub esi, eax
add edi, eax
mov eax, ebx
sub eax, esi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv ebx
mov byte [0x7c5109], al
test esi, esi
jle 0x435d04
mov al, byte [0x7c50fb]
test al, al
je 0x435ca2
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret

Function at 0x435d10
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov eax, 0x51eb851f
imul edi
sar edx, 4
mov ebp, dword [esp + 0x18]
mov eax, edx
shr eax, 0x1f
add edx, eax
mov esi, edi
cmp edx, 0x400
mov dword [esp + 0x1c], edx
jge 0x435d47
mov dword [esp + 0x1c], 0x400
mov edx, dword [esp + 0x1c]
mov byte [0x7c5109], 0
mov al, byte [0x7c50fb]
test al, al
jne 0x435e20
jmp 0x435d61
mov edx, dword [esp + 0x1c]
cmp esi, edx
mov ebx, esi
jle 0x435d69
mov ebx, edx
mov ecx, dword [esp + 0x14]
push 0
push ebx
push ebp
push ecx
call sub.WSOCK32.dll_recv
test eax, eax
jge 0x435db1
call fcn.00496219
cmp dword [eax], 4
je 0x435e0f
call fcn.00496219
cmp dword [eax], 0xb
je 0x435e0f
call fcn.00496219
cmp dword [eax], 0x2733
je 0x435e0f
call fcn.00496219
cmp dword [eax], 0x2738
jne 0x435e20
mov eax, ebx
jmp 0x435db3
je 0x435e20
sub esi, eax
add ebp, eax
mov al, byte [0x73829e]
test al, al
jne 0x435e0f
cmp edi, 0x400
jle 0x435e0f
mov eax, edi
sub eax, esi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv edi
mov byte [0x7c5109], al
mov dl, byte [0x7c5109]
and edx, 0xff
push edx
mov al, byte [0x7c5109]
mov ecx, dword [0x716648]
and eax, 0xff
push eax
push 0x400
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jle 0x435e27
mov al, byte [0x7c50fb]
test al, al
je 0x435d5d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret

Function at 0x435e30
Capabilities:
Initialize winsock library

Disassembly:
mov al, byte [0x7c7fa8]
sub esp, 0x190
test al, al
jne 0x435ec5
mov al, byte [0x73829e]
mov byte [0x7c7fa8], 1
test al, al
jne 0x435e8e
push 0xc7
push str.Initialising_Windows_sockets_interface...
push 0x7c5c74
call fcn.00497920
mov eax, dword [0x716648]
add esp, 0xc
mov byte [0x7c5d3b], 0
push 0
push 0
push 0x400
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp]
push ecx
push 1
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x435ec5
push 0xc7
push str.Call_to_init_Windows_sockets_failed._Do_you_have_WinSock2_installed_
push 0x7c5d3c
call fcn.00497920
add esp, 0xc
mov byte [0x7c5e03], 0
xor al, al
add esp, 0x190
ret
mov al, 1
add esp, 0x190
ret
Function at 0x43b290
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.USER32.dll_PostMessageA]
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, edi
mov eax, dword [esp + 0x14]
push 0
push esi
push ebx
push eax
call sub.WSOCK32.dll_send
test eax, eax
jge 0x43b2cc
call fcn.00496219
cmp dword [eax], 4
je 0x43b307
call fcn.00496219
cmp dword [eax], 0xb
jne 0x43b30d
jmp 0x43b307
je 0x43b30d
sub esi, eax
add ebx, eax
cmp edi, 0x400
jle 0x43b307
mov eax, edi
mov ecx, dword [0x716648]
sub eax, esi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 2
cdq
idiv edi
and eax, 0xff
push eax
push eax
push 0x400
push ecx
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jle 0x43b314
jmp 0x43b2a4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
Function at 0x43bbb0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
push 1
push str.SERVER:_Attempting_to_accept_client_connection...
call fcn.00435f10
xor eax, eax
add esp, 8
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x18]
mov dword [esp + 0x20], eax
push ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
push edx
push eax
mov dword [esp + 0x20], 0x10
call sub.WSOCK32.dll_accept
push 1
push str.Setting_socket_options...
mov ebp, eax
call fcn.00435f10
add esp, 8
lea ecx, [esp + 0x10]
xor ebx, ebx
mov word [esp + 0x10], 1
push 4
push ecx
push 0x80
push 0xffff
push ebp
mov word [esp + 0x26], bx
call sub.WSOCK32.dll_setsockopt
test eax, eax
jge 0x43bc49
push str.Setting_socket_options_failed.
call fcn.00435f60
add esp, 4
push ebp
call sub.WSOCK32.dll_closesocket
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
xor edi, edi
mov eax, 0x7c7fba
mov cl, byte [eax]
cmp cl, bl
je 0x43bc63
add eax, 0x18
inc edi
cmp eax, 0x7c8032
jl 0x43bc50
jmp 0x43bcb8
mov edx, dword [0x7c8030]
lea esi, [edi + edi*2]
inc edx
shl esi, 3
mov dword [0x7c8030], edx
mov dword [esi + 0x7c7fc0], ebp
mov byte [esi + 0x7c7fb8], bl
mov byte [esi + 0x7c7fb9], bl
mov byte [esi + 0x7c7fba], 1
mov byte [esi + 0x7c7fbb], bl
mov byte [esi + 0x7c7fbc], bl
mov byte [esi + 0x7c7fbd], bl
mov dword [esi + 0x7c7fc4], ebx
mov dword [esi + 0x7c7fc8], ebx
cmp edi, 5
mov dword [esi + 0x7c7fcc], ebx
jl 0x43bcd3
push str.SERVER:_Maximum_number_of_NetPlay_Clients_have_already_connected.
call fcn.00435f60
add esp, 4
push ebp
call sub.WSOCK32.dll_closesocket
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
cmp word [esp + 0x18], 2
jne 0x43bd73
push 1
push str.SERVER:_Looking_up_new_clients_hostname...
call fcn.00435f10
add esp, 8
lea edx, [esp + 0x1c]
push 2
push 4
push edx
call sub.WSOCK32.dll_gethostbyaddr
mov ebp, eax
cmp ebp, ebx
je 0x43bd2b
mov eax, dword [ebp]
inc edi
push eax
push edi
push str.SERVER:_Player__d_on__s_has_connected.
push 0x7c5e04
call fcn.00496365
mov ecx, dword [ebp]
push ecx
call fcn.0049d280
add esp, 0x14
mov dword [esi + 0x7c7fc8], eax
jmp 0x43bd66
mov edx, dword [esp + 0x1c]
push edx
call sub.WSOCK32.dll_inet_ntoa
mov ebp, eax
cmp ebp, ebx
je 0x43bd4c
push ebp
call fcn.0049d280
add esp, 4
mov dword [esi + 0x7c7fc8], eax
jmp 0x43bd51
mov ebp, str.Unknown
inc edi
push ebp
push edi
push str.SERVER:_Player__d_on__s_has_connected.
push 0x7c5e04
call fcn.00496365
add esp, 0x10
push 0x7c5e04
call fcn.00435f80
add esp, 4
push ebx
push str.SERVER:_Waiting_for_HELLO_message_from_new_client...
call fcn.00435f10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x43c390
Capabilities:
Create thread
Set socket configuration

Disassembly:
sub esp, 0x10
mov byte [0x4adf64], 1
push ebx
push esi
mov esi, dword [esp + 0x1c]
mov dword [0x7c7fb0], esi
call fcn.00435e30
test al, al
je 0x43c413
mov ecx, 0x7c8108
mov eax, 0x7c7fb9
xor ebx, ebx
mov byte [eax - 1], bl
mov byte [eax], bl
mov byte [eax + 1], bl
mov byte [eax + 2], bl
mov byte [eax + 3], bl
mov byte [eax + 4], bl
mov dword [eax + 7], ebx
mov dword [eax + 0xb], ebx
mov dword [eax + 0xf], ebx
mov dword [eax + 0x13], ebx
mov dword [ecx], ebx
add eax, 0x18
add ecx, 4
cmp eax, 0x7c8031
jl 0x43c3bb
push ebx
push 1
push 2
mov dword [0x7c8030], ebx
mov dword [0x7c80e4], ebx
call sub.WSOCK32.dll_socket
cmp eax, ebx
mov dword [0x7c80dc], eax
jge 0x43c41b
push str.NetPlay_Server:_Cant_create_listening_socket.
call fcn.00435f60
add esp, 4
pop esi
xor al, al
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x1c]
push 4
push ecx
push 4
push 0xffff
push eax
mov dword [esp + 0x30], 1
call sub.WSOCK32.dll_setsockopt
xor edx, edx
push ebx
mov dword [esp + 0xc], edx
mov word [esp + 0xc], 2
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
call sub.WSOCK32.dll_htonl
push esi
mov dword [esp + 0x10], eax
call sub.WSOCK32.dll_htons
mov ecx, dword [0x7c80dc]
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push 0x10
push eax
push ecx
call sub.WSOCK32.dll_bind
test eax, eax
jge 0x43c491
push str.NetPlay_Server:_Cant_bind_socket_to_port_number._nPort_already_in_use_
call fcn.00435f60
add esp, 4
xor al, al
pop esi
pop ebx
add esp, 0x10
ret
mov edx, dword [0x7c80dc]
push 5
push edx
call sub.WSOCK32.dll_listen
test eax, eax
jge 0x43c4b8
push str.NetPlay_Server:_Cant_get_new_socket_to_listen.
call fcn.00435f60
add esp, 4
xor al, al
pop esi
pop ebx
add esp, 0x10
ret
push 0x7c7fb0
push ebx
push 0x43bd90
call fcn.00497c57
add esp, 0xc
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop esi
mov al, cl
pop ebx
add esp, 0x10
ret
Function at 0x4972ad
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4972cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004961a6
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4972f0
test byte [esp + 8], 2
je 0x4972f0
call fcn.00496219
mov dword [eax], 0xd
call fcn.00496222
mov dword [eax], 5
jmp 0x4972c9
xor eax, eax
ret

Function at 0x49e255
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d9e60
cmp edx, dword [eax]
je 0x49e277
add eax, 8
inc ecx
cmp eax, 0x4d9ef0
jl 0x49e268
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d9e60]
jne 0x49e3a5
mov eax, dword [0x7d9b00]
cmp eax, 1
je 0x49e37f
test eax, eax
jne 0x49e2a8
cmp dword [0x4d75ac], 1
je 0x49e37f
cmp edx, 0xfc
je 0x49e3a5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x49e2df
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0049d190
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0049be30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x49e322
lea eax, [ebp - 0x1a4]
push eax
call fcn.0049be30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4a3b28
push edi
call fcn.00497920
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0049d190
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0049d1a0
lea eax, [ebp - 0xa0]
push 0x4a3b08
push eax
call fcn.0049d1a0
push dword [esi + 0x4d9e64]
lea eax, [ebp - 0xa0]
push eax
call fcn.0049d1a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0049fd33
add esp, 0x2c
pop edi
jmp 0x49e3a5
lea eax, [ebp + 8]
lea esi, [esi + 0x4d9e64]
push 0
push eax
push dword [esi]
call fcn.0049be30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret