joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c55b
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x46c060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
call dword [eax + 0xa0]
cmp dword [eax + 0x14], 8
jb 0x41c585
mov eax, dword [eax]
xor edi, edi
push edi
push edi
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push edi
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040253d
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
movsd xmm0, qword [0x45b0a0]
mov dword [ebp - 0x28], eax
mov eax, ecx
and ecx, 0x7fffffff
mov dword [ebp - 0x24], ecx
fild qword [ebp - 0x28]
and eax, 0x80000000
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edi
fild qword [ebp - 0x28]
fchs
faddp st(1)
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
fstp qword [ebp - 0x28]
comisd xmm0, xmmword [ebp - 0x28]
ja 0x41c5ee
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00440d0e
leave
ret
mov ecx, dword [esi + 0x11c]
push edi
mov eax, dword [ecx]
push str.There_is_not_enough_room_on_your_disk_to_install_Catium._Please_free_up_some_space_and_try_again.
call dword [eax + 0x1c]
push 5
lea ecx, [ebp - 0x40]
call fcn.004255e8
push 0x45f994
lea eax, [ebp - 0x40]
push eax
call sub.MSVCR110.dll__CxxThrowException
int3
Function at 0x41ecf3
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x446542
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x46c060]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x46c060]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edx, eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], eax
call fcn.00437a10
and dword [esp + 0x88], 0
cmp dword [eax + 0x14], 0x10
jb 0x41ed51
mov eax, dword [eax]
push eax
lea eax, [esi + 0x150]
push str.ERROR:__s
push eax
call fcn.00402357
or dword [esp + 0x94], 0xffffffff
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00402286
lea ebx, [esi + 0x70]
push 0x18
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
pop edi
cdq
idiv edi
mov dword [esp + 0x14], ebx
test eax, eax
jne 0x41ee38
cmp byte [esi + 0x4b], al
je 0x41ee38
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc8]
push eax
lea ecx, [esp + 0x34]
call fcn.0040be02
xor edi, edi
inc edi
lea edx, [esp + 0x30]
lea ecx, [esp + 0x48]
mov dword [esp + 0x88], edi
call fcn.0040fbd8
push eax
mov edx, str.An_error_occurred_while_starting
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8c], 2
call fcn.0040d4b8
pop ecx
lea ecx, [esp + 0x48]
call fcn.00402286
push 0
push edi
lea ecx, [esp + 0x38]
mov byte [esp + 0x90], 5
call fcn.0040253d
mov ecx, dword [esp + 0x10]
mov ebx, dword [esi + 0x11c]
cmp dword [esp + 0x2c], 0x10
mov eax, dword [ecx]
mov esi, dword [ebx]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
call dword [eax + 4]
push eax
push edi
mov ecx, ebx
call dword [esi + 0x1c]
or dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402286
mov ebx, dword [esp + 0x14]
push 0x18
pop edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x60]
call fcn.00437a10
mov esi, eax
mov dword [esp + 0x88], 6
mov ecx, dword [ebx + 4]
cmp esi, ecx
jae 0x41ee81
cmp dword [ebx], esi
ja 0x41ee81
sub esi, dword [ebx]
mov eax, esi
cdq
idiv edi
mov esi, eax
cmp ecx, dword [ebx + 8]
jne 0x41ee73
push ecx
mov ecx, ebx
call fcn.00410438
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x41ee9b
imul esi, esi, 0x18
add esi, dword [ebx]
jmp 0x41ee95
cmp ecx, dword [ebx + 8]
jne 0x41ee8e
push ecx
mov ecx, ebx
call fcn.00410438
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x41ee9b
push esi
call fcn.00404006
add dword [ebx + 4], edi
lea ecx, [esp + 0x60]
call fcn.00402286
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00440d0e
mov esp, ebp
pop ebp
ret 4
Function at 0x41f049
Capabilities:
Read file via mapping

Disassembly:
push 4
mov eax, 0x4469d2
call fcn.00442afd
mov esi, ecx
push 0x800
xor edi, edi
push edi
push edi
push 0xf001f
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x41f0b0
lea ecx, [ebp - 0x10]
call fcn.0043769f
mov dword [ebp - 4], edi
push dword [eax]
lea eax, [esi + 0x150]
push str.Could_not_map_view_of_file:__S
push eax
call fcn.00402357
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00402409
cmp dword [esi + 0x34], edi
je 0x41f0ac
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x34], edi
mov al, 1
jmp 0x41f0c6
mov esi, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call dword [sym.imp.MSVCR110.dll__getpid]
xor ecx, ecx
cmp esi, eax
sete al
call fcn.00442acb
ret
Function at 0x41f477
Capabilities:
Delete file

Disassembly:
push 0x6c
mov eax, 0x446688
call fcn.00442b30
mov esi, ecx
lea edi, [esi + 0x150]
push str.Bootstrapper::forceMFCStudioCleanup___deleteCurVersionKeys
push edi
call fcn.00402357
pop ecx
pop ecx
lea ecx, [ebp - 0x74]
call fcn.004382a8
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
jb 0x41f4ad
mov eax, dword [eax]
mov dl, byte [esi + 0x4d]
push eax
mov ecx, edi
call fcn.00437e73
or dword [ebp - 4], 0xffffffff
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.0040253d
mov ecx, esi
call fcn.0041f5da
mov al, byte [esi + 0x4d]
mov byte [ebp - 0x78], al
push dword [ebp - 0x78]
lea eax, [ebp - 0x5c]
push eax
call fcn.0041a6d3
xor esi, esi
inc esi
mov dword [ebp - 4], esi
xor eax, eax
push str.CatiumStudioLauncher.exe
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x44], ax
call fcn.0040cbb9
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00421743
pop ecx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push str.Bootstrapper::forceMFCStudioCleanup___deleting_studio_stub:__S
push edi
call fcn.00402357
add esp, 0xc
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
call fcn.0042799a
test al, al
je 0x41f55c
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.0040253d
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.0040253d
push ebx
push esi
lea ecx, [ebp - 0x5c]
call fcn.0040253d
call fcn.00442adf
ret

Function at 0x425319
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x425372
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x425363
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x42535f
cmp esi, ecx
jae 0x425363
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x42534f
cmp esi, ecx
jb 0x425367
xor eax, eax
jmp 0x425371
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4271c0
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x20
mov eax, 0x447716
call fcn.00442b66
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp + 0x10]
and dword [ebp - 4], 0
push 8
pop esi
cmp dword [edi + 0x14], esi
jb 0x4271e4
mov eax, dword [edi]
jmp 0x4271e6
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42724b
cmp dword [edi + 0x14], esi
jb 0x4271fa
mov eax, dword [edi]
jmp 0x4271fc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x42724b
lea ecx, [ebp - 0x18]
call fcn.0043769f
mov byte [ebp - 4], 1
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp dword [edi + 0x14], esi
jb 0x427226
mov edi, dword [edi]
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [ebp - 0x14]
push edi
push str.Failed_to_delete_fileName__S_:__S
push eax
call fcn.00402357
add esp, 0x10
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00402409
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x14], esi
jb 0x427257
mov eax, dword [edi]
jmp 0x427259
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4272be
cmp dword [edi + 0x14], esi
jb 0x42726d
mov eax, dword [edi]
jmp 0x42726f
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4272be
lea ecx, [ebp - 0x14]
call fcn.0043769f
mov byte [ebp - 4], 2
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
cmp dword [edi + 0x14], esi
jb 0x427299
mov edi, dword [edi]
mov ecx, dword [ebx]
mov eax, dword [ecx]
call dword [eax + 0xc]
push dword [ebp - 0x18]
push edi
push str.Failed_to_delete_path__S_:__S
push eax
call fcn.00402357
add esp, 0x10
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00402409
xor edx, edx
cmp byte [ebx + 4], dl
push 0
sete dl
push 0
push str.SoftwareRobloxRegETags
lea ecx, [ebp - 0x28]
add edx, 0x80000001
call fcn.004377db
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x14], esi
jb 0x4272ea
mov eax, dword [eax]
push 1
push 0x44c188
push eax
lea ecx, [ebp - 0x28]
call fcn.0040eac0
cmp dword [ebp - 0x28], 0
je 0x427309
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00442acb
ret 0xc
Function at 0x427e05
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x28a0
call fcn.00442aa0
mov eax, dword [0x46c060]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x28a0], 0
push esi
push edi
lea eax, [ebp - 0x289c]
push eax
lea eax, [ebp - 0x2888]
push eax
mov esi, ecx
mov dword [ebp - 0x289c], 0x2880
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea ecx, [ebp - 0x2888]
mov eax, dword [ecx + 0x1a0]
cmp eax, 6
je 0x427e95
cmp eax, 0x47
je 0x427e95
mov ecx, dword [ecx]
test ecx, ecx
jne 0x427e4b
and dword [ebp - 0x2898], ecx
xor eax, eax
lea edi, [ebp - 0x2894]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2898]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
push dword [ebp - 0x2898]
push str._08X
push esi
call fcn.0040fe1f
add esp, 0xc
jmp 0x427ee3
movzx eax, byte [ecx + 0x19b]
push eax
movzx eax, byte [ecx + 0x19a]
push eax
movzx eax, byte [ecx + 0x199]
push eax
movzx eax, byte [ecx + 0x198]
push eax
movzx eax, byte [ecx + 0x197]
push eax
movzx eax, byte [ecx + 0x196]
push eax
movzx eax, byte [ecx + 0x195]
push eax
movzx eax, byte [ecx + 0x194]
push eax
push str._02x_02x_02x_02x_02x_02x_02x_02x
push esi
call fcn.0040fe1f
add esp, 0x28
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00440d0e
leave
ret

Function at 0x428356
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x46c060]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x474db0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x428398
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x474db4
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00440d0e
mov esp, ebp
pop ebp
ret

Function at 0x42854a
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
push 0xffffffffffffffff
mov dword [ebp - 4], eax
xor edi, edi
push edi
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0x474d1c
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push edi
push dword [esi + 4]
test eax, eax
je 0x428595
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x4285ab
push fcn.00403297
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
leave
ret
Function at 0x4285af
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 1
mov esi, ecx
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [ebp + 8]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x428609
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov esi, eax
call dword [edx]
mov dword [esp + 0x18], esi
call fcn.004428f0
mov edx, str.thread.entry_event
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.0042826e
mov esi, dword [esp + 0x10]
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
xor ecx, ecx
mov dword [ebx + 8], eax
cmp dword [esi + 8], ecx
jne 0x428654
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov esi, eax
call dword [edx]
mov dword [esp + 0x18], esi
call fcn.004428f0
mov edx, str.thread.exit_event
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.0042826e
mov esi, dword [esp + 0x10]
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
push ecx
push ebx
push 0x4286dc
push ecx
push ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.MSVCR110.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4286c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push 1
mov ecx, ebx
mov dword [esp + 0x1c], eax
call dword [edx]
test edi, edi
je 0x428695
push edi
call esi
mov eax, dword [esp + 0x10]
cmp dword [eax + 8], 0
je 0x4286a4
push dword [eax + 8]
call esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.004428f0
mov edx, str.thread
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
call fcn.0042826e
test edi, edi
je 0x4286d3
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x428fd5
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
mov eax, edx
xor edi, edi
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
je 0x42909a
cmp byte [ebp + 8], 0
je 0x429020
test byte [eax], 8
je 0x429020
xor eax, eax
mov dword [ebp - 4], eax
call fcn.004428f0
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 4]
push eax
push ecx
push ecx
mov ecx, ebx
call fcn.00429455
add esp, 0x14
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, esi
mov ecx, eax
call fcn.0042dccf
mov edi, eax
test edi, edi
je 0x42909a
call fcn.004428f0
cmp dword [esi + 4], eax
jne 0x429050
cmp dword [esi], 0x2733
je 0x429062
call fcn.004428f0
cmp dword [esi + 4], eax
jne 0x429096
cmp dword [esi], 0x4d5
jne 0x429096
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 8]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, esi
mov ecx, eax
call fcn.0042dccf
mov edi, eax
test edi, edi
jne 0x4290a5
call fcn.004428f0
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4290ac
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov esi, edx
cmp edi, 0xffffffff
jne 0x4290cd
call fcn.004428f0
mov esi, dword [ebp + 0xc]
mov dword [esi], 0x2719
jmp 0x4290f8
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [ebp + 0xc]
mov edx, esi
mov ecx, eax
call fcn.0042dccf
test eax, eax
jne 0x4290fb
call fcn.004428f0
and dword [esi], 0
mov dword [esi + 4], eax
call fcn.004428f0
lea edx, [ebp - 0xc]
mov ecx, esi
mov dword [ebp - 0xc], 0x2734
mov dword [ebp - 8], eax
call fcn.00428231
test al, al
je 0x429135
call fcn.004428f0
lea edx, [ebp - 0xc]
mov ecx, esi
mov dword [ebp - 0xc], 0x2733
mov dword [ebp - 8], eax
call fcn.00428231
test al, al
jne 0x429174
mov edx, esi
mov ecx, edi
call fcn.00429658
test eax, eax
js 0x429174
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ecx
push ecx
mov ecx, edi
mov dword [ebp - 8], 4
call fcn.004294b9
add esp, 0x14
cmp eax, 0xffffffff
je 0x429174
call fcn.004428f0
mov ecx, dword [ebp - 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
pop edi
pop esi
leave
ret
Function at 0x429178
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov bl, dl
cmp edi, 0xffffffff
jne 0x4291a0
call fcn.004428f0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0x2719
mov dword [ecx + 4], eax
jmp 0x42929d
cmp byte [ebp + 0x14], 0
je 0x4291b8
test bl, 0x10
je 0x4291b8
call fcn.004428f0
mov ecx, dword [ebp + 0x18]
and dword [ecx], 0
jmp 0x429198
mov esi, dword [ebp + 0x18]
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
push eax
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.WS2_32.dll_WSARecv]
mov edx, esi
mov ecx, eax
call fcn.0042dccf
cmp dword [esi], 0x40
mov dword [ebp - 8], eax
jne 0x429200
call fcn.004428f0
mov dword [esi], 0x2746
jmp 0x429213
cmp dword [esi], 0x4d2
jne 0x429219
call fcn.004428f0
mov dword [esi], 0x274d
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x429222
or eax, 0xffffffff
jmp 0x429234
call fcn.004428f0
and dword [esi], 0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0xc]
test eax, eax
jg 0x42929f
test bl, 0x10
je 0x42923d
test eax, eax
je 0x42928f
test bl, 1
jne 0x42929d
call fcn.004428f0
lea edx, [ebp - 0x18]
mov ecx, esi
mov dword [ebp - 0x18], 0x2733
mov dword [ebp - 0x14], eax
call fcn.00428231
test al, al
je 0x42927c
call fcn.004428f0
lea edx, [ebp - 0x20]
mov ecx, esi
mov dword [ebp - 0x20], 0x4d5
mov dword [ebp - 0x1c], eax
call fcn.00428231
test al, al
jne 0x42929d
push esi
mov ecx, edi
call fcn.0042952a
pop ecx
test eax, eax
jns 0x4291bb
jmp 0x42929d
call fcn.004282f4
mov dword [esi], 2
mov dword [esi + 4], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42952a
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x46c060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp edi, 0xffffffff
jne 0x42955c
call fcn.004428f0
mov dword [esi + 4], eax
mov dword [esi], 0x2719
or eax, edi
jmp 0x4295b2
xor ebx, ebx
push ebx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.0042dccf
mov edi, eax
test edi, edi
je 0x4295a6
jle 0x4295b0
call fcn.004428f0
mov dword [esi + 4], eax
mov dword [esi], ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00440d0e
leave
ret
Function at 0x4295c1
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x46c060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp edi, 0xffffffff
jne 0x4295f3
call fcn.004428f0
mov dword [esi + 4], eax
mov dword [esi], 0x2719
or eax, edi
jmp 0x429649
xor ebx, ebx
push ebx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
push ebx
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.0042dccf
mov edi, eax
test edi, edi
je 0x42963d
jle 0x429647
call fcn.004428f0
mov dword [esi + 4], eax
mov dword [esi], ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00440d0e
leave
ret

Function at 0x429658
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x46c060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
cmp edi, 0xffffffff
jne 0x429688
call fcn.004428f0
mov dword [esi + 4], eax
mov dword [esi], 0x2719
or eax, edi
jmp 0x4296e3
push ebx
xor eax, eax
inc eax
xor ebx, ebx
push ebx
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x108], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edx, esi
mov ecx, eax
call fcn.0042dccf
mov edi, eax
test edi, edi
js 0x4296e0
call fcn.004428f0
mov dword [esi], ebx
mov dword [esi + 4], eax
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00440d0e
leave
ret