joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f170
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5c49f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea eax, [ebp - 8]
push edi
push 0
push eax
push 0
push 0x2000
mov edi, ecx
mov dword [ebp - 8], 0xffffffff
call esi
cmp dword [ebp - 8], 0x64
jb 0x43f1b4
push 3
push 0
push 0
push 0x2001
call esi
push 0
push edi
push 0
push 0
push 0
push accept
push 0
push accept
push 0xcb0000
push 0x5c9220
push 0x5c91b8
push 0
mov dword [0x5c91b0], edi
mov dword [0x5c91b4], 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xff3fffff
push eax
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov edi, eax
call esi
cdq
sub eax, edx
push 1
sar eax, 1
sub eax, 0x78
push 0xf0
push 0x190
push eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
sub eax, 0xc8
push eax
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
test ebx, ebx
jne 0x43f25a
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00533845
mov esp, ebp
pop ebp
ret
push ecx
call fcn.0043f3a0
add esp, 4
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
sub esp, 0x18
mov dword [0x5c542c], 0x4402f0
mov ecx, esp
mov dword [0x5c92b0], 0x440d60
push 0xa
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.UiClickUse
mov byte [ecx], 0
call fcn.0042c1e0
call fcn.0043a820
push 0xa
push str.UiClickUse
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call fcn.0042c1e0
lea eax, [ebp - 0x20]
push eax
call fcn.0043a760
mov ecx, dword [ebp - 0xc]
mov dword [0x5c91a8], eax
cmp ecx, 0x10
jb 0x43f2f9
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
call fcn.0042ceb0
mov eax, dword [0x5c91a8]
push eax
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5c9840]
cmp eax, dword [ecx + 4]
jle 0x43f35c
push 0x5c9840
call fcn.00533993
add esp, 4
cmp dword [0x5c9840], 0xffffffff
jne 0x43f35c
call fcn.00436720
push 0x5607c0
call fcn.00533d1d
add esp, 4
push 0x5c9840
call fcn.00533954
add esp, 4
push dword [0x5c91a8]
push str.InitInstance_m_click_event_handle__p
push 0
push 0x5b063c
push 0x5c9848
call fcn.00436800
mov ecx, dword [ebp - 4]
add esp, 0x14
mov dword [0x5c921c], ebx
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.00533845
mov esp, ebp
pop ebp
ret
Function at 0x43f3a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5c49f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x5c91b0]
push edi
push 0x5b1cec
push 0x68
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x43f474
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
push esi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x43f473
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0xc]
push edi
push eax
call fcn.00536b40
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 8]
push 0x10
mov dword [ebp - 0xc], eax
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov esi, eax
test esi, esi
je 0x43f454
lea ecx, [esi + 4]
xorps xmm0, xmm0
push ecx
push dword [ebp - 0xc]
movups xmmword [esi], xmm0
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [ecx], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [esi + 8], eax
jmp 0x43f456
xor esi, esi
push ebx
mov dword [0x5c9284], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00533845
mov esp, ebp
pop ebp
ret
Function at 0x4410f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55eafe
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x5c49f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xb0], 0
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], 0
call fcn.00441080
push 0x64
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.005369e0
add esp, 0xc
lea eax, [ebp - 0xa8]
cmp dword [ebp - 0x94], 0x10
lea ecx, [ebp + 8]
cmovae eax, dword [ebp - 0xa8]
cmp dword [ebp + 0x1c], 0x10
push eax
cmovae ecx, dword [ebp + 8]
lea eax, [ebp - 0x78]
push 0x64
push eax
push 0x5b03e0
push ecx
push str.Version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
jne 0x4411aa
xor ecx, ecx
jmp 0x4411b9
lea ecx, [ebp - 0x78]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4411b0
sub ecx, edx
push ecx
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x90]
call fcn.0042c1e0
mov byte [ebp - 4], 2
mov ecx, esi
cmp dword [ebp - 0x80], 0
ja 0x44126f
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push 0x5b03e0
mov byte [esi], 0
call fcn.0042c1e0
mov eax, dword [ebp - 0x7c]
cmp eax, 0x10
jb 0x441211
inc eax
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
call fcn.0042ceb0
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
cmp eax, 0x10
jb 0x441244
inc eax
lea ecx, [ebp - 0xa8]
push eax
push dword [ebp - 0xa8]
call fcn.0042ceb0
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x98], 0
mov byte [ebp - 0xa8], 0
cmp ecx, 0x10
jb 0x4412f9
inc ecx
push ecx
jmp 0x4412ee
lea eax, [ebp - 0x90]
push eax
call fcn.0042a480
mov eax, dword [ebp - 0x7c]
cmp eax, 0x10
jb 0x441296
inc eax
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
call fcn.0042ceb0
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
cmp eax, 0x10
jb 0x4412c9
inc eax
lea ecx, [ebp - 0xa8]
push eax
push dword [ebp - 0xa8]
call fcn.0042ceb0
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x98], 0
mov byte [ebp - 0xa8], 0
cmp eax, 0x10
jb 0x4412f9
inc eax
push eax
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.0042ceb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00533845
mov esp, ebp
pop ebp
ret
Function at 0x44f770
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c7a9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5c49f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004302a0
push 7
mov dword [ebp - 4], 0
mov ecx, esi
push str.update
mov dword [ebp - 0x2c], 1
call fcn.0042c4c0
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0042c2e0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x44f80f
test al, 0x10
je 0x44f80f
mov edi, 1
jmp 0x44f811
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x44f826
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0042ceb0
test edi, edi
jne 0x44f86c
push 0xffffffffffffffff
push edi
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x28], 0
call fcn.0042c2e0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x44f86c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0042ceb0
push 7
push str.plugin
mov ecx, esi
call fcn.0042c4c0
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0042c2e0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x44f8bb
test al, 0x10
je 0x44f8bb
mov edi, 1
jmp 0x44f8bd
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x44f8d2
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0042ceb0
test edi, edi
jne 0x44f918
push 0xffffffffffffffff
push edi
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x28], 0
call fcn.0042c2e0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x44f918
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0042ceb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00533845
mov esp, ebp
pop ebp
ret 4
Function at 0x450880
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560020
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x5c49f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xffffffffffffffff
mov dword [ebp - 4], 3
lea eax, [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0042c2e0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4508ef
test al, 0x10
jne 0x4508ef
mov bl, 1
jmp 0x4508f1
xor bl, bl
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x450906
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0042ceb0
test bl, bl
jne 0x450931
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], bl
call fcn.0042c2e0
call fcn.00450bb0
cmp dword [ebp + 0x1c], 0x10
lea esi, [ebp + 8]
lea edx, [ebp + 0x50]
cmovae esi, dword [ebp + 8]
lea ecx, [ebp + 0x38]
cmp dword [ebp + 0x64], 0x10
lea eax, [ebp + 0x20]
push esi
cmovae edx, dword [ebp + 0x50]
cmp dword [ebp + 0x4c], 0x10
push edx
cmovae ecx, dword [ebp + 0x38]
cmp dword [ebp + 0x34], 0x10
push ecx
cmovae eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
mov eax, dword [ebp + 0x1c]
setne bl
cmp eax, 0x10
jb 0x450981
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.0042ceb0
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp eax, 0x10
jb 0x4509a8
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.0042ceb0
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x34], 0xf
mov dword [ebp + 0x30], 0
mov byte [ebp + 0x20], 0
cmp eax, 0x10
jb 0x4509cf
inc eax
lea ecx, [ebp + 0x38]
push eax
push dword [ebp + 0x38]
call fcn.0042ceb0
mov ecx, dword [ebp + 0x64]
mov dword [ebp + 0x4c], 0xf
mov dword [ebp + 0x48], 0
mov byte [ebp + 0x38], 0
cmp ecx, 0x10
jb 0x4509f6
inc ecx
push ecx
push dword [ebp + 0x50]
lea ecx, [ebp + 0x50]
call fcn.0042ceb0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x60
Function at 0x450a10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560063
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x5c49f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x400
lea eax, [ebp - 0x414]
mov dword [ebp - 4], 2
push 0
push eax
call fcn.005369e0
add esp, 0xc
lea ecx, [ebp + 0xc]
cmp dword [ebp + 0x20], 0x10
lea edx, [ebp + 0x3c]
lea eax, [ebp + 0x24]
cmovae ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x50], 0x10
push ecx
cmovae edx, dword [ebp + 0x3c]
lea ecx, [ebp - 0x414]
cmp dword [ebp + 0x38], 0x10
push 0x400
cmovae eax, dword [ebp + 0x24]
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x414]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x450aa0
sub ecx, edx
mov byte [ebp - 0x42c], al
push ecx
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], 0xf
push eax
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x41c], 0
call fcn.0042c1e0
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 3
cmp esi, eax
je 0x450af0
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.0042c2e0
mov eax, dword [ebp - 0x418]
cmp eax, 0x10
jb 0x450b0e
inc eax
lea ecx, [ebp - 0x42c]
push eax
push dword [ebp - 0x42c]
call fcn.0042ceb0
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x418], 0xf
mov dword [ebp - 0x41c], 0
mov byte [ebp - 0x42c], 0
cmp eax, 0x10
jb 0x450b3e
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.0042ceb0
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0xc], 0
cmp eax, 0x10
jb 0x450b65
inc eax
lea ecx, [ebp + 0x24]
push eax
push dword [ebp + 0x24]
call fcn.0042ceb0
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x38], 0xf
mov dword [ebp + 0x34], 0
mov byte [ebp + 0x24], 0
cmp eax, 0x10
jb 0x450b8c
inc eax
lea ecx, [ebp + 0x3c]
push eax
push dword [ebp + 0x3c]
call fcn.0042ceb0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00533845
mov esp, ebp
pop ebp
ret 0x4c
Function at 0x452f80
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x452f90
mov eax, 1
pop esi
ret
push 0
push 0
push esi
push 0x453040
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 4], eax
test eax, eax
pop esi
setne cl
mov eax, ecx
ret

Function at 0x453000
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x45302a
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, 1
pop esi
ret
Function at 0x4550f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5c49f0]
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 0x455140
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x45513a
shr eax, 8
cmp al, 2
jne 0x45513a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00533845
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.00533845
mov esp, ebp
pop ebp
ret

Function at 0x45a8b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x45a8ce
cmp dword [esi + 0x6c], 0
je 0x45a8ce
push 2
push 3
push esi
call fcn.00472590
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00468b20
add esp, 4
test esi, esi
je 0x45a8ee
cmp dword [esi + 0x6c], 0
je 0x45a8ee
push 3
push esi
call fcn.004725d0
add esp, 8
pop esi
pop ebp
ret
Function at 0x4655d0
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 + 0x1a8]
call fcn.00465950
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 0x465654
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x46562c
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.00455240
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.00465230
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x48ac], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
mov edx, dword [ebx + ecx*4 + 0x1a8]
lea esi, [ebx + 0x1cc]
add esi, eax
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x2b8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x465a0d
cmp dword [ebx + ecx*4 + 0x1bc], 0x465520
jne 0x465a0d
cmp dword [esi], 0
je 0x46599f
test edi, edi
je 0x465a0d
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.00464b80
add esp, 0x14
cmp eax, 0xffffffff
je 0x465a0d
test al, 1
je 0x465a0d
cmp dword [esi], 0
jne 0x4659f4
mov eax, dword [ebx]
mov eax, dword [eax + 0x4b8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
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 0x4659f4
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 dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x465a0d
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x465a20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1d0]
test eax, eax
je 0x465a49
push dword [esi + 0x15c]
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 0x465a7f
push dword [esi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x563870
push 2
push eax
call fcn.0053acb7
push dword [esi + 0x158]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0053acb7
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x465b50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1ec], 0
je 0x465b70
push eax
call fcn.0045b9d0
add esp, 4
test eax, eax
jne 0x465b92
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x465b6c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x465b92
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x466290
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5c5f40]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x4662e1
push 3
push 2
push eax
push 6
call fcn.0048a6f0
add esp, 0x10
test al, al
je 0x4662d5
mov dword [0x5c5f40], 2
mov esp, ebp
pop ebp
ret
mov dword [0x5c5f40], 1
jmp 0x4662e6
cmp eax, 2
je 0x466326
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 0x46630d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x466326
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 0x4663f0
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 0x466438
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00455240
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00465300
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00465300
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x466570
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5c49f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
cmp dword [ebx + 0x94], 2
mov edi, dword [ebx]
mov dword [ebp - 0x10c], edi
je 0x46676d
cmp byte [ebx + 0x276], 0
push esi
jne 0x466763
cmp byte [ebx + 0x292], 0
jne 0x466763
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 0x46660e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00455240
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00465230
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00533845
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.005369e0
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 0x466677
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00455240
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00465230
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00533845
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x138]
push eax
lea esi, [ebx + 0x10a]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.00466c70
add esp, 0xc
test al, al
jne 0x4666d5
call fcn.0053ad88
mov esi, eax
call fcn.0053ad88
push dword [esi]
mov edi, eax
push ebx
call fcn.00455240
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.00465230
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00533845
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [ebx + 0x60], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebx + 0x70], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ebx + 0x80], xmm0
mov dword [ebx + 0x88], eax
mov ax, word [esi + 0x2c]
mov word [ebx + 0x8c], ax
lea eax, [ebx + 0x16c]
push eax
lea eax, [ebx + 0x13c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00466c70
add esp, 0xc
test al, al
jne 0x466763
call fcn.0053ad88
mov esi, eax
call fcn.0053ad88
push dword [esi]
mov edi, eax
push ebx
call fcn.00455240
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.00465230
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00533845
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004661b0
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00533845
mov esp, ebp
pop ebp
ret