joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c2f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
push dword [esp + 0xc]
lea eax, [esp + 0xf]
push eax
push dword [0x70e30c]
push dword [0x70e308]
call fcn.00468500
mov eax, dword [0x70e308]
add esp, 0x10
mov dword [0x70e30c], eax
call fcn.0046bc10
call fcn.0046b750
call fcn.0046bc70
call fcn.0046b150
call fcn.0046a9d0
call fcn.0046a9b0
call fcn.0046be60
call fcn.0046c0e0
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x46bf80
push 0
push 0
call esi
push 0
push 0
push 0
push 0x46bfb0
push 0
push 0
mov dword [0x70b3d4], eax
call esi
push 0
push 0
push 0
push 0x46bed0
push 0
push 0
mov dword [0x70b3d0], eax
call esi
push 0
push 0
push 0
push 0x46bed0
push 0
push 0
mov dword [0x70b3cc], eax
call esi
mov dword [0x70ae3c], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x471a20
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x612aa8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6b64f0]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x6b64f0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0045b170
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push dword [ebp + 8]
push eax
call fcn.00471940
add esp, 0x24
mov dword [esp + 0x38], 0
cmp dword [eax + 0x14], 0x10
jb 0x471a9d
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ecx, esi
lea eax, [esp + 0xc]
push eax
call fcn.005d80e0
cmp dword [esp + 0x24], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x471ac6
push dword [esp + 0x10]
call fcn.004e41e0
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, esi
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005d67d1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4727f0
Capabilities:
Access peb ldr_data
Create directory
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x612b3f
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x6b64f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [0x70ed48], ebx
mov dword [ebp - 4], 0
mov dword [ebx], vtable.CGuildMarkManager.0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
call fcn.00463760
mov dword [ebx + 4], eax
mov byte [ebp - 4], 1
lea ecx, [ebx + 0xc]
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
call fcn.00463760
mov dword [ebx + 0xc], eax
mov byte [ebp - 4], 2
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
call fcn.00467ed0
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x30], 0xf
mov dword [ebx + 0x2c], 0
mov byte [ebx + 0x1c], 0
mov byte [ebp - 4], 4
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
call fcn.00473550
mov dword [ebx + 0x34], eax
push str.mark
mov byte [ebp - 4], 5
call fcn.005d9405
add esp, 4
xor esi, esi
mov dword [ebp - 0x10], esi
movzx eax, byte [0x70e4a5]
lea ecx, [ebx + 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00468180
inc esi
mov dword [ebp - 0x10], esi
cmp esi, 0x1900
jb 0x4728c2
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472960
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x612b9f
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6b64f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ecx], vtable.CGuildMarkManager.0
mov dword [ebp - 4], 5
lea edi, [ecx + 4]
mov eax, dword [edi]
mov esi, dword [eax]
cmp esi, eax
je 0x4729ed
push dword [esi + 0x14]
call fcn.004727d0
cmp byte [esi + 0xd], 0
jne 0x4729e9
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x4729ce
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x4729e9
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x4729c2
jmp 0x4729e9
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4729e7
cmp esi, dword [eax + 8]
jne 0x4729e7
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4729d7
mov esi, eax
cmp esi, dword [edi]
jne 0x4729a1
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov esi, ebx
cmp byte [ebx + 0xd], 0
jne 0x472a1d
lea ebx, [ebx]
push dword [esi + 8]
mov ecx, edi
call fcn.004635e0
mov esi, dword [esi]
push ebx
call fcn.004e41e0
add esp, 4
mov ebx, esi
cmp byte [esi + 0xd], 0
je 0x472a00
mov eax, dword [edi]
mov ebx, dword [ebp - 0x10]
mov dword [eax + 4], eax
mov eax, dword [edi]
lea ecx, [ebx + 0x34]
mov dword [eax], eax
mov eax, dword [edi]
mov dword [eax + 8], eax
mov dword [edi + 4], 0
mov eax, dword [ebx + 0x34]
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00473190
push dword [ebx + 0x34]
call fcn.004e41e0
add esp, 4
cmp dword [ebx + 0x30], 0x10
jb 0x472a63
push dword [ebx + 0x1c]
call fcn.004e41e0
add esp, 4
mov dword [ebx + 0x30], 0xf
lea ecx, [ebx + 0x14]
mov dword [ebx + 0x2c], 0
mov byte [ebx + 0x1c], 0
mov eax, dword [ebx + 0x14]
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00463160
push dword [ebx + 0x14]
call fcn.004e41e0
mov eax, dword [ebx + 0xc]
lea ecx, [ebx + 0xc]
add esp, 4
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00463160
push dword [ebx + 0xc]
call fcn.004e41e0
mov eax, dword [edi]
add esp, 4
mov ecx, edi
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00465070
push dword [edi]
call fcn.004e41e0
add esp, 4
mov dword [ebx], vtable.singleton_class_CGuildMarkManager_.0
mov dword [0x70ed48], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x474850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00474860

Function at 0x474860
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
lea ecx, [esi + 0x18]
movzx eax, byte [edi + 0x20]
mov byte [esi + 0x20], al
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x44], eax
mov eax, dword [edi + 0x48]
mov dword [esi + 0x48], eax
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
lea eax, [edi + 0x18]
push eax
call fcn.0045b2c0
mov eax, dword [edi + 0x58]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x5c]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x60]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 0x68]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 0x6c]
mov dword [esi + 0x6c], eax
mov eax, dword [edi + 0x70]
mov dword [esi + 0x70], eax
mov eax, dword [edi + 0x74]
mov dword [esi + 0x74], eax
mov ax, word [edi + 0x78]
mov word [esi + 0x78], ax
movzx eax, byte [edi + 0x7a]
mov byte [esi + 0x7a], al
mov eax, dword [edi + 0x7c]
mov dword [esi + 0x7c], eax
mov eax, dword [edi + 0x80]
mov dword [esi + 0x80], eax
mov eax, dword [edi + 0x84]
mov dword [esi + 0x84], eax
cmp esi, edi
je 0x474938
push 0xffffffffffffffff
push 0
push edi
mov ecx, esi
call fcn.0045b170
pop edi
pop esi
pop ebp
ret 4
Function at 0x476280
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x612dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x6b64f0]
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 dword [ebp - 0x254], edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x47638f
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00532e10
push 0x224
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.005dad10
add esp, 0x10
mov dword [ebp - 0x250], 0x224
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x476377
mov edi, dword [sym.imp.KERNEL32.dll_Module32Next]
lea ebx, [ebx]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x130]
cmovae edx, dword [ebp - 0x28]
call fcn.00476230
test eax, eax
jne 0x4763ad
push 0x224
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.005dad10
add esp, 0xc
mov dword [ebp - 0x250], 0x224
lea eax, [ebp - 0x250]
push eax
push esi
call edi
test eax, eax
jne 0x476330
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0x10
jb 0x47638f
push dword [ebp - 0x28]
call fcn.004e41e0
add esp, 4
xor al, al
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.005d67d1
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x130], 0
jne 0x4763ba
xor ecx, ecx
jmp 0x4763cc
lea ecx, [ebp - 0x130]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4763c3
sub ecx, edx
push ecx
lea eax, [ebp - 0x130]
mov ecx, ebx
push eax
call fcn.0045aca0
mov ecx, dword [ebp - 0x254]
mov eax, dword [ebp - 0x23c]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0x10
jb 0x476401
push dword [ebp - 0x28]
call fcn.004e41e0
add esp, 4
mov al, 1
jmp 0x476391
Function at 0x479dc0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x3c
push edi
xorps xmm0, xmm0
mov dword [esp + 0x3c], 0
lea eax, [esp + 0x1c]
push eax
movups xmmword [esp + 0x20], xmm0
movups xmmword [esp + 0x30], xmm0
call fcn.00479d40
push 0x65fa28
push dword [ebp + 8]
call fcn.005d70e8
add esp, 8
mov edi, eax
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
movss xmm0, dword [esp + 0x24]
sub esp, 0x18
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x38]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [esp + 0x34]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push str.CenterPos__f__f__f_n
push 0
push edi
call fcn.0055acc0
movss xmm0, dword [esp + 0x58]
add esp, 0xc
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x50]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [esp + 0x54]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push str.CameraSetting__f__f__f_n
push 0
push edi
call fcn.0055acc0
movss xmm0, dword [esp + 0x54]
add esp, 0xc
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x44]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [esp + 0x40]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push str.CmrPos__f__f__f_n
push 0
push edi
call fcn.0055acc0
cvttss2si eax, dword [esp + 0x54]
push eax
cvttss2si eax, dword [esp + 0x54]
push eax
cvttss2si eax, dword [esp + 0x54]
push eax
cvttss2si eax, dword [esp + 0x64]
push eax
cvttss2si eax, dword [esp + 0x6c]
push eax
cvttss2si eax, dword [esp + 0x74]
push eax
cvttss2si eax, dword [esp + 0x60]
push eax
cvttss2si eax, dword [esp + 0x60]
push eax
cvttss2si eax, dword [esp + 0x60]
push eax
push str.Line__x__dy__dz__ddistance__dpitch__drot__dup__dview__dcross__d__n
push 0
push edi
call fcn.0055acc0
add esp, 0x54
push edi
call fcn.005d73da
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x47d1c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
push 0x40
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 6
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret 0xc
Function at 0x496f70
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
pop ebp
jmp fcn.00551a90
Function at 0x4b9190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x58edadb9
xor eax, eax
cmp byte [ebp - 4], al
jbe 0x4b91c3
xor dword [ebp - 4], 0x80164043
add dword [ebp - 4], 0xd61f75bd
mov ecx, dword [ebp - 4]
mov dword [eax*4 + 0x70f220], ecx
inc eax
movzx ecx, byte [ebp - 4]
cmp eax, ecx
jb 0x4b91a2
mov eax, 0x70f220
mov esp, ebp
pop ebp
ret
Function at 0x4d72b0
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
push 0x65f4e4
push str.interface.cfg
mov edi, ecx
call fcn.005d70e8
mov esi, eax
add esp, 8
test esi, esi
jne 0x4d72d1
pop edi
xor al, al
pop esi
ret
push esi
push 0xc8
lea eax, [edi + 0x2630]
push 1
push eax
call fcn.005d72c2
push esi
call fcn.005d73da
add esp, 0x14
mov al, 1
pop edi
pop esi
ret

Function at 0x4d7300
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x262c], 0
je 0x4d736f
push edi
push 0x653e40
call dword [sym.imp.python22.dll_Py_BuildValue]
push eax
push str.OnSaveInterfaceStatus
push dword [esi + 0x262c]
call fcn.005c9640
push 0x65f57c
push str.interface.cfg
call fcn.005d70e8
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4d7351
push str.Cannot_open_interface.cfg
call fcn.005326e0
add esp, 4
pop edi
pop esi
ret
push edi
push 0xc8
lea eax, [esi + 0x2630]
push 1
push eax
call fcn.005d7824
push edi
call fcn.005d73da
add esp, 0x14
pop edi
pop esi
ret

Function at 0x4da950
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61682a
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6b64f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [0x70ed74], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.CPythonTextTail.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00463760
mov dword [esi + 4], eax
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.00463760
mov dword [esi + 0xc], eax
mov byte [ebp - 4], 2
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
call fcn.00463760
mov dword [esi + 0x14], eax
push 0
mov byte [ebp - 4], 3
push 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
call fcn.00482e90
mov dword [esi + 0x1c], eax
push 0
mov byte [ebp - 4], 4
push 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
call fcn.00482e90
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], vtable.CDynamicPool_struct_CPythonTextTail::STextTail_.0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.004da880
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4dc580
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x616988
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6b64f0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov eax, dword [0x6b64f0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [str.UserDict.pyc]
xor edi, edi
cmp byte [eax], 0xa
je 0x4dc68f
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, 0x6540c0
push 4
push str.lib_
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.0045aca0
mov dword [esp + 0x38], 0
mov edx, dword [esi]
cmp byte [edx], 0
jne 0x4dc60a
xor eax, eax
jmp 0x4dc619
mov eax, edx
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4dc610
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.0045bc80
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
push 0
cmovae eax, dword [esp + 0x14]
push eax
call fcn.005da348
add esp, 8
test eax, eax
jne 0x4dc6af
cmp dword [esp + 0x24], 0x10
lea esi, [esp + 0x10]
lea ecx, [esp + 0x10]
cmovae esi, dword [esp + 0x10]
cmovae ecx, dword [esp + 0x10]
push esi
push ecx
call ebx
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x24], 0x10
jb 0x4dc677
push dword [esp + 0x10]
call fcn.004e41e0
add esp, 4
inc edi
mov eax, dword [edi*4 + 0x6540c0]
lea esi, [edi*4 + 0x6540c0]
cmp byte [eax], 0xa
jne 0x4dc5d2
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.005d67d1
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x24], 0x10
jb 0x4dc6c2
push dword [esp + 0x10]
call fcn.004e41e0
add esp, 4
xor al, al
jmp 0x4dc691
Function at 0x4dc6e0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x6b64f0]
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 0x4dc743
mov edi, ecx
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4dc730
mov ax, word [0x670410]
mov word [edi], ax
lea ecx, [ebp - 0x104]
dec ecx
lea ebx, [ebx]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4dc750
mov eax, dword [str.metin2client.dat]
mov dword [ecx], eax
mov eax, dword [0x6703f0]
mov dword [ecx + 4], eax
mov eax, dword [0x6703f4]
mov dword [ecx + 8], eax
mov eax, dword [0x6703f8]
mov dword [ecx + 0xc], eax
mov al, byte [0x6703fc]
push ebx
mov byte [ecx + 0x10], al
call fcn.0046c540
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 0x4dc793
push 7
lea eax, [ebp - 0x404]
push str.locale_
push eax
call fcn.005d8f49
add esp, 0xc
test eax, eax
jne 0x4dc7d2
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 0x4dc7c5
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 0x4dc863
push 0x1ff
lea eax, [ebp - 0x304]
push eax
push dword [ebp - 0x408]
push dword [0x70e484]
call dword [sym.imp.USER32.dll_LoadStringA]
cmp byte [ebp - 0x304], 0
jne 0x4dc863
lea eax, [ebp - 0x104]
push eax
push 0x1ff
lea eax, [ebp - 0x304]
push eax
push 0
push esi
push 0x67043c
call edi
cmp byte [ebp - 0x304], 0
jne 0x4dc863
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 0x4dc856
lea eax, [ebp - 0x408]
mov ecx, 0x70e488
push eax
call fcn.00494290
cmp byte [ebp - 0x304], 0
mov esi, eax
jne 0x4dc883
xor ecx, ecx
jmp 0x4dc899
lea ecx, [ebp - 0x304]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4dc890
sub ecx, edx
push ecx
lea eax, [ebp - 0x304]
mov ecx, esi
push eax
call fcn.0045aca0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.005d67d1
mov esp, ebp
pop ebp
ret
Function at 0x4df790
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6171d7
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x6b64f0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x6b64f0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push 0
call fcn.005d9afe
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add eax, esi
push eax
call fcn.00533bc0
add esp, 4
call fcn.00533b60
push eax
call fcn.005d9837
add esp, 4
push 1
call fcn.005326b0
add esp, 4
push 0
push str.perf_game_update.txt
call fcn.005da348
add esp, 8
test eax, eax
jne 0x4df81e
push str.perf_game_update.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push str.newpatch.exe
call fcn.005da348
add esp, 8
test eax, eax
jne 0x4df845
push str.patchupdater.exe
call fcn.005daa96
add esp, 4
xor al, al
jmp 0x4df9d4
call dword [sym.imp.DevIL.dll_ilInit]
call fcn.004dfd80
test eax, eax
je 0x4df83e
push 0
call fcn.00532660
mov eax, dword [0x711140]
add esp, 4
test al, 1
jne 0x4df89b
or eax, 1
mov dword [0x711140], eax
mov ecx, 0x711144
mov dword [esp + 0x58], 0
call fcn.00533bd0
push 0x6247f0
call fcn.005d757c
mov dword [esp + 0x5c], 0xffffffff
add esp, 4
mov eax, dword [0x711140]
test al, 2
jne 0x4df8ce
or eax, 2
mov dword [0x711140], eax
mov ecx, 0x711150
mov dword [esp + 0x58], 1
call fcn.005646d0
push 0x6247e0
call fcn.005d757c
add esp, 4
mov dword [esp + 0x58], 0xffffffff
call fcn.004dc960
test al, al
jne 0x4df8ef
push 0
push 0
push str.Pack_Initialization_failed._Check_log.txt_file..
call fcn.00532500
add esp, 0xc
xor al, al
jmp 0x4df9d4
call fcn.0045eb10
test al, al
je 0x4df906
call fcn.0046c520
push eax
call fcn.0055ad20
add esp, 4
push 0x295f8
call fcn.005d67e0
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x58], 2
test eax, eax
je 0x4df92e
mov ecx, eax
call fcn.00476970
mov esi, eax
jmp 0x4df930
xor esi, esi
push ebx
mov ecx, esi
mov dword [esp + 0x5c], 0xffffffff
call fcn.0054a7d0
lea ecx, [esp + 0x14]
xor bl, bl
call fcn.005ca280
lea ecx, [esp + 0x24]
mov dword [esp + 0x58], 3
call fcn.00491c60
lea eax, [esp + 0x24]
mov byte [esp + 0x58], 4
push eax
call fcn.005ca9e0
add esp, 4
lea ecx, [esp + 0x14]
push str.eter.python
call fcn.005ca330
test al, al
je 0x4df98d
mov edx, edi
lea ecx, [esp + 0x14]
call fcn.004df1b0
mov bl, al
mov ecx, esi
call fcn.00478fb0
push 1
call dword [sym.imp.WINMM.dll_timeEndPeriod]
lea ecx, [esp + 0x14]
call sub.python22.dll_Py_Finalize
lea ecx, [esp + 0x24]
call fcn.00491d10
lea ecx, [esp + 0x14]
mov dword [esp + 0x58], 0xffffffff
call fcn.005ca2a0
mov ecx, esi
call fcn.00479000
test esi, esi
je 0x4df9d2
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov al, bl
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.005d67d1
mov esp, ebp
pop ebp
ret