joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4731e6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x4ec], edi
je 0x473250
cmp dword [ebp + 8], 0x100
jne 0x47323f
cmp word [ebp + 0xc], 0xd
jne 0x47323f
cmp byte [esi + 0x4f2], 0
je 0x473226
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x47323f
cmp byte [esi + 0x4f3], 0
jne 0x47323f
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x47323b
push edi
push edi
push edi
push str.return
push esi
call fcn.00460ce5
xor eax, eax
jmp 0x473253
mov eax, dword [esi + 0x4ec]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x47352a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x656514]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4735e0
movzx eax, word [esi]
test ax, ax
je 0x4735e0
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x47356a
cmp ax, 0x5c
jne 0x47356c
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x47355e
cmp edi, esi
je 0x4735b3
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.005b8532
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x4735f0
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0047352a
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.005abfd0
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.005abf5f
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00492e23
mov esp, ebp
pop ebp
ret
call fcn.00492b0b
int3

Function at 0x473bb5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x473c31
cmp dword [edi + 4], 0xffffffff
jne 0x473c31
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x6411b8
push esi
call fcn.005abf5f
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x473c03
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x473c03
mov eax, 0x2000000
jmp 0x473c36
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004760d0
add esp, 0x10
test eax, eax
jne 0x473c21
mov eax, dword [ebp - 4]
jmp 0x473c36
push eax
call fcn.004767d8
mov dword [edi], eax
mov eax, dword [0x66a930]
pop ecx
jmp 0x473c36
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4761dd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x476211
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47620c
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x476238
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x476221
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.005a8300
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x4763ab
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4763b9
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x476478
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5e19a8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5e19a8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5e19a8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5e19a8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5e19a8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5e19a8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5e19a8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5e19a8]
sub edi, 1
jne 0x4763d1
pop edi
test esi, esi
je 0x476494
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5e19a8]
inc edx
sub esi, 1
jne 0x47647c
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x48432e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x656514]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x48439b
cmp dword [esi + 0x10], 0
je 0x48439b
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004939a0
mov ebx, esp
test ebx, ebx
je 0x48439b
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1bc
call fcn.0045d3e6
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00460ce5
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00492e23
mov esp, ebp
pop ebp
ret 0x10
Function at 0x484fb9
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x5d66fd
call fcn.00492e9f
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2cc], ebx
call fcn.0045ee69
push eax
lea ecx, [ebp - 0x94]
call fcn.0045d21b
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0045ee6f
mov ecx, eax
call fcn.0045d963
test al, al
je 0x4850a7
push ebx
lea ecx, [ebp - 0x94]
call fcn.0045d44d
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.0045d42d
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x48504a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0045d356
jmp 0x485188
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x485036
push esi
mov dword [ebp - 0x2c8], edi
call fcn.004929da
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2c8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], esi
je 0x485173
push edi
call fcn.004929e3
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0045d356
jmp 0x485186
call fcn.0045ee6f
push eax
lea ecx, [ebp - 0x94]
call fcn.0045d430
call fcn.0045ef32
test al, al
je 0x4850c8
call fcn.0045ee75
jmp 0x4850df
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.0045d42d
push eax
call fcn.00473c3d
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x485036
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2cc]
push ebx
call fcn.0047367e
add esp, 0x14
test eax, eax
jne 0x485036
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x485036
push esi
call fcn.004929da
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.00473ffd
add esp, 0x18
test eax, eax
je 0x485163
cmp eax, 0x600
je 0x485163
push edi
call fcn.004929e3
pop ecx
call fcn.0045ef32
test al, al
jne 0x485093
push ebx
call fcn.004734d8
jmp 0x485092
call fcn.0045ef32
test al, al
jne 0x485173
push ebx
call fcn.004734d8
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.0045d356
test edi, edi
jne 0x4851fa
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4851f6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x4851f6
push esi
mov dword [ebp - 0x2d0], edi
call fcn.004929da
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2d0]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d0], esi
je 0x4851f2
push edi
call fcn.004929e3
pop ecx
xor edi, edi
test edi, edi
jne 0x4851fa
xor eax, eax
jmp 0x485215
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.0048521d
push 1
push edi
mov esi, eax
call fcn.004929cc
pop ecx
pop ecx
mov eax, esi
call fcn.00492e49
ret 4
Function at 0x48e065
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x48e089
cmp dword [esi + 8], edi
jge 0x48e081
push esi
call fcn.0048c306
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x48e0b2
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x48e095
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x48e0cf
mov edx, dword [esi]
cmp edx, dword [esi + 4]
jb 0x48e0bd
xor eax, eax
jmp 0x48e0c5
mov al, byte [edx]
inc edx
mov dword [esi], edx
movzx eax, al
mov byte [ebp + ecx + 8], al
inc ecx
cmp ecx, 4
jl 0x48e0b4
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x48e104
push str.zlib_corrupt
call fcn.0048c1c1
add esp, 4
jmp 0x48e141
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x48e114
push str.read_past_buffer
jmp 0x48e0fa
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x48e12b
push edi
push esi
call fcn.0048c1d0
pop ecx
pop ecx
test eax, eax
je 0x48e141
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.005a8300
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x49c380
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 0x49c3c9
mov al, byte [esi]
push eax
call fcn.004aa060
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 0x49c3a7
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x49d7a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x49d7c1
cmp dword [esi + 0x8c], 0
je 0x49d7c1
push 2
push 3
push esi
call fcn.004aa630
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004aaaf0
add esp, 4
test esi, esi
je 0x49d7e4
cmp dword [esi + 0x8c], 0
je 0x49d7e4
push 3
push esi
call fcn.004aa670
add esp, 8
pop esi
pop ebp
ret

Function at 0x49e470
Capabilities:
Create udp socket

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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x608], 0
je 0x4a7424
push esi
push 1
push edi
call fcn.00498af0
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.00498af0
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x4a745a
push dword [edi + 0x598]
lea eax, [eax + eax*2]
push 1
add eax, 0x5ea9a0
push 2
push eax
call fcn.005b6566
push dword [edi + 0x598]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.005b6566
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x656514]
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.004a7de0
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 0x4a795a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x4a791c
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00492e23
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.004d0e20
push eax
mov eax, dword [ebp - 0x88]
push str.Send_failure:__s
push dword [eax]
call fcn.004a7460
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.00492e23
mov esp, ebp
pop ebp
ret
Function at 0x4a7de0
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 0x4a7e9d
cmp dword [ebx + ecx*4 + 0x1bc], 0x4a77b0
jne 0x4a7e9d
cmp dword [esi], 0
je 0x4a7e2f
test edi, edi
je 0x4a7e9d
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.004a6f90
add esp, 0x14
cmp eax, 0xffffffff
je 0x4a7e9d
test al, 1
je 0x4a7e9d
cmp dword [esi], 0
jne 0x4a7e84
mov eax, dword [ebx]
mov eax, dword [eax + 0x8e4]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x656528]
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 0x4a7e84
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 0x4a7e9d
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

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

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

Function at 0x4a87c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x66b1f0]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x4a8811
push 3
push 2
push eax
push 6
call fcn.004a9d30
add esp, 0x10
test al, al
je 0x4a8805
mov dword [0x66b1f0], 2
mov esp, ebp
pop ebp
ret
mov dword [0x66b1f0], 1
jmp 0x4a8816
cmp eax, 2
je 0x4a8856
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 0x4a883d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x4a8856
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 0x4a8a80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x656514]
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 0x4a8c8c
test dword [esi + 0x284], 0x8000002
push edi
jne 0x4a8c82
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 0x4a8b19
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.004d0e20
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004a7460
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00492e23
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x104]
mov dword [ebp - 0x188], 0x80
push 0
push eax
call fcn.005a8e00
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 0x4a8b8d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push esi
call fcn.004d0e20
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004a7460
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00492e23
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.004a9250
add esp, 0xc
test al, al
jne 0x4a8bf1
call fcn.005abf4c
mov esi, eax
call fcn.005abf4c
mov edi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push dword [esi]
call fcn.004d0e20
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004a7460
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00492e23
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.004a9250
add esp, 0xc
test al, al
jne 0x4a8c82
call fcn.005abf4c
mov esi, eax
call fcn.005abf4c
mov edi, eax
lea eax, [ebp - 0x84]
push 0x80
push eax
push dword [esi]
call fcn.004d0e20
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004a7460
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00492e23
mov esp, ebp
pop ebp
ret
push esi
call fcn.004a86e0
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00492e23
mov esp, ebp
pop ebp
ret
Function at 0x4a9680
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x656514]
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 0x4a96de
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004a7540
add esp, 0xc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00492e23
mov esp, ebp
pop ebp
ret
push dword [esi + 0xa50]
mov dword [ebp - 0x10], 1
call fcn.004a99a0
push dword [esi + 0xa54]
imul eax, eax, 0x3e8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.004a99a0
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 0x4a974e
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.004a7540
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00492e23
mov esp, ebp
pop ebp
ret

Function at 0x4a9760
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x656514]
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 0x4a97d3
push 0x80
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004d0e20
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004a7540
add esp, 0x18
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00492e23
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.004a7540
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop esi
call fcn.00492e23
mov esp, ebp
pop ebp
ret

Function at 0x4a9950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.004a9970
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.005c644e