joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416650
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx ecx, word [eax + 4]
mov edx, dword [eax + 6]
mov word [ebp - 0x1c], cx
mov ecx, dword [eax + 0xa]
push ebx
mov dword [ebp - 0x16], ecx
mov cl, byte [eax + 0x10]
mov dword [ebp - 0x1a], edx
mov dx, word [eax + 0xe]
push esi
lea esi, [eax + 0x11]
mov eax, dword [esi + 4]
mov byte [ebp - 0x10], cl
movzx ecx, word [esi + 8]
mov word [ebp - 0x12], dx
mov edx, dword [esi]
mov dword [ebp - 0xf], edx
mov dl, byte [esi + 0xa]
mov word [ebp - 7], cx
push esi
push str.SELECT_Status_FROM_EventLeoTheHelper_WHERE_Name_s
mov ecx, 0x424ee0
mov dword [ebp - 0x20], 0xe1ec1
mov dword [ebp - 0xb], eax
mov byte [ebp - 5], dl
call fcn.00417790
add esp, 8
test al, al
je 0x41670c
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41670c
push str.Status
call fcn.00417950
cmp eax, 0xffffffff
jne 0x4166d9
or eax, eax
jmp 0x4166eb
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov ecx, dword [0x424eec]
push ecx
mov byte [ebp - 4], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x416757
mov eax, dword [0x424eec]
push edi
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call edi
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push ecx
call ebx
push esi
push str.INSERT_INTO_EventLeoTheHelper__Name_Status__VALUES___s_0_
mov ecx, 0x424ee0
call fcn.00417790
mov edx, dword [0x424eec]
add esp, 8
push edx
call edi
mov eax, dword [0x424eec]
push 2
push eax
call ebx
mov byte [ebp - 4], 0
pop edi
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
push edx
mov ebx, 0x1e
call fcn.004198e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x416780
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx ecx, word [eax + 4]
mov edx, dword [eax + 6]
mov word [ebp - 0x1c], cx
mov ecx, dword [eax + 0xa]
push ebx
mov dword [ebp - 0x16], ecx
mov cl, byte [eax + 0x10]
mov dword [ebp - 0x1a], edx
mov dx, word [eax + 0xe]
push esi
lea esi, [eax + 0x11]
mov eax, dword [esi + 4]
mov byte [ebp - 0x10], cl
movzx ecx, word [esi + 8]
mov word [ebp - 0x12], dx
mov edx, dword [esi]
mov dword [ebp - 0xf], edx
mov dl, byte [esi + 0xa]
mov word [ebp - 7], cx
push esi
push str.SELECT_Status_FROM_EventSantaClaus_WHERE_Name_s
mov ecx, 0x424ee0
mov dword [ebp - 0x20], 0x10e1ec1
mov dword [ebp - 0xb], eax
mov byte [ebp - 5], dl
call fcn.00417790
add esp, 8
test al, al
je 0x41683c
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41683c
push str.Status
call fcn.00417950
cmp eax, 0xffffffff
jne 0x416809
or eax, eax
jmp 0x41681b
shl eax, 0xd
add eax, 0x425b0e
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov ecx, dword [0x424eec]
push ecx
mov byte [ebp - 4], al
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x416887
mov eax, dword [0x424eec]
push edi
mov edi, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call edi
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLFreeStmt]
push 2
push ecx
call ebx
push esi
push str.INSERT_INTO_EventSantaClaus__Name_Status__VALUES___s_0_
mov ecx, 0x424ee0
call fcn.00417790
mov edx, dword [0x424eec]
add esp, 8
push edx
call edi
mov eax, dword [0x424eec]
push 2
push eax
call ebx
mov byte [ebp - 4], 0
pop edi
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
push edx
mov ebx, 0x1e
call fcn.004198e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4168b0
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
lea esi, [edi + 0x11]
push esi
push str.SELECT_Name_FROM_EventLeoTheHelper_WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x41692f
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41692f
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, byte [edi + 0x1c]
push esi
push eax
push str.UPDATE_EventLeoTheHelper_SET_Status_d_WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
mov ecx, dword [0x424eec]
add esp, 0xc
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret
mov eax, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx edx, byte [edi + 0x1c]
push edx
push esi
push str.INSERT_INTO_EventLeoTheHelper__Name_Status__VALUES___s__d_
mov ecx, 0x424ee0
call fcn.00417790
mov eax, dword [0x424eec]
add esp, 0xc
push eax
call ebx
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret
Function at 0x416980
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
lea esi, [edi + 0x11]
push esi
push str.SELECT_Name_FROM_EventSantaClaus_WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x4169ff
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4169ff
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx eax, byte [edi + 0x1c]
push esi
push eax
push str.UPDATE_EventSantaClaus_SET_Status_d_WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
mov ecx, dword [0x424eec]
add esp, 0xc
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret
mov eax, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
movzx edx, byte [edi + 0x1c]
push edx
push esi
push str.INSERT_INTO_EventSantaClaus__Name_Status__VALUES___s__d_
mov ecx, 0x424ee0
call fcn.00417790
mov eax, dword [0x424eec]
add esp, 0xc
push eax
call ebx
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret
Function at 0x417de0
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, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x417e60
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x417e60
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x424eec]
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 0x417eb0
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x424eec]
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, 0x424ee0
call fcn.00417790
mov edx, dword [0x424eec]
add esp, 0x34
push edx
call ebx
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop ebx
ret
Function at 0x417f10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x424018]
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]
push ebx
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, 0x424ee0
mov dword [ebp - 0x1b4], 0x10ae01c2
mov byte [ebp - 0x1b0], 0
mov word [ebp - 0x199], dx
call fcn.00417790
add esp, 8
test al, al
je 0x41801d
mov edx, dword [0x424eec]
push edx
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41801d
push str.QuestWorldList
call fcn.00417950
cmp eax, 0xffffffff
jne 0x417fe4
push 0x190
lea eax, [ebp - 0x196]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
jmp 0x417fff
shl eax, 0xd
push edi
add eax, 0x425b0e
push eax
mov ebx, 0x190
lea edi, [ebp - 0x196]
call fcn.00417ab0
pop edi
mov ecx, dword [0x424eec]
push ecx
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
jmp 0x418051
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLCloseCursor]
mov ecx, dword [0x424eec]
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]
lea eax, [ebp - 0x1b4]
push eax
push ecx
mov ebx, 0x1ae
call fcn.004198e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret 8
Function at 0x418080
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, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x418132
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x418132
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [0x424eec]
push 0x4edca0
push 0
add edi, 0x1e
push edi
push 0
push 0x190
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push eax
mov dword [0x4edca0], 0x190
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push esi
push str.UPDATE_QuestWorld_SET_QuestWorldList__WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
mov ecx, dword [0x424eec]
add esp, 8
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
pop ebx
ret
mov eax, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push eax
call ebx
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov edx, dword [0x424eec]
push 0x4edca0
push 0
add edi, 0x1e
push edi
push 0
push 0x190
push 0xfffffffffffffffd
push 0xfffffffffffffffe
push 1
push 1
push edx
mov dword [0x4edca0], 0x190
call dword [sym.imp.ODBC32.dll_SQLBindParameter]
push esi
push str.INSERT_INTO_QuestWorld__Name_QuestWorldList__VALUES___s___
mov ecx, 0x424ee0
call fcn.00417790
mov eax, dword [0x424eec]
add esp, 8
push eax
call ebx
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop edi
pop esi
pop ebx
ret

Function at 0x418640
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
lea esi, [edi + 3]
push esi
push str.SELECT_Name_FROM_RankingKingGuild_WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x4186be
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x4186be
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [edi + 0xc]
push esi
push eax
push eax
push str.UPDATE_RankingKingGuild_SET_ScoreScore_d_Score_semanalScore_semanal_d_WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
mov eax, dword [0x424eec]
add esp, 0x10
push eax
call ebx
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret
mov edx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
call ebx
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [edi + 0xc]
push eax
push eax
push esi
push str.INSERT_INTO_RankingKingGuild__Name_Score_Score_semanal__VALUES___s__d__d_
mov ecx, 0x424ee0
call fcn.00417790
mov ecx, dword [0x424eec]
add esp, 0x10
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret
Function at 0x418710
Capabilities:
Reference sql statements

Disassembly:
push ebx
push esi
lea esi, [edi + 0x11]
push esi
push str.SELECT_Name_FROM_RankingKingPlayer_WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
add esp, 8
test al, al
je 0x41878e
mov eax, dword [0x424eec]
push eax
call dword [sym.imp.ODBC32.dll_SQLFetch]
cmp ax, 0x64
je 0x41878e
mov ecx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [edi + 0x1c]
push esi
push eax
push eax
push str.UPDATE_RankingKingPlayer_SET_ScoreScore_d_Score_semanalScore_semanal_d_WHERE_Name_s
mov ecx, 0x424ee0
call fcn.00417790
mov eax, dword [0x424eec]
add esp, 0x10
push eax
call ebx
mov ecx, dword [0x424eec]
push 2
push ecx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret
mov edx, dword [0x424eec]
mov ebx, dword [sym.imp.ODBC32.dll_SQLCloseCursor]
push edx
call ebx
mov eax, dword [0x424eec]
push 2
push eax
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
mov eax, dword [edi + 0x1c]
push eax
push eax
push esi
push str.INSERT_INTO_RankingKingPlayer__Name_Score_Score_semanal__VALUES___s__d__d_
mov ecx, 0x424ee0
call fcn.00417790
mov ecx, dword [0x424eec]
add esp, 0x10
push ecx
call ebx
mov edx, dword [0x424eec]
push 2
push edx
call dword [sym.imp.ODBC32.dll_SQLFreeStmt]
pop esi
pop ebx
ret

Function at 0x4192d0
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 0x4192f8
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 0x419305
push eax
call ebx
mov dword [esi + 0x70], edi
lea ecx, [esi + 0x38]
call fcn.004182e0
lea edi, [esi + 0x14]
mov dword [ebp - 4], 8
mov eax, dword [edi]
test eax, eax
je 0x419331
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 0x419317
mov eax, dword [esi + 0x10]
test eax, eax
je 0x419356
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 0x419367
push eax
call ebx
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x41937d
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 0x419390
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x424018]
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 [0x4ef02c], eax
cmp eax, 0xffffffff
jne 0x4193e2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__WSASocket___failed_with_error:__d
push 1
call fcn.0041a270
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ae5c
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 [0x4ef034]
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 [0x4ef02c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x419445
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__bind___failed_with_error:__d
push 1
call fcn.0041a270
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4ef02c]
push 5
push ecx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x41947f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__listen___failed_with_error:__d
push 1
call fcn.0041a270
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.0041ae5c
mov esp, ebp
pop ebp
ret

Function at 0x419490
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 0x4194be
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__socket___failed_with_error:__d
push 1
call fcn.0041a270
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 [0x4ef030], eax
test eax, eax
jne 0x4194f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateIoCompletionPort___failed_with_error:__d
push 1
call fcn.0041a270
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 0x419500
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0x4ef028
push 0x419e30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4ef038], eax
test eax, eax
jne 0x41953a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateThread___failed_with_error:__d
push 1
call fcn.0041a270
add esp, 0xc
xor al, al
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x419560
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__SetThreadPriority___failed_with_error:__d
push 1
call fcn.0041a270
add esp, 0xc
xor al, al
ret
mov al, 1
ret
Function at 0x419570
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 0x41958d
mov eax, 8
push ebx
push esi
push edi
xor edi, edi
mov dword [0x4ef05c], eax
test eax, eax
je 0x4195d9
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, 0x4ef03c
push 0
push 0
push 0x4ef028
push 0x419fc0
push 0
push 0
call ebx
mov dword [esi], eax
test eax, eax
je 0x4195e2
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x419601
inc edi
add esi, 4
cmp edi, dword [0x4ef05c]
jb 0x4195a6
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__CreateThread___failed_with_error:__d
push 1
call fcn.0041a270
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._SocketManager__SetThreadPriority___failed_with_error:__d
push 1
call fcn.0041a270
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419620
Capabilities:
Create thread

Disassembly:
push 0
push 0x800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x4ef098], eax
test eax, eax
jne 0x419653
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateSemaphore___failed_with_error:__d
push 1
call fcn.0041a270
add esp, 0xc
xor al, al
ret
push 0
push 0
push 0x4ef028
push 0x41a0b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4ef09c], eax
test eax, eax
jne 0x41968d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateThread___failed_with_error:__d
push 1
call fcn.0041a270
add esp, 0xc
xor al, al
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x4196b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__SetThreadPriority___failed_with_error:__d
push 1
call fcn.0041a270
add esp, 0xc
xor al, al
ret
mov al, 1
ret
Function at 0x4198e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x4ef0a4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
test esi, esi
js 0x419903
xor eax, eax
cmp esi, 0x14
setl al
test eax, eax
jne 0x419917
push 0x4ef0a4
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, 0x4ee808
mov eax, dword [edi + 4]
test eax, eax
js 0x419a5f
xor ecx, ecx
cmp eax, 0x14
setl cl
mov eax, ecx
test eax, eax
je 0x419a5f
cmp dword [edi + 8], 0
je 0x419a5f
cmp dword [edi + 0x1c], 0xffffffff
je 0x419a5f
cmp ebx, 0x2000
jle 0x419982
push ebx
push esi
push str._SocketManager__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.0041a270
add esp, 0x10
push 0x4ef0a4
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 0x4199e7
mov eax, dword [esi + 0x42028]
lea ecx, [eax + ebx]
cmp ecx, 0x40000
jle 0x4199b7
mov esi, dword [ebp + 8]
push ecx
push esi
push str._SocketManager__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.0041a270
add esp, 0x10
mov eax, esi
jmp 0x419a55
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 0x4ef0a4
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 0x4199d2
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x4199d2
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.0041a270
mov eax, dword [ebp + 8]
add esp, 0xc
mov ecx, 0x4ef028
call fcn.00419a80
push 0x4ef0a4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8