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

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

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

Disassembly:
push esi
push edi
push 0x55c5b8
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 0x49c98e
push 0x1e7
push str.D:CQ2ClientRelease_11.17.103DGameMapPatternRose.cpp
push dword [esp + 0x18]
push str.ERROR:_file__s_not_found_at__s___d
call fcn.004e9e6f
add esp, 0x10
xor eax, eax
jmp 0x49c9e3
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 0x49c9d7
push edi
push 0x578
push 4
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
jmp 0x49c9d9
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 0x4a13d3
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ecx
test ebx, ebx
je 0x4a1486
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.004cabf4
push dword [esp + 0x10]
lea ecx, [esi + 0xd0]
call fcn.004cabf4
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 0x4a15d1
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 0x4a163c
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.0048f499
test eax, eax
jne 0x4a1627
push str.D:CQ2ClientRelease_11.17.103DGameMap2DMapPuzzleObj.cpp
push 0x3d
push 0x55de78
call fcn.004e9e6f
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 0x4aeb24
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
mov eax, 0x51eebb
call fcn.004edf30
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0x4c]
call fcn.0040958c
xor ebx, ebx
lea ecx, [esi + 0x58]
mov dword [ebp - 4], ebx
call fcn.0040958c
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 1
call fcn.0040958c
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 2
call fcn.0040958c
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 3
call fcn.0040958c
lea ecx, [esi + 0x88]
mov byte [ebp - 4], 4
call fcn.0040958c
lea ecx, [esi + 0x94]
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xe]
push eax
call fcn.004ab41d
mov eax, dword [ebp + 0x10]
mov edi, 0x568b08
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
push edi
mov byte [ebp - 4], 7
mov dword [esi], 0x532a40
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.0040928f
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x58]
call fcn.0040928f
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.0040928f
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x70]
call fcn.0040928f
push edi
lea ecx, [esi + 0x7c]
call fcn.004af45c
push edi
lea ecx, [esi + 0x88]
call fcn.004af45c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4aeb31
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
mov eax, 0x51eebb
call fcn.004edf30
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0x4c]
call fcn.0040958c
xor ebx, ebx
lea ecx, [esi + 0x58]
mov dword [ebp - 4], ebx
call fcn.0040958c
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 1
call fcn.0040958c
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 2
call fcn.0040958c
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 3
call fcn.0040958c
lea ecx, [esi + 0x88]
mov byte [ebp - 4], 4
call fcn.0040958c
lea ecx, [esi + 0x94]
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xe]
push eax
call fcn.004ab41d
mov eax, dword [ebp + 0x10]
mov edi, 0x568b08
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
push edi
mov byte [ebp - 4], 7
mov dword [esi], 0x532a40
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.0040928f
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x58]
call fcn.0040928f
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.0040928f
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x70]
call fcn.0040928f
push edi
lea ecx, [esi + 0x7c]
call fcn.004af45c
push edi
lea ecx, [esi + 0x88]
call fcn.004af45c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4af80e
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
mov eax, 0x51f0ed
call fcn.004edf30
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x34]
call fcn.0040958c
xor ebx, ebx
lea ecx, [esi + 0x40]
mov dword [ebp - 4], ebx
call fcn.0040958c
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.0040958c
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 2
call fcn.0040958c
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.0040958c
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 4
call fcn.0040958c
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 5
call fcn.0040958c
mov eax, dword [ebp + 8]
mov edi, 0x568b08
push edi
mov byte [ebp - 4], 6
mov dword [esi], 0x532a80
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.0040928f
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x40]
call fcn.0040928f
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x4c]
call fcn.0040928f
push dword [ebp + 0xc]
lea ecx, [esi + 0x58]
call fcn.004af45c
push edi
lea ecx, [esi + 0x64]
call fcn.004af45c
push edi
lea ecx, [esi + 0x70]
call fcn.004af45c
push edi
lea ecx, [esi + 0x7c]
call fcn.004af45c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4af81a
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
mov eax, 0x51f0ed
call fcn.004edf30
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x34]
call fcn.0040958c
xor ebx, ebx
lea ecx, [esi + 0x40]
mov dword [ebp - 4], ebx
call fcn.0040958c
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.0040958c
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 2
call fcn.0040958c
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.0040958c
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 4
call fcn.0040958c
lea ecx, [esi + 0x7c]
mov byte [ebp - 4], 5
call fcn.0040958c
mov eax, dword [ebp + 8]
mov edi, 0x568b08
push edi
mov byte [ebp - 4], 6
mov dword [esi], 0x532a80
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.0040928f
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x40]
call fcn.0040928f
push edi
call sub.MSVCRT.dll_strlen
pop ecx
add eax, edi
push eax
push edi
lea ecx, [esi + 0x4c]
call fcn.0040928f
push dword [ebp + 0xc]
lea ecx, [esi + 0x58]
call fcn.004af45c
push edi
lea ecx, [esi + 0x64]
call fcn.004af45c
push edi
lea ecx, [esi + 0x70]
call fcn.004af45c
push edi
lea ecx, [esi + 0x7c]
call fcn.004af45c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4ba7ab
Capabilities:
Connect socket
Get socket status
Initialize winsock library
Send data
Send data on socket
Set socket configuration
Terminate process

Disassembly:
mov eax, 0x51fd04
call fcn.004edf30
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 0x4ba7d5
call fcn.004bb0e6
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], 1
je 0x4ba9ce
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
cmp eax, 0xf
pop ecx
ja 0x4ba9ce
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 0x4ba981
cmp word [ebp - 0x3c4], di
jne 0x4ba97c
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 0x4ba83f
call sub.WS2_32.dll_WSAGetLastError
jmp 0x4ba97c
cmp dword [ebp + 0x10], ebx
je 0x4ba868
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 0x4ba868
call sub.WS2_32.dll_WSAGetLastError
jmp 0x4ba971
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 0x4ba85e
push dword [ebp + 8]
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4ba971
lea ecx, [esi + 0x12430]
call fcn.004e0fa2
cmp al, bl
jne 0x4ba8c2
push 0xd8
push str.D:CQ2ClientRelease_11.17.103DRoleNetwork_socket.h
push str.ERROR:_CGameSocket::ReceiveMsg___ClientSecurity_Init_failed_at__s___d
call fcn.004e9e6f
add esp, 0xc
jmp 0x4ba981
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 0x4ba994
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4ba971
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 0x4ba971
jl 0x4ba85e
lea eax, [ebp - 0x130]
push eax
push dword [esi + 0x2004]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4ba994
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 0x4ba983
push 5
call dword [sym.imp.MSVCRT.dll_exit]
Function at 0x4ba9d6
Capabilities:
Send data
Send data on socket
Terminate process

Disassembly:
mov eax, 0x51fd10
call fcn.004edf30
push ecx
mov eax, 0x2000
call fcn.004ee1d0
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 0x4babc2
mov ebx, dword [ebp + 0xc]
cmp ebx, edx
jle 0x4babc2
mov ecx, 0x400
cmp ebx, ecx
jg 0x4babc2
cmp dword [esi + 0x2008], edx
je 0x4baa92
cmp dword [esi + 0x12428], 2
mov byte [ebp - 4], 1
jne 0x4baa3c
cmp byte [esi + 0x12424], dl
je 0x4baa3c
mov eax, ebx
jmp 0x4baa3f
movzx eax, word [eax]
cmp eax, edx
jle 0x4baba3
cmp eax, ecx
jg 0x4baba3
cmp eax, ebx
je 0x4baa62
mov ecx, esi
call fcn.004bb0e6
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 0x4baaa5
mov ecx, esi
call fcn.004baff4
mov eax, dword [esi + 0x2000]
lea ecx, [eax + ebx]
cmp ecx, edi
jle 0x4baaa5
mov ecx, esi
call fcn.004bb0e6
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 0x4bab7e
dec eax
jne 0x4bab95
cmp byte [esi + 0x12424], 0
jne 0x4bab95
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.004e16bb
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.004e1837
mov dword [ebp + 8], eax
call fcn.004e182b
push dword [ebp + 8]
lea ecx, [ebp - 0x2010]
push ecx
push eax
mov ecx, edi
call fcn.004e16bb
call fcn.004e1837
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.004e1837
add dword [esi + 0x2000], eax
jmp 0x4bab95
mov eax, dword [esi + 0x2000]
push 1
add eax, esi
push ebx
push eax
lea ecx, [esi + 0x12014]
call fcn.004bb1ce
add dword [esi + 0x2000], ebx
push 1
pop eax
jmp 0x4baa94
mov ecx, esi
call fcn.004bb0e6
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 0x4baff4
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x51fd28
call fcn.004edf30
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 0x4bb04a
push 0
push eax
push esi
push dword [esi + 0x2004]
call sub.WS2_32.dll_send
mov edi, eax
test edi, edi
jle 0x4bb05c
mov eax, dword [esi + 0x2000]
sub eax, edi
test eax, eax
jle 0x4bb044
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 0x4bb04a
mov ecx, esi
call fcn.004bb0e6
xor eax, eax
jmp 0x4bb04d

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

Disassembly:
mov eax, 0x51fd34
call fcn.004edf30
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 0x4bb0c8
push 2
lea eax, [ebp - 0x11]
push 1
push eax
push dword [esi + 0x2004]
call sub.WS2_32.dll_recv
test eax, eax
je 0x4bb0c1
jge 0x4bb0e1
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4bb0e1
mov ecx, esi
call fcn.004bb0e6
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 0x4bb0ca
Function at 0x4bb252
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.004ee1d0
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x2008], 0
je 0x4bb400
mov edx, dword [esi + 0x1200c]
mov ebx, 0x10000
cmp edx, ebx
jge 0x4bb400
mov ecx, dword [esi + 0x12010]
lea eax, [ecx + edx]
cmp eax, ebx
jge 0x4bb29c
mov edi, ebx
sub edi, ecx
sub edi, edx
mov dword [ebp - 8], edi
jmp 0x4bb2a5
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 0x4bb40c
mov eax, dword [esi + 0x12428]
cmp eax, 1
jne 0x4bb2ed
push eax
push ecx
push dword [ebp - 0xc]
lea ecx, [esi + 0x1221c]
call fcn.004bb1ce
jmp 0x4bb344
cmp eax, 2
jne 0x4bb344
cmp byte [esi + 0x12424], 0
jne 0x4bb344
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.004e1701
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 0x4bb400
cmp eax, ebx
jge 0x4bb400
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 0x4bb408
mov eax, dword [esi + 0x12428]
dec eax
je 0x4bb3eb
dec eax
jne 0x4bb3fa
cmp byte [esi + 0x12424], 0
jne 0x4bb3fa
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.004e1701
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 0x4bb3fa
push 1
push edi
push ebx
lea ecx, [esi + 0x1221c]
call fcn.004bb1ce
add dword [esi + 0x1200c], edi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
jne 0x4bb40e
jmp 0x4bb41a
je 0x4bb41a
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4bb400
mov ecx, esi
call fcn.004bb0e6
xor eax, eax
jmp 0x4bb403
Function at 0x4c4a4a
Capabilities:
Create directory

Disassembly:
mov eax, 0x52056c
call fcn.004edf30
sub esp, 0xcc
mov eax, dword [0x55f1e8]
push ebx
push esi
push edi
mov edx, ecx
push 0x1f
mov dword [ebp - 0x98], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x94]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
mov ecx, edx
push eax
call fcn.004c4a14
mov eax, dword [eax]
and dword [ebp - 4], 0
lea ecx, [ebp - 0xd8]
push 0xa
push ecx
push eax
call fcn.004c48e4
pop ecx
push 0
push eax
call dword [sym.imp.MSVCRT.dll__i64toa]
add esp, 0x10
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
call fcn.00407dc8
mov esi, dword [sym.imp.MSVCRT.dll__mkdir]
lea eax, [ebp - 0x98]
push eax
call esi
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
pop ecx
mov ebx, 0x56f64c
lea eax, [ebp - 0x98]
push ebx
push str.LOG__s
push eax
call edi
lea eax, [ebp - 0x98]
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0xd8]
push eax
push ebx
lea eax, [ebp - 0x98]
push str.LOG__s__s
push eax
call edi
lea eax, [ebp - 0x98]
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0xd8]
push eax
push ebx
lea eax, [ebp - 0x98]
push str.LOG__s__s_CHAT
push eax
call edi
lea eax, [ebp - 0x98]
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0x98]
push str.LOG__s
push eax
call edi
lea eax, [ebp - 0x98]
push eax
call esi
add esp, 0x10
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret