joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456110
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov ecx, dword [esi]
cmp ecx, 0xffffffff
je 0x456157
lea eax, [esp + 0x28]
mov dword [esp + 0x30], 0
push eax
xorps xmm0, xmm0
mov byte [esp + 0x13], 0
push 1
lea edx, [esp + 0x17]
movq qword [esp + 0x30], xmm0
call fcn.004113a0
add esp, 8
mov dword [esi], 0xffffffff
mov eax, dword [ebx + 4]
add eax, 0x18
lock inc dword [eax]
mov ecx, dword [ebp + 0x24]
mov esi, dword [ebp + 0x28]
test ecx, ecx
je 0x456185
xor eax, eax
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x456185
mov ecx, dword [ebx + 4]
push 0
push 0x3e3
push esi
call fcn.00410d30
push 1
push 0
push 0
push dword [ebp + 0x18]
xorps xmm0, xmm0
mov dword [esp + 0x40], 0
push dword [ebp + 0x14]
movq qword [esp + 0x3c], xmm0
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
lea ecx, [esp + 0x28]
cmp edi, 0xffffffff
sete dl
call fcn.00411300
cmp edi, 0xffffffff
jne 0x4561c5
or edi, edi
jmp 0x4561e5
cmp dword [ebp + 0x10], 0x17
jne 0x4561e5
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x1b
push 0x29
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
cmp ecx, 0xffffffff
je 0x45629b
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
push ecx
movq qword [esp + 0x20], xmm0
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, eax
lea ecx, [esp + 0x1c]
test esi, esi
setne dl
call fcn.00411300
test esi, esi
je 0x456295
push ecx
push 0x2733
lea ecx, [esp + 0x3c]
call fcn.00414550
lea edx, [esp + 0x34]
lea ecx, [esp + 0x1c]
call fcn.0040f9b0
test al, al
jne 0x456263
push ecx
push 0x4d5
lea ecx, [esp + 0x3c]
call fcn.00414550
lea edx, [esp + 0x34]
lea ecx, [esp + 0x1c]
call fcn.0040f9b0
test al, al
je 0x456295
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push 0x8004667e
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
lea ecx, [esp + 0x1c]
setne dl
call fcn.00411300
mov esi, dword [ebp + 0x28]
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
cmp edi, 0xffffffff
jne 0x4562ba
push ecx
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00455ad0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
push esi
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
mov eax, dword [ebp + 0x20]
push eax
push eax
push 0
push dword [ebp + 0x1c]
push edi
push dword [ebp + 8]
call dword [sym.imp.MSWSOCK.dll_AcceptEx]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x456306
cmp eax, 0x3e5
je 0x456306
mov ecx, dword [ebx + 4]
push esi
push eax
mov eax, dword [ebp + 0x28]
push eax
call fcn.00410d30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebx + 4]
push eax
call fcn.00410cc0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x4586b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a056d
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x62700c]
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
cmp dword [ecx + 0x10], 0
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
jne 0x4586f6
push eax
push esi
call fcn.00458870
add esp, 8
jmp 0x458821
sub esp, 0x20
mov eax, esp
sub esp, 8
push eax
call fcn.00414410
lea ecx, [ebp - 0x2c]
call fcn.00414370
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x458731
push esi
lea ecx, [ebp - 0x2c]
push fcn.00458870
push ecx
call eax
add esp, 0xc
jmp 0x45880c
mov eax, dword [esi + 8]
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x68], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x64], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
movq xmm0, qword [esi + 0x18]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x60], eax
mov eax, dword [esi + 0x14]
mov esi, dword [esi + 0x20]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x5c], eax
movq qword [ebp - 0x48], xmm0
movq qword [ebp - 0x58], xmm0
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 1
push dword [0x6325ac]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45879c
mov ecx, dword [eax + 4]
jmp 0x45879e
xor ecx, ecx
push ecx
push dword [ebp - 0x30]
mov edx, 0x38
call fcn.004182a0
mov ecx, dword [ebp - 0x38]
movq xmm0, qword [ebp - 0x48]
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0x1c], ecx
movq qword [eax + 0x20], xmm0
mov dword [eax + 0x28], esi
mov dword [eax], 0x458b20
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
call eax
add esp, 0x10
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x45880c
push 0
push eax
mov eax, dword [eax]
call eax
add esp, 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 4
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
call eax
add esp, 4
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.0045ad9e
mov esp, ebp
pop ebp
ret 8
Function at 0x458970
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
test esi, esi
je 0x4589b6
mov esi, dword [esi + 0x18]
test esi, esi
je 0x4589af
push ebx
or ebx, 0xffffffff
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x4589ae
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], ebx
cmp ebx, 1
jne 0x4589ae
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop ebx
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x4589ff
push dword [0x6325ac]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4589ef
mov edx, dword [eax + 4]
test edx, edx
je 0x4589ef
mov eax, 4
nop dword [eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x458a02
inc eax
cmp eax, 6
jl 0x4589e0
push esi
call fcn.0045b42d
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x38]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x458a20
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
cmp dword [edi + 8], 0
je 0x458a31
mov dword [edi + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x458a73
push dword [0x6325ac]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x458a63
mov edx, dword [eax + 4]
test edx, edx
je 0x458a63
mov eax, 4
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
je 0x458a76
inc eax
cmp eax, 6
jl 0x458a54
push esi
call fcn.0045b42d
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
mov al, byte [esi + 0x30]
mov byte [esi], al
mov dword [ecx], esi
mov dword [edi + 4], 0
pop edi
pop esi
ret

Function at 0x45b93f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45b97e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45b97e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45b97e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x45b97e
cmp dword [ecx + 0x74], 0xe
jbe 0x45b97e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x46d060
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1b5f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x62700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
mov al, byte [ebp + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov byte [esi + 0x24], al
mov dword [ebp - 4], 0
mov dword [esi], vtable.ConditionDamage.0
push 0x14
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
call fcn.0045afb5
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x48], eax
mov eax, esi
mov dword [esi + 0x40], 0x7d0
mov word [esi + 0x28], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x44], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x475e20
Capabilities:
Get thread local storage value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a24de
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x62700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
cmp dword [esi + 0x3ccc], 0
je 0x475e82
push 0x128
push str.C:UsersGabrielDocumentsGit3777_srcconnection.cpp
push 0x5bebc0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
push 0
push 0x476040
mov edx, esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.004147e0
mov edi, eax
add esp, 8
mov eax, dword [esi + 0x3cb0]
mov dword [ebp - 0x1c], eax
push dword [0x6325ac]
mov esi, dword [eax + 8]
lea ecx, [esi + 0x14]
neg esi
sbb esi, esi
and esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x475ecf
cmp dword [eax], esi
je 0x475f39
mov eax, dword [eax + 8]
test eax, eax
jne 0x475ec4
push edi
push 0x38
call fcn.0040fd50
add esp, 8
mov dword [eax + 0x14], 0
push ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x18], 0x416210
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x1c], 0
movups xmm0, xmmword [edi]
push eax
movups xmmword [eax + 0x20], xmm0
mov ecx, dword [ecx + 8]
call fcn.00410510
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
cmp dword [eax + 4], 0
je 0x475ecf
nop
push edi
push edi
mov byte [ebp - 4], 1
call fcn.00416150
add esp, 8
nop
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4b3b50
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7a5c
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x62700c]
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, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
call fcn.00488470
push ecx
lea ecx, [ebp - 0xd8]
mov ebx, eax
call fcn.0041c300
push esi
push edi
push 2
mov edx, str.SELECT__id__FROM__bans__WHERE__type__
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc8]
call fcn.004064c0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov edx, 0x5d5c5c
mov ecx, eax
call fcn.004064c0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
mov edx, 0x5d5d1c
mov ecx, eax
call fcn.004064c0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov edx, 0x5d58cc
mov ecx, eax
call fcn.004064c0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xd8]
call fcn.00404ef0
mov byte [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebx]
push eax
call dword [edx + 0x1c]
mov esi, eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
test esi, esi
sete bl
cmp ecx, 0x10
jb 0x4b3c4a
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b3c40
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b3c40
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test bl, bl
je 0x4b3c64
xor bl, bl
jmp 0x4b3c6d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov bl, 1
lea ecx, [ebp - 0xd8]
call fcn.0041c440
mov al, bl
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.0045ad9e
mov esp, ebp
pop ebp
ret 8
Function at 0x4b40e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7b4a
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x62700c]
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
call fcn.00488470
push ecx
lea ecx, [ebp - 0xf0]
mov esi, eax
call fcn.0041c300
push dword [ebp + 8]
mov edx, 0x5d7830
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0xe0]
call fcn.004064c0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4b416b
push eax
push ecx
mov edx, str._AND__param__
lea ecx, [ebp - 0xe0]
call fcn.004064c0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
push 4
push ecx
mov edx, str._AND__type__
lea ecx, [ebp - 0xe0]
call fcn.004064c0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov edx, str._AND__active___1
mov ecx, eax
call fcn.004064c0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xf0]
call fcn.00404ef0
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [esi]
push eax
call dword [edx + 0x1c]
mov esi, eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
test esi, esi
sete bl
cmp ecx, 0x10
jb 0x4b41f1
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b41e7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b41e7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
test bl, bl
je 0x4b420b
xor edi, edi
jmp 0x4b4289
mov eax, dword [0x5d78cc]
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x28], eax
mov al, byte [0x5d78d0]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 5
mov byte [ebp - 0x24], al
mov byte [ebp - 0x23], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 0
mov edi, eax
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4b4282
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b4278
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b4278
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
lea ecx, [ebp - 0xf0]
call fcn.0041c440
mov eax, edi
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.0045ad9e
mov esp, ebp
pop ebp
ret 8
Function at 0x4b6b70
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a7f91
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x62700c]
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 ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x60], ebx
call fcn.00488470
push ecx
lea ecx, [ebp - 0x118]
mov edi, eax
call fcn.0041c300
push esi
push ecx
mov edx, str.SELECT__motd__FROM__guilds__WHERE__id__
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x108]
call fcn.004064c0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
mov edx, 0x5d8940
mov ecx, eax
call fcn.004064c0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x118]
call fcn.00404ef0
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [edi]
push eax
call dword [edx + 0x1c]
mov esi, eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
test esi, esi
sete al
mov byte [ebp - 0x59], al
cmp ecx, 0x10
jb 0x4b6c4c
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b6c3f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b6c3f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
mov al, byte [ebp - 0x59]
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
test al, al
je 0x4b6c96
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
jmp 0x4b6d28
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x28], 0x64746f6d
mov byte [ebp - 0x24], 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
mov eax, dword [esi]
push ecx
lea ecx, [ebp - 0x58]
push ecx
mov ecx, esi
call dword [eax + 8]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4b6cfc
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b6cf2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b6cf2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call dword [eax + 0x10]
lea eax, [ebp - 0x58]
mov ecx, ebx
push eax
call fcn.00405c30
lea ecx, [ebp - 0x58]
call fcn.00405b30
lea ecx, [ebp - 0x118]
call fcn.0041c440
mov eax, ebx
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.0045ad9e
mov esp, ebp
pop ebp
ret 8
Function at 0x4b7740
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a811a
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x62700c]
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, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
call fcn.00488470
push ecx
lea ecx, [ebp - 0xf0]
mov ebx, eax
call fcn.0041c300
push esi
push edi
push ecx
mov edx, 0x5d8034
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xe0]
call fcn.004064c0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
push ecx
mov edx, 0x5d8014
mov ecx, eax
call fcn.004064c0
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
mov edx, 0x5d8024
mov ecx, eax
call fcn.004064c0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xf0]
call fcn.00404ef0
mov byte [ebp - 4], 1
mov ecx, ebx
mov edx, dword [ebx]
push eax
call dword [edx + 0x1c]
mov esi, eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
test esi, esi
sete bl
cmp ecx, 0x10
jb 0x4b782c
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b7822
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b7822
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
test bl, bl
je 0x4b7846
xor edi, edi
jmp 0x4b78b9
mov dword [ebp - 0x28], 0
mov eax, 0x6469
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 2
mov word [ebp - 0x28], ax
mov byte [ebp - 0x26], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 0
mov edi, eax
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4b78b2
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b78a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4b78a8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x10]
lea ecx, [ebp - 0xf0]
call fcn.0041c440
mov eax, edi
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.0045ad9e
mov esp, ebp
pop ebp
ret 8