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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x43400c]
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 0x40f918
cmp eax, dword [ecx + 0x640]
jge 0x40f918
imul edi, eax, 0x214
add edi, ecx
cmp dword [edi + 4], 0
je 0x40f918
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x816]
cmp eax, dword [edi + 0x108]
jne 0x40f7af
movzx eax, word [ebp - 0x81a]
cmp eax, dword [edi + 0x10c]
jne 0x40f7af
movzx eax, word [ebp - 0x81c]
cmp eax, dword [edi + 0x110]
je 0x40f86e
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 0x40f839
mov dword [edi + 4], 0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00424550
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 0x40f86e
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.00424550
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.00405930
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 0x40f8f2
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.00424550
mov esp, ebp
pop ebp
ret
Function at 0x40f980
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x43400c]
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 0x40f9b2
push eax
call fcn.00424b9b
add esp, 4
mov dword [esi + 4], 0
push ebx
lea eax, [ebp - 0x108]
push 0x42a8f8
push eax
call fcn.0040fdd0
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 0x40fa99
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esi + 8], eax
call fcn.00424ba0
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 0x40fa44
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.00424550
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
je 0x40fa74
xor ecx, ecx
cmp dword [esi + 8], ecx
jbe 0x40fa74
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 0x40fa60
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.00424550
mov esp, ebp
pop ebp
ret 8
push ebx
push str._s_file_not_found
call fcn.00419fd0
int3
Function at 0x4142a0
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 [0x43400c]
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 [0x5822b0]
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 0x4143cc
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 0x4143cc
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 0x4143fa
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x4143fa
call esi
push eax
push str.WSARecv_WSAError:_d
call fcn.00414020
add esp, 8
xor bl, bl
mov edx, dword [ebp + 0x20]
cmp edx, 0x10
jb 0x414408
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4143fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4143fe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov bl, 1
jmp 0x4143ce
push edx
push ecx
call fcn.0042458e
add esp, 8
mov ecx, dword [esp + 0x24]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00424550
mov esp, ebp
pop ebp
ret 0x20
Function at 0x414510
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 [0x43400c]
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.0042455e
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 0x4145d8
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_puts]
push 0
push 0
push esi
push 0x414420
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, 0xffffffff
jne 0x4145d3
push str.Cant_create_IOCPTH
call ebx
add esp, 4
sub edi, 1
jne 0x4145b0
mov ecx, dword [esp + 0x1cc]
mov eax, esi
pop edi
mov dword [esi + 0x10], fcn.00402f00
mov dword [esi + 0x14], fcn.00402f00
mov dword [esi + 0x18], fcn.00402f00
pop esi
pop ebx
xor ecx, esp
call fcn.00424550
mov esp, ebp
pop ebp
ret
Function at 0x414730
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4262c3
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x43400c]
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 0x41482f
mov esi, dword [edi]
xor ebx, ebx
mov esi, dword [esi]
cmp byte [esi + 0xd], bl
jne 0x4147f3
mov edi, dword [esi + 0x14]
test edi, edi
je 0x4148f1
inc ebx
cmp dword [edi + 4], 0xffffffff
je 0x41484b
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4147d4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4147d0
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x4147d0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4147c0
mov esi, eax
jmp 0x4147ea
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4147ea
nop
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4147e0
cmp byte [esi + 0xd], 0
je 0x414795
mov edi, dword [ebp - 0x24]
push 0x48
call fcn.0042455e
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.00414920
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.00414a10
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.00424550
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 0x41489f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x41489f
xor al, al
jmp 0x4148a1
mov al, 1
test bl, bl
je 0x4148be
test al, al
je 0x4148be
mov ecx, dword [ebp - 0x24]
push 0
push dword [esi + 0x14]
mov eax, dword [ecx + 0x10]
call eax
add esp, 8
jmp 0x41482f
mov esi, dword [esi + 0x14]
cmp dword [esi + 4], 0xffffffff
je 0x41482f
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 0x41482f
push 0x48
call fcn.0042455e
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.00414920
mov dword [esi + 0x14], eax
jmp 0x41482f
Function at 0x414920
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.00424ba0
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 0x4149b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x4149b5
xor al, al
jmp 0x4149b7
mov al, 1
cmp byte [ebp + 0x13], 0
je 0x4149d8
test al, al
je 0x4149d8
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 0x4149ff
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 0x4152f0
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 0x415349
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x415349
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x415338
cmp esi, edx
jae 0x415349
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x415326
cmp esi, edx
jae 0x415349
cmp word [esi], 0
je 0x415349
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 0x4182e0
Capabilities:
Create thread
Initialize winsock library
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x43400c]
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 [0x5103cc], ax
test ax, ax
je 0x4184a4
cmp byte [0x50ff0a], 0
jne 0x418472
push 0x582298
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, 0x202
push 0x5822b8
push eax
mov word [0x5822b4], ax
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ax, word [0x5822b8]
cmp ax, word [0x5822b4]
je 0x418372
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 0x418472
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 [0x5822b0], eax
push 0
push 0
push 0
push 0x413c40
push 0
push 0
call edi
sub esi, 1
jne 0x418390
movzx eax, word [0x5103cc]
mov ecx, 2
push eax
mov dword [0x6061e8], 0x413aa0
mov dword [0x6061ec], 0x413f10
mov dword [0x6061f0], 0x413e90
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 [0x6061e0]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x41842a
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 0x418472
push 0xa
push dword [0x6061e0]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x41845e
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 0x418472
push 0
push 0
push 0x6061d8
push 0x414500
push 0
push 0
call edi
movzx ecx, word [0x5103cc]
mov byte [0x50ff0a], 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.0041a050
add esp, 0x10
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424550
mov esp, ebp
pop ebp
ret
push str._Silent_GameGuard_____Tunnel__:_ConnectServer_has_bin_Disable
push 0
call fcn.0041a050
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.00424550
mov esp, ebp
pop ebp
ret
Function at 0x418b50
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 0x418b76
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 0x418b87
push eax
call ebx
mov dword [edi + 0x6c], 0
push esi
lea ecx, [edi + 0x38]
call fcn.00412380
lea esi, [edi + 0x14]
mov ebx, 8
mov eax, dword [esi]
test eax, eax
je 0x418bb5
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 0x418b98
mov eax, dword [edi + 0x10]
pop esi
test eax, eax
je 0x418be1
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 0x418be7
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
test eax, eax
je 0x418bf8
push eax
call ebx
mov dword [edi + 8], 0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x418c0e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
pop edi
pop ebx
ret
Function at 0x418e80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x80018
call fcn.00425850
mov eax, dword [0x43400c]
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 0x50f1e0
mov dword [ebp - 0x80010], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
js 0x419087
cmp ebx, 0x1388
jge 0x419087
imul edi, ebx, 0x6c
mov dword [ebp - 0x80018], edi
mov eax, dword [edi + 0x582454]
test eax, eax
js 0x419087
cmp eax, 0x1388
jge 0x419087
cmp dword [edi + 0x582458], 0
je 0x419087
cmp dword [edi + 0x58246c], 0xffffffff
je 0x419087
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 0x418f35
push dword [ebp - 0x8000a]
lea edx, [esi - 3]
lea ecx, [ebp - 0x80009]
jmp 0x418f53
push dword [ebp - 0x80009]
cmp al, 0xc3
jne 0x418f4a
lea edx, [esi - 6]
lea ecx, [ebp - 0x80006]
jmp 0x418f53
lea edx, [esi - 4]
lea ecx, [ebp - 0x80008]
call fcn.0041a330
add esp, 4
cmp esi, 0x80000
jle 0x418f79
push esi
push ebx
push str._SocketManager__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.0041a050
add esp, 0x10
jmp 0x419087
mov edi, dword [edi + 0x582474]
mov eax, dword [edi + 0x20]
test eax, eax
jle 0x418feb
mov ecx, dword [edi + 0x180028]
lea eax, [ecx + esi]
cmp eax, 0x100000
jle 0x418fac
push eax
push ebx
push str._SocketManager__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.0041a050
add esp, 0x10
jmp 0x41907c
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 0x50f1e0
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.00424550
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 + 0x58246c]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x418fcb
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x418fcb
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.0041a050
add esp, 0xc
push ebx
mov ecx, 0x50f168
call fcn.004190b0
push 0x50f1e0
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.00424550
mov esp, ebp
pop ebp
ret 0xc
Function at 0x419150
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 0x4192e0
cmp ebx, 0x1388
jge 0x4192e0
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x41918d
mov ecx, esi
jmp 0x4192da
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 0x419279
mov eax, dword [esi + 0x180028]
test eax, eax
jg 0x4191ce
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 0x419243
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 0x41928f
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 0x419288
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 + 0x58246c]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x4192e0
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x4192e0
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.0041a050
mov ecx, dword [ebp - 4]
add esp, 0xc
push ebx
call fcn.004190b0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc