joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476390
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4f0008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x504f94], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
jne 0x476493
mov eax, dword [0x5051f8]
cmp dword [eax + 0x48], 1
jne 0x476493
cmp dword [eax + 0xf4], 0
jne 0x476493
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.004762b0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x476415
push edi
lea eax, [ebp - 0x20c]
mov dword [0x4f7f28], 1
push eax
mov ecx, esi
call fcn.004762b0
mov dword [0x4f7f28], 0
lea eax, [ebp - 0x214]
push eax
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.0048cce0
add esp, 4
test eax, eax
jne 0x476448
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004912f2
mov esp, ebp
pop ebp
ret 4
push edi
mov ecx, esi
call fcn.004760a0
push dword [ebp - 0x214]
mov ecx, eax
push dword [ebp - 0x210]
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [ebp - 0x210]
mov esi, eax
test ecx, ecx
je 0x47647f
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004912f2
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.00476740
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x4764d8
push edi
lea eax, [ebp - 0x20c]
mov dword [0x4f7f20], 1
push eax
mov ecx, esi
call fcn.00476740
mov dword [0x4f7f20], 0
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x47653a
push edi
lea eax, [ebp - 0x20c]
mov dword [0x4f7f28], 1
push eax
mov ecx, esi
call fcn.00476740
lea eax, [ebp - 0x20c]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x476530
push edi
lea eax, [ebp - 0x20c]
mov dword [0x4f7f20], 1
push eax
mov ecx, esi
call fcn.00476740
mov dword [0x4f7f20], 0
mov dword [0x4f7f28], 0
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push eax
call ebx
pop ebx
cmp eax, 0xffffffff
je 0x476434
mov ecx, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
push 0
call fcn.00485ca0
add esp, 4
mov ecx, esi
push edi
call fcn.004760a0
mov esi, eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 4]
test eax, eax
je 0x476434
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x210]
call dword [eax + 0x28]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004912f2
mov esp, ebp
pop ebp
ret 4
Function at 0x4858e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4f0008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5051ac]
cmp dword [eax + 0xc], 0
je 0x485927
push ecx
lea eax, [ebp - 0x404]
push 0x4d2310
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x404]
call fcn.00449bb0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004912f2
mov esp, ebp
pop ebp
ret

Function at 0x4868d0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x4f0008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x504f94], 0
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
mov edi, ecx
mov dword [ebp - 0x81c], edi
je 0x48693d
lea eax, [ebp - 0x818]
push eax
push 0
push 0
push 0x4bb490
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
push str.SRPG_Studio
push dword [ebp - 0x818]
lea eax, [ebp - 0x20c]
push 0x4d0ed4
push eax
call esi
add esp, 0x10
push dword [ebp - 0x818]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x486955
mov eax, dword [0x4f7f30]
add eax, 0x978
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x486976
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.error_log.txt
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x4d0ed4
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x486a65
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
call edi
mov esi, eax
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
push 0
push esi
mov esi, eax
mov dword [ebp - 0x818], eax
push esi
push 0xffffffffffffffff
push dword [ebp - 0x81c]
push 0
push 0
call edi
push esi
lea eax, [ebp - 0x814]
push str._s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x820]
push 0
push eax
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x814]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x486a5e
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004912f2
mov esp, ebp
pop ebp
ret
Function at 0x486be0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x4f0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 1
mov eax, ecx
mov edi, edx
push SysReAllocString
push eax
mov dword [ebp - 0x408], edi
mov dword [ebp - 0x410], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x486c37
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004912f2
mov esp, ebp
pop ebp
ret
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea esi, [eax + 1]
cmp esi, 1
jne 0x486c53
mov dword [edi], 0
xor esi, esi
jmp 0x486cbf
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
mov edi, eax
lea eax, [ebp - 0x40c]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
mov byte [edi + esi - 1], 0
push dword [ebp - 0x40c]
push edi
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
mov edx, dword [ebp - 0x408]
test eax, eax
je 0x486c9e
mov dword [edx], edi
mov esi, 1
jmp 0x486cf9
mov ecx, edi
call fcn.00486a80
mov esi, eax
test edi, edi
je 0x486cbb
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
jne 0x486cf9
push dword [ebp - 0x410]
lea eax, [ebp - 0x404]
push 0x4d68d4
push str._s_n_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x404]
push 0x30
push str.SRPG_Studio
push eax
push dword [0x4f7e34]
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004912f2
mov esp, ebp
pop ebp
ret
Function at 0x486d70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x4f0008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
push str.info.ini
push eax
lea eax, [ebp - 0x814]
mov dword [ebp - 0x818], ebx
push 0x4d0ed4
push eax
mov dword [ebp - 0x81c], edi
call esi
add esp, 0x10
lea eax, [ebp - 0x404]
cmp dword [ebx], 0
je 0x486dc9
push str.RuntimeOrder
jmp 0x486dce
push str.OriginalOrder
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 1
lea eax, [ebp - 0x204]
xor ebx, ebx
push 0x4c0424
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
push 0x100
lea eax, [ebp - 0x60c]
push eax
push ebx
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x486ef6
nop word [eax + eax]
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov esi, eax
mov dword [esi + 8], ebx
mov edx, dword [edi + 4]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x486e3e
mov edx, ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x486e35
mov eax, dword [ebp - 0x818]
mov dword [edx + 4], esi
mov eax, dword [eax]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x60c]
push eax
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x486eab
lea eax, [eax*2 + 2]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea eax, [ebp - 0x60c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x486ea2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0xc], edi
mov edi, dword [ebp - 0x81c]
inc ebx
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x204]
push 0x4c0424
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
push 0x100
lea eax, [ebp - 0x60c]
push eax
push 0
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x486e20
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004912f2
mov esp, ebp
pop ebp
ret 8
Function at 0x4871a0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x888
mov eax, dword [0x4f0008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov dword [ebp - 0x878], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x884], esi
cmp word [edi], 0
mov dword [ebp - 0x880], eax
jne 0x4871e9
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x487200
push edi
push eax
lea eax, [ebp - 0x214]
push 0x4d0ed4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x4d1540
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov dword [ebp - 0x87c], eax
push 0x4d1548
lea eax, [ebp - 0x848]
push eax
call ebx
test eax, eax
je 0x48739a
push 0x4d1550
lea eax, [ebp - 0x848]
push eax
call ebx
test eax, eax
je 0x48739a
test byte [ebp - 0x874], 0x10
lea eax, [ebp - 0x848]
je 0x4872b2
cmp word [edi], 0
push eax
lea eax, [ebp - 0x624]
jne 0x487283
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x487293
push edi
push 0x4d0ed4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x624]
mov ecx, esi
push eax
push dword [ebp - 0x880]
push dword [ebp - 0x878]
call fcn.004871a0
jmp 0x48739a
push str.Thumbs.db
push eax
call ebx
test eax, eax
je 0x48739a
push str.desktop.ini
lea eax, [ebp - 0x848]
push eax
call ebx
test eax, eax
je 0x48739a
cmp word [edi], 0
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x41c]
jne 0x4872f4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x487304
push edi
push 0x4d0ed4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ecx, dword [ebp - 0x878]
mov esi, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax]
mov ebx, eax
mov eax, dword [ebp - 0x878]
mov dword [ebx + 8], esi
mov edx, dword [eax + 4]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x48732f
mov edx, ecx
mov ecx, dword [edx + 4]
test ecx, ecx
jne 0x487326
lea eax, [ebp - 0x41c]
mov dword [edx + 4], ebx
push eax
mov dword [ebx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x48738b
lea eax, [eax*2 + 2]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
lea eax, [ebp - 0x41c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x487388
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebx + 0xc], esi
mov esi, dword [ebp - 0x884]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
inc dword [esi + 4]
lea eax, [ebp - 0x874]
push eax
push dword [ebp - 0x87c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x487232
push dword [ebp - 0x87c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004912f2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4882a0
Capabilities:
Encrypt data using rc4 via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 8
mov esi, ecx
call fcn.00491300
add esp, 4
mov edi, eax
push dword [ebp + 8]
mov dword [edi], vtable.CCryptKey.0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [esi + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8003
push esi
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x48831f
push 0
push dword [ebp - 8]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp dword [ebp + 0xc], 0xffffffff
lea eax, [edi + 4]
push eax
push 0
push dword [ebp - 4]
mov ecx, 0x6602
mov eax, 0x6801
cmovne eax, ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x488330
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push edi
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ecx
push 0
push 1
push 0
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 4]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 0xc]
mov edi, eax
push dword [ebp + 8]
push edi
call fcn.00495cc0
add esp, 0xc
lea eax, [ebp + 0xc]
push dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push edi
push 0
push 1
push 0
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [ecx], edi
mov ecx, dword [ebp - 4]
mov dword [edx], ecx
pop edi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4883b0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
push dword [ebp + 8]
mov edi, eax
push edi
call fcn.00495cc0
add esp, 0xc
mov dword [ebp + 0xc], esi
lea eax, [ebp + 0xc]
push eax
push edi
push 0
push 1
push 0
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [ecx], edi
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [edx], ecx
pop ebx
pop ebp
ret 0x10

Function at 0x488580
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0
push 0
push 0x4bb490
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
push str.SRPG_Studio
push dword [ebp - 4]
push 0x4d0ed4
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x489150
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x4f0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x4bb490
mov dword [edi + 0x6e4], 0
mov dword [edi + 0x6e8], 0
mov dword [edi + 0x6ec], 0
mov dword [edi + 0x6f0], 0
mov dword [edi + 0x6f4], 0
mov dword [edi + 0x6f8], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x428]
push str.SRPG_Studio
push dword [ebp - 0x14]
push 0x4d0ed4
push eax
call esi
add esp, 0x10
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.gamemenu.dat
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x220]
push 0x4d0ed4
push eax
call esi
add esp, 0x10
lea ecx, [ebp - 0x220]
xor edx, edx
call fcn.0048d420
mov edx, eax
test edx, edx
jne 0x489220
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004912f2
mov esp, ebp
pop ebp
ret
mov ecx, dword [edx + 4]
mov esi, dword [edx]
mov eax, dword [esi + ecx + 4]
mov ebx, dword [esi + ecx]
mov dword [ebp - 0x14], eax
lea eax, [ecx + 8]
mov dword [edx + 4], eax
movq xmm0, qword [str.SMNU]
movzx eax, bl
movq qword [ebp - 0x18], xmm0
cmp ax, word [ebp - 0x18]
jne 0x489279
mov eax, ebx
shr eax, 8
movzx ecx, al
mov eax, dword [ebp - 0x18]
shr eax, 0x10
cmp cx, ax
jne 0x489279
mov eax, ebx
shr eax, 0x10
movzx eax, al
cmp ax, word [ebp - 0x14]
jne 0x489279
mov eax, dword [ebp - 0x14]
shr ebx, 0x18
shr eax, 0x10
cmp ebx, eax
je 0x489291
mov ecx, edx
call fcn.0048d4e0
xor edx, edx
lea ecx, [ebp - 0x220]
call fcn.0048d420
mov edx, eax
mov esi, dword [edx]
mov eax, dword [edx + 4]
mov eax, dword [esi + eax]
mov dword [edi + 0x6e4], eax
add dword [edx + 4], 4
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [0x4f7f2c]
mov eax, dword [ecx + eax]
mov dword [edi + 0x6e8], eax
add dword [edx + 4], 4
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov eax, dword [ecx + eax]
mov dword [edi + 0x6ec], eax
add dword [edx + 4], 4
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov eax, dword [ecx + eax]
mov dword [edi + 0x6f0], eax
mov ecx, dword [edx + 4]
add ecx, 4
mov dword [edx + 4], ecx
cmp esi, 0x43d
jl 0x4892fc
mov eax, dword [edx]
mov eax, dword [ecx + eax]
mov dword [edi + 0x6f4], eax
add dword [edx + 4], 4
mov ecx, dword [edx + 4]
cmp esi, 0x491
jl 0x489313
mov eax, dword [edx]
mov eax, dword [ecx + eax]
mov dword [edi + 0x6f8], eax
add dword [edx + 4], 4
mov ecx, edx
call fcn.0048d4e0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004912f2
mov esp, ebp
pop ebp
ret
Function at 0x48cce0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48cd11
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
mov ebx, eax
lea eax, [ebp - 8]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x505234]
test eax, eax
jne 0x48cd5f
mov ecx, dword [0x505204]
push 0xffffffffffffffff
push str.keyset
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [0x505234], eax
push dword [ebp + 8]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp - 4]
push edi
push ebx
call dword [edx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48d1a0
Capabilities:
Create new key via cryptacquirecontext
Get common file path
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4f0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x214]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x204]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x204]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add eax, 0x11
push eax
push 8
mov dword [ebp - 0x228], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
movups xmm0, xmmword [ebp - 0x214]
mov dword [ebp - 0x21c], eax
movups xmmword [eax], xmm0
lea eax, [ebp - 0x204]
push eax
call edi
mov edi, dword [ebp - 0x21c]
push eax
lea eax, [ebp - 0x204]
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00495cc0
add esp, 0xc
lea eax, [ebp - 0x224]
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x48d25d
mov edi, dword [ebp - 0x21c]
xor ebx, ebx
jmp 0x48d30a
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push 0
test eax, eax
jne 0x48d295
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov edi, dword [ebp - 0x21c]
xor ebx, ebx
jmp 0x48d30a
push dword [ebp - 0x228]
push edi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 0x220]
push 0
push eax
push 0
push 2
push dword [ebp - 0x218]
call edi
push dword [ebp - 0x220]
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
mov ebx, eax
lea eax, [ebp - 0x220]
push eax
push ebx
push 2
push dword [ebp - 0x218]
call edi
push dword [ebp - 0x218]
mov edi, dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test edi, edi
jle 0x48d320
mov ecx, ebx
sub ecx, esi
mov al, byte [ecx + esi]
lea esi, [esi + 1]
mov byte [esi - 1], al
sub edi, 1
jne 0x48d312
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test ebx, ebx
je 0x48d338
push ebx
push 0
call edi
push eax
call esi
push dword [ebp - 0x21c]
push 0
call edi
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004912f2
mov esp, ebp
pop ebp
ret