joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f150
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 0x43f194
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 0x43f23a
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053342f
mov esp, ebp
pop ebp
ret
push ecx
call fcn.0043f380
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], 0x4402d0
mov ecx, esp
mov dword [0x5c92b0], 0x440d40
push 0xa
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.UiClickUse
mov byte [ecx], 0
call fcn.0042c1b0
call fcn.0043a7f0
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.0042c1b0
lea eax, [ebp - 0x20]
push eax
call fcn.0043a730
mov ecx, dword [ebp - 0xc]
mov dword [0x5c91a8], eax
cmp ecx, 0x10
jb 0x43f2d9
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
call fcn.0042ce80
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 0x43f33c
push 0x5c9840
call fcn.0053357d
add esp, 4
cmp dword [0x5c9840], 0xffffffff
jne 0x43f33c
call fcn.004366f0
push 0x560310
call fcn.00533907
add esp, 4
push 0x5c9840
call fcn.0053353e
add esp, 4
push dword [0x5c91a8]
push str.InitInstance_m_click_event_handle__p
push 0
push 0x5b063c
push 0x5c9848
call fcn.004367d0
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.0053342f
mov esp, ebp
pop ebp
ret
Function at 0x43f380
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 0x43f454
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 0x43f453
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.005366a0
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 0x43f434
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 0x43f436
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.0053342f
mov esp, ebp
pop ebp
ret
Function at 0x4410d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e69e
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.00441060
push 0x64
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00536540
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 0x44118a
xor ecx, ecx
jmp 0x441199
lea ecx, [ebp - 0x78]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x441190
sub ecx, edx
push ecx
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x90]
call fcn.0042c1b0
mov byte [ebp - 4], 2
mov ecx, esi
cmp dword [ebp - 0x80], 0
ja 0x44124f
push 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push 0x5b03e0
mov byte [esi], 0
call fcn.0042c1b0
mov eax, dword [ebp - 0x7c]
cmp eax, 0x10
jb 0x4411f1
inc eax
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
call fcn.0042ce80
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
cmp eax, 0x10
jb 0x441224
inc eax
lea ecx, [ebp - 0xa8]
push eax
push dword [ebp - 0xa8]
call fcn.0042ce80
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x98], 0
mov byte [ebp - 0xa8], 0
cmp ecx, 0x10
jb 0x4412d9
inc ecx
push ecx
jmp 0x4412ce
lea eax, [ebp - 0x90]
push eax
call fcn.0042a440
mov eax, dword [ebp - 0x7c]
cmp eax, 0x10
jb 0x441276
inc eax
lea ecx, [ebp - 0x90]
push eax
push dword [ebp - 0x90]
call fcn.0042ce80
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x7c], 0xf
mov dword [ebp - 0x80], 0
mov byte [ebp - 0x90], 0
cmp eax, 0x10
jb 0x4412a9
inc eax
lea ecx, [ebp - 0xa8]
push eax
push dword [ebp - 0xa8]
call fcn.0042ce80
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x98], 0
mov byte [ebp - 0xa8], 0
cmp eax, 0x10
jb 0x4412d9
inc eax
push eax
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.0042ce80
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.0053342f
mov esp, ebp
pop ebp
ret
Function at 0x44f740
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c349
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.00430270
push 7
mov dword [ebp - 4], 0
mov ecx, esi
push str.update
mov dword [ebp - 0x2c], 1
call fcn.0042c490
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.0042c2b0
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 0x44f7df
test al, 0x10
je 0x44f7df
mov edi, 1
jmp 0x44f7e1
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x44f7f6
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0042ce80
test edi, edi
jne 0x44f83c
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.0042c2b0
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 0x44f83c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0042ce80
push 7
push str.plugin
mov ecx, esi
call fcn.0042c490
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.0042c2b0
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 0x44f88b
test al, 0x10
je 0x44f88b
mov edi, 1
jmp 0x44f88d
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x44f8a2
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0042ce80
test edi, edi
jne 0x44f8e8
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.0042c2b0
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 0x44f8e8
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.0042ce80
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.0053342f
mov esp, ebp
pop ebp
ret 4
Function at 0x450850
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fbc0
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.0042c2b0
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 0x4508bf
test al, 0x10
jne 0x4508bf
mov bl, 1
jmp 0x4508c1
xor bl, bl
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4508d6
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0042ce80
test bl, bl
jne 0x450901
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.0042c2b0
call fcn.00450b80
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 0x450951
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.0042ce80
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp eax, 0x10
jb 0x450978
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.0042ce80
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x34], 0xf
mov dword [ebp + 0x30], 0
mov byte [ebp + 0x20], 0
cmp eax, 0x10
jb 0x45099f
inc eax
lea ecx, [ebp + 0x38]
push eax
push dword [ebp + 0x38]
call fcn.0042ce80
mov ecx, dword [ebp + 0x64]
mov dword [ebp + 0x4c], 0xf
mov dword [ebp + 0x48], 0
mov byte [ebp + 0x38], 0
cmp ecx, 0x10
jb 0x4509c6
inc ecx
push ecx
push dword [ebp + 0x50]
lea ecx, [ebp + 0x50]
call fcn.0042ce80
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 0x4509e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55fc03
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.00536540
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 0x450a70
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.0042c1b0
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 3
cmp esi, eax
je 0x450ac0
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.0042c2b0
mov eax, dword [ebp - 0x418]
cmp eax, 0x10
jb 0x450ade
inc eax
lea ecx, [ebp - 0x42c]
push eax
push dword [ebp - 0x42c]
call fcn.0042ce80
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x418], 0xf
mov dword [ebp - 0x41c], 0
mov byte [ebp - 0x42c], 0
cmp eax, 0x10
jb 0x450b0e
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.0042ce80
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0xc], 0
cmp eax, 0x10
jb 0x450b35
inc eax
lea ecx, [ebp + 0x24]
push eax
push dword [ebp + 0x24]
call fcn.0042ce80
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x38], 0xf
mov dword [ebp + 0x34], 0
mov byte [ebp + 0x24], 0
cmp eax, 0x10
jb 0x450b5c
inc eax
lea ecx, [ebp + 0x3c]
push eax
push dword [ebp + 0x3c]
call fcn.0042ce80
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.0053342f
mov esp, ebp
pop ebp
ret 0x4c
Function at 0x452f50
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x452f60
mov eax, 1
pop esi
ret
push 0
push 0
push esi
push 0x453010
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 0x452fd0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x452ffa
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 0x454c50
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 0x454ca0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x454c9a
shr eax, 8
cmp al, 2
jne 0x454c9a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053342f
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.0053342f
mov esp, ebp
pop ebp
ret

Function at 0x45a420
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x45a43e
cmp dword [esi + 0x6c], 0
je 0x45a43e
push 2
push 3
push esi
call fcn.004720f0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00468690
add esp, 4
test esi, esi
je 0x45a45e
cmp dword [esi + 0x6c], 0
je 0x45a45e
push 3
push esi
call fcn.00472130
add esp, 8
pop esi
pop ebp
ret
Function at 0x465130
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.004654b0
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 0x4651b4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x46518c
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.00454da0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.00464d90
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 0x4654b0
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 0x46556d
cmp dword [ebx + ecx*4 + 0x1bc], 0x465080
jne 0x46556d
cmp dword [esi], 0
je 0x4654ff
test edi, edi
je 0x46556d
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.004646e0
add esp, 0x14
cmp eax, 0xffffffff
je 0x46556d
test al, 1
je 0x46556d
cmp dword [esi], 0
jne 0x465554
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 0x465554
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 0x46556d
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x465580
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 0x4655a9
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 0x4655df
push dword [esi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x563870
push 2
push eax
call fcn.0053a87a
push dword [esi + 0x158]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0053a87a
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4656b0
Capabilities:
Receive data
Receive data on socket

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

Function at 0x465df0
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 0x465e41
push 3
push 2
push eax
push 6
call fcn.0048a260
add esp, 0x10
test al, al
je 0x465e35
mov dword [0x5c5f40], 2
mov esp, ebp
pop ebp
ret
mov dword [0x5c5f40], 1
jmp 0x465e46
cmp eax, 2
je 0x465e86
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 0x465e6d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x465e86
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 0x465f50
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 0x465f98
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00454da0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00464e60
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00464e60
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x4660d0
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 0x4662cd
cmp byte [ebx + 0x276], 0
push esi
jne 0x4662c3
cmp byte [ebx + 0x292], 0
jne 0x4662c3
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 0x46616e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00454da0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.00464d90
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053342f
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.00536540
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 0x4661d7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00454da0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.00464d90
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053342f
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.004667d0
add esp, 0xc
test al, al
jne 0x466235
call fcn.0053a94b
mov esi, eax
call fcn.0053a94b
push dword [esi]
mov edi, eax
push ebx
call fcn.00454da0
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.00464d90
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053342f
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.004667d0
add esp, 0xc
test al, al
jne 0x4662c3
call fcn.0053a94b
mov esi, eax
call fcn.0053a94b
push dword [esi]
mov edi, eax
push ebx
call fcn.00454da0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x10c]
call fcn.00464d90
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053342f
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00465d10
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0053342f
mov esp, ebp
pop ebp
ret