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

Disassembly:
mov eax, 0x53bf5a
call fcn.0050ad90
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
je 0x4a923c
push 0x5811d4
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp + 8], eax
test eax, eax
pop ecx
jne 0x4a91a1
push 0x64
push str.D:CQ2ClientCn_15.3.7_10183DGameMap2DMapTerrainObj.cpp
push edi
push str.ERROR:_file__s_not_found_at__s___d
call fcn.00507881
add esp, 0x10
jmp 0x4a923c
push ebx
mov ecx, esi
call fcn.004a924c
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 0x4a9211
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 0x4a91f1
mov ecx, eax
call fcn.004a5d60
mov edi, eax
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4a9203
push dword [ebp + 8]
mov ecx, edi
call fcn.004a621d
push edi
mov ecx, esi
call fcn.004a90e7
inc ebx
cmp ebx, dword [ebp - 0x10]
jl 0x4a91d1
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.004e63a4
lea ecx, [edi + 0xc4]
mov ebx, eax
call fcn.004e63a4
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 0x4a93d1
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 0x4a9442
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.004e5ce0
push dword [ebp - 8]
lea ecx, [edi + 0xd0]
call fcn.004e5ce0
push ebx
mov ecx, edi
call fcn.004a9157
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x4b28ec
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ecx
test ebx, ebx
je 0x4b29b2
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.004e5ce0
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.004e5ce0
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 0x4b2af5
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
test ebx, ebx
je 0x4b2b3b
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 0x4b33d8
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
push 0x5811d4
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 0x4b3412
push 0x1e7
push str.D:CQ2ClientCn_15.3.7_10183DGameMapPatternRose.cpp
push dword [esp + 0x18]
push str.ERROR:_file__s_not_found_at__s___d
call fcn.00507881
add esp, 0x10
xor eax, eax
jmp 0x4b3467
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 0x4b345b
push edi
push 0x578
push 4
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
jmp 0x4b345d
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 0x4b7bf1
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ecx
test ebx, ebx
je 0x4b7ca4
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.004e5ce0
push dword [esp + 0x10]
lea ecx, [esi + 0xd0]
call fcn.004e5ce0
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 0x4b7def
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 0x4b7e5a
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.004a5a40
test eax, eax
jne 0x4b7e45
push str.D:CQ2ClientCn_15.3.7_10183DGameMap2DMapPuzzleObj.cpp
push 0x3d
push 0x582a70
call fcn.00507881
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 0x4c5a95
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
mov eax, 0x53dc33
call fcn.0050ad90
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0x4c]
call fcn.0040288b
xor ebx, ebx
lea ecx, [esi + 0x58]
mov dword [ebp - 4], ebx
call fcn.0040288b
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 1
call fcn.0040288b
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 2
call fcn.0040288b
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 3
call fcn.0040288b
lea ecx, [esi + 0x88]
mov byte [ebp - 4], 4
call fcn.0040288b
lea ecx, [esi + 0x94]
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xe]
push eax
call fcn.004c2390
mov eax, dword [ebp + 0x10]
mov edi, 0x58db80
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
push edi
mov byte [ebp - 4], 7
mov dword [esi], 0x5530c0
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.00402538
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x58]
call fcn.00402538
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.00402538
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x70]
call fcn.00402538
push edi
lea ecx, [esi + 0x7c]
call fcn.004c63d7
push edi
lea ecx, [esi + 0x88]
call fcn.004c63d7
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4c5aa2
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
mov eax, 0x53dc33
call fcn.0050ad90
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0x4c]
call fcn.0040288b
xor ebx, ebx
lea ecx, [esi + 0x58]
mov dword [ebp - 4], ebx
call fcn.0040288b
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 1
call fcn.0040288b
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 2
call fcn.0040288b
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 3
call fcn.0040288b
lea ecx, [esi + 0x88]
mov byte [ebp - 4], 4
call fcn.0040288b
lea ecx, [esi + 0x94]
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xe]
push eax
call fcn.004c2390
mov eax, dword [ebp + 0x10]
mov edi, 0x58db80
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
push edi
mov byte [ebp - 4], 7
mov dword [esi], 0x5530c0
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.00402538
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x58]
call fcn.00402538
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.00402538
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x70]
call fcn.00402538
push edi
lea ecx, [esi + 0x7c]
call fcn.004c63d7
push edi
lea ecx, [esi + 0x88]
call fcn.004c63d7
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4c6789
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
mov eax, 0x53de65
call fcn.0050ad90
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x34]
call fcn.0040288b
xor ebx, ebx
lea ecx, [esi + 0x40]
mov dword [ebp - 4], ebx
call fcn.0040288b
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.0040288b
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 2
call fcn.0040288b
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.0040288b
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 4
call fcn.0040288b
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 5
call fcn.0040288b
mov eax, dword [ebp + 8]
mov edi, 0x58db80
push edi
mov byte [ebp - 4], 6
mov dword [esi], 0x553100
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.00402538
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x40]
call fcn.00402538
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x4c]
call fcn.00402538
push dword [ebp + 0xc]
lea ecx, [esi + 0x58]
call fcn.004c63d7
push edi
lea ecx, [esi + 0x64]
call fcn.004c63d7
push edi
lea ecx, [esi + 0x70]
call fcn.004c63d7
push edi
lea ecx, [esi + 0x7c]
call fcn.004c63d7
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4c6795
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
mov eax, 0x53de65
call fcn.0050ad90
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x34]
call fcn.0040288b
xor ebx, ebx
lea ecx, [esi + 0x40]
mov dword [ebp - 4], ebx
call fcn.0040288b
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.0040288b
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 2
call fcn.0040288b
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.0040288b
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 4
call fcn.0040288b
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 5
call fcn.0040288b
mov eax, dword [ebp + 8]
mov edi, 0x58db80
push edi
mov byte [ebp - 4], 6
mov dword [esi], 0x553100
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.00402538
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x40]
call fcn.00402538
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x4c]
call fcn.00402538
push dword [ebp + 0xc]
lea ecx, [esi + 0x58]
call fcn.004c63d7
push edi
lea ecx, [esi + 0x64]
call fcn.004c63d7
push edi
lea ecx, [esi + 0x70]
call fcn.004c63d7
push edi
lea ecx, [esi + 0x7c]
call fcn.004c63d7
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4d23cf
Capabilities:
Connect socket
Get socket status
Initialize winsock library
Send data
Send data on socket
Set socket configuration
Terminate process

Disassembly:
mov eax, 0x53eaf8
call fcn.0050ad90
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 0x4d23f9
call fcn.004d2d0a
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], 1
je 0x4d25f2
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
cmp eax, 0xf
pop ecx
ja 0x4d25f2
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 0x4d25a5
cmp word [ebp - 0x3c4], di
jne 0x4d25a0
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 0x4d2463
call sub.WS2_32.dll_WSAGetLastError
jmp 0x4d25a0
cmp dword [ebp + 0x10], ebx
je 0x4d248c
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 0x4d248c
call sub.WS2_32.dll_WSAGetLastError
jmp 0x4d2595
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 0x4d2482
push dword [ebp + 8]
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4d2595
lea ecx, [esi + 0x12430]
call fcn.004fdea1
cmp al, bl
jne 0x4d24e6
push 0xd8
push str.D:CQ2ClientCn_15.3.7_10183DRoleNetwork_socket.h
push str.ERROR:_CGameSocket::ReceiveMsg___ClientSecurity_Init_failed_at__s___d
call fcn.00507881
add esp, 0xc
jmp 0x4d25a5
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 0x4d25b8
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4d2595
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 0x4d2595
jl 0x4d2482
lea eax, [ebp - 0x130]
push eax
push dword [esi + 0x2004]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4d25b8
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 0x4d25a7
push 5
call dword [sym.imp.MSVCRT.dll_exit]
Function at 0x4d25fa
Capabilities:
Send data
Send data on socket
Terminate process

Disassembly:
mov eax, 0x53eb04
call fcn.0050ad90
push ecx
mov eax, 0x2000
call fcn.0050b030
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 0x4d27e6
mov ebx, dword [ebp + 0xc]
cmp ebx, edx
jle 0x4d27e6
mov ecx, 0x400
cmp ebx, ecx
jg 0x4d27e6
cmp dword [esi + 0x2008], edx
je 0x4d26b6
cmp dword [esi + 0x12428], 2
mov byte [ebp - 4], 1
jne 0x4d2660
cmp byte [esi + 0x12424], dl
je 0x4d2660
mov eax, ebx
jmp 0x4d2663
movzx eax, word [eax]
cmp eax, edx
jle 0x4d27c7
cmp eax, ecx
jg 0x4d27c7
cmp eax, ebx
je 0x4d2686
mov ecx, esi
call fcn.004d2d0a
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 0x4d26c9
mov ecx, esi
call fcn.004d2c18
mov eax, dword [esi + 0x2000]
lea ecx, [eax + ebx]
cmp ecx, edi
jle 0x4d26c9
mov ecx, esi
call fcn.004d2d0a
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 0x4d27a2
dec eax
jne 0x4d27b9
cmp byte [esi + 0x12424], 0
jne 0x4d27b9
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.004fe53d
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.004fe6b3
mov dword [ebp + 8], eax
call fcn.004fe6ad
push dword [ebp + 8]
lea ecx, [ebp - 0x2010]
push ecx
push eax
mov ecx, edi
call fcn.004fe53d
call fcn.004fe6b3
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.004fe6b3
add dword [esi + 0x2000], eax
jmp 0x4d27b9
mov eax, dword [esi + 0x2000]
push 1
add eax, esi
push ebx
push eax
lea ecx, [esi + 0x12014]
call fcn.004d2df2
add dword [esi + 0x2000], ebx
push 1
pop eax
jmp 0x4d26b8
mov ecx, esi
call fcn.004d2d0a
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 0x4d2c18
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x53eb1c
call fcn.0050ad90
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 0x4d2c6e
push 0
push eax
push esi
push dword [esi + 0x2004]
call sub.WS2_32.dll_send
mov edi, eax
test edi, edi
jle 0x4d2c80
mov eax, dword [esi + 0x2000]
sub eax, edi
test eax, eax
jle 0x4d2c68
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 0x4d2c6e
mov ecx, esi
call fcn.004d2d0a
xor eax, eax
jmp 0x4d2c71

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

Disassembly:
mov eax, 0x53eb28
call fcn.0050ad90
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 0x4d2cec
push 2
lea eax, [ebp - 0x11]
push 1
push eax
push dword [esi + 0x2004]
call sub.WS2_32.dll_recv
test eax, eax
je 0x4d2ce5
jge 0x4d2d05
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4d2d05
mov ecx, esi
call fcn.004d2d0a
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 0x4d2cee
Function at 0x4d2e76
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.0050b030
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x2008], 0
je 0x4d3024
mov edx, dword [esi + 0x1200c]
mov ebx, 0x10000
cmp edx, ebx
jge 0x4d3024
mov ecx, dword [esi + 0x12010]
lea eax, [ecx + edx]
cmp eax, ebx
jge 0x4d2ec0
mov edi, ebx
sub edi, ecx
sub edi, edx
mov dword [ebp - 8], edi
jmp 0x4d2ec9
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 8], ecx
mov edi, ecx
cdq
mov ecx, ebx
push 0
idiv ecx
push edi
lea eax, [edx + esi + 0x200c]
push eax
mov dword [ebp - 0xc], eax
push dword [esi + 0x2004]
call sub.WS2_32.dll_recv
mov ecx, eax
test ecx, ecx
mov dword [ebp - 4], ecx
jle 0x4d3030
mov eax, dword [esi + 0x12428]
cmp eax, 1
jne 0x4d2f11
push eax
push ecx
push dword [ebp - 0xc]
lea ecx, [esi + 0x1221c]
call fcn.004d2df2
jmp 0x4d2f68
cmp eax, 2
jne 0x4d2f68
cmp byte [esi + 0x12424], 0
jne 0x4d2f68
and byte [ebp - 0x1000c], 0
mov ecx, 0x3fff
xor eax, eax
lea edi, [ebp - 0x1000b]
rep stosd dword es:[edi], eax
push dword [ebp - 4]
lea ecx, [esi + 0x12430]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1000c]
push eax
push dword [ebp - 0xc]
call fcn.004fe583
push dword [ebp - 4]
lea eax, [ebp - 0x1000c]
push eax
push dword [ebp - 0xc]
call sub.MSVCRT.dll_memcpy
mov edi, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp - 4]
add dword [esi + 0x1200c], ecx
mov eax, dword [esi + 0x1200c]
cmp ecx, edi
jne 0x4d3024
cmp eax, ebx
jge 0x4d3024
mov ecx, ebx
push 0
sub ecx, eax
add eax, dword [esi + 0x12010]
push ecx
cdq
idiv ebx
lea ebx, [edx + esi + 0x200c]
push ebx
push dword [esi + 0x2004]
call sub.WS2_32.dll_recv
mov edi, eax
test edi, edi
mov dword [ebp - 4], edi
jle 0x4d302c
mov eax, dword [esi + 0x12428]
dec eax
je 0x4d300f
dec eax
jne 0x4d301e
cmp byte [esi + 0x12424], 0
jne 0x4d301e
and byte [ebp - 0x1000c], 0
mov ecx, 0x3fff
xor eax, eax
lea edi, [ebp - 0x1000b]
rep stosd dword es:[edi], eax
push dword [ebp - 4]
lea ecx, [esi + 0x12430]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1000c]
push eax
push ebx
call fcn.004fe583
push dword [ebp - 4]
lea eax, [ebp - 0x1000c]
push eax
push ebx
call sub.MSVCRT.dll_memcpy
mov edi, dword [ebp - 4]
add esp, 0xc
jmp 0x4d301e
push 1
push edi
push ebx
lea ecx, [esi + 0x1221c]
call fcn.004d2df2
add dword [esi + 0x1200c], edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
jne 0x4d3032
jmp 0x4d303e
je 0x4d303e
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4d3024
mov ecx, esi
call fcn.004d2d0a
xor eax, eax
jmp 0x4d3027