joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4147e0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
jmp 0x4147f9
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push edi
push esi
call ebx
xor eax, eax
test edi, edi
jle 0x41482f
mov ecx, eax
and ecx, 0xf
mov dl, byte [ecx + 0x41a3d0]
xor dl, byte [eax + esi]
inc eax
add dl, 0x51
mov byte [eax + esi - 1], dl
cmp eax, edi
jl 0x414815
mov ecx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push ecx
push edi
push esi
call ebx
jmp 0x41484d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4149c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
jmp 0x4149d5
push 0x104
push 0
push 0x5b70c8
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp + 0xc]
add esp, 0xc
xor eax, eax
test ecx, ecx
jle 0x414a12
push esi
mov esi, dword [ebp + 8]
jmp 0x414a00
mov dl, byte [esi + eax*4]
xor dl, 0x80
mov byte [eax + 0x5b70c8], dl
inc eax
cmp eax, ecx
jl 0x414a00
pop esi
jmp 0x414a24
mov eax, 0x5b70c8
pop ebp
ret 8
Function at 0x415350
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov cx, word [eax + 4]
mov edx, dword [eax + 6]
mov word [ebp - 0x48], cx
mov ecx, dword [eax + 0xa]
mov dword [ebp - 0x42], ecx
movzx ecx, byte [eax + 0x10]
mov dword [ebp - 0x46], edx
movzx edx, word [eax + 0xe]
add eax, 0x11
mov byte [ebp - 0x3c], cl
mov ecx, dword [eax + 4]
mov word [ebp - 0x3e], dx
mov edx, dword [eax]
mov dword [ebp - 0x37], ecx
movzx ecx, byte [eax + 0xa]
push ebx
mov dword [ebp - 0x3b], edx
movzx edx, word [eax + 8]
push eax
mov byte [ebp - 0x31], cl
push str.SELECT__FROM_QuestKillCount_WHERE_Name_s
mov ecx, 0x4ed8c0
mov dword [ebp - 0x4c], 0xc48c1
mov word [ebp - 0x33], dx
call fcn.00414e40
add esp, 8
test al, al
je 0x415481
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x415481
push str.QuestIndex
mov ebx, 0x4ed8c0
call fcn.00415000
push str.MonsterClass1
mov dword [ebp - 0x30], eax
call fcn.00415000
push str.MonsterClass2
mov dword [ebp - 0x2c], eax
call fcn.00415000
push str.MonsterClass3
mov dword [ebp - 0x28], eax
call fcn.00415000
push str.MonsterClass4
mov dword [ebp - 0x24], eax
call fcn.00415000
push str.MonsterClass5
mov dword [ebp - 0x20], eax
call fcn.00415000
push str.KillCount1
mov dword [ebp - 0x1c], eax
call fcn.00415000
push str.KillCount2
mov dword [ebp - 0x18], eax
call fcn.00415000
push str.KillCount3
mov dword [ebp - 0x14], eax
call fcn.00415000
push str.KillCount4
mov dword [ebp - 0x10], eax
call fcn.00415000
push str.KillCount5
mov dword [ebp - 0xc], eax
call fcn.00415000
mov dword [ebp - 8], eax
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x4154c2
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
or eax, 0xffffffff
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
movzx ebx, byte [ebp - 0x4b]
lea ecx, [ebp - 0x4c]
push ecx
push edx
call fcn.00416c00
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4154e0
Capabilities:
Reference sql statements

Disassembly:
push ebx
push edi
lea edi, [esi + 0x11]
push edi
push str.SELECT_Name_FROM_QuestKillCount_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x415560
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x415560
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x40]
push edi
push eax
mov eax, dword [esi + 0x2c]
push ecx
mov ecx, dword [esi + 0x3c]
push edx
mov edx, dword [esi + 0x28]
push eax
mov eax, dword [esi + 0x38]
push ecx
mov ecx, dword [esi + 0x24]
push edx
mov edx, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
push eax
push ecx
push str.UPDATE_QuestKillCount_SET_QuestIndex_d_MonsterClass1_d_KillCount1_d_MonsterClass2_d_KillCount2_d_MonsterClass3_d_KillCount3_d_MonsterClass4_d_KillCount4_d_MonsterClass5_d_KillCount5_d_WHERE_Name_s
jmp 0x4155b0
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x40]
push eax
mov eax, dword [esi + 0x2c]
push ecx
mov ecx, dword [esi + 0x3c]
push edx
mov edx, dword [esi + 0x28]
push eax
mov eax, dword [esi + 0x38]
push ecx
mov ecx, dword [esi + 0x24]
push edx
mov edx, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
push eax
push ecx
push edi
push str.INSERT_INTO_QuestKillCount__Name_QuestIndex_MonsterClass1_KillCount1_MonsterClass2_KillCount2_MonsterClass3_KillCount3_MonsterClass4_KillCount4_MonsterClass5_KillCount5__VALUES___s__d__d__d__d__d__d__d__d__d__d__d_
mov ecx, 0x4ed8c0
call fcn.00414e40
mov edx, dword [0x4ed8cc]
add esp, 0x34
push edx
call ebx
mov eax, dword [0x4ed8cc]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop ebx
ret
Function at 0x415610
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov cx, word [eax + 4]
mov edx, dword [eax + 6]
mov word [ebp - 0x1ae], cx
mov ecx, dword [eax + 0xa]
mov dword [ebp - 0x1a8], ecx
movzx ecx, byte [eax + 0x10]
mov dword [ebp - 0x1ac], edx
movzx edx, word [eax + 0xe]
add eax, 0x11
mov byte [ebp - 0x1a2], cl
mov ecx, dword [eax + 4]
mov word [ebp - 0x1a4], dx
mov edx, dword [eax]
mov dword [ebp - 0x19d], ecx
movzx ecx, byte [eax + 0xa]
mov dword [ebp - 0x1a1], edx
movzx edx, word [eax + 8]
push eax
mov byte [ebp - 0x197], cl
push str.SELECT_QuestWorldList_FROM_QuestWorld_WHERE_Name_s
mov ecx, 0x4ed8c0
mov dword [ebp - 0x1b4], 0x10ae01c2
mov byte [ebp - 0x1b0], 0
mov word [ebp - 0x199], dx
call fcn.00414e40
add esp, 8
test al, al
je 0x4156f0
mov edx, dword [0x4ed8cc]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4156f0
push 0x190
lea eax, [ebp - 0x196]
push eax
push str.QuestWorldList
call fcn.00415200
mov ecx, dword [0x4ed8cc]
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x415724
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 0x190
lea edx, [ebp - 0x196]
push 0xff
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ebx
lea eax, [ebp - 0x1b4]
push eax
push ecx
mov ebx, 0x1ae
call fcn.00416c00
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00417d4a
mov esp, ebp
pop ebp
ret 8
Function at 0x415750
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
push edi
mov edi, eax
lea esi, [edi + 0x13]
push esi
push str.SELECT_Name_FROM_QuestWorld_WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
add esp, 8
test al, al
je 0x415802
mov eax, dword [0x4ed8cc]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x415802
mov ecx, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [0x4ed8cc]
push 0x5b6680
push 0
add edi, 0x1e
push edi
push 0
push 0x190
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push eax
mov dword [0x5b6680], 0x190
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push esi
push str.UPDATE_QuestWorld_SET_QuestWorldList__WHERE_Name_s
mov ecx, 0x4ed8c0
call fcn.00414e40
mov ecx, dword [0x4ed8cc]
add esp, 8
push ecx
call ebx
mov edx, dword [0x4ed8cc]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x4ed8cc]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [0x4ed8cc]
push 0x5b6680
push 0
add edi, 0x1e
push edi
push 0
push 0x190
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push edx
mov dword [0x5b6680], 0x190
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push esi
push str.INSERT_INTO_QuestWorld__Name_QuestWorldList__VALUES___s___
mov ecx, 0x4ed8c0
call fcn.00414e40
mov eax, dword [0x4ed8cc]
add esp, 8
push eax
call ebx
mov ecx, dword [0x4ed8cc]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
pop ebx
ret

Function at 0x415f30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x42296c]
push ebx
push esi
push edi
push 0x6a
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [0x4ed830]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
lea edx, [ebp - 0x104]
push str.ItemCount:__d
push edx
mov esi, eax
call ebx
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
push 0
push 0x401
push esi
call edi
push 0x5b7070
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x5b7098]
push 0x5b7070
mov dword [ebp - 0x108], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x108]
push edx
lea eax, [ebp - 0x104]
push str.QueueSize:__d
push eax
call ebx
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
push 1
push 0x401
push esi
call edi
mov ecx, 0x4ed878
call fcn.00414a30
push eax
lea edx, [ebp - 0x104]
push edx
call ebx
add esp, 8
lea eax, [ebp - 0x104]
push eax
push 2
push 0x401
push esi
call edi
push 0
push 3
push 0x401
push esi
call edi
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417d4a
mov esp, ebp
pop ebp
ret
Function at 0x4165f0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x74]
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
xor edi, edi
cmp eax, edi
je 0x416618
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x74]
push eax
call ebx
mov dword [esi + 0x74], edi
mov eax, dword [esi + 0x70]
cmp eax, edi
je 0x416625
push eax
call ebx
mov dword [esi + 0x70], edi
lea ecx, [esi + 0x38]
call fcn.004159b0
lea edi, [esi + 0x14]
mov dword [ebp - 4], 8
mov eax, dword [edi]
test eax, eax
je 0x416651
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [edi]
push ecx
call ebx
mov dword [edi], 0
add edi, 4
dec dword [ebp - 4]
jne 0x416637
mov eax, dword [esi + 0x10]
test eax, eax
je 0x416676
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x10]
push edx
call ebx
mov dword [esi + 0x10], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x416687
push eax
call ebx
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x41669d
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x421018]
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 [0x5b7034], eax
cmp eax, 0xffffffff
jne 0x416702
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__WSASocket___failed_with_error:__d
push 1
call fcn.004174d0
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417d4a
mov esp, ebp
pop ebp
ret
mov eax, 2
push 0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
movzx ecx, word [0x5b703c]
push ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x14]
mov word [ebp - 0x12], ax
mov eax, dword [0x5b7034]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x416765
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__bind___failed_with_error:__d
push 1
call fcn.004174d0
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417d4a
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x5b7034]
push 5
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x41679f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__listen___failed_with_error:__d
push 1
call fcn.004174d0
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417d4a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.00417d4a
mov esp, ebp
pop ebp
ret
Function at 0x4167b0
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 0x4167de
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketTCP__socket___failed_with_error:__d
push 1
call fcn.004174d0
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 [0x5b7038], eax
test eax, eax
jne 0x416815
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateIoCompletionPort___failed_with_error:__d
push 1
call fcn.004174d0
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 0x416820
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0x5b7030
push 0x417110
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x5b7040], eax
test eax, eax
jne 0x41685a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateThread___failed_with_error:__d
push 1
call fcn.004174d0
add esp, 0xc
xor al, al
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x416880
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__SetThreadPriority___failed_with_error:__d
push 1
call fcn.004174d0
add esp, 0xc
xor al, al
ret
mov al, 1
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
cmp eax, 8
jbe 0x4168ad
mov eax, 8
push ebx
push esi
push edi
xor edi, edi
mov dword [0x5b7064], eax
test eax, eax
je 0x4168f9
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, 0x5b7044
push 0
push 0
push 0x5b7030
push 0x417280
push 0
push 0
call ebx
mov dword [esi], eax
test eax, eax
je 0x416902
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x416921
inc edi
add esi, 4
cmp edi, dword [0x5b7064]
jb 0x4168c6
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._SocketTCP__CreateThread___failed_with_error:__d
push 1
call fcn.004174d0
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__SetThreadPriority___failed_with_error:__d
push 1
call fcn.004174d0
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416940
Capabilities:
Create thread

Disassembly:
push 0
push 0x800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x5b70a0], eax
test eax, eax
jne 0x416973
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateSemaphore___failed_with_error:__d
push 1
call fcn.004174d0
add esp, 0xc
xor al, al
ret
push 0
push 0
push 0x5b7030
push 0x417380
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x5b70a4], eax
test eax, eax
jne 0x4169ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__CreateThread___failed_with_error:__d
push 1
call fcn.004174d0
add esp, 0xc
xor al, al
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x4169d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketTCP__SetThreadPriority___failed_with_error:__d
push 1
call fcn.004174d0
add esp, 0xc
xor al, al
ret
mov al, 1
ret
Function at 0x416c00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x5b70ac
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
test esi, esi
js 0x416c23
xor eax, eax
cmp esi, 0x14
setl al
test eax, eax
jne 0x416c37
push 0x5b70ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, esi
imul edi, edi, 0x68
add edi, 0x5b6810
mov eax, dword [edi + 4]
test eax, eax
js 0x416d6b
xor ecx, ecx
cmp eax, 0x14
setl cl
mov eax, ecx
test eax, eax
je 0x416d6b
cmp dword [edi + 8], 0
je 0x416d6b
cmp dword [edi + 0x1c], 0xffffffff
je 0x416d6b
cmp ebx, 0x2000
jle 0x416ca2
push ebx
push esi
push str._SocketTCP__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.004174d0
add esp, 0x10
push 0x5b70ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov esi, dword [edi + 0x24]
cmp dword [esi + 0x20], 0
jle 0x416d07
mov eax, dword [esi + 0x42028]
lea ecx, [eax + ebx]
cmp ecx, 0x40000
jle 0x416cd7
mov esi, dword [ebp + 8]
push ecx
push esi
push str._SocketTCP__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.004174d0
add esp, 0x10
mov eax, esi
jmp 0x416d61
mov edx, dword [ebp + 0xc]
push ebx
push edx
lea eax, [eax + esi + 0x2028]
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [esi + 0x42028], ebx
push 0x5b70ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
push ebx
lea eax, [esi + 0x24]
push ecx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
xor ecx, ecx
push ecx
push esi
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [esi + 0x24]
mov dword [esi + 0x18], eax
lea eax, [esi + 0x14]
push 1
mov dword [eax], ebx
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], ebx
mov dword [esi + 0x2024], ecx
push eax
mov eax, dword [edi + 0x1c]
push eax
mov dword [ebp - 4], ecx
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x416cf2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x416cf2
mov eax, dword [ebp + 8]
mov ecx, 0x5b7030
call fcn.00416d80
push 0x5b70ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x416e20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 8]
add edi, 0x7c
push edi
mov esi, eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
js 0x416e5b
xor eax, eax
cmp ebx, 0x14
setl al
test eax, eax
je 0x416e5b
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x416e6a
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00416d80
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
add dword [esi + 0x2024], eax
mov eax, dword [ebp + 8]
push ebx
lea edi, [esi + 0x24]
push eax
call fcn.004169e0
test al, al
jne 0x416e9d
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00416d80
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x2024]
lea edx, [eax + esi + 0x24]
mov dword [esi + 0x18], edx
mov edx, 0x2000
sub edx, eax
xor eax, eax
push eax
mov dword [esi + 0x1c], eax
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, ebx
lea ecx, [esi + 0x14]
imul eax, eax, 0x68
mov dword [ecx], edx
lea edx, [ebp - 0xc]
push edx
push 1
push ecx
mov ecx, dword [eax + 0x5b682c]
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x416f22
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x416f22
call esi
push eax
push str._SocketTCP__WSARecv___failed_with_error:__d
push 1
call fcn.004174d0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov eax, ebx
call fcn.00416d80
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8