joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40df10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
test eax, eax
js 0x40e0f8
cmp eax, dword [ecx + 0x640]
jge 0x40e0f8
imul edi, eax, 0x214
add edi, ecx
cmp dword [edi + 4], 0
je 0x40e0f8
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x816]
cmp eax, dword [edi + 0x108]
jne 0x40df8f
movzx eax, word [ebp - 0x81a]
cmp eax, dword [edi + 0x10c]
jne 0x40df8f
movzx eax, word [ebp - 0x81c]
cmp eax, dword [edi + 0x110]
je 0x40e04e
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0x81c]
lea esi, [edi + 0x114]
movzx ecx, word [ebp - 0x81a]
movzx edx, word [ebp - 0x816]
push eax
push ecx
push edx
mov dword [edi + 0x110], eax
lea eax, [edi + 8]
push eax
push str.._sSGG__02d__02d__04d.txt
push esi
mov dword [edi + 0x108], edx
mov dword [edi + 0x10c], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x214], eax
cmp eax, 0xffffffff
jne 0x40e019
mov dword [edi + 4], 0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00423570
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40e04e
push dword [edi + 0x214]
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00423570
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x80c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x14]
mov edx, 0x400
push eax
push ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x80c]
call fcn.00404980
add esp, 0xc
lea eax, [ebp - 0x40c]
push 0x400
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
movzx eax, word [ebp - 0x810]
push eax
movzx eax, word [ebp - 0x812]
push eax
movzx eax, word [ebp - 0x814]
push eax
lea eax, [ebp - 0x40c]
push str._02d:_02d:_02d__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x40c]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e0d2
push 0
lea eax, [ebp - 0x820]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x40c]
push eax
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.00423570
mov esp, ebp
pop ebp
ret
Function at 0x40e160
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x40e192
push eax
call fcn.00423bbb
add esp, 4
mov dword [esi + 4], 0
push ebx
lea eax, [ebp - 0x108]
push 0x429574
push eax
call fcn.0040e5b0
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push 0x20
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40e279
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esi + 8], eax
call fcn.00423bc0
add esp, 4
mov dword [esi + 4], eax
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0
push 0
push ecx
push dword [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
jne 0x40e224
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423570
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
je 0x40e254
xor ecx, ecx
cmp dword [esi + 8], ecx
jbe 0x40e254
nop word [eax + eax]
mov eax, dword [esi + 4]
add byte [ecx + eax], 0x95
mov eax, dword [esi + 4]
xor byte [ecx + eax], 0xca
inc ecx
cmp ecx, dword [esi + 8]
jb 0x40e240
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x7c], eax
xor ecx, ebp
pop esi
mov al, 1
pop ebx
call fcn.00423570
mov esp, ebp
pop ebp
ret 8
push ebx
push str._s_file_not_found
call fcn.004193c0
int3
Function at 0x412a80
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x43300c]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov eax, 2
push esi
mov word [esp + 0x10], ax
mov esi, ecx
mov eax, dword [ebp + 0x24]
push edi
mov edi, dword [0x50f3a4]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x16], ax
xorps xmm0, xmm0
mov eax, dword [esi + 0x10018]
movq qword [esp + 0x18], xmm0
mov dword [esp + 0x20], 0
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov eax, dword [esi + 0x1001c]
movups xmmword [eax], xmm0
movq qword [eax + 0x10], xmm0
mov eax, dword [esi + 0x1001c]
mov dword [eax + 0x14], esi
mov eax, dword [esi + 0x10018]
mov dword [eax + 0x14], esi
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 0x10
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 1
push 0
push 0
push 6
push 1
push 2
mov dword [esp + 0x30], eax
call dword [sym.imp.WS2_32.dll_WSASocketA]
push 0x10
lea ecx, [esp + 0x18]
mov dword [esi], eax
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x412bac
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
push esi
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp eax, edi
jne 0x412bac
push 0
push dword [esi + 0x10018]
lea eax, [esi + 0x18]
mov dword [esi + 8], 0
mov dword [esp + 0x18], eax
lea ecx, [esi + 0x14]
lea eax, [esi + 8]
mov dword [esp + 0x14], 0xffff
push eax
push ecx
push 1
lea eax, [esp + 0x20]
mov dword [ecx], 0
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x412bda
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x412bda
call esi
push eax
push str.WSARecv_WSAError:_d
call fcn.00412800
add esp, 8
xor bl, bl
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x412be8
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412bde
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x412bde
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov bl, 1
jmp 0x412bae
push edx
push ecx
call fcn.004235ae
add esp, 8
mov ecx, dword [esp + 0x24]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00423570
mov esp, ebp
pop ebp
ret 0x20
Function at 0x412cf0
Capabilities:
Create tcp socket
Create thread
Create udp socket
Get system information on windows
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c4
mov eax, dword [0x43300c]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
push 0x18
mov dword [esp + 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0042357e
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea eax, [esp + 0x38]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
push 0
push 0
push 0
push 0xffffffffffffffff
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0xc], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x28]
lea edi, [eax + eax]
test edi, edi
jle 0x412db8
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
push 0
push 0
push esi
push 0x412c00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, 0xffffffff
jne 0x412db3
push str.Cant_create_IOCPTH
call ebx
add esp, 4
sub edi, 1
jne 0x412d90
mov ecx, dword [esp + 0x1cc]
mov eax, esi
pop edi
mov dword [esi + 0x10], fcn.00401f40
mov dword [esi + 0x14], fcn.00401f40
mov dword [esi + 0x18], fcn.00401f40
pop esi
pop ebx
xor ecx, esp
call fcn.00423570
mov esp, ebp
pop ebp
ret
Function at 0x412f10
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425233
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x43300c]
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 edi, ecx
mov dword [ebp - 0x24], edi
push 0
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_WSAAccept]
mov ecx, eax
mov dword [ebp - 0x30], ecx
cmp ecx, 0xffffffff
je 0x41300f
mov esi, dword [edi]
xor ebx, ebx
mov esi, dword [esi]
cmp byte [esi + 0xd], bl
jne 0x412fd3
mov edi, dword [esi + 0x14]
test edi, edi
je 0x4130d1
inc ebx
cmp dword [edi + 4], 0xffffffff
je 0x41302b
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x412fb4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x412fb0
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x412fb0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x412fa0
mov esi, eax
jmp 0x412fca
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x412fca
nop
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x412fc0
cmp byte [esi + 0xd], 0
je 0x412f75
mov edi, dword [ebp - 0x24]
push 0x48
call fcn.0042357e
add esp, 4
mov dword [ebp - 0x28], eax
push ebx
mov dword [ebp - 4], 1
mov ecx, eax
push dword [ebp - 0x30]
push edi
call fcn.00413100
mov dword [ebp - 4], 0xffffffff
mov ecx, edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], ebx
push eax
call fcn.004131f0
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.00423570
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
push 0
push edi
mov dword [edi + 4], ecx
push dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov ecx, dword [edi + 0x3c]
push 0
cmp eax, dword [ecx + 0xc]
lea eax, [edi + 0x28]
push eax
lea ecx, [edi + 0x40]
sete bl
lea eax, [edi + 0x44]
mov dword [ecx], 0
push ecx
push eax
push 1
lea eax, [edi + 8]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x41307f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x41307f
xor al, al
jmp 0x413081
mov al, 1
test bl, bl
je 0x41309e
test al, al
je 0x41309e
mov ecx, dword [ebp - 0x24]
push 0
push dword [esi + 0x14]
mov eax, dword [ecx + 0x10]
call eax
add esp, 8
jmp 0x41300f
mov esi, dword [esi + 0x14]
cmp dword [esi + 4], 0xffffffff
je 0x41300f
mov eax, dword [esi + 0x3c]
push str.Cant_be_assigned
push esi
mov eax, dword [eax + 0x18]
call eax
add esp, 8
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
jmp 0x41300f
push 0x48
call fcn.0042357e
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
push ebx
mov dword [ebp - 4], 0
push dword [ebp - 0x30]
push ecx
mov ecx, eax
call fcn.00413100
mov dword [esi + 0x14], eax
jmp 0x41300f
Function at 0x413100
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov ebx, ecx
push edi
push 0xffff
mov dword [ebx], eax
call fcn.00423bc0
mov ecx, dword [ebp + 8]
lea edi, [ebx + 8]
add esp, 4
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0xc]
lea esi, [ebx + 0x28]
mov dword [edi], 0xffff
xorps xmm0, xmm0
movups xmmword [ebx + 0x10], xmm0
push 0
movq qword [ebx + 0x20], xmm0
movups xmmword [esi], xmm0
push ebx
movq qword [esi + 0x10], xmm0
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 4], eax
push dword [ecx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov ecx, dword [ebx + 0x3c]
push 0
push esi
cmp eax, dword [ecx + 0xc]
lea eax, [ebx + 0x40]
push eax
mov dword [eax], 0
sete byte [ebp + 0x13]
lea eax, [ebx + 0x44]
push eax
push 1
push edi
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x413195
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x413195
xor al, al
jmp 0x413197
mov al, 1
cmp byte [ebp + 0x13], 0
je 0x4131b8
test al, al
je 0x4131b8
mov eax, dword [ebx + 0x3c]
push 0
push ebx
mov eax, dword [eax + 0x10]
call eax
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp dword [ebx + 4], 0xffffffff
je 0x4131df
mov eax, dword [ebx + 0x3c]
push str.Cant_be_assigned
push ebx
mov eax, dword [eax + 0x18]
call eax
add esp, 8
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx + 4], 0xffffffff
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x413ad0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x413b29
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x413b29
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x413b18
cmp esi, edx
jae 0x413b29
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x413b06
cmp esi, edx
jae 0x413b29
cmp word [esi], 0
je 0x413b29
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x416ad0
Capabilities:
Create thread
Initialize winsock library
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.._Settings.ini
push 0
push str.ConnectServer
push str.SilentGameGuardInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
movzx eax, ax
mov word [0x50f2a0], ax
test ax, ax
je 0x416c94
cmp byte [0x50f1c7], 0
jne 0x416c62
push 0x50f38c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, 0x202
push 0x581190
push eax
mov word [0x581188], ax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ax, word [0x581190]
cmp ax, word [0x581188]
je 0x416b62
push str.Version_not_Allowed
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
add esp, 4
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
jmp 0x416c62
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, 4
mov dword [0x50f3a4], eax
push 0
push 0
push 0
push 0x412420
push 0
push 0
call edi
sub esi, 1
jne 0x416b80
movzx eax, word [0x50f2a0]
mov ecx, 2
push eax
mov dword [0x6050bc], 0x412280
mov dword [0x6050c0], 0x4126f0
mov dword [0x6050c4], 0x412670
mov word [ebp - 0x14], cx
call dword [sym.imp.WS2_32.dll_htons]
push str.0.0.0.0
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
xor ecx, ecx
cmp eax, 0xffffffff
push 0x10
cmove eax, ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push dword [0x6050b4]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x416c1a
push str.Cant_create_IOCP_Bind
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
add esp, 4
push esi
push esi
push str.Cant_create_IOCP_Bind
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x416c62
push 0xa
push dword [0x6050b4]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x416c4e
push str.Cant_create_IOCP_Listen
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
add esp, 4
push 0
push 0
push str.Cant_create_IOCP_Listen
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x416c62
push 0
push 0
push 0x6050ac
push 0x412ce0
push 0
push 0
call edi
movzx ecx, word [0x50f2a0]
mov byte [0x50f1c7], 1
lea eax, [ecx + 1]
push eax
push ecx
push str._Silent_GameGuard_____Tunnel__:_ConnectServer_Public_Port__d___Redirect_Local_Port__d_Started_
push 8
call fcn.00419440
add esp, 0x10
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423570
mov esp, ebp
pop ebp
ret
push str._Silent_GameGuard_____Tunnel__:_ConnectServer_has_been_Disabled
push 0
call fcn.00419440
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.00423570
mov esp, ebp
pop ebp
ret
Function at 0x417f40
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
test eax, eax
je 0x417f66
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x70]
call ebx
mov dword [edi + 0x70], 0
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x417f77
push eax
call ebx
mov dword [edi + 0x6c], 0
push esi
lea ecx, [edi + 0x38]
call fcn.00410b50
lea esi, [edi + 0x14]
mov ebx, 8
mov eax, dword [esi]
test eax, eax
je 0x417fa5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x417f88
mov eax, dword [edi + 0x10]
pop esi
test eax, eax
je 0x417fd1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov dword [edi + 0x10], 0
jmp 0x417fd7
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
test eax, eax
je 0x417fe8
push eax
call ebx
mov dword [edi + 8], 0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x417ffe
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
pop edi
pop ebx
ret
Function at 0x418270
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x80018
call fcn.00424870
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x50dfd8
mov dword [ebp - 0x80010], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
js 0x418477
cmp ebx, 0x1388
jge 0x418477
imul edi, ebx, 0x6c
mov dword [ebp - 0x80018], edi
mov eax, dword [edi + 0x581324]
test eax, eax
js 0x418477
cmp eax, 0x1388
jge 0x418477
cmp dword [edi + 0x581328], 0
je 0x418477
cmp dword [edi + 0x58133c], 0xffffffff
je 0x418477
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x8000c]
push esi
push dword [ebp - 0x80010]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov al, byte [ebp - 0x8000c]
add esp, 0xc
cmp al, 0xc1
jne 0x418325
push dword [ebp - 0x8000a]
lea edx, [esi - 3]
lea ecx, [ebp - 0x80009]
jmp 0x418343
push dword [ebp - 0x80009]
cmp al, 0xc3
jne 0x41833a
lea edx, [esi - 6]
lea ecx, [ebp - 0x80006]
jmp 0x418343
lea edx, [esi - 4]
lea ecx, [ebp - 0x80008]
call fcn.00419720
add esp, 4
cmp esi, 0x80000
jle 0x418369
push esi
push ebx
push str._SocketManager__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.00419440
add esp, 0x10
jmp 0x418477
mov edi, dword [edi + 0x581344]
mov eax, dword [edi + 0x20]
test eax, eax
jle 0x4183db
mov ecx, dword [edi + 0x180028]
lea eax, [ecx + esi]
cmp eax, 0x100000
jle 0x41839c
push eax
push ebx
push str._SocketManager__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.00419440
add esp, 0x10
jmp 0x41846c
push esi
lea eax, [ebp - 0x8000c]
push eax
lea eax, [edi + 0x80028]
add eax, ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add dword [edi + 0x180028], esi
push 0x50dfd8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00423570
mov esp, ebp
pop ebp
ret 0xc
push esi
lea ecx, [ebp - 0x8000c]
add eax, 0x24
push ecx
add eax, edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add dword [edi + 0x20], esi
lea eax, [edi + 0x24]
mov ecx, dword [edi + 0x20]
add esp, 0xc
mov dword [edi + 0x18], eax
lea eax, [edi + 0x14]
mov dword [eax], ecx
lea ecx, [ebp - 0x80014]
mov dword [edi + 0x80024], 0
push 0
push edi
push 0
push ecx
push 1
push eax
mov eax, dword [ebp - 0x80018]
mov dword [edi + 0x1c], 1
mov dword [ebp - 0x80014], 0
push dword [eax + 0x58133c]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x4183bb
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x4183bb
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.00419440
add esp, 0xc
push ebx
mov ecx, 0x50df60
call fcn.004184a0
push 0x50dfd8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423570
mov esp, ebp
pop ebp
ret 0xc
Function at 0x418540
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
lea edi, [esi + 0x78]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
js 0x4186d0
cmp ebx, 0x1388
jge 0x4186d0
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x41857d
mov ecx, esi
jmp 0x4186ca
mov esi, dword [ebp + 0x10]
imul ecx, ebx, 0x6c
add dword [esi + 0x80024], eax
mov edx, dword [esi + 0x80024]
mov dword [ebp + 0xc], ecx
mov ecx, dword [esi + 0x20]
cmp edx, ecx
jl 0x418669
mov eax, dword [esi + 0x180028]
test eax, eax
jg 0x4185be
push edi
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [esi + 0x80028]
lea ecx, [esi + 0x24]
cmp eax, 0x80000
jle 0x418633
push 0x80000
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esi + 0x24]
mov dword [esi + 0x14], 0x80000
mov dword [esi + 0x18], eax
add esp, 0xc
mov eax, dword [esi + 0x180028]
sub eax, 0x80000
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0x80000
push eax
lea eax, [esi + 0x100028]
mov dword [esi + 0x80024], 0
push eax
lea eax, [esi + 0x80028]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [esi + 0x14]
add dword [esi + 0x180028], 0xfff80000
jmp 0x41867f
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esi + 0x24]
mov dword [esi + 0x80024], 0
mov dword [esi + 0x18], eax
add esp, 0xc
mov eax, dword [esi + 0x180028]
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x180028], 0
jmp 0x418678
lea eax, [esi + 0x24]
add eax, edx
sub ecx, edx
mov dword [esi + 0x18], eax
lea eax, [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x1c], 1
push 0
push esi
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push 1
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0x58133c]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x4186d0
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x4186d0
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.00419440
mov ecx, dword [ebp - 4]
add esp, 0xc
push ebx
call fcn.004184a0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc