joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406900
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push ecx
mov esi, edx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x406974
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, esi
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406920
push ebx
sub eax, edx
push edi
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov eax, esi
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406945
sub eax, ebx
push esi
inc eax
push eax
push edx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop ebx
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
ret

Function at 0x4069c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459b29
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x46b00c]
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 - 0x54], esi
lea eax, [ebp - 0x58]
mov dword [ebp - 0x60], esi
push eax
push 1
push 0
push str.SOFTWAREWOW6432Node_sndaLatale
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x5c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406a35
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x40
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push str.MainProg
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebp - 0x50], 0
jne 0x406a59
xor ecx, ecx
jmp 0x406a69
lea ecx, [ebp - 0x50]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406a60
sub ecx, edx
push ecx
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.00401b60
mov dword [ebp - 4], 0
mov dword [ebp - 0x5c], 1
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.0041150d
mov esp, ebp
pop ebp
ret
Function at 0x406aa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x46b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 0x3fd
push esi
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
je 0x406b99
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x3e9
push esi
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
cmp byte [ebp - 0x108], 0
je 0x406b69
lea eax, [ebp - 0x108]
push 0x4655e4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
add esp, 8
test eax, eax
je 0x406b5b
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push 0
push 0
push 0x3fc
push esi
call dword [sym.imp.USER32.dll_GetDlgItemInt]
push 0
test eax, eax
je 0x406b4f
push 0
push esi
push 0x406100
push 0
push 0
mov byte [0x46b969], 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret
push 0x4655e8
push 0x4655f4
jmp 0x406b75
push 0
push 0x4655e8
push 0x465608
jmp 0x406b75
push 0
push 0x4655e8
push 0x465634
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0x3fd
push esi
call dword [sym.imp.USER32.dll_CheckDlgButton]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret
push 0
push 0x3fd
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov byte [0x46b969], 1
pop esi
call fcn.0041150d
mov esp, ebp
pop ebp
ret
Function at 0x4073e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x46b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x218]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push str.Memory_t.ttx
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov al, byte [0x4654e8]
movups xmm0, xmmword [0x4654d8]
push 0xf3
mov byte [ebp - 0x100], al
lea eax, [ebp - 0xff]
push 0
push eax
movups xmmword [ebp - 0x110], xmm0
call sub.VCRUNTIME140.dll_memset
push 0x58
lea eax, [ebp - 0x270]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
mov dword [ebp - 0x270], 0x58
lea eax, [ebp - 0x110]
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x270]
mov dword [ebp - 0x250], 0x104
push eax
mov dword [ebp - 0x264], 0x465710
mov dword [ebp - 0x258], 1
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x23c], 0x1800
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
test eax, eax
je 0x407506
lea eax, [ebp - 0x110]
push eax
push 0x3e9
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
push str.GAMEPATH
push str.USERSET
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041150d
mov esp, ebp
pop ebp
ret
Function at 0x4076c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x46b00c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x46b970], 0
push ebx
push esi
mov ebx, ecx
jl 0x40781e
mov esi, dword [0x46ba7c]
test esi, esi
js 0x40781e
push 0x40
lea eax, [ebp - 0x48]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0xac]
mov dword [ebp - 0x94], 0x40
push eax
push dword [0x46b970]
push 0x102d
push dword [0x46b96c]
call esi
lea eax, [ebp - 0x58]
push eax
push dword [0x46b96c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [0x46ba7c]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x70]
push eax
push dword [0x46b970]
mov dword [ebp - 0x70], 0
push 0x1038
push dword [0x46b96c]
call esi
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x60]
push eax
push ebx
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0
push 0xfffffffffffffffa
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x64]
push 0x3f2
sub eax, edx
add edx, 2
push ebx
dec eax
push eax
mov eax, dword [ebp - 0x68]
sub eax, ecx
add ecx, 3
dec eax
push eax
mov eax, dword [ebp - 0x5c]
add eax, edx
push eax
mov eax, dword [ebp - 0x60]
add eax, ecx
push eax
push 0x50001004
push 0x464fb2
push str.EDIT
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x46ba84], eax
lea eax, [ebp - 0x48]
push eax
push 0x3f2
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x406980
push 0xfffffffffffffffc
push dword [0x46ba84]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push dword [0x46ba84]
mov dword [0x46ba80], eax
call dword [sym.imp.USER32.dll_SetFocus]
push 1
push dword [0x46ba84]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041150d
mov esp, ebp
pop ebp
ret
Function at 0x408780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459c28
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x46b00c]
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, ecx
lea eax, [ebp - 0x58]
push eax
push 0xf003f
push 0
push str.SOFTWAREWOW6432Node_snda
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408951
xor edi, edi
mov dword [ebp - 0x54], 0x40
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x50]
push eax
push edi
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x408948
mov ebx, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
lea eax, [ebp - 0x50]
inc edi
push 0x465860
push eax
mov dword [ebp - 0x74], edi
call ebx
add esp, 8
test eax, eax
jne 0x40882c
lea eax, [ebp - 0x50]
push 0x465864
push eax
call ebx
add esp, 8
test eax, eax
je 0x40891c
cmp byte [ebp - 0x50], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
jne 0x408856
xor eax, eax
jmp 0x408869
lea eax, [ebp - 0x50]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408860
sub eax, edx
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x70]
call fcn.00401b60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x70]
mov ebx, dword [esi + 4]
cmp eax, ebx
jae 0x4088ca
mov eax, dword [esi]
lea ecx, [ebp - 0x70]
cmp eax, ecx
ja 0x4088ca
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp ebx, dword [esi + 8]
jne 0x4088b0
push ecx
mov ecx, esi
call fcn.00409220
mov eax, dword [esi]
lea edx, [edi + edi*2]
mov ecx, dword [esi + 4]
lea eax, [eax + edx*8]
test ecx, ecx
je 0x4088c5
push eax
call fcn.00401a50
mov edi, dword [ebp - 0x74]
jmp 0x4088e7
cmp ebx, dword [esi + 8]
jne 0x4088d7
push ecx
mov ecx, esi
call fcn.00409220
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4088e7
lea eax, [ebp - 0x70]
push eax
call fcn.00401a50
add dword [esi + 4], 0x18
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x408904
inc eax
push eax
push dword [ebp - 0x70]
call fcn.00401df0
mov ebx, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsstr]
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x40
push eax
lea eax, [ebp - 0x50]
push eax
push edi
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x408800
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.0041150d
mov esp, ebp
pop ebp
ret
Function at 0x40b670
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a55e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x46b00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov eax, ecx
mov dword [ebp - 0x10], eax
push 0x40
lea esi, [eax + 0xc]
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
push 0x1000
mov dword [ebp - 0x14], ebx
lea ecx, [ebx + 0x18]
mov dword [ebx], esi
push ecx
mov dword [ebx + 4], edi
mov dword [ebx + 8], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x30]
mov dword [ebp - 0x18], ecx
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0x1c
mov dword [ecx + 0xc], eax
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40cfd0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push edi
push eax
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, eax
mov dword [edi + 8], ecx
test ecx, ecx
jne 0x40d026
call fcn.00410700
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp - 0xc]
push 0
push eax
mov dword [edi + 0x10], 0
push dword [edi + 0x10]
mov dword [edi + 0x14], 0
push dword [edi + 0x14]
mov dword [edi + 4], eax
push 4
push ecx
mov dword [edi + 0x18], 4
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [edi], eax
test eax, eax
jne 0x40d084
call fcn.00410700
push dword [edi + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], 0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0041150d
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40d6b0
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x46b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x54], eax
cmp eax, 0xffffffff
je 0x40d7c0
lea eax, [ebp - 0x14]
mov edx, edi
push eax
push dword [ebp + 0xc]
call fcn.0040ca20
add esp, 8
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi + 0x54]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x40d79f
mov eax, dword [esi]
mov ecx, esi
push dword [esi + 0x54]
call dword [eax + 0xe0]
cmp eax, 2
je 0x40d784
push dword [esi + 0x10]
push dword [esi + 0x54]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x40d763
mov ecx, dword [esi + 0x54]
call fcn.0040cb10
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x44], eax
call fcn.0040cb80
mov ecx, dword [esi + 0x54]
mov dword [esi + 0x48], eax
call fcn.0040cbf0
mov dword [esi + 0x4c], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
mov dword [esi + 0x60], 6
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x60], 5
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
mov dword [esi + 0x60], 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
mov dword [esi + 0x60], 3
xor ecx, ebp
pop esi
call fcn.0041150d
mov esp, ebp
pop ebp
ret 8

Function at 0x40d7f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x46b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0xc], edi
jbe 0x40d874
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
push 0
push 0
push esi
push 0x40f260
push 0
push 0
call ebx
add esp, 0x18
mov dword [ebp - 8], eax
test eax, eax
je 0x40d854
lea ecx, [ebp - 8]
push ecx
lea ecx, [esi + 0x64]
call fcn.004090b0
inc edi
cmp edi, dword [esi + 0xc]
jb 0x40d812
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
pop edi
mov dword [esi + 0x60], 8
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0041150d
mov esp, ebp
pop ebp
ret
Function at 0x40e540
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x46b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 8]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 8], 0x10
push eax
push dword [ecx + 0x54]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x40e59c
push ebx
push edi
push esi
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
call fcn.0040c970
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041150d
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40f1b0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi]
call dword [eax + 0x20]
test eax, eax
je 0x40f24a
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
mov ecx, esi
push 0
mov dword [ebp - 4], ebx
call fcn.0040e230
mov ecx, dword [esi + 0x44]
mov edx, eax
mov eax, dword [esi + 0x54]
xor edi, edi
push edx
push edi
push 0x20
push 0x20
push edi
push dword [edx + 0x1c]
mov dword [ebp - 8], edx
push ebx
push eax
mov dword [edx + 0x20], ebx
mov dword [edx + 0x14], 1
call ecx
test eax, eax
jne 0x40f215
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
xor eax, eax
cmp edi, 0x3e5
cmovne eax, edi
xor ebx, ebx
test eax, eax
pop edi
sete bl
test eax, eax
je 0x40f246
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebp - 8]
mov ecx, esi
call fcn.0040e320
test ebx, ebx
jne 0x40f251
lock dec dword [esi + 0x16c]
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f970
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0x10]
cmp dword [esi + 0x3c], 0
je 0x40f99a
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [ebx + 0x20], eax
push dword [edi + 0x18]
mov eax, dword [esi]
mov ecx, esi
push dword [edi + 0x1c]
push ebx
call dword [eax + 0xd4]
test eax, eax
je 0x40f9c4
cmp eax, 1
je 0x40f9c4
mov ecx, esi
cmp eax, 0xff
je 0x40fa3a
push 0x4c7
jmp 0x40fa2e
mov eax, dword [esi + 0x18]
lea ecx, [edi + 0x18]
push 0
mov dword [ecx], eax
mov eax, dword [ebx + 0x60]
push edi
mov dword [edi + 0x20], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
push 1
push ecx
push dword [edi + 0x20]
mov dword [ebp - 0xc], 0
mov dword [edi + 0x14], 4
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x40fa0b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x40fa0d
xor eax, eax
xor ecx, ecx
cmp eax, 0x3e5
cmovne ecx, eax
test ecx, ecx
je 0x40fa40
cmp ecx, 0x2736
je 0x40fa38
cmp ecx, 0x3e3
je 0x40fa38
push ecx
mov ecx, esi
push 4
push 2
push ebx
call fcn.0040dec0
mov ecx, esi
push edi
call fcn.0040e320
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041150d
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x46b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], esi
test edi, edi
jle 0x40fd8b
push ebx
jmp 0x40fcf3
mov esi, dword [ebp - 0xc]
mov ebx, dword [ecx + 0x18]
cmp edi, ebx
cmovl ebx, edi
push ebx
call fcn.0040e230
push ebx
push esi
mov esi, eax
mov dword [ebp - 0x10], eax
push dword [esi + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 8], 0
mov eax, dword [eax + 0x60]
push 0
push esi
mov dword [esi + 0x20], eax
lea eax, [ebp - 8]
push 0
push eax
push 1
lea eax, [esi + 0x18]
mov dword [esi + 0x14], 3
push eax
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x40fd4f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x40fd51
xor eax, eax
mov ecx, dword [ebp - 0x14]
xor esi, esi
cmp eax, 0x3e5
cmovne esi, eax
test esi, esi
jne 0x40fd80
add dword [ebp - 0xc], ebx
sub edi, ebx
test edi, edi
jg 0x40fcf0
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041150d
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040e320
jmp 0x40fd6b
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0041150d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40ff70
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ad08
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x46b00c]
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 eax, ecx
mov dword [ebp - 0x18], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x3c], 0
jle 0x4100bb
lea edx, [esi + 0x54]
lea edi, [eax + 0x90]
lock inc dword [edx]
mov ebx, dword [esi + 0x40]
cmp ebx, dword [esi + 0x44]
je 0x40ffd3
mov eax, dword [ebx + 4]
mov dword [esi + 0x40], eax
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x18]
jmp 0x40ffe5
test ebx, ebx
je 0x40fffa
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
test ebx, ebx
je 0x40fffa
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
dec dword [esi + 0x3c]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0
mov ecx, eax
mov edi, dword [ebx + 0x18]
sub edi, dword [ebx + 0x14]
sub dword [esi + 0x50], edi
push edi
call fcn.0040e230
push edi
push dword [ebx + 0x14]
mov dword [ebp - 0x1c], eax
push dword [eax + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov eax, dword [esi + 0x60]
xor edi, edi
mov dword [ebp - 0x14], edi
push edi
push ecx
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x14]
push edi
push eax
push 1
lea eax, [ecx + 0x18]
mov dword [ecx + 0x14], 3
push eax
push dword [ecx + 0x20]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x410062
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
test edi, edi
jne 0x41008c
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
push ebx
call fcn.0040b330
lea edx, [esi + 0x54]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], edi
cmp dword [esi + 0x3c], edi
jg 0x40ffb0
mov eax, edi
jmp 0x4100bd
cmp edi, 0x3e5
je 0x4100a0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.0040e320
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
push ebx
call fcn.0040b330
mov dword [ebp - 0x20], 0
mov eax, edi
jmp 0x4100bd
xor eax, eax
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.0041150d
mov esp, ebp
pop ebp
ret 4