joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4028c0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bbad
mov eax, dword fs:[0]
push eax
sub esp, 0x67c
mov eax, dword [0x471220]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x654], 0
mov dword [ebp - 0x658], edi
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
lea eax, [ebp - 0x650]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push 0x46dc30
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x654], 1
mov dword [ebp - 0x650], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402b2d
push 0x208
push eax
mov word [ebp - 0x434], ax
lea eax, [ebp - 0x432]
push eax
mov dword [ebp - 0x648], 1
call fcn.00446050
add esp, 0xc
mov dword [ebp - 0x64c], 0x20a
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x648]
push eax
push 0
push str.FName
push dword [ebp - 0x650]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
mov dword [ebp - 0x648], 1
push 0x208
push eax
mov word [ebp - 0x644], ax
lea eax, [ebp - 0x642]
push eax
call fcn.00446050
add esp, 0xc
mov dword [ebp - 0x64c], 0x20a
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x648]
push eax
push 0
push str.FVer
push dword [ebp - 0x650]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x650]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x222]
push eax
call fcn.00446050
add esp, 0xc
lea eax, [ebp - 0x224]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x434]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402a60
sub ecx, edx
sar ecx, 1
je 0x402a79
lea eax, [ebp - 0x434]
jmp 0x402a8a
cmp dword [ebx + 0x2c4], 8
lea eax, [ebx + 0x2b0]
jb 0x402a8a
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402b2d
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x688]
push eax
call fcn.0040a160
push 0xfde9
push eax
lea eax, [ebp - 0x670]
mov dword [ebp - 4], 1
push eax
call fcn.0040a470
add esp, 0x14
mov ecx, edi
push eax
call fcn.00403170
cmp dword [ebp - 0x65c], 0x10
jb 0x402afb
push dword [ebp - 0x670]
call fcn.00444346
add esp, 4
cmp dword [ebp - 0x674], 8
mov dword [ebp - 0x65c], 0xf
mov dword [ebp - 0x660], 0
mov byte [ebp - 0x670], 0
jb 0x402b2d
push dword [ebp - 0x688]
call fcn.00444346
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00443b8c
mov esp, ebp
pop ebp
ret 4
Function at 0x402b50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x471220]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x46dc30
push reloc.WS2_32.dll_bind
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x402c0c
mov edx, dword [ebp - 8]
test edx, edx
je 0x402c0c
cmp dword [esi + 0x2c4], 8
lea ecx, [esi + 0x2b0]
mov eax, dword [esi + 0x2c0]
jb 0x402ba4
mov ecx, dword [ecx]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.FName
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [esi + 0x2ac], 8
lea ecx, [esi + 0x298]
mov eax, dword [esi + 0x2a8]
jb 0x402bd4
mov ecx, dword [ecx]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.FVer
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443b8c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.00443b8c
mov esp, ebp
pop ebp
ret
Function at 0x4047b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bcd8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x471220]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0x28]
mov dword [ebp - 0x18], 1
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x1c]
mov dword [ebp - 4], 0
test eax, 0xfffffffc
je 0x4048b0
mov eax, dword [ebx + 0x20]
mov edx, eax
mov ecx, dword [ebx + 0x1c]
sub edx, ecx
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
sar edx, 2
push edx
push eax
push ecx
call fcn.004040c0
mov eax, dword [ebx + 0x1c]
add esp, 0x10
mov eax, dword [eax]
mov esi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, esi
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
jb 0x40485d
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov edi, dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
cmp eax, edi
jbe 0x404895
mov eax, dword [ebx + 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add eax, 0x95bc56
push eax
push 0x571
push dword [ebx + 0xc]
call esi
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
lea edx, [eax + 4]
sub ecx, edx
and ecx, 0xfffffffc
push ecx
push edx
push eax
call fcn.00443ba0
add esp, 0xc
add dword [ebx + 0x20], 0xfffffffc
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x1c]
test eax, 0xfffffffc
je 0x4048b0
push 0
push 0
push 0x715
push dword [ebx + 0xc]
call esi
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443b8c
mov esp, ebp
pop ebp
ret
Function at 0x4049f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bcd8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x471220]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebx + 0x28]
mov dword [ebp - 0x18], 1
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x20]
sub eax, dword [ebx + 0x1c]
mov dword [ebp - 4], 0
test eax, 0xfffffffc
je 0x404af3
mov eax, dword [ebx + 0x20]
mov edx, eax
mov ecx, dword [ebx + 0x1c]
sub edx, ecx
mov byte [ebp - 0x14], 0
push dword [ebp - 0x14]
sar edx, 2
push edx
push eax
push ecx
call fcn.004040c0
mov eax, dword [ebx + 0x1c]
add esp, 0x10
mov eax, dword [eax]
mov esi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, esi
jb 0x404ab7
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov edi, dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, edi
ja 0x404ab7
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov esi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
lea ecx, [esi + edi]
sub ecx, eax
push ecx
push 0x64
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x404af3
mov eax, dword [ebx + 0x1c]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
add eax, 0x95bc56
push eax
push 0x571
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
lea edx, [eax + 4]
sub ecx, edx
and ecx, 0xfffffffc
push ecx
push edx
push eax
call fcn.00443ba0
add esp, 0xc
add dword [ebx + 0x20], 0xfffffffc
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443b8c
mov esp, ebp
pop ebp
ret

Function at 0x404b90
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x471220]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x404be9
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x404bc9
cmp dword [ebp - 8], 0x103
jne 0x404be9
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x404be9
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443b8c
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [esi + 8]
push eax
push 4
push esi
push 0x404c30
push 0
push 0
call fcn.00444c77
xor ebx, ebx
mov dword [esi + 4], eax
add esp, 0x18
test eax, eax
setne bl
test ebx, ebx
je 0x404c17
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
xor ecx, ebp
pop esi
call fcn.00443b8c
mov esp, ebp
pop ebp
ret
Function at 0x409f40
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10f8
call fcn.00446940
mov eax, dword [0x471220]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10f8], eax
cmp dword [esi + 0x14], 8
jb 0x409f72
mov eax, dword [esi]
jmp 0x409f74
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a146
test al, 0x10
jne 0x40a146
cmp dword [esi + 0x14], 8
jb 0x409f94
mov esi, dword [esi]
push ebx
push 0
push 0
push 3
push 0
push 1
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a127
lea eax, [ebp - 0x10f4]
push eax
call fcn.0040a630
push 0xfff
lea eax, [ebp - 0x1053]
mov byte [ebp - 0x1054], 0
push 0
push eax
call fcn.00446050
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x10
test edi, edi
je 0x409ff6
push 0
push edi
call ebx
test eax, eax
je 0x40a0ca
push 0
lea eax, [ebp - 0x1058]
push eax
push 0x1000
lea eax, [ebp - 0x1054]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a040
mov eax, dword [ebp - 0x1058]
test eax, eax
je 0x40a040
push eax
lea eax, [ebp - 0x1054]
push eax
lea eax, [ebp - 0x10f4]
push eax
call fcn.0040a670
add esp, 0xc
cmp dword [ebp - 0x1058], 0
ja 0x409fe5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x10f4]
mov dword [ebp - 0xb], 0
xorps xmm0, xmm0
mov word [ebp - 7], 0
push eax
movq qword [ebp - 0x13], xmm0
mov byte [ebp - 5], 0
call fcn.0040a580
push 0x3f
lea eax, [ebp - 0x53]
mov byte [ebp - 0x54], 0
push 0
push eax
call fcn.00446050
push 0x3f
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040a740
add esp, 0x20
cmp byte [ebp - 0x54], 0
jne 0x40a0ed
mov esi, dword [ebp - 0x10f8]
lea eax, [ebp - 0x54]
xor ecx, ecx
push ecx
push eax
mov ecx, esi
call fcn.00401930
xor eax, eax
cmp dword [esi + 0x10], eax
pop ebx
pop edi
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443b8c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10f8]
push 0x45d435
call fcn.00407040
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443b8c
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x54]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a0f3
mov esi, dword [ebp - 0x10f8]
lea eax, [ebp - 0x54]
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.00401930
xor eax, eax
cmp dword [esi + 0x10], eax
pop ebx
pop edi
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443b8c
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x10f8]
xor eax, eax
pop ebx
pop edi
cmp dword [esi + 0x10], eax
pop esi
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443b8c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00443b8c
mov esp, ebp
pop ebp
ret
Function at 0x40a160
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c41b
mov eax, dword fs:[0]
push eax
sub esp, 0x2bc
mov eax, dword [0x471220]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xor eax, eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c4], esi
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2a4], 7
mov dword [ebp - 0x2a8], 0
mov word [ebp - 0x2b8], ax
mov dword [ebp - 4], eax
test esi, esi
je 0x40a305
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a305
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x2a0], 0
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
push esi
call fcn.00445010
add esp, 4
mov edi, eax
push edi
push esi
push 0
push dword [ebp - 0x2c4]
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x2c0], 0
push eax
lea eax, [ebp - 0x2c0]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
xor eax, eax
mov dword [ebp - 0x2bc], 0
push 0x7e
push eax
mov word [ebp - 0x90], ax
lea eax, [ebp - 0x8e]
push eax
call fcn.00446050
mov ecx, dword [ebp - 0x2c0]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x90]
push str.StringFileInfo_04x_04xFileVersion
push eax
call fcn.00409eb0
add esp, 0x1c
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x2bc]
push eax
lea eax, [ebp - 0x90]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x29c], ax
lea eax, [ebp - 0x29a]
push eax
call fcn.00446050
push dword [ebp - 0x2bc]
lea eax, [ebp - 0x29c]
push 0x104
push eax
call fcn.00444755
push edi
call fcn.00444fd8
add esp, 0x1c
cmp word [ebp - 0x29c], 0
jne 0x40a2da
xor eax, eax
jmp 0x40a2f2
lea eax, [ebp - 0x29c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a2e3
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.004038d0
lea eax, [ebp - 0x2b8]
mov ecx, ebx
push eax
call fcn.00409ed0
cmp dword [ebp - 0x2a4], 8
jb 0x40a32a
push dword [ebp - 0x2b8]
call fcn.00444346
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00443b8c
mov esp, ebp
pop ebp
ret

Function at 0x40a630
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
pop ebp
ret
Function at 0x40b260
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x471220]
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 0x40b2b3
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x40b2ad
shr eax, 8
cmp al, 2
jne 0x40b2ad
call fcn.0040f6c0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443b8c
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.00443b8c
mov esp, ebp
pop ebp
ret

Function at 0x410000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x41001e
cmp dword [esi + 0x48], 0
je 0x41001e
push 2
push 3
push esi
call fcn.00424240
add esp, 0xc
push dword [ebp + 0xc]
call fcn.0041d190
add esp, 4
test esi, esi
je 0x41003e
cmp dword [esi + 0x48], 0
je 0x41003e
push 3
push esi
call fcn.00424280
add esp, 8
pop esi
pop ebp
ret
Function at 0x419870
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 + 0x190]
call fcn.00419b50
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 0x4198f4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4198cc
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.004266c0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.004194d0
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x4668], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x1b4]
mov ebx, dword [ecx + edx*4 + 0x190]
add esi, eax
mov eax, dword [ecx + 0x390]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x419c06
cmp dword [ecx + edx*4 + 0x1a4], 0x4197c0
jne 0x419c06
cmp dword [esi], 0
je 0x419b9c
test edi, edi
je 0x419c06
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.00418df0
add esp, 0x14
cmp eax, 0xffffffff
je 0x419c06
test al, 1
je 0x419c06
cmp dword [esi], 0
jne 0x419bef
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x47100c]
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 0x419bef
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 ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x419c06
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x419c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x419c39
push dword [esi + 0x11c]
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 0x419c6f
push dword [esi + 0x118]
lea eax, [eax + eax*2]
push 1
add eax, 0x45ebd0
push 2
push eax
call fcn.00448efd
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00448efd
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1d4], 0
je 0x419d70
push eax
call fcn.00410b50
add esp, 4
test eax, eax
jne 0x419d92
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x190]
cmp eax, 0xffffffff
je 0x419d6c
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x419d92
xor al, al
pop ebp
ret
mov al, 1
pop ebp
ret
Function at 0x41a3e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x472998]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x41a431
push 3
push 2
push eax
push 6
call fcn.00425a90
add esp, 0x10
test al, al
je 0x41a425
mov dword [0x472998], 2
mov esp, ebp
pop ebp
ret
mov dword [0x472998], 1
jmp 0x41a436
cmp eax, 2
je 0x41a476
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 0x41a45d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x41a476
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 0x41a540
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 0x41a588
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004266c0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00419580
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00419580
add esp, 8
pop edi
pop esi
pop ebp
ret
Function at 0x41a680
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x471220]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x41a85e
cmp byte [edi + 0x356], 0
push esi
jne 0x41a854
cmp byte [edi + 0x372], 0
jne 0x41a854
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 0x41a718
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004266c0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004194d0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443b8c
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push 0
push eax
call fcn.00446050
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 0x41a781
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004266c0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004194d0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443b8c
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x130]
push eax
lea esi, [edi + 0x102]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.0041ad40
add esp, 0xc
test al, al
jne 0x41a7d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004266c0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004194d0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443b8c
mov esp, ebp
pop ebp
ret
movdqu xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movdqu xmmword [edi + 0x58], xmm0
movdqu xmm0, xmmword [esi + 0x10]
movdqu xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x164]
push eax
lea eax, [edi + 0x134]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0041ad40
add esp, 0xc
test al, al
jne 0x41a854
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004266c0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004194d0
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443b8c
mov esp, ebp
pop ebp
ret
push edi
call fcn.0041a300
add esp, 4
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00443b8c
mov esp, ebp
pop ebp
ret