joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a6425
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
mov edi, ecx
je 0x4a65a7
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 0x100
lea eax, [edi + 0x1e8]
push 1
push eax
call esi
push ebx
push 0x40
lea eax, [edi + 0x1a8]
push 1
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x2c]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x28]
push 4
push eax
call esi
add esp, 0x40
mov ecx, edi
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.004a628c
push ebx
push 1
lea eax, [ebp - 0xc]
push 4
push eax
call esi
mov eax, dword [ebp - 0xc]
push ebx
mov dword [edi + 0x2e8], eax
push 1
lea eax, [ebp - 0x34]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x30]
push 4
push eax
call esi
mov eax, dword [edi]
add esp, 0x30
mov ecx, edi
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call dword [eax + 0x20]
push ebx
push 1
lea eax, [ebp - 8]
push 4
push eax
call esi
mov eax, dword [ebp - 8]
push ebx
mov dword [edi + 0x1a4], eax
push 1
lea eax, [ebp - 0x3c]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x38]
push 4
push eax
call esi
add esp, 0x30
mov ecx, edi
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call fcn.004a640e
push ebx
push 1
lea eax, [ebp - 8]
push 4
push eax
call esi
mov eax, dword [ebp - 8]
add esp, 0x10
mov ecx, edi
mov dword [edi + 0x2ec], eax
call fcn.004a62bb
mov ecx, edi
call fcn.004a6334
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, edi
call dword [eax + 0x1c]
and dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0
jle 0x4a65a7
and dword [ebp + 8], 0
cmp dword [ebp - 0x24], 0
jle 0x4a659c
push dword [ebp - 4]
mov ecx, edi
push dword [ebp + 8]
call fcn.004a63c1
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4a6591
push ebx
push 1
lea eax, [ebp - 0x18]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x10]
push 4
push eax
call esi
push ebx
push 1
lea eax, [ebp - 0x1c]
push 4
push eax
call esi
mov eax, dword [ebp - 0x14]
mov cx, word [ebp - 0x10]
add esp, 0x30
mov word [eax + 4], cx
mov cx, word [ebp - 0x18]
mov word [eax + 6], cx
mov cx, word [ebp - 0x1c]
mov word [eax + 8], cx
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x24]
jl 0x4a653e
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x20]
jl 0x4a6534
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4a75bc
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
je 0x4a761c
push ebx
push ebp
push edi
lea ebp, [esi + 0x2c]
push dword [esp + 0x14]
push 0x40
push 1
pop ebx
push ebx
push ebp
call dword [sym.imp.MSVCRT.dll_fread]
push dword [esp + 0x24]
lea edi, [esi + 0x14]
push ebx
push 8
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x20
mov ecx, esi
push 0
push ebx
push ebp
push dword [edi + 4]
push dword [edi]
call fcn.004a7508
mov ecx, dword [esi + 0x7c]
push 0xffffffffffffffff
mov eax, dword [ecx]
call dword [eax + 0x68]
and dword [esi + 0x20], 0
and dword [esi + 0x24], 0
pop edi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x28], ebx
pop ebp
pop ebx
pop esi
ret 4
Function at 0x4a9302
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x53cc8a
call fcn.0050bac0
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x4a93e7
push 0x5821a8
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp + 8], eax
test eax, eax
pop ecx
jne 0x4a934c
push 0x64
push str.D:CQ2ClientCn_15.3.53DGameMap2DMapTerrainObj.cpp
push edi
push str.ERROR:_file__s_not_found_at__s___d
call fcn.005079e3
add esp, 0x10
jmp 0x4a93e7
push ebx
mov ecx, esi
call fcn.004a93f7
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 1
push 4
push eax
call dword [sym.imp.MSVCRT.dll_fread]
lea eax, [esi + 0x1c0]
push edi
push eax
call sub.MSVCRT.dll_strcpy
xor ebx, ebx
add esp, 0x18
cmp dword [ebp - 0x10], ebx
jle 0x4a93bc
push 0x358
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x14], eax
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x4a939c
mov ecx, eax
call fcn.004a5f68
mov edi, eax
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4a93ae
push dword [ebp + 8]
mov ecx, edi
call fcn.004a6425
push edi
mov ecx, esi
call fcn.004a9295
inc ebx
cmp ebx, dword [ebp - 0x10]
jl 0x4a937c
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.004e65f8
lea ecx, [edi + 0xc4]
mov ebx, eax
call fcn.004e65f8
mov edx, dword [esi]
push eax
push ebx
mov ecx, esi
call dword [edx + 0x18]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4a957c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push edi
mov edi, ecx
je 0x4a95ed
push ebx
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_fread]
lea ebx, [edi + 0x1c0]
push 0x104
push 1
push ebx
call esi
push dword [ebp + 8]
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push 1
push 4
push eax
call esi
push dword [ebp + 8]
lea eax, [ebp - 8]
push 1
push 4
push eax
call esi
add esp, 0x30
lea ecx, [edi + 0xc]
push dword [ebp - 4]
call fcn.004e5f34
push dword [ebp - 8]
lea ecx, [edi + 0xd0]
call fcn.004e5f34
push ebx
mov ecx, edi
call fcn.004a9302
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x4b28a6
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ecx
test ebx, ebx
je 0x4b296c
push ebp
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 0x104
push 1
pop ebp
lea eax, [esi + 0x194]
push ebp
push eax
call edi
push ebx
push 0x80
lea eax, [esi + 0x298]
push ebp
push eax
call edi
and dword [esp + 0x38], 0
and dword [esp + 0x30], 0
push ebx
push ebp
lea eax, [esp + 0x40]
push 4
push eax
call edi
add esp, 0x30
lea ecx, [esi + 0xc]
push dword [esp + 0x18]
call fcn.004e5f34
push ebx
push ebp
lea eax, [esp + 0x18]
push 4
push eax
call edi
add esp, 0x10
lea ecx, [esi + 0xd0]
push dword [esp + 0x10]
call fcn.004e5f34
push ebx
push ebp
lea eax, [esi + 0x320]
push 4
push eax
call edi
push ebx
push ebp
lea eax, [esi + 0x324]
push 4
push eax
call edi
push ebx
push ebp
lea eax, [esi + 0x318]
push 4
push eax
call edi
push ebx
push ebp
lea eax, [esi + 0x31c]
push 4
push eax
call edi
add esp, 0x40
add esi, 0x32c
push ebx
push ebp
push 4
push esi
call edi
add esp, 0x10
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 4

Function at 0x4b2ac5
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
test ebx, ebx
je 0x4b2b0b
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 0x104
lea eax, [esi + 0x2c]
push 1
push eax
call edi
push ebx
push 1
lea eax, [esi + 0xc]
push 8
push eax
call edi
push ebx
push 1
lea eax, [esi + 0x24]
push 4
push eax
call edi
push ebx
push 1
add esi, 0x28
push 4
push esi
call edi
add esp, 0x40
pop edi
pop esi
pop ebx
ret 4
Function at 0x4b33a8
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
push 0x5821a8
mov esi, ecx
push dword [esp + 0x14]
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x4b33e2
push 0x1e7
push str.D:CQ2ClientCn_15.3.53DGameMapPatternRose.cpp
push dword [esp + 0x18]
push str.ERROR:_file__s_not_found_at__s___d
call fcn.005079e3
add esp, 0x10
xor eax, eax
jmp 0x4b3437
mov eax, dword [esp + 0xc]
push 0
imul eax, eax, 0x15e0
push eax
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
add esi, 0x34c
push 0x15e0
push 0
push esi
call sub.MSVCRT.dll_memset
push edi
call dword [sym.imp.MSVCRT.dll_feof]
add esp, 0x1c
test eax, eax
jne 0x4b342b
push edi
push 0x578
push 4
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
jmp 0x4b342d
xor esi, esi
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
mov eax, esi
pop edi
pop esi
ret 8
Function at 0x4b7cb8
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ecx
test ebx, ebx
je 0x4b7d6b
push ebp
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push ebx
push 0x104
push 1
pop ebp
lea eax, [esi + 0x194]
push ebp
push eax
call edi
push ebx
push 0x80
lea eax, [esi + 0x298]
push ebp
push eax
call edi
and dword [esp + 0x38], 0
and dword [esp + 0x30], 0
push ebx
push ebp
lea eax, [esp + 0x40]
push 4
push eax
call edi
push ebx
push ebp
lea eax, [esp + 0x48]
push 4
push eax
call edi
add esp, 0x40
lea ecx, [esi + 0xc]
push dword [esp + 0x18]
call fcn.004e5f34
push dword [esp + 0x10]
lea ecx, [esi + 0xd0]
call fcn.004e5f34
push ebx
push ebp
lea eax, [esi + 0x318]
push 4
push eax
call edi
push ebx
push ebp
lea eax, [esi + 0x31c]
push 4
push eax
call edi
push ebx
push ebp
lea eax, [esi + 0x324]
push 4
push eax
call edi
push ebx
push ebp
add esi, 0x32c
push 4
push esi
call edi
add esp, 0x40
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 4

Function at 0x4b7eb6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x4b7f21
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push 0x104
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
lea eax, [ebp - 0x104]
lea ecx, [esi + 0x298]
push eax
call fcn.004a5c48
test eax, eax
jne 0x4b7f0c
push str.D:CQ2ClientCn_15.3.53DGameMap2DMapPuzzleObj.cpp
push 0x3d
push 0x5839f0
call fcn.005079e3
add esp, 0xc
lea eax, [ebp - 0x104]
add esi, 0x194
push eax
push esi
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
pop esi
leave
ret 4
Function at 0x4c5a90
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
mov eax, 0x53e96f
call fcn.0050bac0
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0x4c]
call fcn.004028a6
xor ebx, ebx
lea ecx, [esi + 0x58]
mov dword [ebp - 4], ebx
call fcn.004028a6
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 1
call fcn.004028a6
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 2
call fcn.004028a6
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 3
call fcn.004028a6
lea ecx, [esi + 0x88]
mov byte [ebp - 4], 4
call fcn.004028a6
lea ecx, [esi + 0x94]
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xe]
push eax
call fcn.004c24fb
mov eax, dword [ebp + 0x10]
mov edi, 0x58ea40
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
push edi
mov byte [ebp - 4], 7
mov dword [esi], 0x5540c0
mov dword [esi + 8], ebx
mov byte [esi + 0xc], bl
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x4c]
call fcn.0040253b
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x58]
call fcn.0040253b
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
add eax, dword [ebp + 0xc]
pop ecx
push eax
lea ecx, [esi + 0x64]
push dword [ebp + 0xc]
call fcn.0040253b
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x70]
call fcn.0040253b
push edi
lea ecx, [esi + 0x7c]
call fcn.004c63d2
push edi
lea ecx, [esi + 0x88]
call fcn.004c63d2
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4c5a9d
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
mov eax, 0x53e96f
call fcn.0050bac0
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0x4c]
call fcn.004028a6
xor ebx, ebx
lea ecx, [esi + 0x58]
mov dword [ebp - 4], ebx
call fcn.004028a6
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 1
call fcn.004028a6
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 2
call fcn.004028a6
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 3
call fcn.004028a6
lea ecx, [esi + 0x88]
mov byte [ebp - 4], 4
call fcn.004028a6
lea ecx, [esi + 0x94]
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xe]
push eax
call fcn.004c24fb
mov eax, dword [ebp + 0x10]
mov edi, 0x58ea40
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
push edi
mov byte [ebp - 4], 7
mov dword [esi], 0x5540c0
mov dword [esi + 8], ebx
mov byte [esi + 0xc], bl
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x4c]
call fcn.0040253b
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x58]
call fcn.0040253b
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
add eax, dword [ebp + 0xc]
pop ecx
push eax
lea ecx, [esi + 0x64]
push dword [ebp + 0xc]
call fcn.0040253b
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x70]
call fcn.0040253b
push edi
lea ecx, [esi + 0x7c]
call fcn.004c63d2
push edi
lea ecx, [esi + 0x88]
call fcn.004c63d2
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4c6784
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
mov eax, 0x53eba1
call fcn.0050bac0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x34]
call fcn.004028a6
xor ebx, ebx
lea ecx, [esi + 0x40]
mov dword [ebp - 4], ebx
call fcn.004028a6
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.004028a6
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 2
call fcn.004028a6
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.004028a6
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 4
call fcn.004028a6
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 5
call fcn.004028a6
mov eax, dword [ebp + 8]
mov edi, 0x58ea40
push edi
mov byte [ebp - 4], 6
mov dword [esi], 0x554100
mov dword [esi + 4], ebx
mov byte [esi + 8], bl
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x34]
call fcn.0040253b
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x40]
call fcn.0040253b
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x4c]
call fcn.0040253b
push dword [ebp + 0xc]
lea ecx, [esi + 0x58]
call fcn.004c63d2
push edi
lea ecx, [esi + 0x64]
call fcn.004c63d2
push edi
lea ecx, [esi + 0x70]
call fcn.004c63d2
push edi
lea ecx, [esi + 0x7c]
call fcn.004c63d2
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4c6790
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
mov eax, 0x53eba1
call fcn.0050bac0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x34]
call fcn.004028a6
xor ebx, ebx
lea ecx, [esi + 0x40]
mov dword [ebp - 4], ebx
call fcn.004028a6
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.004028a6
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 2
call fcn.004028a6
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.004028a6
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 4
call fcn.004028a6
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 5
call fcn.004028a6
mov eax, dword [ebp + 8]
mov edi, 0x58ea40
push edi
mov byte [ebp - 4], 6
mov dword [esi], 0x554100
mov dword [esi + 4], ebx
mov byte [esi + 8], bl
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x34]
call fcn.0040253b
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x40]
call fcn.0040253b
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x4c]
call fcn.0040253b
push dword [ebp + 0xc]
lea ecx, [esi + 0x58]
call fcn.004c63d2
push edi
lea ecx, [esi + 0x64]
call fcn.004c63d2
push edi
lea ecx, [esi + 0x70]
call fcn.004c63d2
push edi
lea ecx, [esi + 0x7c]
call fcn.004c63d2
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4d253b
Capabilities:
Connect socket
Get socket status
Initialize winsock library
Send data
Send data on socket
Set socket configuration
Terminate process

Disassembly:
mov eax, 0x53f834
call fcn.0050bac0
sub esp, 0x3b8
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
cmp dword [esi + 0x2008], ebx
mov dword [ebp - 0x10], esp
je 0x4d2565
call fcn.004d2e76
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], 1
je 0x4d275e
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
cmp eax, 0xf
pop ecx
ja 0x4d275e
lea eax, [ebp - 0x3c4]
mov edi, 0x101
push eax
push edi
mov dword [ebp - 4], ebx
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x4d2711
cmp word [ebp - 0x3c4], di
jne 0x4d270c
push ebx
push 1
pop edi
push edi
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x2004], eax
jne 0x4d25cf
call sub.WS2_32.dll_WSAGetLastError
jmp 0x4d270c
cmp dword [ebp + 0x10], ebx
je 0x4d25f8
lea ecx, [ebp + 0x10]
push 4
push ecx
push 8
push 0xffff
push eax
mov dword [ebp + 0x10], edi
call sub.WS2_32.dll_setsockopt
test eax, eax
je 0x4d25f8
call sub.WS2_32.dll_WSAGetLastError
jmp 0x4d2701
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push 0x8004667e
push dword [esi + 0x2004]
call sub.WS2_32.dll_ioctlsocket
test eax, eax
jne 0x4d25ee
push dword [ebp + 8]
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4d2701
lea ecx, [esi + 0x12430]
call fcn.004fe003
cmp al, bl
jne 0x4d2652
push 0xd8
push str.D:CQ2ClientCn_15.3.53DRoleNetwork_socket.h
push str.ERROR:_CGameSocket::ReceiveMsg___ClientSecurity_Init_failed_at__s___d
call fcn.005079e3
add esp, 0xc
jmp 0x4d2711
push ebx
lea eax, [ebp - 0x2c]
push 0x10
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [ebp - 0x2c], 2
push dword [ebp + 0xc]
call sub.WS2_32.dll_htons
mov word [ebp - 0x2a], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push 0x10
push eax
push dword [esi + 0x2004]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x4d2724
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4d2701
mov eax, dword [esi + 0x2004]
mov dword [ebp - 0x1c], 0x1e
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x234]
push eax
push ebx
push 0x40
mov dword [ebp - 0x234], edi
mov dword [ebp - 0x130], edi
call sub.WS2_32.dll_select
cmp eax, ebx
je 0x4d2701
jl 0x4d25ee
lea eax, [ebp - 0x130]
push eax
push dword [esi + 0x2004]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4d2724
push dword [esi + 0x2004]
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
mov dword [esi + 0x1200c], ebx
mov dword [esi + 0x12010], ebx
mov dword [esi + 0x2000], ebx
mov dword [esi + 0x2008], edi
lea eax, [esi + 0x12014]
add esi, 0x1221c
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov eax, edi
jmp 0x4d2713
push 5
call dword [sym.imp.MSVCRT.dll_exit]
Function at 0x4d2766
Capabilities:
Send data
Send data on socket
Terminate process

Disassembly:
mov eax, 0x53f840
call fcn.0050bac0
push ecx
mov eax, 0x2000
call fcn.0050bd60
mov eax, dword [ebp + 8]
push ebx
push esi
xor edx, edx
push edi
cmp eax, edx
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 4], edx
je 0x4d2952
mov ebx, dword [ebp + 0xc]
cmp ebx, edx
jle 0x4d2952
mov ecx, 0x400
cmp ebx, ecx
jg 0x4d2952
cmp dword [esi + 0x2008], edx
je 0x4d2822
cmp dword [esi + 0x12428], 2
mov byte [ebp - 4], 1
jne 0x4d27cc
cmp byte [esi + 0x12424], dl
je 0x4d27cc
mov eax, ebx
jmp 0x4d27cf
movzx eax, word [eax]
cmp eax, edx
jle 0x4d2933
cmp eax, ecx
jg 0x4d2933
cmp eax, ebx
je 0x4d27f2
mov ecx, esi
call fcn.004d2e76
push 5
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [esi + 0x2000]
mov edi, 0x2000
mov dword [ebp - 4], edx
lea ecx, [eax + ebx]
cmp ecx, edi
jle 0x4d2835
mov ecx, esi
call fcn.004d2d84
mov eax, dword [esi + 0x2000]
lea ecx, [eax + ebx]
cmp ecx, edi
jle 0x4d2835
mov ecx, esi
call fcn.004d2e76
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
push ebx
add eax, esi
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x12428]
add esp, 0xc
dec eax
je 0x4d290e
dec eax
jne 0x4d2925
cmp byte [esi + 0x12424], 0
jne 0x4d2925
and byte [ebp - 0x2010], 0
mov ecx, 0x7ff
xor eax, eax
lea edi, [ebp - 0x200f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x2010]
push ebx
push eax
lea edi, [esi + 0x12430]
push dword [ebp + 8]
mov ecx, edi
call fcn.004fe69f
lea eax, [ebp - 0x2010]
push ebx
push eax
mov eax, dword [esi + 0x2000]
add eax, esi
push eax
call sub.MSVCRT.dll_memcpy
push 0x2000
lea eax, [ebp - 0x2010]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
call fcn.004fe815
mov dword [ebp + 8], eax
call fcn.004fe80f
push dword [ebp + 8]
lea ecx, [ebp - 0x2010]
push ecx
push eax
mov ecx, edi
call fcn.004fe69f
call fcn.004fe815
push eax
lea eax, [ebp - 0x2010]
push eax
mov eax, dword [esi + 0x2000]
add eax, ebx
add eax, esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
call fcn.004fe815
add dword [esi + 0x2000], eax
jmp 0x4d2925
mov eax, dword [esi + 0x2000]
push 1
add eax, esi
push ebx
push eax
lea ecx, [esi + 0x12014]
call fcn.004d2f5e
add dword [esi + 0x2000], ebx
push 1
pop eax
jmp 0x4d2824
mov ecx, esi
call fcn.004d2e76
push 5
call dword [sym.imp.MSVCRT.dll_exit]
push 5
call dword [sym.imp.MSVCRT.dll_exit]
push 5
call dword [sym.imp.MSVCRT.dll_exit]
push 5
call dword [sym.imp.MSVCRT.dll_exit]
Function at 0x4d2d84
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x53f858
call fcn.0050bac0
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x2000]
mov dword [ebp - 0x10], esp
test eax, eax
jle 0x4d2dda
push 0
push eax
push esi
push dword [esi + 0x2004]
call sub.WS2_32.dll_send
mov edi, eax
test edi, edi
jle 0x4d2dec
mov eax, dword [esi + 0x2000]
sub eax, edi
test eax, eax
jle 0x4d2dd4
push eax
lea eax, [edi + esi]
push eax
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0x2000], edi
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4d2dda
mov ecx, esi
call fcn.004d2e76
xor eax, eax
jmp 0x4d2ddd

Function at 0x4d2e0b
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x53f864
call fcn.0050bac0
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x2008], 0
mov dword [ebp - 0x10], esp
je 0x4d2e58
push 2
lea eax, [ebp - 0x11]
push 1
push eax
push dword [esi + 0x2004]
call sub.WS2_32.dll_recv
test eax, eax
je 0x4d2e51
jge 0x4d2e71
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4d2e71
mov ecx, esi
call fcn.004d2e76
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
push 1
pop eax
jmp 0x4d2e5a