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

Disassembly:
push esi
push edi
push 0x61ce5c
push str.interface.cfg
mov edi, ecx
call fcn.00598636
mov esi, eax
add esp, 8
test esi, esi
jne 0x4881b1
pop edi
xor al, al
pop esi
ret
push esi
push 0xc8
lea eax, [edi + 0x2630]
push 1
push eax
call fcn.00599530
push esi
call fcn.00598946
add esp, 0x14
mov al, 1
pop edi
pop esi
ret

Function at 0x4881e0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x262c], 0
je 0x48824f
push edi
push 0x61cb78
call dword [sym.imp.python27.dll_Py_BuildValue]
push eax
push str.OnSaveInterfaceStatus
push dword [esi + 0x262c]
call fcn.00546df0
push 0x61ce2c
push str.interface.cfg
call fcn.00598636
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x488231
push str.Cannot_open_interface.cfg
call fcn.004a4c60
add esp, 4
pop edi
pop esi
ret
push edi
push 0xc8
lea eax, [esi + 0x2630]
push 1
push eax
call fcn.0059886c
push edi
call fcn.00598946
add esp, 0x14
pop edi
pop esi
ret

Function at 0x48d730
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e5664
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x651ea8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [0x6da204], edi
mov dword [ebp - 4], 0
lea esi, [edi + 4]
mov dword [edi], vtable.CPythonTextTail.0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040f8e0
mov dword [esi], eax
lea esi, [edi + 0xc]
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040f8e0
mov dword [esi], eax
lea esi, [edi + 0x14]
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040f8e0
mov dword [esi], eax
lea esi, [edi + 0x1c]
mov byte [ebp - 4], 3
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00429220
mov dword [esi], eax
lea esi, [edi + 0x24]
mov byte [ebp - 4], 4
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00429220
mov dword [esi], eax
mov ecx, edi
mov dword [edi + 0x2c], vtable.CDynamicPool_struct_CPythonTextTail::STextTail_.0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
call fcn.0048d660
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48f100
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e1f08
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x651ea8]
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 eax, dword [str.UserDict.pyc]
xor edi, edi
cmp byte [eax], 0xa
je 0x48f1fb
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, 0x61cd20
push 4
push str.lib_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00406cf0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push dword [esi]
call fcn.00407aa0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.005a2dfd
add esp, 8
test eax, eax
jne 0x48f219
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push esi
push ecx
call ebx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x48f1e3
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48f1d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48f24d
push edx
push ecx
call fcn.00552bfd
add esp, 8
inc edi
mov eax, dword [edi*4 + 0x61cd20]
lea esi, [edi*4 + 0x61cd20]
cmp byte [eax], 0xa
jne 0x48f146
mov al, 1
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.00552bec
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x48f249
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x48f23f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x48f24d
push edx
push ecx
call fcn.00552bfd
add esp, 8
xor al, al
jmp 0x48f1fd
call fcn.005983fa
int3
Function at 0x48f270
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x651ea8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x104]
mov dword [ebp - 0x408], ecx
push eax
push 0x100
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x104]
cmp byte [eax + ecx - 1], 0x5c
je 0x48f2d3
mov edi, ecx
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x48f2c0
mov ax, word [0x62da8c]
mov word [edi], ax
lea ecx, [ebp - 0x104]
dec ecx
nop word [eax + eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x48f2e0
mov eax, dword [str.metin2client.dat]
mov dword [ecx], eax
mov eax, dword [0x62daa4]
mov dword [ecx + 4], eax
mov eax, dword [0x62daa8]
mov dword [ecx + 8], eax
mov eax, dword [0x62daac]
mov dword [ecx + 0xc], eax
mov al, byte [0x62dab0]
push ebx
mov byte [ecx + 0x10], al
call fcn.00418020
mov ebx, eax
lea edi, [ebp - 0x404]
mov edx, ebx
sub edi, ebx
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [edi + edx - 1], cl
test cl, cl
jne 0x48f323
push 7
lea eax, [ebp - 0x404]
push str.locale_
push eax
call fcn.005a11ba
add esp, 0xc
test eax, eax
jne 0x48f362
lea ecx, [ebx + 7]
lea edx, [ebp - 0x404]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x48f355
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x104]
push eax
push 0x1ff
lea eax, [ebp - 0x304]
push eax
push 0
push esi
lea eax, [ebp - 0x404]
push eax
call edi
cmp byte [ebp - 0x304], 0
pop ebx
jne 0x48f3f3
push 0x1ff
lea eax, [ebp - 0x304]
push eax
push dword [ebp - 0x408]
push dword [0x6da1bc]
call dword [sym.imp.USER32.dll_LoadStringA]
cmp byte [ebp - 0x304], 0
jne 0x48f3f3
lea eax, [ebp - 0x104]
push eax
push 0x1ff
lea eax, [ebp - 0x304]
push eax
push 0
push esi
push 0x62dabc
call edi
cmp byte [ebp - 0x304], 0
jne 0x48f3f3
lea ecx, [ebp - 0x304]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x48f3e6
lea eax, [ebp - 0x408]
mov ecx, 0x6da1c0
push eax
call fcn.0043f9f0
lea ecx, [ebp - 0x304]
mov esi, eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48f410
sub ecx, edx
lea eax, [ebp - 0x304]
push ecx
push eax
mov ecx, esi
call fcn.00406cf0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00552bec
mov esp, ebp
pop ebp
ret
Function at 0x48fe40
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x651ea8]
xor eax, esp
mov dword [esp + 0xa4], eax
movups xmm0, xmmword [str.LoadingWindowClass]
mov eax, dword [0x62db98]
mov dword [esp + 0x88], eax
mov ax, word [0x62db9c]
movups xmmword [esp + 0x68], xmm0
mov word [esp + 0x8c], ax
lea eax, [esp + 0x68]
movups xmm0, xmmword [0x62db88]
push esi
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x28]
push edi
movups xmmword [esp + 0x80], xmm0
mov dword [esp + 0x28], ecx
xorps xmm0, xmm0
mov dword [esp + 0x2c], 0
push eax
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x4c], xmm0
mov dword [esp + 0x34], 0x48fcd0
mov dword [esp + 0x40], ecx
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x48fefe
push 0
push str.Hiba
push 0x62dbd8
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.00552bec
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], vtable.Gdiplus::Image.0
push eax
push 0x62db58
mov dword [esp + 0x24], 0
call dword [sym.imp.gdiplus.dll_GdipLoadImageFromFile]
mov dword [esp + 0x20], 0
test eax, eax
je 0x48ff43
push 0
push str.Hiba
push 0x62dc54
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x490053
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push dword [esp + 0x20]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
mov ecx, dword [esp + 0x20]
test eax, eax
mov dword [esp + 0x10], 0
cmovne ecx, eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x20]
mov dword [esp + 0x28], ecx
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
mov ecx, dword [esp + 0x20]
test eax, eax
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
cmovne ecx, eax
push 0
mov dword [esp + 0x24], ecx
call esi
push 1
mov edi, eax
call esi
mov ecx, dword [esp + 0x10]
sub eax, ecx
push 0
push dword [esp + 0x2c]
cdq
push 0
push 0
push ecx
mov ecx, dword [esp + 0x28]
sub eax, edx
sar eax, 1
sub edi, ecx
push ecx
push eax
mov eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
push closesocket
push 0x62dc3c
lea eax, [esp + 0x98]
push eax
push 8
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x6d7f44], eax
test eax, eax
jne 0x48fff8
push eax
push str.Hiba
push str.Nem_siker
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x490053
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x6d7f44]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [esp + 0x54]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x490053
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
nop word [eax + eax]
lea eax, [esp + 0x54]
push eax
call edi
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x60]
push eax
call esi
test eax, eax
jne 0x490030
push dword [esp + 0x1c]
mov dword [esp + 0x1c], vtable.Gdiplus::Image.0
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
mov ecx, dword [esp + 0xac]
pop edi
pop esi
xor ecx, esp
call fcn.00552bec
mov esp, ebp
pop ebp
ret
Function at 0x4a6980
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, 0xc6ef3720
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x20
mov edx, esi
mov ecx, esi
shl ecx, 4
dec ebx
shr edx, 5
xor edx, ecx
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp + 0x10]
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebx + ecx*4]
add ecx, eax
add eax, 0x61c88647
xor edx, ecx
sub edi, edx
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebx + ecx*4]
mov ebx, dword [ebp + 0xc]
add ecx, eax
xor edx, ecx
sub esi, edx
test ebx, ebx
jne 0x4a6996
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov dword [eax + 4], edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4a7200
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4a72a9
cmp byte [esi], 0
je 0x4a72a9
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a7220
sub ecx, edx
cmp ecx, 3
jb 0x4a7237
cmp byte [esi + 1], 0x3a
jne 0x4a7237
add esi, 3
mov ecx, esi
mov dword [ebp + 8], esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a7240
sub ecx, edx
push edi
lea eax, [ecx + 1]
push eax
mov dword [ebp - 4], eax
call fcn.00552c0b
mov cl, byte [esi]
add esp, 4
mov edi, eax
test cl, cl
je 0x4a729f
push ebx
xor ebx, ebx
mov eax, esi
cmp cl, 0x2f
je 0x4a7270
cmp cl, 0x5c
jne 0x4a7292
push dword [ebp - 4]
push 0
push edi
call fcn.0058fee0
push ebx
push esi
push edi
call fcn.00598450
add esp, 0x18
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 1]
inc eax
inc ebx
mov dword [ebp + 8], eax
test cl, cl
jne 0x4a7266
pop ebx
push edi
call fcn.00552c14
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a7850
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
or eax, 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0x10
jb 0x4a78e2
mov ecx, edi
shr ecx, 4
push ebx
mov dword [ebp + 0xc], ecx
push esi
lea esi, [edx + 1]
mov ebx, 4
nop dword [eax + eax]
movsx ecx, byte [esi - 1]
lea esi, [esi + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6502c0]
movsx ecx, byte [esi - 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6502c0]
movsx ecx, byte [esi - 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6502c0]
movsx ecx, byte [esi - 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6502c0]
sub ebx, 1
jne 0x4a7880
add edx, 0x10
sub edi, 0x10
sub dword [ebp + 0xc], 1
jne 0x4a7870
pop esi
pop ebx
test edi, edi
je 0x4a7900
movsx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6502c0]
sub edi, 1
jne 0x4a78e6
not eax
pop edi
pop ebp
ret
Function at 0x4ab7d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
call fcn.004ab870
push 0x104
push dword [ebp + 8]
lea eax, [edi + 8]
push eax
call fcn.00598450
mov ebx, dword [ebp + 0xc]
add esp, 0xc
xor eax, eax
mov ecx, closesocket
cmp ebx, 1
setne al
push 0
add eax, 3
push 0x80
push eax
xor eax, eax
cmp ebx, 2
push 0
sete al
lea eax, [eax*2 + 1]
push eax
mov eax, 0xc0000000
cmovne eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x110], eax
cmp eax, 0xffffffff
je 0x4ab857
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 0x114], eax
mov eax, 1
mov dword [edi + 4], ebx
pop edi
pop ebx
pop ebp
ret 8
mov dword [edi + 0x110], 0
xor eax, eax
pop edi
pop ebx
pop ebp
ret 8

Function at 0x4b50f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
call fcn.004b5070
mov eax, dword [ebp + 8]
lea esi, [edi + 0x70]
push 0
push 1
push 2
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
call sub.WS2_32.dll_socket
mov dword [edi + 0x6c], eax
cmp eax, 0xffffffff
je 0x4b51af
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
mov ecx, esi
call fcn.004d3750
push eax
push esi
push dword [edi + 0x6c]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x4b51c7
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4b51c7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.004b5070
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [edi + 0x6c], eax
cmp eax, 0xffffffff
je 0x4b51af
lea ecx, [ebp - 4]
push ecx
push 0x8004667e
push eax
call sub.WS2_32.dll_ioctlsocket
mov ecx, esi
call fcn.004d3750
push eax
push esi
push dword [edi + 0x6c]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x4b51c7
push str.error___WSAEWOULDBLOCK
call fcn.004a4e40
add esp, 4
mov ecx, edi
call fcn.004b5070
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push 0
call fcn.005a20e7
mov ecx, eax
add esp, 4
mov eax, dword [ebp + 0xc]
mov esi, edx
cdq
add ecx, eax
mov al, 1
mov dword [edi + 8], ecx
adc esi, edx
mov dword [edi + 0xc], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4b53c0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x651ea8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x6c]
cmp eax, 0xffffffff
je 0x4b5506
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x104], eax
lea eax, [ebp - 0x214]
push eax
push 0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x20c], 1
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x108], 1
push eax
push 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x4b5506
push ebx
mov bl, byte [esi + 0x48]
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x6c]
call sub.WS2_32.dll___WSAFDIsSet
test bl, bl
pop ebx
jne 0x4b54aa
test eax, eax
je 0x4b5473
mov eax, dword [esi]
mov ecx, esi
mov byte [esi + 0x48], 1
call dword [eax + 4]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00552bec
mov esp, ebp
pop ebp
ret
push 0
call fcn.005a20e7
add esp, 4
cmp edx, dword [esi + 0xc]
jl 0x4b5506
jg 0x4b548d
cmp eax, dword [esi + 8]
jbe 0x4b5506
mov ecx, esi
call fcn.004b5070
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00552bec
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x4b54cd
mov eax, dword [esi + 0x34]
cmp eax, dword [esi + 0x38]
jle 0x4b54cd
mov ecx, esi
call fcn.004b5860
test al, al
jne 0x4b54cd
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4b54f8
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x6c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4b54eb
mov ecx, esi
call fcn.004b5740
test al, al
je 0x4b54f8
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x4b5506
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, esi
call fcn.004b5070
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00552bec
mov esp, ebp
pop ebp
ret
Function at 0x4b5740
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x28]
mov edi, dword [esi + 0x24]
test eax, eax
jle 0x4b5779
mov edx, edi
sub edx, eax
test edx, edx
jle 0x4b576d
mov ecx, dword [esi + 0x1c]
add eax, ecx
push edx
push eax
push ecx
call fcn.0058f8b0
mov edi, dword [esi + 0x24]
add esp, 0xc
mov eax, dword [esi + 0x28]
sub edi, eax
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], edi
mov ebx, dword [esi + 0x20]
mov ecx, esi
sub ebx, edi
call fcn.004b5320
test al, al
je 0x4b5821
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
sub eax, ecx
cmp eax, ebx
cmovge eax, ebx
test eax, eax
jle 0x4b584b
push 0
push eax
mov eax, dword [esi + 0x10]
add eax, ecx
push eax
push dword [esi + 0x6c]
call sub.WS2_32.dll_recv
mov edi, eax
test edi, edi
jns 0x4b57cb
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4b57d1
pop edi
pop esi
xor al, al
pop ebx
ret
je 0x4b5853
add dword [esi + 0x14], edi
mov edi, dword [esi + 0x14]
cmp edi, 8
jl 0x4b584b
and edi, 0xfffffff8
lea eax, [esi + 0x5a]
push edi
push eax
mov eax, dword [esi + 0x1c]
push dword [esi + 0x10]
add eax, dword [esi + 0x24]
push eax
call fcn.004a6c50
add dword [esi + 0x24], eax
add esp, 0x10
mov eax, dword [esi + 0x14]
cmp eax, edi
jle 0x4b5816
mov ecx, dword [esi + 0x10]
sub eax, edi
push eax
lea eax, [ecx + edi]
push eax
push ecx
call fcn.0058f8b0
mov eax, dword [esi + 0x14]
add esp, 0xc
sub eax, edi
pop edi
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebx
ret
test ebx, ebx
jle 0x4b584b
mov eax, dword [esi + 0x1c]
push 0
push ebx
add eax, edi
push eax
push dword [esi + 0x6c]
call sub.WS2_32.dll_recv
mov edi, eax
test edi, edi
jns 0x4b5851
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4b5853
add dword [esi + 0x24], edi
pop edi
pop esi
mov al, 1
pop ebx
ret
jne 0x4b5848
pop edi
pop esi
xor al, al
pop ebx
ret

Function at 0x4b5860
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.004b56f0
mov ecx, esi
mov edi, eax
call fcn.004b5320
test al, al
je 0x4b58e8
test edi, edi
jle 0x4b5911
push edi
lea eax, [esi + 0x4a]
push eax
mov eax, dword [esi + 0x2c]
add eax, dword [esi + 0x38]
push eax
mov eax, dword [esi + 0x3c]
add eax, dword [esi + 0x44]
push eax
call fcn.004a6cb0
add dword [esi + 0x44], eax
add esp, 0x10
mov eax, dword [esi + 0x44]
add dword [esi + 0x38], edi
test eax, eax
jle 0x4b590a
push 0
push eax
push dword [esi + 0x3c]
push dword [esi + 0x6c]
call sub.WS2_32.dll_send
mov edi, eax
test edi, edi
js 0x4b5902
mov edx, dword [esi + 0x44]
cmp edx, edi
jle 0x4b58d7
mov ecx, dword [esi + 0x3c]
sub edx, edi
push edx
lea eax, [ecx + edi]
push eax
push ecx
call fcn.0058f8b0
mov edx, dword [esi + 0x44]
add esp, 0xc
sub edx, edi
mov ecx, esi
mov dword [esi + 0x44], edx
call fcn.004b5700
pop edi
mov al, 1
pop esi
ret
test edi, edi
jle 0x4b5911
mov eax, dword [esi + 0x2c]
add eax, dword [esi + 0x38]
push 0
push edi
push eax
push dword [esi + 0x6c]
call sub.WS2_32.dll_send
test eax, eax
jns 0x4b5907
pop edi
xor al, al
pop esi
ret
add dword [esi + 0x38], eax
mov ecx, esi
call fcn.004b5700
pop edi
mov al, 1
pop esi
ret
Function at 0x4bef50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
mov byte [ecx + 0x19], al
mov ecx, dword [ecx + 4]
test al, al
je 0x4bef6d
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 4

Function at 0x4bf5b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e73b9
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x651ea8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.004bdfa0
mov dword [ebp - 4], 0
mov dword [edi + 4], vtable.CLightBase.0
mov eax, edi
mov dword [edi + 8], vtable.CSingleton_class_CLightManager_.0
mov dword [0x662afc], eax
lea esi, [edi + 0xc]
mov dword [edi], vtable.CLightManager.0
mov dword [edi + 4], vtable.CLightManager.1.0
mov dword [edi + 8], vtable.CLightManager.2.0
push 8
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.00552c3c
mov dword [esi], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
lea esi, [edi + 0x20]
mov byte [ebp - 4], 3
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040f8e0
mov dword [esi], eax
xorps xmm0, xmm0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x48], vtable.CDynamicPool_class_CLight_.0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
unpcklps xmm0, xmm0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
movq qword [edi + 0x34], xmm0
mov dword [edi + 0x3c], eax
mov eax, edi
mov dword [edi + 0x40], 3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret