joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462ea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x462fc1
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x462fa5
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x462ef7
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x462ed5
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x463a09
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x463a60
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x463a60
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x463a60
xor eax, eax
inc eax
jmp 0x463a62
xor eax, eax
leave
ret 0x10
Function at 0x463a8b
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x463af9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x9dda04
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x463af0
cmp dword [ebp - 0xc], 4
jne 0x463af0
cmp dword [ebp - 0x10], edi
je 0x463af0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0xa00fd8], edi
xor eax, eax
jmp 0x463b38
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0xa00fd8], edi
jge 0x463b33
lea eax, [ebp - 0x34]
push eax
mov dword [0xa00fd8], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x463b33
cmp word [ebp - 0x14], 5
jb 0x463b33
call fcn.00463a66
test eax, eax
je 0x463b33
emms
mov dword [0xa00fd8], 1
mov eax, dword [0xa00fd8]
pop edi
leave
ret

Function at 0x48510a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x485142
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004831c1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00483199
jmp 0x48514e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4867f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48683a
call fcn.0048c2af
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48683a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x486831
xor eax, eax
jmp 0x486842
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00486848
pop edi
pop esi
pop ebx
ret 4

Function at 0x48c7df
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x48c80d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48c82b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048c745
jmp 0x48c82b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48c82b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048c745
test edi, edi
mov eax, edi
jne 0x48c815
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40107a
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0
push str.GL_ROOM_REC
push 1
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4010a3
xor eax, eax
jmp 0x4010f5
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4010cc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4010f5
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x32ec]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4012a5
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406c27
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
mov dword [ebp - 0x16c], ecx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x154]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x154]
call fcn.00401d00
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40131c
mov dword [ebp - 0x15c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x154]
call fcn.00405e62
mov eax, dword [ebp - 0x15c]
jmp 0x401460
push str..
lea ecx, [ebp - 0x154]
call fcn.00405e68
push 0x140
push 0
lea ecx, [ebp - 0x14c]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp - 0x14c]
push edx
lea ecx, [ebp - 0x154]
call fcn.00401d00
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0xffffffff
jne 0x401391
mov dword [ebp - 0x160], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x154]
call fcn.00405e62
mov eax, dword [ebp - 0x160]
jmp 0x401460
mov eax, dword [ebp - 0x14c]
and eax, 0x10
test eax, eax
je 0x4013a0
jmp 0x401415
lea ecx, [ebp - 0x120]
push ecx
push 0x40a064
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x164]
push eax
call sub.MFC42.DLL_operator
mov dword [ebp - 0x170], eax
mov ecx, dword [ebp - 0x170]
mov dword [ebp - 0x174], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x174]
push edx
lea eax, [ebp - 0x158]
push eax
call sub.MFC42.DLL_operator
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x164]
call fcn.00405e62
lea ecx, [ebp - 0x158]
push ecx
mov ecx, dword [ebp - 0x16c]
call fcn.00401470
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x158]
call fcn.00405e62
lea edx, [ebp - 0x14c]
push edx
mov eax, dword [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401391
mov ecx, dword [ebp - 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x168], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x154]
call fcn.00405e62
mov eax, dword [ebp - 0x168]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4044b6
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 8
test eax, eax
jne 0x4044d2
mov al, 1
jmp 0x4044d4
xor al, al
pop ebp
ret
Function at 0x404e59
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4371aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2b4
mov dword [ebp - 0x2c0], ecx
mov word [ebp - 0x2b0], 0x202
lea eax, [ebp - 0x1a4]
push eax
mov cx, word [ebp - 0x2b0]
push ecx
call sub.WSOCK32.dll_WSAStartup
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CStringList::RemoveAll
push 0x100
lea edx, [ebp - 0x2a4]
push edx
call sub.WSOCK32.dll_gethostname
mov dword [ebp - 0x2ac], eax
cmp dword [ebp - 0x2ac], 0xffffffff
jne 0x404eda
push 0
push 0
push str.Socket_Error
call sub.MFC42.DLL_AfxMessageBox
xor eax, eax
jmp 0x404fc3
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x2a8]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2a4]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x404fa1
mov dword [ebp - 0x2b4], 0
jmp 0x404f27
mov edx, dword [ebp - 0x2b4]
add edx, 1
mov dword [ebp - 0x2b4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x2b4]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax]
push ecx
call sub.WSOCK32.dll_inet_ntoa
push eax
lea ecx, [ebp - 0x2b8]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 1
lea edx, [ebp - 0x2b8]
push edx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CStringList::AddTail
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
movsx eax, word [edx + 0xa]
mov edx, dword [ebp - 0x2b4]
mov ecx, dword [ecx + edx*4]
add ecx, eax
mov edx, dword [ebp - 0x10]
cmp ecx, dword [edx]
jb 0x404f8d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2b8]
call sub.MFC42.DLL_CString::CString
jmp 0x404fa1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2b8]
call sub.MFC42.DLL_CString::CString
jmp 0x404f18
mov dword [ebp - 0x2bc], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x2bc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ed56
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43810b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x144
mov dword [ebp - 0x13c], ecx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CStringList::RemoveAll
push 0x100
lea eax, [ebp - 0x110]
push eax
call sub.WSOCK32.dll_gethostname
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
jne 0x40ee72
push ecx
mov ecx, esp
mov dword [ebp - 0x128], esp
push str.Socketl
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x144], ecx
mov dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x12c], esp
push str.052000040
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 0x148], eax
lea edx, [ebp - 0x11c]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.00419ab8
add esp, 0xc
mov dword [ebp - 0x14c], eax
mov dword [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
lea eax, [ebp - 0x11c]
push eax
call fcn.004355ce
mov dword [ebp - 0x150], eax
push 3
mov ecx, dword [ebp - 0x13c]
call fcn.00418cc2
push 0
push 0
lea ecx, [ebp - 0x11c]
call fcn.004014c0
push eax
call sub.MFC42.DLL_AfxMessageBox
mov dword [ebp - 0x134], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x134]
jmp 0x40ef5b
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x114]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 2
lea edx, [ebp - 0x110]
push edx
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40ef39
mov dword [ebp - 0x120], 0
jmp 0x40eebf
mov eax, dword [ebp - 0x120]
add eax, 1
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x120]
mov ecx, dword [edx + eax*4]
mov edx, dword [ecx]
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
lea ecx, [ebp - 0x124]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 3
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CStringList::AddTail
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0x10]
movsx ecx, word [eax + 0xa]
mov eax, dword [ebp - 0x120]
mov edx, dword [edx + eax*4]
add edx, ecx
mov eax, dword [ebp - 0x10]
cmp edx, dword [eax]
jb 0x40ef25
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call sub.MFC42.DLL_CString::CString
jmp 0x40ef39
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call sub.MFC42.DLL_CString::CString
jmp 0x40eeb0
mov dword [ebp - 0x138], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4183b5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438e4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 8], 0
je 0x4184ec
push 0x44a27c
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 0
push 0x44a288
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString_3
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
add ecx, 0xc4
call fcn.004014c0
push eax
push 0
lea ecx, [ebp - 0x1c]
call fcn.004014c0
push eax
lea ecx, [ebp - 0x14]
call fcn.004014c0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x418440
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x90], 0
je 0x418460
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x418503
push 0x44a294
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [ebp - 0x20]
add ecx, 0xc4
call fcn.004014c0
push eax
push 1
lea ecx, [ebp - 0x1c]
call fcn.004014c0
push eax
lea ecx, [ebp - 0x14]
call fcn.004014c0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jl 0x4184a5
cmp dword [ebp - 0x18], 0x18
jle 0x4184ac
mov dword [ebp - 0x18], 1
push 0
mov ecx, dword [ebp - 0x18]
imul ecx, ecx, 0x36ee80
push ecx
push 0x6b
mov ecx, dword [ebp - 0x20]
call fcn.00401540
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x90], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x418503
push 0x6b
mov ecx, dword [ebp - 0x20]
call fcn.00401570
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x90], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x419608
Capabilities:
Create directory
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43900f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov dword [ebp - 0x118], ecx
mov ecx, dword [ebp - 0x118]
add ecx, 0xc4
call fcn.004014c0
push eax
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0x44e9e4
push str.BackupFilePath
push 0x44a448
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 0x118]
add ecx, 0xdc
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [ebp - 0x118]
add ecx, 0xdc
call fcn.004044b0
test eax, eax
jne 0x4196b0
mov ecx, dword [ebp - 0x118]
add ecx, 0xdc
call fcn.004014c0
push eax
call dword [sym.imp.MSVCRT.dll__chdir]
add esp, 4
cmp eax, 0xffffffff
jne 0x41975b
lea edx, [ebp - 0x114]
push edx
mov ecx, dword [ebp - 0x118]
add ecx, 0x138
call fcn.0042760b
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x120], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x120]
push ecx
mov ecx, dword [ebp - 0x118]
add ecx, 0xdc
call fcn.004355a4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x114]
call sub.MFC42.DLL_CString::CString
push str.AutoBackup_
mov ecx, dword [ebp - 0x118]
add ecx, 0xdc
call sub.MFC42.DLL_CString::operator
mov ecx, dword [ebp - 0x118]
add ecx, 0xdc
call fcn.004014c0
push eax
call dword [sym.imp.MSVCRT.dll__chdir]
add esp, 4
cmp eax, 0xffffffff
jne 0x41975b
push 0
mov ecx, dword [ebp - 0x118]
add ecx, 0xdc
call fcn.004014c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4198b6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43904e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
mov dword [ebp - 0x134], ecx
mov ecx, dword [ebp - 0x134]
add ecx, 0xc4
call fcn.004014c0
push eax
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0x44e9e8
push str.DataBaseName
push 0x44a470
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x134]
cmp dword [edx + 0xa8], 0
jne 0x419a53
push 0x5c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x118], eax
lea ecx, [ebp - 0x10]
call fcn.00404470
sub eax, dword [ebp - 0x118]
sub eax, 1
push eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x13c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x13c]
push edx
lea ecx, [ebp - 0x10]
call fcn.004355a4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x11c]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [ebp - 0x10]
call fcn.00404470
sub eax, 4
push eax
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x144], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x144]
push edx
lea ecx, [ebp - 0x10]
call fcn.004355a4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x120]
call sub.MFC42.DLL_CString::CString
push 0x44a474
lea eax, [ebp - 0x10]
push eax
call fcn.00408f60
and eax, 0xff
test eax, eax
je 0x419a32
mov dword [ebp - 0x124], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x124]
jmp 0x419aaa
mov dword [ebp - 0x128], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x128]
jmp 0x419aaa
push str.NacreHis_Train
lea ecx, [ebp - 0x10]
push ecx
call fcn.00408f60
and eax, 0xff
test eax, eax
je 0x419a8b
mov dword [ebp - 0x12c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x12c]
jmp 0x419aaa
mov dword [ebp - 0x130], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x41acdc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0
push 0
push 3
push 0
push 1
push 8
mov ecx, dword [ebp - 0x20]
add ecx, 0xc8
call fcn.004014c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x41ad92
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov ecx, dword [ebp - 0x14]
or ecx, edx
mov edx, dword [ebp - 0x10]
or edx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ecx, 0x20
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00435b20
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov edx, dword [ebp - 0x14]
or edx, eax
mov eax, dword [ebp - 0x10]
or eax, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
fild qword [ebp - 0x14]
fdiv qword [0x43e368]
fstp qword [ebp - 0xc]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
fld qword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41eae1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0xc4
call fcn.004014c0
push eax
push 0x78
push str.CheckClient
push 0x44ace8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x78
jl 0x41eb1d
cmp dword [ebp - 8], 0x708
jle 0x41eb24
mov dword [ebp - 8], 0x78
mov ecx, dword [ebp - 0xc]
add ecx, 0xc4
call fcn.004014c0
push eax
push 0x3c
push 0x44acf4
push 0x44ad08
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shl eax, 1
cmp dword [ebp - 8], eax
jge 0x41eb5a
mov ecx, dword [ebp - 4]
shl ecx, 1
mov dword [ebp - 8], ecx
push 0
mov edx, dword [ebp - 8]
imul edx, edx, 0x3e8
push edx
push 0x6c
mov ecx, dword [ebp - 0xc]
call fcn.00401540
mov esp, ebp
pop ebp
ret

Function at 0x41eb74
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0xc4
call fcn.004014c0
push eax
push 0x1e
push str.TestLinkPeriod
push 0x44ad24
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
add ecx, 0xc4
call fcn.004014c0
push eax
push 0x3c
push str.RequestEchoPeriod
push 0x44ad44
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x3c
jl 0x41ebd4
cmp dword [ebp - 4], 0x708
jle 0x41ebdb
mov dword [ebp - 4], 0x3c
cmp dword [ebp - 8], 0x1e
jl 0x41ebea
cmp dword [ebp - 8], 0x708
jle 0x41ebf1
mov dword [ebp - 8], 0x1e
push 0
mov eax, dword [ebp - 8]
imul eax, eax, 0x3e8
push eax
push 0x67
mov ecx, dword [ebp - 0xc]
call fcn.00401540
push 0
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x3e8
push ecx
push 0x65
mov ecx, dword [ebp - 0xc]
call fcn.00401540
mov esp, ebp
pop ebp
ret