joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b1140
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x735300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push edi
push eax
push 0x100
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 0x4b119a
mov edi, ecx
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4b1187
mov ax, word [0x6a7b64]
mov word [edi], ax
lea ecx, [ebp - 0x104]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4b11a1
mov eax, dword [str.metin2client.dat]
mov dword [ecx], eax
mov eax, dword [0x6a7b6c]
mov dword [ecx + 4], eax
mov eax, dword [0x6a7b70]
mov dword [ecx + 8], eax
mov eax, dword [0x6a7b74]
mov dword [ecx + 0xc], eax
mov al, byte [0x6a7b78]
mov byte [ecx + 0x10], al
call fcn.00499620
lea edx, [ebp - 0x404]
sub edx, eax
nop
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x4b11e0
push 7
lea eax, [ebp - 0x404]
push str.locale_
push eax
call fcn.0056dec7
add esp, 0xc
test eax, eax
jne 0x4b1224
call fcn.00499620
lea edx, [ebp - 0x404]
lea ecx, [eax + 7]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4b1217
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
jne 0x4b12b1
push 0x1ff
lea eax, [ebp - 0x304]
push eax
push dword [ebp + 8]
push dword [0x74be18]
call dword [sym.imp.USER32.dll_LoadStringA]
cmp byte [ebp - 0x304], 0
jne 0x4b12b1
lea eax, [ebp - 0x104]
push eax
push 0x1ff
lea eax, [ebp - 0x304]
push eax
push 0
push esi
push 0x6a7b84
call edi
cmp byte [ebp - 0x304], 0
jne 0x4b12b1
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 0x4b12a4
lea eax, [ebp + 8]
mov ecx, 0x74be1c
push eax
call fcn.0047b930
cmp byte [ebp - 0x304], 0
mov esi, eax
jne 0x4b12ce
xor ecx, ecx
jmp 0x4b12e0
lea ecx, [ebp - 0x304]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b12d7
sub ecx, edx
push ecx
lea eax, [ebp - 0x304]
mov ecx, esi
push eax
call fcn.00441ae0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.005688a8
mov esp, ebp
pop ebp
ret
Function at 0x4b1340
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x683cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x735300]
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 0x4b1433
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, 0x71cd18
push 4
push str.lib_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00441ae0
mov edx, dword [esi]
mov dword [ebp - 4], 0
cmp byte [edx], 0
jne 0x4b13b9
xor eax, eax
jmp 0x4b13c9
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b13c0
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x28]
call fcn.00441880
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0056a4f1
add esp, 8
test eax, eax
jne 0x4b1451
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
cmp dword [ebp - 0x14], 0x10
mov dword [ebp - 4], 0xffffffff
jb 0x4b141b
push dword [ebp - 0x28]
call fcn.00567fdc
add esp, 4
inc edi
mov eax, dword [edi*4 + 0x71cd18]
lea esi, [edi*4 + 0x71cd18]
cmp byte [eax], 0xa
jne 0x4b1386
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.005688a8
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x14], 0x10
jb 0x4b1462
push dword [ebp - 0x28]
call fcn.00567fdc
add esp, 4
xor al, al
jmp 0x4b1435
Function at 0x4b1480
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67d927
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x735300]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0
call fcn.0056bbd3
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add eax, esi
push eax
call fcn.004c5040
call fcn.004c4fe0
push eax
call fcn.0056b848
push 1
call fcn.004c4000
push 0
push str.perf_game_update.txt
call fcn.0056a4f1
add esp, 0x14
test eax, eax
jne 0x4b14fb
push str.perf_game_update.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push str.newpatch.exe
call fcn.0056a4f1
add esp, 8
test eax, eax
jne 0x4b1522
push str.patchupdater.exe
call fcn.0056e547
add esp, 4
xor al, al
jmp 0x4b16b6
call dword [sym.imp.DevIL.dll_ilInit]
push edi
call fcn.004b2230
add esp, 4
test eax, eax
je 0x4b151b
push 0
call fcn.004c3fb0
mov eax, dword [0x74be2c]
add esp, 4
test al, 1
jne 0x4b157a
or eax, 1
mov dword [0x74be2c], eax
mov ecx, 0x74be24
mov dword [ebp - 4], 0
call fcn.004c5a40
push 0x692ef0
call fcn.0056810c
mov eax, dword [0x74be2c]
add esp, 4
mov dword [ebp - 4], 0xffffffff
test al, 2
jne 0x4b15ab
or eax, 2
mov dword [0x74be2c], eax
mov ecx, 0x74be30
mov dword [ebp - 4], 1
call fcn.004f6820
push 0x692e60
call fcn.0056810c
add esp, 4
mov dword [ebp - 4], 0xffffffff
push str.pack
call fcn.004b16e0
add esp, 4
test al, al
jne 0x4b15d4
push 0
push 0
push str.Pack_Initialization_failed._Check_log.txt_file..
call fcn.004c3e50
add esp, 0xc
xor al, al
jmp 0x4b16b6
push ebx
call fcn.004fc340
add esp, 4
test al, al
je 0x4b15ef
call fcn.004995d0
push eax
call fcn.004dd4b0
add esp, 4
push 0x27120
call fcn.00567f8b
add esp, 4
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x4b1615
mov ecx, eax
call fcn.0048cd70
mov esi, eax
jmp 0x4b1617
xor esi, esi
push ebx
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.004ebc00
lea ecx, [ebp - 0x40]
xor bl, bl
call fcn.00560c30
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 3
call fcn.0049cdc0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 4
push eax
call fcn.00561380
add esp, 4
lea ecx, [ebp - 0x40]
push str.eter.python
call fcn.00560ce0
test al, al
je 0x4b166f
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.004b1bc0
add esp, 8
mov bl, al
mov ecx, esi
call fcn.0048d850
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
lea ecx, [ebp - 0x40]
call sub.python27.dll_Py_Finalize
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.0049ce40
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00560c50
mov ecx, esi
call fcn.0048de50
test esi, esi
je 0x4b16b4
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005688a8
mov esp, ebp
pop ebp
ret
Function at 0x4b2db0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x74d2ac]
test eax, eax
je 0x4b2df4
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x74d2ac]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b2dde
push dword [0x74d2ac]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x74d2b0]
mov dword [0x74d2ac], 0
call dword [sym.imp.USER32.dll_SetFocus]
ret
Function at 0x4c4790
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4c4839
cmp byte [esi], 0
je 0x4c4839
mov ecx, esi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c47b0
sub ecx, edx
cmp ecx, 3
jb 0x4c47c7
cmp byte [esi + 1], 0x3a
jne 0x4c47c7
add esi, 3
mov ecx, esi
push ebx
push edi
mov edi, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c47d0
sub ecx, edx
lea eax, [ecx + 1]
push eax
mov dword [ebp - 4], eax
call fcn.0056716c
add esp, 4
mov ebx, eax
cmp byte [esi], 0
je 0x4c482e
xor eax, eax
mov dword [ebp + 8], eax
mov cl, byte [edi]
cmp cl, 0x2f
je 0x4c4800
cmp cl, 0x5c
jne 0x4c4824
push dword [ebp - 4]
push 0
push ebx
call fcn.00569490
push dword [ebp + 8]
push esi
push ebx
call fcn.0056a760
add esp, 0x18
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebp + 8]
inc edi
inc eax
mov dword [ebp + 8], eax
cmp byte [edi], 0
jne 0x4c47f4
push ebx
call fcn.0043dc50
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c5810
Capabilities:
Get system information on windows
Print debug messages
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x24
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x130], ecx
test eax, eax
jne 0x4c582f
mov eax, dword [edi + 0x114]
mov dword [edi + 0x134], eax
add eax, ecx
cmp eax, dword [edi + 0x114]
jbe 0x4c5848
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [edi + 0x130]
xor edx, edx
mov eax, esi
mov ecx, dword [edi + 0x134]
div dword [ebp - 8]
push 0
mov ebx, eax
imul ebx, dword [ebp - 8]
lea eax, [ecx + edx]
mov dword [ebp + 0xc], eax
mov eax, esi
sub eax, ebx
mov dword [ebp + 0x10], eax
lea eax, [esi + ecx]
push eax
push 0
push 2
push 0
push dword [edi + 0x110]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [edi + 0x12c], eax
test eax, eax
jne 0x4c58b2
push str.CMappedFile::Map__m_hFM_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0xc
push dword [ebp + 0xc]
push ebx
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x138], eax
test eax, eax
jne 0x4c58ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CMappedFile::Map__m_lpMapData__lu
call fcn.004c4030
add esp, 8
xor eax, eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
add ecx, eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x13c], ecx
mov dword [eax], ecx
mov ecx, edi
push dword [edi + 0x13c]
mov dword [edi + 0x128], 0
push dword [edi + 0x134]
call fcn.004c57f0
mov eax, dword [edi + 0x134]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4c8d10
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x20
mov edx, edi
mov ecx, edi
shl ecx, 4
dec ebx
shr edx, 5
xor edx, ecx
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp + 0x10]
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ebx + ecx*4]
add ecx, eax
sub eax, 0x61c88647
xor edx, ecx
add esi, edx
mov edx, esi
mov ecx, esi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ebx + ecx*4]
mov ebx, dword [ebp + 0xc]
add ecx, eax
xor edx, ecx
add edi, edx
test ebx, ebx
jne 0x4c8d23
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 0x4c8d80
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 0x4c8d96
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 0x4c8ee0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
or eax, 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
cmp edi, 0x10
jb 0x4c8f7a
mov ecx, edi
shr ecx, 4
mov dword [ebp + 0xc], ecx
push ebx
lea edx, [esi + 1]
mov ebx, 4
jmp 0x4c8f10
movsx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x71d030]
movsx ecx, byte [edx - 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x71d030]
movsx ecx, byte [edx - 3]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x71d030]
movsx ecx, byte [edx - 2]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x71d030]
dec ebx
jne 0x4c8f10
add esi, 0x10
sub edi, 0x10
dec dword [ebp + 0xc]
jne 0x4c8f00
pop ebx
test edi, edi
je 0x4c8f9b
mov edi, edi
movsx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x71d030]
dec edi
jne 0x4c8f80
pop edi
not eax
pop esi
pop ebp
ret
Function at 0x4c9300
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4c932b
xor eax, eax
pop edi
pop ebp
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4c9350
Capabilities:
Get file size
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 8]
push 0
push edi
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
xor eax, eax
test esi, esi
je 0x4c93c7
xor edx, edx
div ebx
mov ecx, eax
imul ecx, ebx
lea eax, [edx + edi]
push eax
push ecx
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
push edi
push ebx
call fcn.004c8ee0
add esp, 8
mov edi, eax
test ebx, ebx
je 0x4c93be
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c9760
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
call fcn.004c9800
push 0x104
push dword [ebp + 8]
lea eax, [esi + 8]
push eax
call fcn.0056a760
mov edi, dword [ebp + 0xc]
add esp, 0xc
mov edx, 1
cmp edi, 2
jne 0x4c9797
mov ecx, 0xc0000000
lea edx, [edi + 1]
jmp 0x4c979c
mov ecx, closesocket
xor eax, eax
cmp edi, 1
push 0
push 0x80
setne al
add eax, 3
push eax
push 0
push edx
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x110], eax
cmp eax, 0xffffffff
je 0x4c97e4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 4], edi
mov dword [esi + 0x114], eax
mov eax, 1
pop edi
pop esi
pop ebp
ret 8
pop edi
mov dword [esi + 0x110], 0
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x4db2e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67f105
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x735300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [0x74975c], edi
mov dword [edi], vtable.CResourceManager.0
lea ecx, [edi + 4]
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.0048c460
mov dword [edi + 4], eax
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 1
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
call fcn.0048c460
mov dword [edi + 0xc], eax
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 2
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.0052c0d0
mov dword [edi + 0x14], eax
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 3
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
call fcn.0048c460
mov dword [edi + 0x1c], eax
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 4
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
call fcn.0048c460
mov dword [edi + 0x24], eax
lea ecx, [edi + 0x2c]
mov byte [ebp - 4], 5
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.0052c0d0
mov dword [edi + 0x2c], eax
lea ecx, [edi + 0x34]
mov byte [ebp - 4], 6
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
call fcn.0052c0d0
mov dword [edi + 0x34], eax
lea ecx, [edi + 0x3c]
mov byte [ebp - 4], 7
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
call fcn.0048c460
mov dword [edi + 0x3c], eax
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 0x4e26b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x67f761
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x735300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x4c]
mov dword [edi], vtable.CNetworkStream.0
call fcn.00643d50
lea ecx, [edi + 0x60]
mov dword [ebp - 4], 0
call fcn.004f1110
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
push 0x8000
lea ecx, [edi + 0x78]
mov byte [ebp - 4], 2
mov dword [edi + 0x5c], 0xffffffff
mov byte [edi + 0x48], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x70], 0
mov byte [edi + 0x74], 0
call fcn.004aa4c0
push 0x8000
push 0x71d5d0
push dword [edi + 0x78]
call fcn.00568e40
add esp, 0xc
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 0x4e29a0
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.004e2920
mov eax, dword [ebp + 8]
lea esi, [edi + 0x60]
push 0
push 1
push 2
movdqu xmm0, xmmword [eax]
movdqu xmmword [esi], xmm0
call sub.WS2_32.dll_socket
mov dword [edi + 0x5c], eax
cmp eax, 0xffffffff
je 0x4e2a13
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.00646250
push eax
push esi
push dword [edi + 0x5c]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x4e2a2b
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4e2a2b
push str.error___WSAEWOULDBLOCK
call fcn.004c4200
add esp, 4
mov ecx, edi
call fcn.004e2920
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.0056ef72
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 0x4e2c50
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x735300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
cmp eax, 0xffffffff
je 0x4e2d98
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 0x4e2d98
cmp byte [esi + 0x48], 0
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x5c]
jne 0x4e2d37
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e2d00
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.005688a8
mov esp, ebp
pop ebp
ret
push 0
call fcn.0056ef72
add esp, 4
cmp edx, dword [esi + 0xc]
jl 0x4e2d98
jg 0x4e2d1a
cmp eax, dword [esi + 8]
jbe 0x4e2d98
mov ecx, esi
call fcn.004e2920
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005688a8
mov esp, ebp
pop ebp
ret
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e2d5f
mov eax, dword [esi + 0x34]
cmp eax, dword [esi + 0x38]
jle 0x4e2d5f
mov ecx, esi
call fcn.004e3080
test al, al
jne 0x4e2d5f
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4e2d8a
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x5c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e2d7d
mov ecx, esi
call fcn.004e2fe0
test al, al
je 0x4e2d8a
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x4e2d98
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, esi
call fcn.004e2920
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005688a8
mov esp, ebp
pop ebp
ret