joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401507
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x566450]
push ebx
push esi
push edi
mov esi, 0x52be4c
push esi
mov dword [ebp + 0x88], eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40153b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x80]
push eax
call fcn.004da72d
lea eax, [ebp - 0x80]
push eax
call fcn.004da5ad
mov esi, eax
xor eax, eax
inc eax
push eax
push dword [esi + 0xc]
mov dword [ebp - 0x7c], eax
mov eax, dword [esi + 0x10]
inc eax
push eax
mov eax, dword [esi + 0x14]
add eax, 0x76c
push eax
mov ebx, str.Log_MatchLog__02d__02d__02d__d.txt
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.004da4d8
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 0x20
jmp 0x4015ab
inc dword [ebp - 0x7c]
cmp dword [ebp - 0x7c], 0x64
jg 0x4015ca
push dword [ebp - 0x7c]
mov eax, dword [esi + 0x10]
push dword [esi + 0xc]
inc eax
push eax
mov eax, dword [esi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.004da4d8
add esp, 0x18
lea eax, [ebp - 0x78]
push eax
call edi
test eax, eax
jne 0x401581
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x94]
call fcn.004da3e0
pop ecx
pop ecx
mov al, 1
jmp 0x4015cc
xor al, al
mov ecx, dword [ebp + 0x88]
pop edi
pop esi
pop ebx
call fcn.004da561
add ebp, 0x8c
leave
ret

Function at 0x40244b
Capabilities:
Check mutex on windows

Disassembly:
cmp byte [esp + 4], 1
push ebx
push ebp
push esi
push edi
mov esi, ecx
jne 0x4024b6
mov ebp, dword [sym.imp.KERNEL32.dll_CreateMutexA]
and dword [esp + 0x14], 0
lea edi, [esi + 4]
push edi
push 1
push 0
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40249f
push dword [esi + 0x104]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add dword [esp + 0x14], 0x64
cmp dword [esp + 0x14], 0x493e0
jge 0x4024b2
push edi
push 1
push 0
call ebp
mov dword [esi + 0x104], eax
call ebx
cmp eax, 0xb7
je 0x402475
mov al, 1
jmp 0x4024d8
xor al, al
jmp 0x4024d8
lea eax, [esi + 4]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x104], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x402a73
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402a88
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x402a9a
xor eax, eax
jmp 0x402acc
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x402abe
cmp esi, eax
jae 0x402a96
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402ab0
cmp esi, eax
jae 0x402a96
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x40d8c1
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, 0x51cab5
call fcn.004da3b8
push ecx
push ebx
fldz
xor ebx, ebx
push esi
mov esi, ecx
push edi
fstp dword [esi + 0x40]
lea ecx, [esi + 0xac]
mov dword [ebp - 0x10], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x28], ebx
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 + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], 0x64
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
call fcn.004346f0
lea ecx, [esi + 0xc0]
mov dword [ebp - 4], ebx
call fcn.0040d3b0
lea ecx, [esi + 0x150]
mov byte [ebp - 4], 1
call fcn.0040d586
lea edi, [esi + 0x188]
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.0040aa1f
lea ecx, [esi + 0x19c]
mov byte [ebp - 4], 3
call fcn.0040d38e
lea ecx, [esi + 0x1d4]
call fcn.0040d51b
lea ecx, [esi + 0x224]
mov byte [ebp - 4], 4
mov dword [esi + 0x1e0], ebx
mov dword [esi + 0x1e4], ebx
mov dword [esi + 0x1e8], ebx
mov dword [esi + 0x1ec], ebx
mov dword [esi + 0x1f0], ebx
mov dword [esi + 0x1f4], ebx
mov dword [esi + 0x1f8], ebx
mov dword [esi + 0x1fc], ebx
mov dword [esi + 0x200], ebx
mov dword [esi + 0x204], ebx
mov dword [esi + 0x20c], ebx
call fcn.0040f742
push 0x20
lea eax, [esi + 8]
push ebx
push eax
mov byte [ebp - 4], 5
call fcn.004dc410
push 0x44
lea eax, [esi + 0x68]
push ebx
push eax
call fcn.004dc410
push 0x14
lea eax, [esi + 0x210]
push ebx
push eax
call fcn.004dc410
push 0x20
push ebx
lea eax, [esi + 0x1b4]
push eax
call fcn.004dc410
add esp, 0x30
mov ecx, edi
call fcn.0044ec40
lea ecx, [esi + 0x19c]
call fcn.0044ea30
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 0x230]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [esi + 0x208], bl
pop edi
mov dword [esi + 0x14c], esi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40f31d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x566450]
push esi
push edi
mov esi, str.XTrap4Server.Dll
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
cmp eax, edi
mov dword [0x57e3e0], eax
jne 0x40f35f
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x10000000
jmp 0x40f42d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XTrap_S_Start
push eax
call esi
push str.XTrap_S_SessionInit
push dword [0x57e3e0]
mov dword [0x57e3c0], eax
call esi
push str.XTrap_CS_Step1
push dword [0x57e3e0]
mov dword [0x57e3c4], eax
call esi
push str.XTrap_CS_Step3
push dword [0x57e3e0]
mov dword [0x57e3c8], eax
call esi
push str.XTrap_S_SetActiveCode
push dword [0x57e3e0]
mov dword [0x57e3cc], eax
call esi
push str.XTrap_S_SetOption
push dword [0x57e3e0]
mov dword [0x57e3d0], eax
call esi
push str.XTrap_S_SendGamePacket
push dword [0x57e3e0]
mov dword [0x57e3d4], eax
call esi
push str.XTrap_S_RecvGamePacket
push dword [0x57e3e0]
mov dword [0x57e3d8], eax
call esi
cmp dword [0x57e3c0], edi
mov dword [0x57e3dc], eax
je 0x40f428
cmp dword [0x57e3c4], edi
je 0x40f428
cmp dword [0x57e3c8], edi
je 0x40f428
cmp dword [0x57e3cc], edi
je 0x40f428
cmp dword [0x57e3d4], edi
je 0x40f428
cmp dword [0x57e3d8], edi
je 0x40f428
cmp eax, edi
je 0x40f428
xor eax, eax
jmp 0x40f42d
mov eax, 0x20000000
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.004da561
leave
ret
Function at 0x41a3b0
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x51d378
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
lea eax, [esp + 0x1c]
lea edi, [ebx + 0x490]
push eax
mov ecx, edi
mov byte [esp + 0x48], 2
call fcn.0043b730
test al, al
jne 0x41a419
push str.Fail_to_init_BlockCountryCodeList._n
jmp 0x41a453
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call fcn.0043b870
test al, al
jne 0x41a430
push str.Fail_to_init_CustomIPList._n
jmp 0x41a453
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [ebx + 0x1994]
call fcn.004c9c60
test al, al
jne 0x41a4ba
push str.Fail_to_create_country_filter._n
call fcn.004bf8b0
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, esi
je 0x41a46c
push eax
call fcn.004f503d
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
je 0x41a489
push eax
call fcn.004f503d
add esp, 4
mov eax, dword [esp + 0x30]
cmp eax, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
je 0x41a4a6
push eax
call fcn.004f503d
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x41a4cb
push eax
call fcn.004f503d
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
je 0x41a4e8
push eax
call fcn.004f503d
add esp, 4
mov eax, dword [esp + 0x30]
cmp eax, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
je 0x41a505
push eax
call fcn.004f503d
add esp, 4
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x41f280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51d94b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esi], 0x52fd18
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
push edi
lea edi, [esi + 0x1c]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [esi + 0x18], ebx
mov byte [esi + 0x2c], bl
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esp + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
call fcn.0041e160
mov eax, dword [esp + 0x20]
mov dword [esi + 0x18], eax
mov ecx, dword [eax + 0x210]
cmp ecx, ebx
je 0x41f2f6
mov ebx, dword [eax + 0x214]
sub ebx, ecx
sar ebx, 2
push ebx
mov ecx, edi
call fcn.0041ee00
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xc], eax
pop edi
mov dword [esi + 8], edx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x41fcc0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x10
mov eax, dword [0x566450]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.._server.ini
mov dword [esp + 0x18], eax
xor al, al
push 2
mov esi, ecx
mov byte [esp + 0x10], al
mov byte [esp + 0x11], al
mov byte [esp + 0x14], al
lea ecx, [esp + 0x10]
push ecx
xor eax, eax
push 0x52fda0
mov dword [esp + 0x1d], eax
push str.USE_POWERLEVELING_DB_BLOCK
mov word [esp + 0x25], ax
push str.POWERLEVELING
mov byte [esp + 0x2b], al
call edi
lea edx, [esp + 8]
push edx
push 0x52fd70
call fcn.004dcb79
add esp, 8
test eax, eax
jne 0x41fd2d
mov byte [esi + 0x2fc], 1
push str.._server.ini
push 8
lea eax, [esp + 0x14]
push eax
push 0x52fd6c
push str.POWERLEVELING_DB_BLOCKTIME
push str.POWERLEVELING
call edi
lea ecx, [esp + 0xc]
push ecx
call fcn.004dcaa7
imul eax, eax, 0xea60
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x300], eax
pop edi
mov al, 1
pop esi
call fcn.004da561
add esp, 0x10
ret

Function at 0x41fd80
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x18
mov eax, dword [0x566450]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.._server.ini
mov dword [esp + 0x20], eax
xor al, al
push 2
mov byte [esp + 0x10], al
mov byte [esp + 0x11], al
mov byte [esp + 0x14], al
mov byte [esp + 0x1c], al
mov esi, ecx
lea eax, [esp + 0x10]
push eax
xor ecx, ecx
xor edx, edx
push 0x52fda0
mov dword [esp + 0x1d], ecx
mov dword [esp + 0x25], edx
push str.USE_KILLTRACKER
mov word [esp + 0x25], cx
mov word [esp + 0x2d], dx
push str.KILLTRACKER
mov byte [esp + 0x2b], cl
mov byte [esp + 0x33], dl
call edi
lea ecx, [esp + 8]
push ecx
push 0x52fd70
call fcn.004dcb79
add esp, 8
test eax, eax
jne 0x41fe00
mov byte [esi + 0x2e8], 1
push str.._server.ini
push 8
lea edx, [esp + 0x14]
push edx
push 0x52fde4
push str.MAXKILLCOUNT_ON_TRACETIME
push str.KILLTRACKER
call edi
lea eax, [esp + 0xc]
push eax
call fcn.004dcaa7
add esp, 4
push str.._server.ini
push 8
lea ecx, [esp + 0x1c]
push ecx
push 0x52fd6c
push str.KILLCOUNT_TRACETIME
push str.KILLTRACKER
mov dword [esi + 0x2ec], eax
call edi
lea edx, [esp + 0x14]
push edx
call fcn.004dcaa7
imul eax, eax, 0xea60
mov ecx, eax
add esp, 4
shr ecx, 1
lea edx, [eax + eax]
mov dword [esi + 0x2f4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x2f0], eax
pop edi
mov dword [esi + 0x2f8], edx
mov al, 1
pop esi
call fcn.004da561
add esp, 0x18
ret

Function at 0x41fe90
Capabilities:
Read .ini file

Disassembly:
push ecx
push esi
push str.._server.ini
push 2
lea eax, [esp + 0xc]
push eax
push 0x52fda0
push str.USE_LOOPLOG
push str.LOOPLOG
mov esi, ecx
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 4]
push ecx
push 0x52fd70
call fcn.004dcb79
add esp, 8
test eax, eax
jne 0x41feea
mov byte [esi + 0x305], 1
call fcn.00424350
mov byte [eax + 0x199], 1
jmp 0x41fef1
mov byte [esi + 0x305], 0
push str.._server.ini
push 0
push str.MAX_LOOP_TIME_GAP
push str.LOOPLOG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0x308], eax
pop esi
pop ecx
ret
Function at 0x420110
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51db26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x448
mov eax, dword [0x566450]
push ebx
push esi
push edi
mov dword [esp + 0x44c], eax
mov esi, ecx
mov byte [esp + 0x48], 0
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0x49]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, 0xf
xor edi, edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
push str.._server.ini
push 0x20
lea eax, [esp + 0x50]
push eax
push 0x52d8f8
push str.MONITORIP
push str.SERVER
mov dword [esp + 0x474], edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x48]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4201a0
sub eax, edx
mov dword [esp + 0x28], eax
jne 0x4201b9
cmp dword [esp + 0x44], 0x10
jmp 0x42023f
movsx edx, byte [esp + 0x48]
push edx
call fcn.004dcbe2
add esp, 4
test eax, eax
lea eax, [esp + 0x48]
lea edx, [eax + 1]
je 0x420252
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edi
mov byte [esp + 0x10], 0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4201e3
sub eax, edx
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x14]
call fcn.0040363a
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x10]
push edx
mov byte [esp + 0x464], 1
call fcn.004c3b20
add esp, 8
mov bl, al
mov eax, dword [esp + 0x24]
neg bl
sbb bl, bl
mov edi, 0x10
inc bl
cmp eax, edi
jb 0x420237
mov eax, dword [esp + 0x10]
push eax
call fcn.004f503d
add esp, 4
test bl, bl
je 0x42026f
cmp dword [esp + 0x44], edi
jb 0x42024e
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004f503d
add esp, 4
xor al, al
jmp 0x4202c0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420252
sub eax, edx
push eax
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x34]
call fcn.0040363a
mov edi, 0x10
cmp dword [esp + 0x44], edi
mov eax, dword [esp + 0x30]
jae 0x42027d
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push str.._server.ini
push 0x2329
push str.MONITORPORT
push str.SERVER
mov dword [esi + 0x2e0], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov word [esi + 0x2e4], ax
cmp dword [esp + 0x44], edi
jb 0x4202be
mov eax, dword [esp + 0x30]
push eax
call fcn.004f503d
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x454]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x44c]
call fcn.004da561
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4202f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51db46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44c
mov eax, dword [0x566450]
mov dword [esp + 0x444], eax
push ebx
push edi
mov dword [esp + 8], ecx
mov byte [esp + 0x48], 0
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0x49]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0xf
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
push str.._server.ini
push 0x20
lea eax, [esp + 0x50]
push eax
push 0x52d8f8
push str.KEEPERIP
push str.SERVER
mov dword [esp + 0x474], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x48]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420381
sub eax, edx
mov dword [esp + 0xc], eax
jne 0x42039a
cmp dword [esp + 0x44], 0x10
jmp 0x42042c
movsx edx, byte [esp + 0x48]
push edx
call fcn.004dcbe2
add esp, 4
test eax, eax
lea eax, [esp + 0x48]
lea edx, [eax + 1]
je 0x420440
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4203c8
sub eax, edx
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
call fcn.0040363a
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x464], 1
call fcn.004c3b20
add esp, 8
mov bl, al
mov eax, dword [esp + 0x28]
neg bl
sbb bl, bl
mov edi, 0x10
inc bl
cmp eax, edi
mov byte [esp + 0x45c], 0
jb 0x420424
mov eax, dword [esp + 0x14]
push eax
call fcn.004f503d
add esp, 4
test bl, bl
je 0x42045d
cmp dword [esp + 0x44], edi
jb 0x42043b
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004f503d
add esp, 4
xor al, al
jmp 0x42048a
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420440
sub eax, edx
push eax
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x34]
call fcn.0040363a
mov edi, 0x10
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x34]
push eax
add ecx, 0x2bc
call fcn.004035ab
cmp dword [esp + 0x44], edi
jb 0x420488
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004f503d
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x454]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x44c]
call fcn.004da561
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4205f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x31c
mov eax, dword [0x566450]
push ebx
push esi
push edi
push str.._server.ini
push 0x200
mov dword [esp + 0x32c], eax
lea eax, [esp + 0x128]
push eax
push 0x52d8f8
push str.EnableMap
push str.SERVER
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x124]
push edx
mov word [esp + 0x18], 0x3b
mov dword [esp + 0x14], 0
call fcn.004dccd4
mov edx, eax
add esp, 8
test edx, edx
je 0x4206f5
xor eax, eax
mov byte [esp + 0x20], 0
mov ecx, 0x3f
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
push edx
mov ecx, ebx
call fcn.0041ff20
xor esi, esi
push esi
call fcn.00480090
mov ecx, eax
call fcn.0047fff0
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.004dcb79
add esp, 8
test eax, eax
je 0x4206ad
inc esi
cmp esi, 0x32
jl 0x420686
jmp 0x4206d4
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x4206d4
mov edi, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
inc edi
push eax
lea ecx, [ebx + 0x1dc]
mov dword [esp + 0x14], edi
call fcn.0041ec80
lea ecx, [esp + 0x10]
push ecx
push 0
call fcn.004dccd4
mov edx, eax
add esp, 8
test edx, edx
jne 0x420662
mov eax, dword [esp + 0xc]
test eax, eax
jg 0x420736
xor esi, esi
mov dword [esp + 0xc], esi
lea edi, [ebx + 0x1dc]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.0041ec80
inc esi
cmp esi, 0x32
mov dword [esp + 0xc], esi
jl 0x420701
mov byte [ebx + 0x1d8], 0
mov ecx, dword [esp + 0x324]
call fcn.004da561
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x324]
mov byte [ebx + 0x1d8], 1
call fcn.004da561
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421de0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x104
mov eax, dword [0x566450]
mov ecx, dword [esp + 0x108]
mov dword [esp + 0x100], eax
lea eax, [esp + 0x10c]
push eax
push ecx
lea edx, [esp + 8]
push edx
call fcn.004daa25
lea eax, [esp + 0xc]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x421e16
sub eax, edx
dec eax
js 0x421e48
mov cl, byte [esp + eax]
cmp cl, 0xa
lea eax, [esp + eax]
jne 0x421e48
push edi
lea edi, [esp + 4]
mov byte [eax], 0
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x421e36
mov ax, word [0x52ccc4]
mov word [edi], ax
pop edi
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x100]
call fcn.004da561
add esp, 0x104
ret
Function at 0x425680
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51dff6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [esi], 0x531060
xor ebx, ebx
lea ecx, [esi + 0x10]
mov dword [esp + 8], esi
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
call fcn.004927b0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
push 0x10068
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov byte [esi + 0x3c], bl
mov dword [esi + 0xbc], ebx
mov byte [esi + 0xc4], 1
mov byte [esi + 0xc5], bl
call fcn.004f5012
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x18], 1
je 0x42572b
mov edx, dword [esp + 0x20]
push edi
lea edi, [edx + 4]
push edi
mov edi, dword [edx + 0x30]
mov edx, dword [edx + 0x2c]
push edi
push edx
xor ecx, ecx
push ebx
push ecx
mov ecx, eax
call fcn.00491f00
mov dword [esi + 0xc], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 4
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xc], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x51e036
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esp + 0xc], esi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
lea ebx, [esi + 0x30]
mov ecx, ebx
mov byte [esp + 0x18], 1
call fcn.00422640
mov ecx, dword [esp + 0x10]
mov dword [ebx + 8], edi
mov dword [ebx + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4