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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x42d518]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
js 0x4066ee
cmp edi, dword [ebx + 0x42c]
jge 0x4066ee
imul edi, edi, 0x214
cmp dword [edi + ebx + 4], 0
je 0x4066ee
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x80e]
cmp eax, dword [edi + ebx + 0x108]
jne 0x406571
movzx eax, word [ebp - 0x812]
cmp eax, dword [edi + ebx + 0x10c]
jne 0x406571
movzx eax, word [ebp - 0x814]
cmp eax, dword [edi + ebx + 0x110]
je 0x40663e
push esi
push dword [edi + ebx + 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, word [ebp - 0x80e]
movzx ecx, word [ebp - 0x812]
movzx eax, word [ebp - 0x814]
push edx
push ecx
push eax
mov dword [edi + ebx + 0x110], eax
lea eax, [ebx + 8]
add eax, edi
push eax
lea esi, [ebx + 0x114]
add esi, edi
push str.._s_04d__02d__02d.txt
push esi
mov dword [edi + ebx + 0x108], edx
mov dword [edi + ebx + 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 + ebx + 0x214], eax
pop esi
cmp eax, 0xffffffff
jne 0x406607
mov dword [edi + ebx + 4], 0
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cf20
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 0x40663e
push dword [edi + ebx + 0x214]
mov dword [edi + ebx + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cf20
mov esp, ebp
pop ebp
ret
push 0x3ff
lea eax, [ebp - 0x803]
push 0
push eax
mov byte [ebp - 0x804], 0
call fcn.00411d60
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.0040e945
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov byte [ebp - 0x404], 0
call fcn.00411d60
lea eax, [ebp - 0x804]
push eax
movzx eax, word [ebp - 0x808]
push eax
movzx eax, word [ebp - 0x80a]
push eax
movzx eax, word [ebp - 0x80c]
push eax
lea eax, [ebp - 0x404]
push str._02d:_02d:_02d__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x404]
add esp, 0x40
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4066c7
push 0
lea eax, [ebp - 0x818]
push eax
sub ecx, edx
push ecx
lea eax, [ebp - 0x404]
push eax
push dword [edi + ebx + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040cf20
mov esp, ebp
pop ebp
ret
Function at 0x406740
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x42d518]
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 0x406772
push eax
call fcn.0040dd4e
add esp, 4
mov dword [esi + 4], 0
push ebx
lea eax, [ebp - 0x108]
push 0x428f48
push eax
call fcn.00406ba0
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 0x40685b
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esi + 8], eax
call fcn.0040cecb
add esp, 4
mov dword [esi + 4], eax
test eax, eax
je 0x4067f3
push 0
lea ecx, [ebp - 0x10c]
push ecx
push dword [esi + 8]
mov dword [ebp - 0x10c], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
jne 0x406808
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.0040cf20
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
je 0x406836
xor ecx, ecx
cmp dword [esi + 8], ecx
jbe 0x406836
jmp 0x406820
mov eax, dword [esi + 4]
inc ecx
add byte [ecx + eax - 1], 0x95
mov eax, dword [esi + 4]
xor byte [ecx + eax - 1], 0xca
cmp ecx, dword [esi + 8]
jb 0x406820
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x7c], eax
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040cf20
mov esp, ebp
pop ebp
ret 8
push ebx
push str._s_file_not_found
call fcn.0040c7e0
int3
Function at 0x406d30
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x122c
call fcn.00412dd0
mov eax, dword [0x42d518]
xor eax, esp
mov dword [esp + 0x1228], eax
cmp dword [0x432f58], 0
push ebx
push esi
push edi
je 0x406ee5
push 0
lea eax, [esp + 0x112c]
push eax
push 0x104
push str.MHPDetect.dll
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x406d93
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1228]
xor ecx, esp
call fcn.0040cf20
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
push eax
push 0x1000
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x406d7c
mov esi, dword [esp + 0x14]
shr esi, 2
xor ebx, ebx
mov dword [esp + 0x10], esi
test esi, esi
jle 0x406ee5
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov esi, dword [esp + ebx*4 + 0x20]
test esi, esi
je 0x406edc
push esi
lea eax, [esp + 0x1c]
push eax
call fcn.004071d0
test al, al
jne 0x406ed8
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
mov dword [esp + 0x24], eax
call fcn.00407250
push dword [esp + ebx*4 + 0x20]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x406ed8
push 0x104
lea eax, [esp + 0x1024]
push eax
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
test eax, eax
je 0x406ed5
mov eax, str.GameServer.exe
lea ecx, [esp + 0x1020]
lea ebx, [ebx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x406e70
test dl, dl
je 0x406e6c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x406e70
add ecx, 2
add eax, 2
test dl, dl
jne 0x406e50
xor eax, eax
jmp 0x406e75
sbb eax, eax
or eax, 1
test eax, eax
jne 0x406ed5
lea eax, [esp + 0x1128]
push eax
push esi
call fcn.00406f00
test al, al
jne 0x406ed5
lea ecx, [esp + 0x1128]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406e95
sub ecx, edx
push ecx
lea eax, [esp + 0x112c]
push eax
push esi
call fcn.00406ff0
test al, al
lea eax, [esp + 0x1020]
push eax
push dword [esp + ebx*4 + 0x24]
jne 0x406ec6
push str._ProcessManager___d___s__Could_not_initialize_process_
push 1
jmp 0x406ecd
push str._ProcessManager___d___s__Initialization_successful_
push 3
call fcn.0040c860
add esp, 0x10
push esi
call edi
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jl 0x406dd1
mov ecx, dword [esp + 0x1234]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0040cf20
mov esp, ebp
pop ebp
ret
Function at 0x406f00
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x110c
call fcn.00412dd0
mov eax, dword [0x42d518]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
push 0x1000
lea eax, [ebp - 0x110c]
push eax
push ebx
mov dword [ebp - 0x10c], 0
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
jne 0x406f56
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cf20
mov esp, ebp
pop ebp
ret 8
push esi
push edi
mov edi, dword [ebp - 0x10c]
shr edi, 2
xor esi, esi
test edi, edi
jle 0x406fc5
jmp 0x406f70
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [ebp + esi*4 - 0x110c]
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
je 0x406fc0
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x108]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x406fb7
test dl, dl
je 0x406fb3
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x406fb7
add ecx, 2
add eax, 2
test dl, dl
jne 0x406f97
xor eax, eax
jmp 0x406fbc
sbb eax, eax
or eax, 1
test eax, eax
je 0x406fda
inc esi
cmp esi, edi
jl 0x406f70
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cf20
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040cf20
mov esp, ebp
pop ebp
ret 8
Function at 0x406ff0
Capabilities:
Check mutex on windows
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x42d518]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push 4
push 0x1000
push ebx
push 0
push esi
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x407046
push 0
push ebx
push dword [ebp - 0x48]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x40705b
push 0x8000
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cf20
mov esp, ebp
pop ebp
ret 0xc
push str.LoadLibraryA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x407038
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
lea eax, [ebp - 0x44]
push str.XTMPID_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x407038
push 0
push 0
push edi
push dword [ebp - 0x4c]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
jne 0x4070eb
push 0x8000
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push dword [ebp - 0x48]
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.0040cf20
mov esp, ebp
pop ebp
ret 0xc
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push ebx
push edi
push esi
test eax, eax
jne 0x4070c7
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040cf20
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4091a0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push fcn.00409590
push 0
push 0
mov dword [0x49aa30], 0x429218
mov dword [0x49aa34], 0
mov dword [0x49aa3c], 0
mov dword [0x49aa40], 0
mov dword [0x49aa44], 0
mov dword [0x49aa48], 0
mov dword [0x49aa38], 0
mov dword [0x49aa4c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x49aa34]
mov dword [0x49aa38], eax
mov eax, dword [0x49aa40]
mov byte [0x49aa50], 0
mov dword [0x49aa54], 0
mov dword [0x49aa44], eax
mov byte [0x49aa60], 0
mov dword [0x49aa64], 0xffffffff
mov dword [0x49aa70], 0
mov dword [0x49aa74], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x49aa78], eax
mov dword [0x49aa7c], 0x64
mov dword [0x49aa80], 0
mov eax, 0x49aa30
ret
Function at 0x409920
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call esi
push 0xa
push edi
mov dword [ebp - 4], eax
call esi
push edi
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebx + 4]
mov eax, dword [ebp - 4]
cmp eax, ecx
jle 0x40996b
cmp esi, dword [ebx + 8]
jle 0x40996b
mov dword [0x49aa68], ecx
mov esi, dword [ebx + 8]
jmp 0x40997d
mov ecx, eax
mov dword [0x49aa68], ecx
mov dword [0x49aa80], 0x64
push 1
lea eax, [esi + 0x1e]
push eax
push ecx
push 0
push 0
push dword [0x49aa54]
mov dword [0x49aa6c], esi
mov byte [0x49aa50], 1
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
push dword [0x49aa54]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b800
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
test eax, eax
je 0x40b827
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 0x40b838
push eax
call ebx
mov dword [edi + 0x6c], 0
lea ecx, [edi + 0x38]
call fcn.00407c40
lea esi, [edi + 0x14]
mov ebx, 8
mov eax, dword [esi]
test eax, eax
je 0x40b865
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
dec ebx
jne 0x40b848
mov eax, dword [edi + 0x10]
test eax, eax
je 0x40b88e
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 0x40b894
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
test eax, eax
je 0x40b8a5
push eax
call ebx
mov dword [edi + 8], 0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x40b8bb
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42d518]
xor eax, ebp
mov dword [ebp - 4], eax
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [0x49b45c], eax
cmp eax, 0xffffffff
jne 0x40b912
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__WSASocket___failed_with_error:__d
push 1
call fcn.0040c860
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cf20
mov esp, ebp
pop ebp
ret
mov eax, 2
push 0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x10], eax
movzx eax, word [0x49b464]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [0x49b45c]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40b975
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__bind___failed_with_error:__d
push 1
call fcn.0040c860
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cf20
mov esp, ebp
pop ebp
ret
push 5
push dword [0x49b45c]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x40b9ae
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__listen___failed_with_error:__d
push 1
call fcn.0040c860
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cf20
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.0040cf20
mov esp, ebp
pop ebp
ret
Function at 0x40b9c0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b9ee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__socket___failed_with_error:__d
push 1
call fcn.0040c860
add esp, 0xc
xor al, al
pop esi
ret
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x49b460], eax
test eax, eax
jne 0x40ba25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateIoCompletionPort___failed_with_error:__d
push 1
call fcn.0040c860
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret

Function at 0x40ba30
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0x49b458
push 0x40c440
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x49b468], eax
test eax, eax
jne 0x40ba6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateThread___failed_with_error:__d
push 1
call fcn.0040c860
add esp, 0xc
xor al, al
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x40ba90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__SetThreadPriority___failed_with_error:__d
push 1
call fcn.0040c860
add esp, 0xc
xor al, al
ret
mov al, 1
ret

Function at 0x40baa0
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
mov ecx, 8
cmp eax, ecx
cmova eax, ecx
xor esi, esi
mov dword [0x49b48c], eax
test eax, eax
je 0x40bb09
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, 0x49b46c
push 0
push 0
push 0x49b458
push 0x40c5c0
push 0
push 0
call ebx
mov dword [edi], eax
test eax, eax
je 0x40bb31
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x40bb12
inc esi
add edi, 4
cmp esi, dword [0x49b48c]
jb 0x40bad6
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__SetThreadPriority___failed_with_error:__d
push 1
call fcn.0040c860
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateThread___failed_with_error:__d
push 1
call fcn.0040c860
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bb50
Capabilities:
Create thread

Disassembly:
push 0
push 0x800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x49b4c4], eax
test eax, eax
jne 0x40bb83
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateSemaphore___failed_with_error:__d
push 1
call fcn.0040c860
add esp, 0xc
xor al, al
ret
push 0
push 0
push 0x49b458
push 0x40c6c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x49b4c8], eax
test eax, eax
jne 0x40bbbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateThread___failed_with_error:__d
push 1
call fcn.0040c860
add esp, 0xc
xor al, al
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x40bbe3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__SetThreadPriority___failed_with_error:__d
push 1
call fcn.0040c860
add esp, 0xc
xor al, al
ret
mov al, 1
ret
Function at 0x40c170
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, ecx
push edi
lea esi, [ebx + 0x78]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
js 0x40c24b
xor eax, eax
cmp edi, 0x1388
setl al
test eax, eax
je 0x40c24b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40c243
mov eax, dword [ebp + 0x10]
add eax, 0x24
add dword [eax + 0x182b8], ecx
push eax
push edi
mov ecx, ebx
call fcn.0040bbf0
test al, al
je 0x40c243
mov edx, dword [ebp + 0x10]
push 0
mov ecx, dword [edx + 0x182dc]
lea eax, [edx + 0x24]
add eax, ecx
mov dword [edx + 0x18], eax
add edx, 0x14
mov eax, 0x182b8
sub eax, ecx
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
push eax
mov dword [eax + 0x1c], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov eax, edi
imul eax, eax, 0x54
push 1
push edx
push dword [eax + 0x434174]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x40c24b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40c24b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__WSARecv___failed_with_error:__d
push 1
call fcn.0040c860
add esp, 0xc
push edi
mov ecx, ebx
call fcn.0040c0c0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40c260
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
push edi
lea esi, [ebx + 0x78]
push esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
js 0x40c3fe
xor eax, eax
cmp edi, 0x1388
setl al
test eax, eax
je 0x40c3fe
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40c2a7
mov ecx, ebx
jmp 0x40c3f8
mov ebx, dword [ebp + 0x10]
mov ecx, edi
add dword [ebx + 0x182dc], eax
imul ecx, ecx, 0x54
mov eax, dword [ebx + 0x182dc]
mov edx, dword [ebx + 0x20]
add ecx, 0x434158
mov dword [ebp + 0xc], ecx
cmp eax, edx
jl 0x40c396
mov eax, dword [ebx + 0x30598]
test eax, eax
jg 0x40c2f0
push esi
mov dword [ebx + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea esi, [ebx + 0x24]
cmp eax, 0x182b8
jle 0x40c35b
push 0x182b8
lea edi, [ebx + 0x182e0]
push edi
push esi
call fcn.0040ff30
mov eax, dword [ebx + 0x30598]
mov dword [ebx + 0x18], esi
lea esi, [ebx + 0x30598]
sub eax, 0x182b8
push eax
push esi
push edi
mov dword [ebx + 0x14], 0x182b8
mov dword [ebx + 0x1c], 1
mov dword [ebx + 0x20], 0x182b8
mov dword [ebx + 0x182dc], 0
call fcn.0040d170
mov edi, dword [ebp + 8]
add esp, 0x18
add dword [esi], 0xfffe7d48
mov esi, dword [ebp - 4]
lea ecx, [ebx + 0x14]
jmp 0x40c3b0
push eax
lea eax, [ebx + 0x182e0]
push eax
push esi
call fcn.0040ff30
mov eax, dword [ebx + 0x30598]
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x18], esi
mov esi, dword [ebp - 4]
add esp, 0xc
mov dword [ecx], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x182dc], 0
mov dword [ebx + 0x30598], 0
jmp 0x40c3a9
add eax, 0x24
add eax, ebx
sub edx, dword [ebx + 0x182dc]
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x18], eax
mov dword [ecx], edx
mov dword [ebx + 0x1c], 1
push 0
push ebx
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push 1
push ecx
push dword [eax + 0x1c]
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x40c3fe
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x3e5
je 0x40c3fe
call ebx
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.0040c860
mov ecx, dword [ebp - 0xc]
add esp, 0xc
push edi
call fcn.0040c0c0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40c7e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x42d518]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.00411d60
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.0040e945
add esp, 0x1c
lea eax, [ebp - 0x104]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
call edi
push eax
call esi
jmp dword [pe_dos_header]