joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435e56
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x60c254]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x828]
push edi
mov edi, dword [ebp + 0xc]
push 0x44
pop ebx
push ebx
push 0
push eax
call fcn.0055d8e0
mov dword [ebp - 0x828], ebx
lea eax, [ebp - 0x7e4]
push 0x10
xor ebx, ebx
push ebx
push eax
call fcn.0055d8e0
push esi
lea eax, [ebp - 0x7d4]
push 0x58f24c
push eax
call fcn.00430470
add esp, 0x24
mov dword [edi], ebx
lea eax, [ebp - 0x7e4]
push eax
lea eax, [ebp - 0x828]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x7d4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x435f0e
push dword [ebp + 0x10]
push dword [ebp - 0x7e4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push dword [ebp - 0x7e4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x7e4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x7e0]
call esi
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret
Function at 0x435f1f
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1604
call fcn.0042d100
mov eax, dword [0x60c254]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
push 0
push eax
call fcn.0055d8e0
push esi
lea eax, [ebp - 0x20c]
push 0x58f24c
push eax
call fcn.00430470
lea eax, [ebp - 0x20c]
push eax
call fcn.00564eaf
add esp, 0x1c
lea ecx, [eax - 1]
test ecx, ecx
jle 0x435f8b
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x20e], cx
je 0x435f8b
mov word [ebp + eax*2 - 0x20c], cx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xbe4]
push str._s.
push eax
call fcn.00430470
add esp, 0xc
lea eax, [ebp - 0x1604]
push eax
lea eax, [ebp - 0xbe4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x436084
push ebx
push 0x2e
pop ebx
lea eax, [ebp - 0x1604]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x436083
cmp word [ebp - 0x15d8], bx
je 0x435fc9
cmp word [ebp - 0x15d6], 0
je 0x435fc9
cmp word [ebp - 0x15d6], bx
jne 0x436005
cmp word [ebp - 0x15d4], 0
je 0x435fc9
test byte [ebp - 0x1604], 0x10
je 0x43604f
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0055d8e0
lea eax, [ebp - 0x15d8]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x58f21c
push eax
call fcn.00430470
lea eax, [ebp - 0x414]
push eax
call fcn.00435f1f
add esp, 0x20
lea eax, [ebp - 0x15d8]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x13b4]
push 0x58f14c
push eax
call fcn.00430470
add esp, 0x10
lea eax, [ebp - 0x13b4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x435fc9
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret
Function at 0x4361f0
Capabilities:
Enumerate processes

Disassembly:
push 0x678
mov eax, 0x58c1a2
call fcn.0042d04f
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x67c]
push 0x22c
xor ebx, ebx
push ebx
push eax
call fcn.0055d8e0
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0055d8e0
add esp, 0x18
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x43623e
xor eax, eax
jmp 0x4362a4
lea eax, [ebp - 0x67c]
mov dword [ebp - 0x67c], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x436296
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00564e8d
lea eax, [ebp - 0x218]
push eax
call fcn.00574638
lea eax, [ebp - 0x218]
push eax
call fcn.0043616c
add esp, 0x10
test al, al
jne 0x4362aa
lea eax, [ebp - 0x67c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x436257
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
call fcn.0042cff9
ret
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.0055d8e0
add esp, 0xc
push dword [ebp - 0x674]
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push ebx
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
sub esp, 0x18
lea eax, [ebp - 0x420]
mov ecx, esp
mov dword [ebp - 0x680], esp
push eax
call fcn.00403875
sub esp, 0x18
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x218]
mov ecx, esp
push eax
call fcn.00403875
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
call fcn.00435b67
xor esi, esi
mov ecx, edi
inc esi
push eax
mov dword [ebp - 4], esi
call fcn.0043668b
lea ecx, [ebp - 0x450]
call fcn.0040a158
mov eax, esi
jmp 0x4362a4
Function at 0x4366f8
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push 0xe8
mov eax, 0x58c242
call fcn.0042d04f
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
xor eax, eax
mov dword [ebp - 0xf0], ebx
push 0x58ed00
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.0040475c
lea ecx, [ebp - 0xe4]
mov dword [ebp - 4], ebx
call fcn.00434840
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x436847
push ebx
push 1
push 4
push ebx
push 1
push connect
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43677c
push 0x58ed00
mov ecx, esi
call fcn.00403875
jmp 0x436852
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xe8], eax
inc eax
push eax
mov dword [ebp - 0xec], eax
call fcn.0042d34f
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4367b0
push 0x58ed00
mov ecx, esi
call fcn.00403875
push ebx
jmp 0x436853
push dword [ebp - 0xec]
push 0
push ebx
call fcn.0055d8e0
add esp, 0xc
lea eax, [ebp - 0xf4]
push 0
push eax
push dword [ebp - 0xe8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xe8]
lea ecx, [ebp - 0xe4]
push ebx
call fcn.0043520e
push ebx
call fcn.0042cb2a
pop ecx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xe4]
call fcn.00434a59
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.0042fede
pop ecx
pop ecx
xor ebx, ebx
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.00402efa
cmp dword [ebp - 0x30], ebx
jbe 0x43683c
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004046a0
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004044a8
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00403828
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.004044a8
mov eax, esi
call fcn.0042cff9
ret
Function at 0x4372de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x61dfb8], 0
mov dword [ebp - 8], ecx
je 0x437431
add ecx, 8
cmp dword [ecx + 0x14], 8
jb 0x4372ff
mov ecx, dword [ecx]
push esi
push 0x59e4dc
push ecx
push dword [0x60c2c0]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x437430
push ebx
push edi
push esi
push dword [0x60c2c0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [0x60c2c0]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push edi
push eax
call fcn.0055c560
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor esi, esi
push esi
push dword [ebp - 4]
call fcn.00437aee
pop ecx
pop ecx
test eax, eax
je 0x43742e
mov ebx, dword [ebp - 8]
mov ecx, 0x61dfbc
mov dword [ebx + 4], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.004370fa
mov eax, dword [ebp - 0xc]
push esi
mov dword [eax + 0x14], ebx
push dword [0x60c2c0]
push esi
push dword [ebp + 8]
push esi
push esi
push esi
push connect
push 0x80880000
push esi
push dword [0x60c2bc]
push 0x80020
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [ebp + 8]
mov dword [ebx + 0x20], eax
call esi
test eax, 0x10000000
jne 0x4373ee
mov byte [ebx + 0x28], 1
jmp 0x437414
test eax, 0x21000000
je 0x4373fb
mov byte [ebx + 0x28], 5
jmp 0x437414
push 8
push dword [ebx + 0x20]
mov byte [ebx + 0x28], 7
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, ebx
call fcn.00437e08
push 0xfffffffffffffffc
push dword [ebp + 8]
call esi
push 0x437c0b
push 0xfffffffffffffffc
push dword [ebp + 8]
mov dword [ebx + 0x24], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43897e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x60c254]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov esi, 0x60c2d8
cmp dword [esi], eax
je 0x4389b7
add esi, 0x50
cmp esi, 0x60cb48
jl 0x4389a1
xor al, al
jmp 0x438a81
push 0x190
lea eax, [ebp - 0x194]
push 0
push eax
call fcn.0055d8e0
add edi, 4
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x4389d8
mov edi, dword [edi]
lea eax, [esi + 0x38]
cmp dword [eax + 0x14], 8
jb 0x4389e3
mov eax, dword [eax]
lea ecx, [esi + 0x20]
cmp dword [ecx + 0x14], 8
jb 0x4389ee
mov ecx, dword [ecx]
lea edx, [esi + 8]
cmp dword [edx + 0x14], 8
jb 0x4389f9
mov edx, dword [edx]
push edi
push 0xc8
lea edi, [ebp - 0x194]
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x194], 0
jne 0x438a1d
xor eax, eax
jmp 0x438a2a
lea eax, [ebp - 0x194]
push eax
call fcn.00564eaf
pop ecx
push eax
lea eax, [ebp - 0x194]
lea edi, [ebx + 8]
push eax
mov ecx, edi
call fcn.0040475c
mov eax, dword [esi + 4]
mov dword [ebx], eax
cmp dword [esi + 4], 1
jne 0x438a5d
cmp dword [edi + 0x14], 8
jb 0x438a51
mov eax, dword [edi]
jmp 0x438a53
mov eax, edi
push eax
call fcn.00569dbe
pop ecx
mov dword [ebx + 4], eax
cmp dword [esi + 4], 3
jne 0x438a7f
cmp dword [edi + 0x14], 8
jb 0x438a6b
mov edi, dword [edi]
push edi
call fcn.00569dbe
pop ecx
xor ecx, ecx
mov dword [ebx + 4], eax
test eax, eax
setg cl
mov dword [ebx + 0x20], ecx
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret 8
Function at 0x443680
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 0x4436c9
mov al, byte [esi]
push eax
call fcn.00450ce0
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 0x4436a7
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x444a70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x444a91
cmp dword [esi + 0x8c], 0
je 0x444a91
push 2
push 3
push esi
call fcn.004512b0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00451920
add esp, 4
test esi, esi
je 0x444ab4
cmp dword [esi + 0x8c], 0
je 0x444ab4
push 3
push esi
call fcn.004512f0
add esp, 8
pop esi
pop ebp
ret

Function at 0x445740
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2b0], 2
jne 0x445755
pop ebp
jmp fcn.004456f0
mov al, 1
pop ebp
ret
Function at 0x44cb30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x608], 0
je 0x44cb74
push esi
push 1
push edi
call fcn.0043fdf0
push dword [edi + 0x59c]
mov eax, dword [edi + 0x608]
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.0043fdf0
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x44cbaa
push dword [edi + 0x598]
lea eax, [eax + eax*2]
push 1
add eax, 0x5a0d48
push 2
push eax
call fcn.0056ea7e
push dword [edi + 0x598]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0056ea7e
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x60c254]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ecx + eax*4 + 0x1a8]
push edi
mov edi, dword [ebp + 0x10]
push eax
push ecx
mov dword [ebp - 0x88], ecx
call fcn.0044d530
add esp, 8
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x44d0aa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x44d06c
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00439fd0
push eax
mov eax, dword [ebp - 0x88]
push str.Send_failure:__s
push dword [eax]
call fcn.0044cbb0
mov eax, dword [ebp - 0x88]
add esp, 0x18
mov eax, dword [eax]
mov dword [eax + 0xcac], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret
Function at 0x44d530
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 + 0x2a8]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x44d5ed
cmp dword [ebx + ecx*4 + 0x1bc], 0x44cf00
jne 0x44d5ed
cmp dword [esi], 0
je 0x44d57f
test edi, edi
je 0x44d5ed
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.0044c6e0
add esp, 0x14
cmp eax, 0xffffffff
je 0x44d5ed
test al, 1
je 0x44d5ed
cmp dword [esi], 0
jne 0x44d5d4
mov eax, dword [ebx]
mov eax, dword [eax + 0x8e4]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x60cb48]
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 0x44d5d4
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 0x44d5ed
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test byte [eax + 0x1f8], 1
je 0x44d700
push eax
call fcn.004460f0
add esp, 4
test eax, eax
jne 0x44d722
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x44d6fc
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x44d722
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret

Function at 0x44df10
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x61ec80]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x44df61
push 3
push 2
push eax
push 6
call fcn.0044f480
add esp, 0x10
test al, al
je 0x44df55
mov dword [0x61ec80], 2
mov esp, ebp
pop ebp
ret
mov dword [0x61ec80], 1
jmp 0x44df66
cmp eax, 2
je 0x44dfa6
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 0x44df8d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x44dfa6
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 0x44e1d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x60c254]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x90], 2
mov ebx, dword [esi]
je 0x44e3dc
test dword [esi + 0x284], 0x8000002
push edi
jne 0x44e3d2
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x184]
mov dword [ebp - 0x188], 0x80
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x44e269
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.00439fd0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0044cbb0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x104]
mov dword [ebp - 0x188], 0x80
push 0
push eax
call fcn.0055d8e0
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x44e2dd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.00439fd0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0044cbb0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x138]
push eax
lea edi, [esi + 0x10a]
lea eax, [ebp - 0x184]
push edi
push eax
call fcn.0044e9a0
add esp, 0xc
test al, al
jne 0x44e341
call fcn.0056effe
mov esi, eax
call fcn.0056effe
mov edi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push dword [esi]
call fcn.00439fd0
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0044cbb0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x28]
movups xmmword [esi + 0x5c], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi + 0x6c], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [esi + 0x7c], xmm0
mov dword [esi + 0x84], eax
mov ax, word [edi + 0x2c]
mov word [esi + 0x88], ax
lea eax, [esi + 0x16c]
push eax
lea eax, [esi + 0x13c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0044e9a0
add esp, 0xc
test al, al
jne 0x44e3d2
call fcn.0056effe
mov esi, eax
call fcn.0056effe
mov edi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push dword [esi]
call fcn.00439fd0
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0044cbb0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret
push esi
call fcn.0044de30
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret
Function at 0x44edd0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x60c254]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 4
mov eax, dword [esi + 0xa90]
shr eax, 0xc
and eax, 1
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 0x44ee2e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.0044cc90
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret
push dword [esi + 0xa50]
mov dword [ebp - 0x10], 1
call fcn.0044f0f0
push dword [esi + 0xa54]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.0044f0f0
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 0x44ee9e
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.0044cc90
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret

Function at 0x44eeb0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x60c254]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 4
mov dword [ebp - 0x88], 1
mov esi, dword [eax]
lea eax, [ebp - 0x88]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x44ef23
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00439fd0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0044cc90
add esp, 0x18
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0044cc90
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop esi
call fcn.0042cfd3
mov esp, ebp
pop ebp
ret

Function at 0x44f0a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.0044f0d0
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.0058248d