joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464830
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ea0c6
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x6a8a44]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
cmp dword [section.Shared], 0
je 0x464886
mov eax, dword [section.Shared]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x464886
push 4
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [section.Shared], eax
lea ecx, [ebp - 0x20]
call fcn.004673a0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.00402820
push eax
push str.CandRMenuTip
lea ecx, [ebp - 0x20]
call fcn.00467450
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004673c0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x467ef0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ea41e
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
lea eax, [ebp - 0x28]
push eax
call fcn.00406480
add esp, 4
mov dword [ebp - 4], 0
call fcn.005b89a2
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x28]
call fcn.00402820
push eax
push 0xffffffffffffffff
push 0x5f6174
push 0x5f6188
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x30]
push ecx
call fcn.005c84e4
add esp, 4
cmp eax, 3
jl 0x467f83
mov dword [ebp - 0x34], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402750
mov eax, dword [ebp - 0x34]
jmp 0x467f9c
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402750
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ad281
mov esp, ebp
pop ebp
ret
Function at 0x46a030
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ea686
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x264], ecx
lea ecx, [ebp - 0x230]
call fcn.00404430
mov dword [ebp - 4], 0
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004066c0
add esp, 8
test eax, eax
jne 0x46a0a1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00402750
jmp 0x46a1bf
lea ecx, [ebp - 0x230]
call fcn.00402820
push eax
lea edx, [ebp - 0x260]
push edx
call fcn.005b89b2
add esp, 8
mov byte [ebp - 4], 1
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x248]
call fcn.00404450
push 0x58
push 0
lea ecx, [ebp - 0x2bc]
push ecx
call fcn.005be3a0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x218], dx
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.005be3a0
add esp, 0xc
lea ecx, [ebp - 0x260]
call fcn.00402820
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.005c5a4b
add esp, 8
lea edx, [ebp - 0x218]
mov dword [ebp - 0x2a0], edx
mov dword [ebp - 0x29c], 0x104
mov dword [ebp - 0x2b0], str._b_tg
mov dword [ebp - 0x28c], 0x5f63e4
mov dword [ebp - 0x288], 0x1806
mov dword [ebp - 0x2bc], 0x58
mov dword [ebp - 0x2b8], 0
lea eax, [ebp - 0x2bc]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x46a193
push 0
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x248]
call fcn.00402820
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x248]
call fcn.00402750
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.00402750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.00402750
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ad281
mov esp, ebp
pop ebp
ret 4
Function at 0x46a1e0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ea6be
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x28]
call fcn.00404430
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004066c0
add esp, 8
test eax, eax
jne 0x46a242
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402750
jmp 0x46a2cb
lea ecx, [ebp - 0x28]
call fcn.00402820
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x64
call fcn.0046e0a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402820
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46a28a
lea ecx, [ebp - 0x40]
call fcn.00402820
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x44]
add ecx, 0x64
call fcn.0046dff0
push 0
mov ecx, dword [ebp - 0x44]
add ecx, 0x64
call fcn.0046e010
mov ecx, dword [ebp - 0x44]
sub ecx, 0x2d8
call fcn.0046a350
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402750
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ad281
mov esp, ebp
pop ebp
ret 4
Function at 0x46e930
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5eaa7a
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], ecx
mov ecx, dword [ebp + 8]
add ecx, 0x18
call fcn.00402820
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46e97d
mov eax, dword [ebp + 8]
mov byte [eax + 0x48], 1
jmp 0x46ea79
lea ecx, [ebp - 0x38]
call fcn.0046c930
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.0042dcd0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x74]
call fcn.00439470
push 0x5f6afc
lea ecx, [ebp - 0x68]
call fcn.00402790
mov byte [ebp - 4], 2
lea edx, [ebp - 0x68]
push edx
lea ecx, [ebp - 0x38]
call fcn.0046ccf0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.00402750
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x38]
call fcn.0046cd10
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + 0x4a]
test edx, edx
je 0x46ea1d
mov eax, dword [ebp + 8]
add eax, 0x18
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x30
push ecx
lea ecx, [ebp - 0x38]
call fcn.0046caa0
mov edx, dword [ebp + 8]
mov byte [edx + 0x48], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.00435780
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0046c970
jmp 0x46ea79
lea ecx, [ebp - 0x50]
call fcn.00404430
mov byte [ebp - 4], 3
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004066c0
add esp, 8
mov edx, dword [ebp + 8]
add edx, 0x18
push edx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x38]
call fcn.0046c9a0
mov ecx, dword [ebp + 8]
mov byte [ecx + 0x48], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00402750
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.00435780
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0046c970
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ad281
mov esp, ebp
pop ebp
ret 4
Function at 0x4713a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2e4], ecx
call fcn.004080c0
mov ecx, eax
call fcn.00425a60
mov dword [ebp - 0x2e0], eax
push str.Event.conf
push 0x5f6ed8
mov eax, dword [ebp - 0x2e0]
push eax
push 0x5f6ee8
lea ecx, [ebp - 0x2d4]
push ecx
call fcn.00409310
add esp, 0x14
lea edx, [ebp - 0x2d4]
push edx
push 0
push 0x5f6ef8
push 0x5f6f08
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x2dc], eax
call fcn.005b89a2
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x2dc], 0
jne 0x47145e
mov eax, dword [ebp - 0x2d8]
push eax
push 0x5f6f1c
lea ecx, [ebp - 0xcc]
push ecx
call fcn.00409310
add esp, 0xc
lea edx, [ebp - 0x2d4]
push edx
lea eax, [ebp - 0xcc]
push eax
push str.ShowDay
push 0x5f6f34
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x47148b
mov ecx, dword [ebp - 0x2d8]
sub ecx, dword [ebp - 0x2dc]
cmp ecx, 7
jl 0x47148b
lea edx, [ebp - 0x2d4]
push edx
push 0x5f6f48
push 0x5f6f4c
push str.RMenuTip
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ad281
mov esp, ebp
pop ebp
ret
Function at 0x474080
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x648
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x640], ecx
push 0
push ecx
mov ecx, esp
push str.WeatherWeatherBG.png
call fcn.0044de30
call dword [sym.imp.DuiLib32.dll_public:_static_class_Gdiplus::Bitmap____cdecl_DuiLib::CRenderEngine::LoadImageBitmap_class_DuiLib::STRINGorID__wchar_t_const__]
add esp, 8
mov dword [ebp - 0x634], eax
cmp dword [ebp - 0x634], 0
je 0x4741b5
lea ecx, [ebp - 0x644]
call fcn.00476630
lea ecx, [ebp - 0x648]
call fcn.00476630
mov eax, dword [ebp - 0x640]
mov ecx, dword [eax + 0x378]
push ecx
lea ecx, [ebp - 0x648]
call fcn.004768c0
mov dword [ebp - 0x63c], 0
jmp 0x47410d
mov edx, dword [ebp - 0x63c]
add edx, 1
mov dword [ebp - 0x63c], edx
mov ecx, dword [ebp - 0x634]
call fcn.0046b9d0
cmp dword [ebp - 0x63c], eax
jae 0x4741b5
mov dword [ebp - 0x638], 0
jmp 0x47413f
mov eax, dword [ebp - 0x638]
add eax, 1
mov dword [ebp - 0x638], eax
mov ecx, dword [ebp - 0x634]
call fcn.0046b9d0
cmp dword [ebp - 0x638], eax
jae 0x4741b0
lea ecx, [ebp - 0x644]
push ecx
mov edx, dword [ebp - 0x638]
push edx
mov eax, dword [ebp - 0x63c]
push eax
mov ecx, dword [ebp - 0x634]
call fcn.00476840
lea ecx, [ebp - 0x644]
call fcn.004767c0
mov byte [ebp - 0x62d], al
movzx ecx, byte [ebp - 0x62d]
test ecx, ecx
je 0x4741ae
lea edx, [ebp - 0x648]
push edx
mov eax, dword [ebp - 0x638]
push eax
mov ecx, dword [ebp - 0x63c]
push ecx
mov ecx, dword [ebp - 0x634]
call fcn.00476910
jmp 0x474130
jmp 0x4740fe
lea edx, [ebp - 0x414]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x3e8
push 0xa
call fcn.005b1a7f
add esp, 8
push eax
lea eax, [ebp - 0x414]
push eax
push str._sWeatherBG_d.png
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00409310
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x62c]
push eax
push 0x5f70e0
mov ecx, dword [ebp - 0x640]
call fcn.00474280
push 0
lea ecx, [ebp - 0x62c]
push ecx
lea edx, [ebp - 0x20c]
push edx
mov ecx, dword [ebp - 0x634]
call fcn.00476890
lea eax, [ebp - 0x20c]
push eax
push str.file_s_corner10_10_10_10
lea ecx, [ebp - 0x61c]
push ecx
call fcn.00409310
add esp, 0xc
lea edx, [ebp - 0x61c]
push edx
mov eax, dword [ebp - 0x640]
mov ecx, dword [eax + 0x2f4]
call dword [sym.imp.DuiLib32.dll_public:_void___thiscall_DuiLib::CControlUI::SetBkImage_wchar_t_const__]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ad281
mov esp, ebp
pop ebp
ret
Function at 0x47a730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x47a75c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x47a74d
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x47a790
cmp dword [esi + 8], 0
jne 0x47a780
push 0x61e1e8
push dword [eax + 8]
call fcn.005c5ef4
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x47a780
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.005c611e
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x47a7b2
mov eax, dword [esi + 8]
test eax, eax
je 0x47a7ac
push eax
call fcn.005c5c85
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x47abd0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x47ac20
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x47ac1a
shr eax, 8
cmp al, 2
jne 0x47ac1a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ad281
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.005ad281
mov esp, ebp
pop ebp
ret
Function at 0x47bc80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048ca70

Function at 0x47cca0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x168]
call fcn.0047cf80
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x47cd24
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x47ccfc
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.0047ad20
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0047c960
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x85b8], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x18c]
mov ebx, dword [ecx + edx*4 + 0x168]
add esi, eax
mov eax, dword [ecx + 0x248]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x47d030
cmp dword [ecx + edx*4 + 0x17c], 0x47cbf0
jne 0x47d030
cmp dword [esi], 0
je 0x47cfc8
test edi, edi
je 0x47d030
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0048b050
add esp, 0x10
cmp eax, 0xffffffff
je 0x47d030
test al, 1
je 0x47d030
cmp dword [esi], 0
jne 0x47d019
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x6a509c]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x47d019
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x47d030
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x47d040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x47d069
push dword [esi + 0x11c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x47d09f
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x61f3b0
push 2
push eax
call fcn.005c6c3d
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.005c6c3d
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x483030
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x48304e
cmp dword [esi + 0x48], 0
je 0x48304e
push 2
push 3
push esi
call fcn.00490ac0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00491290
add esp, 4
test esi, esi
je 0x48306e
cmp dword [esi + 0x48], 0
je 0x48306e
push 3
push esi
call fcn.00490b00
add esp, 8
pop esi
pop ebp
ret
Function at 0x48b5a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x578]
test esi, esi
je 0x48b5f4
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x48b5c1
cmp dword [edi + 0x40], eax
je 0x48b5f4
mov dword [ebp - 8], esi
mov byte [ebp - 4], 0
test eax, eax
jne 0x48b5cf
mov eax, dword [edi + 0x40]
push 0x48c3e0
lea ecx, [ebp - 8]
add eax, 0x68
push ecx
push eax
call fcn.00495cb0
add esp, 0xc
cmp byte [ebp - 4], 0
jne 0x48b5fd
mov dword [edi + 0x578], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x48b606
mov dword [eax], esi
cmp byte [esi + 0x1ac], 0
mov edi, dword [esi + 0x168]
je 0x48b62b
push esi
call fcn.0047bc80
add esp, 4
test eax, eax
jne 0x48b643
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
cmp edi, 0xffffffff
je 0x48b643
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x48b5f4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x48ba90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6adb50]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x48bae1
push 3
push 2
push eax
push 6
call fcn.004ab0b0
add esp, 0x10
test al, al
je 0x48bad5
mov dword [0x6adb50], 2
mov esp, ebp
pop ebp
ret
mov dword [0x6adb50], 1
jmp 0x48bae6
cmp eax, 2
je 0x48bb26
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x48bb0d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x48bb26
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret

Function at 0x48bbf0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x48bc38
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0047ad20
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0047ca00
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0047ca00
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x48bd20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x48befa
cmp byte [edi + 0x21a], 0
push esi
jne 0x48bef0
cmp byte [edi + 0x234], 0
jne 0x48bef0
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x48bdb8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.0047ad20
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0047c960
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ad281
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.005be3a0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x48be21
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.0047ad20
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0047c960
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ad281
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xfc]
push eax
lea esi, [edi + 0xcc]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.0048c400
add esp, 0xc
test al, al
jne 0x48be72
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.0047ad20
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0047c960
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ad281
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [edi + 0x58], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x130]
push eax
lea eax, [edi + 0x100]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0048c400
add esp, 0xc
test al, al
jne 0x48bef0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.0047ad20
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0047c960
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ad281
mov esp, ebp
pop ebp
ret
push edi
call fcn.0048b9d0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.005ad281
mov esp, ebp
pop ebp
ret
Function at 0x48c780
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
push 4
cmp byte [esi + 0x3ec], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x48c7dd
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0047ca00
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005ad281
mov esp, ebp
pop ebp
ret
push dword [esi + 0x3f0]
mov dword [ebp - 0x10], 1
call fcn.00490b60
push dword [esi + 0x3f4]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.00490b60
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x48c84d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.0047ca00
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005ad281
mov esp, ebp
pop ebp
ret

Function at 0x490b40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.00402fa0
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.005d48cd