joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b50f0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61652d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6ac420]
xor eax, ebp
mov dword [ebp - 0x10], eax
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 0x4b51e5
nop word [eax + eax]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 4
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x28], 0x5c62696c
mov byte [ebp - 0x24], 0
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0043e960
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.005cba09
add esp, 8
test eax, eax
jne 0x4b5202
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
setae dl
test dl, dl
push esi
cmovne ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4b51d4
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b51ca
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5236
push ecx
push edx
call fcn.00579416
add esp, 8
mov eax, dword [edi*4 + 0x659ec4]
inc edi
cmp byte [eax], 0xa
jne 0x4b5130
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00579408
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4b5232
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4b5228
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b5236
push ecx
push edx
call fcn.00579416
add esp, 8
xor al, al
jmp 0x4b51e7
call fcn.005bf450
int3
Function at 0x4b5250
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x6ac420]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x108]
mov dword [ebp - 0x40c], ecx
push eax
push 0x100
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x109], 0x5c
je 0x4b52b3
lea edi, [ebp - 0x108]
dec edi
nop
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4b52a0
mov ax, word [0x66a53c]
mov word [edi], ax
lea ecx, [ebp - 0x108]
dec ecx
nop word [eax + eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4b52c0
mov eax, dword [str.metin2client.dat]
mov dword [ecx], eax
mov eax, dword [0x66a52c]
mov dword [ecx + 4], eax
mov eax, dword [0x66a530]
mov dword [ecx + 8], eax
mov eax, dword [0x66a534]
mov dword [ecx + 0xc], eax
mov al, byte [0x66a538]
mov byte [ecx + 0x10], al
call fcn.0044c010
mov ebx, eax
lea edi, [ebp - 0x408]
mov edx, ebx
sub edi, ebx
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [edi + edx - 1], cl
test cl, cl
jne 0x4b5302
push 7
lea eax, [ebp - 0x408]
push str.locale_
push eax
call fcn.005c9e19
add esp, 0xc
test eax, eax
jne 0x4b5341
lea ecx, [ebx + 7]
lea edx, [ebp - 0x408]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4b5334
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x108]
push eax
push 0x1ff
lea eax, [ebp - 0x308]
push eax
push 0
push esi
lea eax, [ebp - 0x408]
push eax
call edi
cmp byte [ebp - 0x308], 0
jne 0x4b53d1
push 0x1ff
lea eax, [ebp - 0x308]
push eax
push dword [ebp - 0x40c]
push dword [0x6ff2c8]
call dword [sym.imp.USER32.dll_LoadStringA]
cmp byte [ebp - 0x308], 0
jne 0x4b53d1
lea eax, [ebp - 0x108]
push eax
push 0x1ff
lea eax, [ebp - 0x308]
push eax
push 0
push esi
push 0x65a264
call edi
cmp byte [ebp - 0x308], 0
jne 0x4b53d1
lea ecx, [ebp - 0x308]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4b53c4
lea eax, [ebp - 0x40c]
mov ecx, 0x6ff2cc
push eax
call fcn.0046d130
lea ecx, [ebp - 0x308]
mov esi, eax
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b53f0
sub ecx, edx
lea eax, [ebp - 0x308]
push ecx
push eax
mov ecx, esi
call fcn.0043d980
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00579408
mov esp, ebp
pop ebp
ret
Function at 0x4b6710
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61987f
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6ac420]
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 edi, edx
mov ebx, ecx
push 0
call fcn.005cacc2
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add eax, esi
push eax
call fcn.004d29a0
call fcn.004d2940
push eax
call fcn.005ca75a
push 1
call fcn.004d1300
push 0
push str.perf_game_update.txt
call fcn.005cba09
add esp, 0x14
test eax, eax
jne 0x4b6789
push str.perf_game_update.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push str.newpatch.exe
call fcn.005cba09
add esp, 8
test eax, eax
jne 0x4b67b0
push str.patchupdater.exe
call fcn.005cd13f
add esp, 4
xor al, al
jmp 0x4b68e3
call dword [sym.imp.DevIL.dll_ilInit]
call fcn.004b6d40
test eax, eax
je 0x4b67a9
push 0
call fcn.004d12b0
mov eax, dword fs:[0x2c]
add esp, 4
mov esi, dword [eax]
mov eax, dword [0x736dc4]
cmp eax, dword [esi + 0x20]
jg 0x4b68ff
mov eax, dword [0x736dd0]
cmp eax, dword [esi + 0x20]
jg 0x4b694d
call fcn.004b54b0
test al, al
jne 0x4b6814
push 0
push 0
push str.Pack_Initialization_failed._Check_log.txt_file..
call fcn.004d1130
add esp, 0xc
xor al, al
jmp 0x4b68e3
call fcn.004415f0
test al, al
je 0x4b682b
call fcn.0044bff0
push eax
call fcn.004faab0
add esp, 4
push 0x2e8c0
call fcn.00579424
add esp, 4
mov dword [ebp - 0x44], eax
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.004503e0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
push ebx
mov ecx, esi
call fcn.004e9b70
lea ecx, [ebp - 0x40]
xor bl, bl
call fcn.0056f000
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 3
call fcn.0046a840
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 4
push eax
call fcn.0056faf0
add esp, 4
lea ecx, [ebp - 0x40]
push str.eter.python
call fcn.0056f0c0
test al, al
je 0x4b68a0
mov edx, edi
lea ecx, [ebp - 0x40]
call fcn.004b5ae0
mov bl, al
mov ecx, esi
call fcn.00452a30
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
lea ecx, [ebp - 0x40]
call sub.python27.dll_Py_Finalize
lea ecx, [ebp - 0x34]
call fcn.0046a910
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.0056f030
mov ecx, esi
call fcn.00452a40
test esi, esi
je 0x4b68e1
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.00579408
mov esp, ebp
pop ebp
ret
push 0x736dc4
call fcn.00579817
add esp, 4
cmp dword [0x736dc4], 0xffffffff
jne 0x4b67e2
mov ecx, 0x736dc8
mov dword [ebp - 4], 0
call fcn.004d29b0
push 0x627480
call fcn.005796cf
push 0x736dc4
mov dword [ebp - 4], 0xffffffff
call fcn.005797cd
add esp, 8
jmp 0x4b67e2
push 0x736dd0
call fcn.00579817
add esp, 4
cmp dword [0x736dd0], 0xffffffff
jne 0x4b67f3
mov ecx, 0x736dd8
mov dword [ebp - 4], 1
call fcn.00504e50
push 0x627470
call fcn.005796cf
push 0x736dd0
mov dword [ebp - 4], 0xffffffff
call fcn.005797cd
add esp, 8
jmp 0x4b67f3
Function at 0x4b7e50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x6ac420]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x638654
push 0x64
mov esi, edx
call fcn.00579f42
mov edi, eax
add esp, 8
test edi, edi
je 0x4b7ffa
push 0x63
lea ecx, [edi + 1]
push 0
push ecx
call fcn.005b55d0
add esp, 0xc
mov byte [edi], 1
lea eax, [edi + 4]
push 2
push eax
call fcn.005781b5
lea eax, [edi + 0x34]
push eax
call fcn.005782ca
add esp, 0xc
mov dword [0x73051c], edi
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
movq qword [edi + 0x5c], xmm0
push 0x20
push eax
push 0xffffffffffffffff
push str.1102663511278104626
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea ecx, [ebp - 0x48]
call fcn.004bce90
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x6ff2d4
mov dword [0x73093c], eax
call fcn.005781d4
add esp, 4
test eax, eax
jne 0x4b8014
test esi, esi
je 0x4b7f0e
movups xmm0, xmmword [esi]
movups xmmword [0x730504], xmm0
movq xmm0, qword [esi + 0x10]
jmp 0x4b7f18
xorps xmm0, xmm0
movups xmmword [0x730504], xmm0
movq qword [0x730514], xmm0
xorps xmm0, xmm0
push 0x6ff2d4
movups xmmword [0x730924], xmm0
movq qword [0x730934], xmm0
call fcn.005781f9
add esp, 4
cmp dword [0x734944], 0
jne 0x4b8004
cmp byte [str.1102663511278104626], 0
mov edx, 0x720390
mov dword [0x720380], 0x6b18c0
je 0x4b7f83
mov eax, str.1102663511278104626
mov esi, 1
sub esi, eax
lea ecx, [eax + esi]
cmp ecx, 0x40
jae 0x4b7f83
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp byte [eax], 0
jne 0x4b7f70
mov esi, dword [0x73051c]
mov al, 1
mov byte [edx], 0
mov dword [0x734944], 0x720380
mov dword [0x720388], 0x4b8320
mov dword [0x72038c], 0x4b8330
xchg byte [esi], al
push 4
call fcn.00579424
add esp, 4
lea ecx, [ebp - 0x4c]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x4b8710
push 0
push 0
call fcn.005ca8c8
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x50], ecx
test ecx, ecx
je 0x4b801f
cmp dword [esi + 0x60], 0
jne 0x4b801a
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00579408
mov esp, ebp
pop ebp
ret
mov dword [0x73051c], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00579408
mov esp, ebp
pop ebp
ret
push eax
call fcn.00578408
call fcn.005cd14a
push 6
mov dword [ebp - 0x4c], 0
call fcn.00578435
int3
Function at 0x4bb570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x6ac420]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x734944]
push esi
push eax
mov dword [edi + 0x154], 1
lea eax, [edi + 0x15c]
lea ebx, [edi + 0x154]
push eax
call fcn.005b4fa0
add esp, 0xc
mov dword [edi + 0x158], esi
add esi, 8
je 0x4bb642
mov eax, dword [edi]
test eax, eax
je 0x4bb5f1
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x4bb5f1
test ebx, ebx
je 0x4bb5f1
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x4bb5f1
cmp dword [ebp - 8], esi
je 0x4bb642
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4bb611
mov eax, dword [edi + 4]
cmp eax, 3
je 0x4bb605
cmp eax, 1
jne 0x4bb611
lea eax, [edi + 0x54]
push eax
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
xor al, al
mov byte [esi], 0
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00579408
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00579408
mov esp, ebp
pop ebp
ret 8
Function at 0x4bd7d0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x6c3728]
test eax, eax
je 0x4bd814
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x6c3728]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4bd7fe
push dword [0x6c3728]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x6c372c]
mov dword [0x6c3728], 0
call dword [sym.imp.USER32.dll_SetFocus]
ret
Function at 0x4d1e20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4d1ec9
cmp byte [esi], 0
je 0x4d1ec9
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d1e40
sub ecx, edx
cmp ecx, 3
jb 0x4d1e57
cmp byte [esi + 1], 0x3a
jne 0x4d1e57
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 0x4d1e60
sub ecx, edx
push edi
lea eax, [ecx + 1]
push eax
mov dword [ebp - 4], eax
call fcn.00579485
mov cl, byte [esi]
add esp, 4
mov edi, eax
test cl, cl
je 0x4d1ebf
push ebx
xor ebx, ebx
mov eax, esi
cmp cl, 0x2f
je 0x4d1e90
cmp cl, 0x5c
jne 0x4d1eb2
push dword [ebp - 4]
push 0
push edi
call fcn.005b55d0
push ebx
push esi
push edi
call fcn.005bf4b0
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 0x4d1e86
pop ebx
push edi
call fcn.0057948e
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4d24a0
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 0x4d2532
mov ecx, edi
shr ecx, 4
push ebx
mov dword [ebp + 0xc], ecx
push esi
lea esi, [edx + 2]
mov ebx, 4
nop dword [eax + eax]
movsx ecx, byte [esi - 2]
lea esi, [esi + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6912c0]
movsx ecx, byte [esi - 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6912c0]
movsx ecx, byte [esi - 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6912c0]
movsx ecx, byte [esi - 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6912c0]
sub ebx, 1
jne 0x4d24d0
add edx, 0x10
sub edi, 0x10
sub dword [ebp + 0xc], 1
jne 0x4d24c0
pop esi
pop ebx
test edi, edi
je 0x4d2550
movsx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x6912c0]
sub edi, 1
jne 0x4d2536
not eax
pop edi
pop ebp
ret
Function at 0x4d2820
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 0x4d284b
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 0x4d2870
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 ebx, eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0
push ebx
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
je 0x4d28de
push ebx
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
push ebx
push esi
call fcn.004d24a0
add esp, 8
mov ebx, eax
test esi, esi
je 0x4d28ce
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d3280
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 0x4d3293
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 0x4d32f0
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 0x4d3306
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 0x4d44d0
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 esi
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x130], ecx
test eax, eax
jne 0x4d44ef
mov eax, dword [esi + 0x114]
mov dword [esi + 0x134], eax
add eax, ecx
cmp eax, dword [esi + 0x114]
jbe 0x4d4508
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [esi + 0x130]
xor edx, edx
mov ecx, dword [ebp - 8]
mov eax, edi
div ecx
mov eax, dword [esi + 0x134]
mov ebx, edi
push 0
mov dword [ebp + 0x10], eax
sub ebx, edx
add eax, edi
mov dword [ebp + 0xc], ecx
push eax
push 0
push 2
push 0
push dword [esi + 0x110]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, eax
mov dword [esi + 0x12c], ecx
test ecx, ecx
jne 0x4d456c
push str.CMappedFile::Map__m_hFM_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor edx, edx
mov eax, edi
div dword [ebp + 0xc]
add edx, dword [ebp + 0x10]
push edx
push ebx
push 0
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x138], eax
test eax, eax
jne 0x4d45ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CMappedFile::Map__m_lpMapData__lu
call fcn.004d1330
add esp, 8
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
sub eax, ebx
lea ecx, [eax + edi]
mov eax, dword [ebp + 8]
mov dword [esi + 0x13c], ecx
mov dword [eax], ecx
mov ecx, esi
push dword [esi + 0x13c]
mov dword [esi + 0x128], 0
push dword [esi + 0x134]
call fcn.004d44b0
mov eax, dword [esi + 0x134]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4d79a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, ecx
call fcn.004d7a40
push 0x104
push dword [ebp + 8]
lea eax, [edi + 8]
push eax
call fcn.005bf4b0
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 0x4d7a27
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 0x4e0580
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61b2c6
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6ac420]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 0x4c]
mov dword [esi], vtable.CNetworkStream.0
call fcn.005ea170
lea ecx, [esi + 0x60]
mov dword [ebp - 4], 0
call fcn.004fe950
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x5c], 0xffffffff
mov byte [esi + 0x48], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x70], 0
mov byte [esi + 0x74], 0
mov eax, dword [esi + 0x7c]
mov byte [ebp - 4], 2
cmp eax, 0x8000
ja 0x4e06a4
jae 0x4e06ab
cmp dword [esi + 0x80], 0x8000
jae 0x4e0696
lea eax, [ebp - 0xd]
push eax
push 0x8000
lea ecx, [esi + 0x78]
call fcn.0044d5e0
jmp 0x4e06ab
push 0x8000
push eax
call fcn.0044d6a0
add esp, 8
mov dword [esi + 0x7c], 0x8000
push 0x8000
push 0x6917f8
push dword [esi + 0x78]
call fcn.005b4fa0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4e08d0
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.004e0850
mov eax, dword [ebp + 8]
lea esi, [edi + 0x60]
push 0
push 1
push 2
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
call sub.WS2_32.dll_socket
mov dword [edi + 0x5c], eax
cmp eax, 0xffffffff
je 0x4e0941
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.004fe970
push eax
push esi
push dword [edi + 0x5c]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x4e0959
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4e0959
push str.error___WSAEWOULDBLOCK
call fcn.004d1510
add esp, 4
mov ecx, edi
call fcn.004e0850
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.005cad1f
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 0x4e0b60
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6ac420]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
cmp eax, 0xffffffff
je 0x4e0ca9
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 0x4e0ca9
cmp byte [esi + 0x48], 0
lea ecx, [ebp - 0x108]
mov eax, dword [esi + 0x5c]
push ecx
push eax
jne 0x4e0c48
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e0c11
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.00579408
mov esp, ebp
pop ebp
ret
push 0
call fcn.005cad1f
add esp, 4
cmp edx, dword [esi + 0xc]
jl 0x4e0ca9
jg 0x4e0c2b
cmp eax, dword [esi + 8]
jbe 0x4e0ca9
mov ecx, esi
call fcn.004e0850
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00579408
mov esp, ebp
pop ebp
ret
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e0c70
mov eax, dword [esi + 0x34]
cmp eax, dword [esi + 0x38]
jle 0x4e0c70
mov ecx, esi
call fcn.004e0fb0
test al, al
jne 0x4e0c70
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4e0c9b
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x5c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4e0c8e
mov ecx, esi
call fcn.004e0ef0
test al, al
je 0x4e0c9b
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
test al, al
jne 0x4e0ca9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, esi
call fcn.004e0850
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00579408
mov esp, ebp
pop ebp
ret