joyce8/EMBER2024-capa huggingface dataset:
Function at 0x486a20
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
xor ebx, ebx
push ebp
cmp eax, 3
mov ebp, ecx
ja case.default.0x486a39
jmp dword [eax*4 + 0x486bf8]
push str.DDZRPG_PlayerInfo
lea eax, [esp + 0x10]
push 0x3f
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0xc
mov dword [esp + 8], 0x1fa4
jmp 0x486ac4
push str.DDZRPG_WaitTable
lea ecx, [esp + 0x10]
push 0x3f
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0xc
mov dword [esp + 8], 0x1fa5
jmp 0x486ac4
push str.DDZRPG_LOGO
lea edx, [esp + 0x10]
push 0x3f
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0xc
mov dword [esp + 8], 0x1fa6
jmp 0x486ac4
push str.DDZRPG_CardBack
lea eax, [esp + 0x10]
push 0x3f
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0xc
mov dword [esp + 8], 0x1fa7
jmp 0x486ac4
mov byte [esp + 0xc], bl
mov dword [esp + 8], ebx
mov eax, dword [ebp + 0xe120]
push esi
cmp eax, ebx
jne 0x486bc1
cmp dword [ebp + 0xe11c], ebx
jne 0x486b7d
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x55]
mov byte [esp + 0x54], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [esp + 0x54]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x54]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
cmp eax, ebx
je 0x486b23
mov byte [eax + 1], bl
mov edi, str...LogicAvMgrGm.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x54]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x54]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp + 0xe11c], eax
pop edi
jne 0x486b7d
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.ERROR:_Load_advertisement_manager_for_game_DLL_fail._Path:
call esi
lea ecx, [esp + 0x50]
push ecx
call esi
jmp 0x486b83
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 0xe11c]
cmp eax, ebx
je 0x486bc1
push str.CreateObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x486bba
push 0x1f001
call eax
add esp, 4
cmp eax, ebx
je 0x486bb3
mov dword [ebp + 0xe120], eax
jmp 0x486bc1
push str.ERROR:_Cannt_create_Advertisement_Manager_Object._n
jmp 0x486bbf
push str.ERROR:_Cannt_find_CreateObject___in_Advertisement_Manager_DLL._n
call esi
mov ecx, dword [ebp + 0xe120]
pop esi
cmp ecx, ebx
je 0x486be6
mov eax, dword [esp + 0x158]
mov edx, dword [ecx]
push ebx
push ebx
push ebx
push eax
mov eax, dword [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
call dword [edx + 0x14]
pop ebp
mov eax, 1
pop ebx
add esp, 0x148
ret 8
Function at 0x487ae0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x5134a0]
sub esp, 0xa14
test eax, eax
push ebp
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
jne 0x487b32
push 0x4d03c0
push str.log.cfg
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x487b32
push 0x5134a4
push str.LogSwitch_d
push esi
call dword [sym.imp.MSVCRT.dll_fscanf]
push esi
mov dword [0x5134a0], 0
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x10
mov eax, dword [0x5134a4]
test eax, eax
je 0x487c57
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x420]
push str..LogClientLog.txt
push eax
call ebp
lea ecx, [esp + 0x428]
push 0x4d6ba8
push ecx
call edi
mov esi, eax
add esp, 0x10
test esi, esi
je 0x487c57
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x621]
mov byte [esp + 0x620], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0xa24]
lea edx, [esp + 0xa28]
push edx
push eax
lea ecx, [esp + 0x628]
push 0x400
push ecx
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 0x1a]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x620]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x1a]
push ecx
mov ecx, dword [esp + 0x1c]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x1e]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x1e]
push ecx
mov ecx, dword [esp + 0x20]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x40]
push str._d__d__d__d:_d:_d:_d:_s_r_n
push edx
call ebp
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x4c]
push ecx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x3c
pop edi
pop esi
pop ebp
add esp, 0xa14
ret

Function at 0x48d3b0
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov esi, ecx
push 0x4cebe4
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x48d3d5
mov ecx, esi
call fcn.0048d2d0
pop edi
xor al, al
pop esi
ret
push edi
push 0x18
lea eax, [esi + 0x68]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esi + 0x7c]
add esp, 0x14
cmp eax, 0x2d0
je 0x48d3ff
mov ecx, esi
call fcn.0048d2d0
mov cl, byte [esi + 0x79]
mov dl, byte [esi + 0x7a]
mov byte [esi + 0x78], 1
mov byte [esi + 0x81], cl
mov byte [esi + 0x82], dl
pop edi
mov al, 1
pop esi
ret

Function at 0x48d420
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, ecx
push 0x4cec04
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x48d43e
pop edi
xor al, al
pop esi
ret
push esi
push 0x18
add edi, 0x68
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov al, 1
pop edi
pop esi
ret
Function at 0x497b90
Capabilities:
Print debug messages
Read .ini file
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b89db
push eax
mov eax, dword [0x51ab80]
mov dword fs:[0], esp
sub esp, 0x408
test eax, eax
jne 0x497bfe
push str..config.ini
push 0
push str.TraceState
push str.Debug
mov dword [0x51ab80], 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str..config.ini
push 0xff
push 0x51ab88
push 0x4d8eb4
push str.TraceFilter
push str.Debug
mov dword [0x51ab84], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [0x51ab84]
test eax, eax
je 0x497d60
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x41c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x420]
push eax
push ecx
push 0x3ff
push edx
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
lea eax, [esp + 0xc]
lea ecx, [esp + 4]
push eax
call sub.MFC42.DLL_CString::CString_2
mov edi, 0x51ab88
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x414], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x497ca7
push 0x51ab88
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x497ca7
lea ecx, [esp]
mov dword [esp + 0x410], eax
call fcn.004ab42e
mov ecx, dword [esp + 0x408]
mov dword fs:[0], ecx
add esp, 0x414
ret
mov eax, dword [0x51ab84]
push esi
cmp eax, 1
jne 0x497cc2
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x497d4b
cmp eax, 2
jne 0x497d4b
push 0
call dword [sym.imp.MSVCRT.dll_time]
lea edx, [esp + 0xc]
mov dword [esp + 0xc], eax
push edx
call dword [sym.imp.MSVCRT.dll_localtime]
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
add esp, 8
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
inc edx
push ecx
add eax, 0x76c
push edx
push eax
lea ecx, [esp + 0x20]
push str.__.4u__.2u__.2u__.2u:_.2u:_.2u___s
push ecx
call sub.MFC42.DLL_CString::Format
push 0x4d5c20
push str..TraceInfo.txt
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x2c
test esi, esi
je 0x497d4b
mov eax, dword [esp + 4]
push esi
mov ecx, dword [eax - 8]
push ecx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 4]
mov dword [esp + 0x414], 0xffffffff
call fcn.004ab42e
pop esi
mov ecx, dword [esp + 0x408]
mov dword fs:[0], ecx
add esp, 0x414
ret
Function at 0x49c4e0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x40c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x410]
push eax
push ecx
push 0x3ff
push 0x400
push edx
call dword [0x4cb2a8]
add esp, 0x14
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x400
ret
Function at 0x49c880
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov ebx, dword [esp + 0x11c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
push str.Path
push str.Redirect
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x14]
test edx, edx
je 0x49c8ed
mov al, byte [esp + 0x14]
test al, al
je 0x49c8ed
cmp al, 0x20
je 0x49c8e5
cmp al, 9
jne 0x49c930
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x49c8dd
mov esi, dword [esp + 0x120]
test esi, esi
je 0x49c923
mov edx, dword [esp + 0x124]
test edx, edx
jle 0x49c923
test ebx, ebx
je 0x49c923
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jae 0x49c923
push ebx
push edx
push esi
call dword [0x4cb2bc]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
lea eax, [esp + 0x14]
push 0x3a
push eax
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
jne 0x49c9f6
cmp byte [esp + 0x14], 0x5c
je 0x49c9f6
test ebx, ebx
je 0x49c923
mov edi, dword [esp + 0x120]
test edi, edi
je 0x49c923
mov ebp, dword [esp + 0x124]
test ebp, ebp
jle 0x49c923
mov esi, dword [sym.imp.MSVCRT.dll__mbsrchr]
push 0x5c
push ebx
call esi
add esp, 8
test eax, eax
jne 0x49c987
push 0x2f
push ebx
call esi
add esp, 8
test eax, eax
mov byte [edi], 0
je 0x49c9ae
sub eax, ebx
inc eax
mov esi, eax
test esi, esi
jle 0x49c9d9
cmp ebp, esi
jle 0x49c9d9
push esi
push ebx
push ebp
push edi
call dword [0x4cb2b8]
add esp, 0x10
mov byte [esi + edi], 0
jmp 0x49c9d9
mov esi, dword [esp + 0x10]
push ebp
push ebx
mov ecx, esi
call fcn.0049cd20
test eax, eax
je 0x49c9cb
push ebx
push ebp
push edi
call dword [0x4cb2bc]
add esp, 0xc
push 0x4d1f78
push ebp
push edi
mov ecx, esi
call fcn.0049cd90
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push ebp
push edi
call fcn.0049cd90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.0049c880
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
Function at 0x49d900
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b8d00
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x5c]
mov eax, dword [esi + 0x64]
lea ebx, [esi + 0x5c]
sub eax, ecx
jne 0x49d950
mov ecx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
sub ecx, eax
jne 0x49d950
mov edx, dword [esi + 0x44]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esi + 0x44]
push edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x44]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov eax, dword [esi + 0x58]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub ecx, eax
push 1
push ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
push edx
push eax
mov eax, dword [esi + 0x44]
push ecx
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
lea edi, [esi + 0x8c]
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::DeleteObject
push ebx
mov ebx, dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
call ebx
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x4beb3c
lea ecx, [esi + 0x6c]
mov dword [esp + 0x2c], 0
push ecx
call ebx
push eax
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
neg eax
sbb eax, eax
and eax, edx
test edi, edi
jne 0x49d9fa
xor ecx, ecx
jmp 0x49d9fd
mov ecx, dword [edi + 4]
mov edx, dword [esi + 0x90]
push 2
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CombineRgn]
test edi, edi
je 0x49da15
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x44]
push 1
push edi
push eax
call dword [sym.imp.USER32.dll_SetWindowRgn]
mov ecx, dword [esi + 0x44]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esp + 0xc], 0x4bb170
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x49e8c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b8d88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.0049e950
mov ecx, dword [esp + 0x30]
xor eax, eax
mov dword [esp + 4], eax
lea edx, [esp + 4]
push 0xffffffffffffffff
mov dword [esp + 0xc], eax
push edx
mov dword [esp + 0x10], ecx
push 0xb
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0
mov dword [esp + 0x14], 0xb
call fcn.0049e9d0
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call dword [eax + 4]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0049e990
mov ecx, dword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x4a1100
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4a1110
xor eax, eax
pop esi
ret 0xc
mov eax, dword [esp + 8]
cmp eax, 1
jge 0x4a111f
xor eax, eax
pop esi
ret 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov dword [esi + 0x24], eax
lea eax, [esi + 0x2c]
push eax
push 4
push esi
push 0x4a11c0
push 0
push 0
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x30], edx
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
mov dword [esi + 0x28], eax
test eax, eax
setne cl
test ecx, ecx
mov dword [esi + 0x34], ecx
je 0x4a1165
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0x34]
pop esi
ret 0xc
Function at 0x4a4ad0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b91f6
push eax
mov dword fs:[0], esp
sub esp, 0x108
xor eax, eax
push ebp
push esi
mov esi, ecx
lea ebp, [esi + 0x620]
mov ecx, ebp
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x618]
test eax, eax
je 0x4a4b1e
push str.CheckGameFriend
call fcn.004a5d50
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x4a4c1e
push edi
lea edx, [esp + 0x14]
push 0x100
push edx
call fcn.004a3f10
add esp, 8
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x124]
lea ecx, [esp + 0x10]
push eax
push 0x4d192c
push ecx
mov dword [esp + 0x128], 0
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 8]
add esp, 0xc
lea ecx, [esp + 0x124]
mov edx, dword [eax]
push ecx
push 4
push 0x16
push eax
call dword [edx + 0x14]
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
push 0x4cc990
push eax
mov byte [esp + 0x128], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0xc]
push str..._tmpRelation.txt
call fcn.004ab4d0
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ecx
push 0
push str.GameFriend
push edx
call edi
mov ecx, dword [esp + 0x10]
mov dword [ebp], eax
mov eax, dword [esp + 0xc]
push eax
push 0
push str.GameEnemy
push ecx
call edi
mov edx, dword [esp + 0xc]
mov dword [esi + 0x628], eax
push edx
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 4
lea ecx, [esp + 0xc]
mov byte [esp + 0x11c], 0
call fcn.004ab42e
lea ecx, [esp + 0x10]
mov dword [esp + 0x11c], 0xffffffff
call fcn.004ab42e
pop edi
mov ecx, dword [esp + 0x110]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x114
ret 4
Function at 0x4a8950
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b9458
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ebx, [esi + 0x18]
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
mov dword [esp + 0x2c], 0
call fcn.004a98e0
mov ecx, dword [ebx + 4]
mov dword [esp + 0xc], eax
cmp eax, ecx
je 0x4a89ab
mov edx, dword [esp + 0x30]
mov edi, dword [eax + 0xc]
cmp edx, edi
jb 0x4a89ab
lea eax, [esp + 0xc]
jmp 0x4a89b3
mov dword [esp + 0x14], ecx
lea eax, [esp + 0x14]
mov eax, dword [eax]
mov ecx, dword [esi + 0x1c]
cmp eax, ecx
jne 0x4a8a0c
push 0x18
call sub.MFC42.DLL_operatornew
mov edx, eax
add esp, 4
test edx, edx
je 0x4a89db
mov ecx, 6
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, edx
jmp 0x4a89dd
xor edi, edi
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x14]
mov dword [edi + 0x14], eax
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0xc]
mov dword [esp + 0x14], ecx
push edx
push eax
mov ecx, ebx
mov dword [esp + 0x20], 0
call fcn.004a92d0
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0x10], edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x4ac905
Capabilities:
Get file version info

Disassembly:
mov eax, 0x4b9698
call fcn.004b2028
sub esp, 0x24
push ebx
push esi
xor ebx, ebx
lea ecx, [ebp + 8]
push ebx
push ebx
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::GetBuffer
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
lea ecx, [ebp - 0x18]
mov esi, eax
call sub.MFC42.DLL_CString::CString_3
cmp esi, ebx
mov byte [ebp - 4], 1
jne 0x4ac943
or esi, 0xffffffff
jmp 0x4ac9cf
lea eax, [esi + 2]
push edi
push eax
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
push eax
push esi
push ebx
push ebx
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4d1f78
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [ebp - 0x14]
push 0x64
xor edx, edx
pop ebx
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov esi, eax
mov edi, ecx
and eax, 0xffff
push dword [ebp - 0x10]
shr edi, 0x10
mov dword [ebp - 0x2c], eax
mov eax, edi
div ebx
and ecx, 0xffff
shr esi, 0x10
mov dword [ebp - 0x20], ecx
mov ebx, eax
imul eax, eax, 0x64
sub edi, eax
call sub.MFC42.DLL_operatordelete
imul esi, esi, 0x64
add esi, dword [ebp - 0x2c]
pop ecx
lea eax, [esi + esi*4]
lea esi, [ebx + eax*2]
imul esi, esi, 0x64
add esi, edi
pop edi
imul esi, esi, 0x64
add esi, dword [ebp - 0x20]
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.004ab42e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004ab42e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4aeb7b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4aebd7
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp + 0x14]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x4af8ba
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x103
push dword [ebp + 8]
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x10
xor edx, edx
test eax, eax
jle 0x4af920
cmp byte [ebp + edx - 0x104], 0x2f
lea ecx, [ebp + edx - 0x104]
jne 0x4af91b
mov byte [ecx], 0x5c
inc edx
cmp edx, eax
jl 0x4af907
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea esi, [ebp - 0x104]
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll__mbschr]
pop ecx
test eax, eax
pop ecx
je 0x4af982
mov bl, byte [eax + 1]
lea esi, [eax + 1]
test bl, bl
je 0x4af990
and byte [esi], 0
lea eax, [ebp - 0x104]
push eax
push 0x4d8ab0
call edi
pop ecx
test eax, eax
pop ecx
je 0x4af97e
lea eax, [ebp - 0x104]
push eax
push 0x4d8aac
call edi
pop ecx
test eax, eax
pop ecx
je 0x4af97e
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
pop ecx
mov byte [esi], bl
jmp 0x4af92c
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
pop ecx
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__mkdir]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4b0470
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x51b168]
sub esp, 0x208
cmp dword [eax + 0x1c], 0x2710
ja 0x4b04ea
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x51b15c]
pop edi
test eax, eax
jne 0x4b04aa
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
push str._s....configDynamicInfo.ini
lea ecx, [esp + 8]
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [0x51b168]
add esp, 0x10
lea edx, [esp]
mov ecx, dword [eax + 0x1c]
push edx
push ecx
push str.LastQQUin
push str.Public
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [0x51b168]
mov dword [edx + 0x1c], eax
add esp, 0x208
ret