joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4868e2
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
push 0x4ac
mov eax, 0x7b0a86
call fcn.005b93f9
mov ebx, dword [ebp + 8]
xor esi, esi
mov edi, dword [ebp + 0xc]
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x486b01
lea eax, [ebp - 0x4b4]
push eax
push 0x800a58
push 1
push esi
push 0x800ac8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x486b01
push 0x208
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.007351d0
add esp, 0xc
lea eax, [ebp - 0x420]
push esi
push 0x10
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.0045414f
push str..lnk
lea ecx, [ebp - 0x4b0]
mov dword [ebp - 4], esi
call fcn.0045414f
mov esi, eax
push 0x877c1c
lea ecx, [ebp - 0x498]
mov byte [ebp - 4], 1
call fcn.0045414f
push eax
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.0048628d
push ebx
push eax
lea eax, [ebp - 0x468]
mov byte [ebp - 4], 3
push eax
call fcn.00486266
push esi
push eax
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 4
push eax
call fcn.00486218
add esp, 0x24
lea ecx, [ebp - 0x438]
push eax
call fcn.0045786a
xor ebx, ebx
lea ecx, [ebp - 0x450]
push ebx
push 1
call fcn.0045bf09
push ebx
push 1
lea ecx, [ebp - 0x468]
call fcn.0045bf09
push ebx
push 1
lea ecx, [ebp - 0x480]
call fcn.0045bf09
push ebx
push 1
lea ecx, [ebp - 0x498]
call fcn.0045bf09
push ebx
push 1
lea ecx, [ebp - 0x4b0]
mov byte [ebp - 4], bl
call fcn.0045bf09
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.007351d0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x486a40
mov eax, dword [edi]
jmp 0x486a42
mov eax, edi
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x218]
push eax
call fcn.004673ee
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x486a67
mov edi, dword [edi]
mov eax, dword [ebp - 0x4b4]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x4b4]
lea edx, [ebp - 0x218]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x4b4]
lea edx, [ebp - 0x4b8]
push edx
push 0x800a78
push eax
mov ecx, dword [eax]
call dword [ecx]
push ebx
test eax, eax
js 0x486af4
mov eax, dword [ebp - 0x4b8]
lea edx, [ebp - 0x438]
cmp dword [ebp - 0x424], 8
cmovae edx, dword [ebp - 0x438]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x4b8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x4b4]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
push ebx
push 1
lea ecx, [ebp - 0x438]
call fcn.0045bf09
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, 1
jmp 0x486b03
push 1
lea ecx, [ebp - 0x438]
call fcn.0045bf09
xor al, al
call fcn.005b93a3
ret
Function at 0x487129
Capabilities:
Enumerate processes

Disassembly:
push 0x23c
mov eax, 0x7b0b08
call fcn.005b93f9
xor esi, esi
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x240], esi
push esi
push 2
mov dword [ebp - 4], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x487171
push 0x7cc088
push 0x8c42c8
call fcn.00467f43
pop ecx
pop ecx
jmp 0x4871b1
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4871aa
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x224]
cmp eax, dword [ebx]
je 0x4871c6
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x48718f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x248]
call fcn.00488333
mov eax, esi
call fcn.005b93a3
ret 4
mov esi, dword [ebp - 0x234]
jmp 0x4871b1

Function at 0x4871ce
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, ecx
test eax, eax
je 0x4871e0
mov dword [edi + 0x48], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0xc]
push 0x210
mov dword [edi + 0x58], eax
call fcn.004885a7
push dword [ebp + 0x18]
mov esi, eax
xor ebx, ebx
lea ecx, [esi + 8]
mov dword [esi], ebx
push ecx
mov dword [esi + 4], edi
call dword [sym.imp.USER32.dll_wsprintfW]
push ebx
push ebx
push esi
push 0x48783e
push ebx
push ebx
call fcn.00741eee
add esp, 0x24
mov dword [edi + 0x4c], eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x18

Function at 0x48722e
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 0xc]
call fcn.00486195
push str.Globalyjs_exit_mutex
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x5c], ebx
cmp dword [esi], ebx
je 0x48725a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
cmp dword [esi + 0x4c], ebx
je 0x487273
push 0xffffffffffffffff
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x487285
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esi + 0xac]
call fcn.00717ef0
lea ecx, [esi + 0xac]
pop esi
pop ebx
jmp fcn.0045f4b5
Function at 0x48fb49
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x48fb8e
call fcn.00489617
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x48fb8e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x48fbaa
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00499c70
mov ebx, eax
test edi, edi
je 0x48fba8
test esi, esi
je 0x48fba8
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x49058b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x490649
cmp dword [esi + 0x20], 0
je 0x490649
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x490649
cmp dword [ebp + 8], 0
je 0x490649
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.00489617
push 0x7cd568
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x49061a
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x490649
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.0049a9ff
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x49063a
test edi, edi
je 0x49063a
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x490645
mov ecx, esi
call fcn.0049032e
mov eax, ebx
jmp 0x49064b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x494b51
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x7bc6da
call fcn.005b93c5
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x494b77
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x494bd6
call fcn.0048aea4
push eax
lea ecx, [ebp - 0x10]
call fcn.00489216
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.005ba12b
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00748d79
push eax
call fcn.00488a4f
add esp, 0x14
test esi, esi
je 0x494bc9
push esi
call fcn.00748d84
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0048985d
mov eax, ebx
call fcn.005b938e
ret 8
Function at 0x497090
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00494a9b
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4970cc
call fcn.004972b2
mov dword [esi + 0xc], 1
jmp 0x4970d1
call fcn.004972b2
cmp dword [esi], 0
je 0x49711a
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4970f4
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00489ebc
jmp 0x497105
push 0xff
mov ecx, esi
call fcn.004897e0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00489edf
jmp 0x49713e
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x49713e
push dword [esi]
push dword [ebp - 4]
call fcn.004968c4
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x497207
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004972b2
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x49724f
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00489ebc
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00489edf
jmp 0x49725a
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004968c4
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x49b07a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x49b0a5
cmp dword [ebx + 0x80], 0
jne 0x49b0a5
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.00489617
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.0049b338
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x49b0df
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00489617
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x49b116
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0049b137
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x49d285
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x49d29f
mov edi, dword [esi + 0xc]
jmp 0x49d2df
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x49d2b8
call fcn.00497f31
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x49d2cd
call fcn.00497f31
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x49d2df
call fcn.00497f31
call fcn.00489617
cmp dword [eax + 0x3c], 0
je 0x49d2f4
push edi
mov ecx, ebx
call fcn.0049c9be
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0049d4d1
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x49d31d
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x49d329
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4b20ad
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00500f15
call fcn.00489665
cmp dword [eax + 0x14], 0
jne 0x4b20c8
mov ecx, esi
pop esi
jmp fcn.004b13f8
pop esi
ret

Function at 0x4b2fca
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.0040a590
call fcn.00489665
cmp dword [eax + 0x14], 0
jne 0x4b2fe5
mov ecx, esi
pop esi
jmp fcn.004b2848
pop esi
ret
Function at 0x4c17f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x4c180f
call fcn.00489617
mov esi, dword [eax + 0xc]
push 0x7d4c74
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4c1865
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4c1864
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4c1845
xor esi, esi
jmp 0x4c185b
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.004c186d
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5c1de0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x5c1e29
mov al, byte [esi]
push eax
call fcn.005ceef0
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x5c1e07
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
Function at 0x5cb800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0xb42], 0
je 0x5cb883
cmp dword [edi + 0x600], 0
je 0x5cb84d
push esi
push 1
push edi
call fcn.005be510
push dword [edi + 0x594]
mov eax, dword [edi + 0x600]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.005be510
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x5cb883
push dword [edi + 0x590]
lea eax, [eax + eax*2]
push 1
add eax, 0x7f7988
push 2
push eax
call fcn.00743ded
push dword [edi + 0x590]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00743ded
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x8aa514]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov ecx, dword [ebx + eax*4 + 0x420]
mov edi, dword [ebp + 0x10]
push eax
push ebx
mov dword [ebp - 0x108], ecx
call fcn.005cc060
add esp, 8
test eax, eax
je 0x5cbc57
pop edi
mov dword [esi], 0x1b
or eax, 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b937d
mov esp, ebp
pop ebp
ret
push 0
push dword [ebp + 0x14]
push edi
push dword [ebp - 0x108]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x5cbcda
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x108], eax
cmp eax, 0x2733
jne 0x5cbca4
xor edi, edi
mov dword [esi], 0x51
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b937d
mov esp, ebp
pop ebp
ret
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.005f6960
push eax
push str.Send_failure:__s
push dword [ebx]
call fcn.005cb890
mov eax, dword [ebx]
add esp, 0x18
mov ecx, dword [ebp - 0x108]
mov dword [eax + 0xd9c], ecx
mov dword [esi], 0x37
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b937d
mov esp, ebp
pop ebp
ret
Function at 0x5cc060
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 + 0x420]
lea esi, [ebx + 0x448]
add esi, eax
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x568]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x5cc11f
cmp dword [ebx + ecx*4 + 0x438], 0x5cbb10
jne 0x5cc11f
cmp dword [esi], 0
je 0x5cc0af
test edi, edi
je 0x5cc11f
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.005d8ad0
add esp, 0x14
cmp eax, 0xffffffff
je 0x5cc11f
test al, 1
je 0x5cc11f
cmp dword [esi], 0
jne 0x5cc106
mov eax, dword [ebx]
mov eax, dword [eax + 0x91c]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x8aa528]
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x5cc0f5
pop edi
pop esi
mov eax, 0x1b
pop ebx
pop ebp
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
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 0x5cc11f
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x474], 0
je 0x5cc2d0
push eax
call fcn.005c63b0
add esp, 4
test eax, eax
jne 0x5cc2f2
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x420]
cmp eax, 0xffffffff
je 0x5cc2cc
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x5cc2f2
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x5cc4d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x8aa514]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x184]
push esi
push 0x80
push 0
push eax
mov dword [ebp - 0x188], 0x80
call fcn.007351d0
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x5cc55e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push esi
call fcn.005f6960
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push dword [ebx]
call fcn.005cb890
add esp, 0x1c
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b937d
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x3d4]
push eax
lea eax, [ebx + 0x3a4]
push eax
push dword [ebp - 0x188]
lea eax, [ebp - 0x184]
push eax
call fcn.005cc130
add esp, 0x10
test al, al
jne 0x5cc5ba
push edi
call fcn.007436af
mov esi, eax
call fcn.007436af
mov edi, eax
lea eax, [ebp - 0x104]
push 0x100
push eax
push dword [esi]
call fcn.005f6960
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebx]
call fcn.005cb890
add esp, 0x1c
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005b937d
mov esp, ebp
pop ebp
ret
Function at 0x5ccd00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x8c415c]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x5ccd51
push 3
push 2
push eax
push 6
call fcn.005f7640
add esp, 0x10
test al, al
je 0x5ccd45
mov dword [0x8c415c], 2
mov esp, ebp
pop ebp
ret
mov dword [0x8c415c], 1
jmp 0x5ccd56
cmp eax, 2
je 0x5ccd96
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 0x5ccd7d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x5ccd96
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 0x5cdb60
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x8aa514]
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 + 0xb4f], 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 0x5cdbbd
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.005cb950
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b937d
mov esp, ebp
pop ebp
ret
push dword [esi + 0xae8]
mov dword [ebp - 0x10], 1
call fcn.005cddf0
push dword [esi + 0xaec]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.005cddf0
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 0x5cdc2d
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.005cb950
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005b937d
mov esp, ebp
pop ebp
ret

Function at 0x5cdc40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x8aa514]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 4
mov dword [ebp - 0x108], 1
mov esi, dword [eax]
lea eax, [ebp - 0x108]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x5cdca4
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.005f6960
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.005cb950
add esp, 0x18
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005b937d
mov esp, ebp
pop ebp
ret

Function at 0x5cddb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.00651950
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.00758693