joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bb6c0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.004dd860
mov al, byte [0x533fe0]
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x15]
mov esi, dword [esp + 0x201c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test esi, esi
stosb byte es:[edi], al
je 0x4bb6f3
mov byte [esi], 0
mov edi, dword [esp + 0x2018]
lea ecx, [esp + 0xc]
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
je 0x4bb7a3
cmp eax, 0x1fff
ja 0x4bb7a3
lea edx, [esp + 0x14]
push edx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4bb7a3
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x5268d0
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4bb7a3
mov edx, dword [esp + 0x2020]
push ebx
mov ecx, edx
xor eax, eax
mov ebx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov cx, word [eax + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
push ecx
xor ecx, ecx
mov cx, word [eax + 8]
mov eax, dword [eax + 8]
shr eax, 0x10
push ecx
push eax
dec edx
push str._d._d._d._d
push edx
push esi
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x1c
mov eax, 1
pop ebx
pop edi
pop esi
add esp, 0x200c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x200c
ret
Function at 0x4c17e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x30c
push ebx
push ebp
mov ebp, dword [esp + 0x318]
push esi
test ebp, ebp
push edi
je 0x4c1855
push 0x104
lea eax, [esp + 0x14]
push ebp
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
push 6
lea ecx, [esp + 0x20]
push str.res:__
push ecx
call dword [sym.imp.MSVCRT.dll__mbsnbicmp]
add esp, 0x18
test eax, eax
jne 0x4c1855
mov ebx, dword [sym.imp.MSVCRT.dll__mbstok]
lea edx, [esp + 0x16]
push 0x527ec8
push edx
mov esi, 1
call ebx
add esp, 8
test eax, eax
je 0x4c1855
mov ecx, esi
inc esi
cmp ecx, 1
je 0x4c1862
push 0x527ec8
push 0
call ebx
add esp, 8
test eax, eax
jne 0x4c183d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x30c
ret
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov eax, ecx
mov esi, edi
mov edi, edx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
push 6
lea edx, [esp + 0x20]
push str.res:__
push edx
call dword [sym.imp.MSVCRT.dll__mbsnbicmp]
add esp, 0x18
test eax, eax
jne 0x4c1855
lea eax, [esp + 0x16]
push 0x527ec8
push eax
mov esi, 1
call ebx
add esp, 8
test eax, eax
je 0x4c1855
mov ecx, esi
inc esi
cmp ecx, 2
je 0x4c18ed
push 0x527ec8
push 0
call ebx
add esp, 8
test eax, eax
jne 0x4c18ca
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30c
ret
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x218]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x218]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x114]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
and eax, 0xffff
push eax
call fcn.004c15f0
mov ecx, eax
call fcn.004c16b0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4c1855
push esi
call fcn.004c15f0
mov ecx, eax
call fcn.004c16b0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4c1855
push esi
call fcn.004c15f0
mov ecx, eax
call fcn.004c16b0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x324]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30c
ret
Function at 0x4c24a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f3f9f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 1
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4c24e3
mov eax, dword [esi]
jmp 0x4c24e5
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
push eax
push edi
call dword [ecx + 0x6c]
test eax, eax
jge 0x4c2501
push 0x52ba78
push edi
push eax
call fcn.004ddb3e
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
mov word [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
test esi, esi
mov byte [esp + 0x24], 0
je 0x4c256e
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4c256e
mov eax, dword [esi]
test eax, eax
je 0x4c2555
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x4c2565
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x4c2c70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f406f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 1
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4c2cb3
mov eax, dword [esi]
jmp 0x4c2cb5
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x38]
push edx
push eax
push edi
call dword [ecx + 0x74]
test eax, eax
jge 0x4c2cd6
push 0x52ba78
push edi
push eax
call fcn.004ddb3e
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
mov word [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
test esi, esi
mov byte [esp + 0x24], 0
je 0x4c2d43
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4c2d43
mov eax, dword [esi]
test eax, eax
je 0x4c2d2a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x4c2d3a
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
Function at 0x4c7fe0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4f4542
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push edi
push 0
push 0x531fbc
push 6
mov edi, ecx
push str..zip
push 0x531fb0
push 1
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CFileDialog::CFileDialog
lea ecx, [esp + 0x14]
mov dword [esp + 0x218], 0
call sub.MFC42.DLL_CFileDialog::DoModal
cmp eax, 1
jne 0x4c81af
lea eax, [esp + 4]
push ebx
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileDialog::GetPathName
lea ecx, [esp + 0xc]
push 4
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x224], 1
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x529888
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
lea ecx, [esp + 0xc]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4c818a
push esi
push 0
lea edx, [esp + 0x18]
push str.skin_
push edx
call fcn.00426640
add esp, 0xc
push 0x5c
lea ecx, [esp + 0x10]
mov byte [esp + 0x224], 2
call sub.MFC42.DLL_CString::ReverseFind
lea ecx, [esp + 0x10]
mov esi, eax
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0xc]
mov bl, 3
mov byte [esp + 0x220], bl
mov ecx, dword [eax - 8]
cmp esi, ecx
jge 0x4c8165
mov eax, ecx
lea ecx, [esp + 0xc]
sub eax, esi
dec eax
push eax
lea eax, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x224], 4
call fcn.004dcf56
lea ecx, [esp + 0x18]
mov byte [esp + 0x220], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4c8165
push 0
push 0
push 0x531fa4
mov ecx, edi
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [edi + 0x160]
call fcn.004cb2d0
test eax, eax
je 0x4c8165
mov edx, dword [edi + 0x180]
push eax
push 9
push 0x110b
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x220], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x220], 1
call sub.MFC42.DLL_CString::CString
pop esi
jmp 0x4c819d
push 0x30
push 0x531f20
push 0x531f80
mov ecx, edi
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 8]
mov byte [esp + 0x21c], 0
call sub.MFC42.DLL_CString::CString
pop ebx
lea ecx, [esp + 0xc4]
mov dword [esp + 0x218], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x218], 0xffffffff
call sub.MFC42.DLL_CDialog::CDialog
mov ecx, dword [esp + 0x210]
pop edi
mov dword fs:[0], ecx
add esp, 0x218
ret
Function at 0x4cb2d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f4b4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push edi
mov edi, ecx
mov dword [esp + 0x14], 0xffff0003
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x18], 0x27
mov eax, dword [edi + 0x4c]
push ecx
mov dword [esp + 0x14], eax
mov eax, 1
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0xc]
xor ebx, ebx
push 4
push edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x54], ebx
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x529888
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
lea ecx, [esp + 0xc]
test eax, eax
sete byte [esp + 0x54]
call sub.MFC42.DLL_CString::CString
cmp byte [esp + 0x54], bl
je 0x4cb4a5
push esi
push 0x1c
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x10], esi
cmp esi, ebx
mov byte [esp + 0x50], 1
je 0x4cb3c0
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 4]
mov byte [esp + 0x50], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 8]
mov byte [esp + 0x50], 3
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0xc]
mov byte [esp + 0x50], 4
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x10]
mov byte [esp + 0x50], 5
call sub.MFC42.DLL_CString::CString_3
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], vtable.CBitmap.0
jmp 0x4cb3c2
xor esi, esi
mov eax, dword [esp + 0xc]
mov ecx, edi
push eax
push esi
mov byte [esp + 0x58], bl
call fcn.004cabe0
neg eax
sbb eax, eax
push 0x5c
and eax, esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], eax
call sub.MFC42.DLL_CString::ReverseFind
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x58]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Right
push 0x2e
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 6
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 7
call fcn.004dcf56
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 6
call sub.MFC42.DLL_CString::CString
push 0x208
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CString::GetBuffer
push 0xffffffffffffffff
lea ecx, [esp + 0x5c]
mov dword [esp + 0x30], eax
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [edi + 0x20]
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x1100
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x58]
mov esi, eax
mov byte [esp + 0x50], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x50], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret 4
lea ecx, [esp + 8]
mov dword [esp + 0x4c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x44]
pop edi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 4
Function at 0x4cba50
Capabilities:
Initialize iwebbrowser2

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f4c10
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebp
push esi
mov esi, dword [esp + 0x5c]
xor ebp, ebp
cmp esi, ebp
push edi
jne 0x4cba8b
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 4
mov dword [esp + 0x60], ebp
lea eax, [esp + 0x60]
mov dword [esp + 0x58], ebp
push eax
push 0x528e88
push 7
push ebp
push 0x528e78
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebp
jge 0x4cbadf
mov eax, dword [esp + 0x60]
mov dword [esp + 0x58], 0xffffffff
cmp eax, ebp
je 0x4cbbf7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 4
mov eax, dword [esp + 0x60]
push 0xffffffffffffffff
push eax
mov edx, dword [eax]
call dword [edx + 0xa4]
cmp eax, ebp
jge 0x4cbb22
mov eax, dword [esp + 0x60]
mov dword [esp + 0x58], 0xffffffff
cmp eax, ebp
je 0x4cbbf7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 4
push ebx
push 0xffffffffffffffff
push esi
call fcn.00404920
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
push 0x533fe0
lea ecx, [esp + 0x48]
mov byte [esp + 0x60], 1
mov word [esp + 0x48], bp
call fcn.00427fc0
push 0x533fe0
lea ecx, [esp + 0x38]
mov byte [esp + 0x60], 2
mov word [esp + 0x38], bp
call fcn.00427fc0
mov ebx, 3
push 0x533fe0
lea ecx, [esp + 0x28]
mov byte [esp + 0x60], bl
mov word [esp + 0x28], bp
call fcn.00427fc0
mov word [esp + 0x14], bx
mov dword [esp + 0x1c], 0xe
lea ecx, [esp + 0x44]
mov eax, dword [esp + 0x64]
push ecx
lea ecx, [esp + 0x38]
mov edx, dword [eax]
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 5
push ecx
lea ecx, [esp + 0x20]
push ecx
push edi
push eax
call dword [edx + 0x2c]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [esp + 0x14]
push edx
mov ebx, eax
call esi
lea eax, [esp + 0x24]
push eax
call esi
lea ecx, [esp + 0x34]
push ecx
call esi
lea edx, [esp + 0x44]
push edx
call esi
cmp ebx, ebp
pop ebx
push edi
jge 0x4cbc0d
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x58], 0xffffffff
cmp eax, ebp
je 0x4cbbf7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 4
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x60]
mov dword [esp + 0x58], 0xffffffff
cmp eax, ebp
je 0x4cbc29
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [esp + 0x50]
pop edi
pop esi
mov al, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x50
ret 4
Function at 0x4cf3f0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberA]
mov cx, word [0x532620]
mov dl, byte [0x532622]
mov word [esp + 4], cx
add cl, al
lea eax, [esp + 4]
mov byte [esp + 6], dl
push eax
mov byte [esp + 8], cl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
sete al
ret 4

Function at 0x4d17b0
Capabilities:
Create thread

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 8], ebx
je 0x4d183f
cmp dword [esp + 0x30], ebx
jne 0x4d17db
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 4
mov eax, dword [esi + 0xc]
push ebx
push ebx
push 0x12
push eax
mov dword [esi + 4], 1
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ebx
push ecx
call edi
test eax, eax
je 0x4d181e
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4d17f6
mov ecx, dword [esi + 8]
push 1
push ecx
call ebp
cmp eax, ebx
je 0x4d182f
cmp eax, 0xffffffff
jne 0x4d17f6
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edi, eax
lea eax, [esi + 0xc]
push eax
push ebx
push edi
push 0x4d18a0
push ebx
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x4d1889
test edi, edi
je 0x4d1877
push 0xffffffffffffffff
push edi
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 4
Function at 0x4d2260
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
xor ebx, ebx
mov eax, dword [esi + 0x8c]
push edi
cmp eax, ebp
mov dword [esi + 0x90], ebp
jbe 0x4d2299
lea edi, [esi + 4]
mov eax, dword [edi]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [edi], ebp
mov eax, dword [esi + 0x8c]
inc ebx
add edi, 4
cmp ebx, eax
jb 0x4d227e
mov eax, dword [esp + 0x18]
mov dword [esi + 0x8c], ebp
cmp eax, ebp
mov dword [esi + 0x88], ebp
mov dword [esi + 0x84], ebp
jne 0x4d22bd
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
push ebp
push 0x80
push 3
push ebp
push 1
push closesocket
push eax
mov dword [esi + 0x9c], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x4d22ef
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], 1
cmp dword [esi + 0x9c], ebp
jne 0x4d2301
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
push 8
xor ebx, ebx
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x9c]
mov dword [esp + 0x10], ebp
cmp eax, ebp
je 0x4d2425
mov ecx, dword [esi + 0x98]
push ebp
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, ebx
jne 0x4d2425
mov eax, dword [esi + 0x98]
lea edx, [esp + 0x10]
push ebp
push edx
push 8
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebp
je 0x4d2425
cmp dword [esp + 0x10], 8
jne 0x4d2425
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, ebp
je 0x4d2425
mov cl, byte [edi + 3]
mov dl, byte [edi + 2]
mov byte [esp + 0x18], cl
mov cl, byte [edi + 1]
mov byte [esp + 0x19], dl
mov dl, byte [edi]
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1b], dl
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov dl, byte [edi + 7]
mov cl, byte [edi + 6]
mov byte [esp + 0x18], dl
mov dl, byte [edi + 5]
mov byte [esp + 0x19], cl
mov cl, byte [edi + 4]
mov byte [esp + 0x1a], dl
mov byte [esp + 0x1b], cl
mov dword [eax + 8], ebx
mov edx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov ecx, dword [eax]
cmp ecx, 8
jb 0x4d2425
mov ecx, dword [esi + 0x8c]
cmp ecx, 0x20
ja 0x4d2425
mov dword [esi + ecx*4 + 4], eax
mov ecx, dword [esi + 0x8c]
inc ecx
mov dword [esi + 0x8c], ecx
mov edx, dword [eax + 4]
xor ecx, ecx
cmp edx, 0x6d6f6f76
sete cl
cmp ecx, ebp
je 0x4d23fe
cmp dword [esi + 0x84], ebp
jne 0x4d23fe
mov dword [esi + 0x84], eax
mov edx, dword [eax + 4]
xor ecx, ecx
cmp edx, 0x6d646174
sete cl
cmp ecx, ebp
je 0x4d241e
cmp dword [esi + 0x88], ebp
jne 0x4d241e
mov dword [esi + 0x88], eax
add ebx, dword [eax]
jmp 0x4d230f
push edi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esi + 0x8c]
add esp, 4
cmp eax, ebp
jbe 0x4d2452
cmp dword [esi + 0x84], ebp
je 0x4d2452
cmp dword [esi + 0x88], ebp
je 0x4d2452
mov dword [esi + 0x90], 1
mov eax, dword [esi + 0x90]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4d5aa0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4f57cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x194
push esi
mov esi, ecx
push edi
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
push eax
lea eax, [esp + 0xc]
push str.cookie.ini
push eax
call fcn.00426640
mov ecx, dword [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x1b8], 0
call dword [sym.imp.MSVCRT.dll__access]
add esp, 0x14
cmp eax, 0xffffffff
je 0x4d5bf7
mov edx, dword [esp + 8]
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x14]
push 0x190
push eax
push 0x533fe0
push 0x52c6c4
push str.root
call ebx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0x24]
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 0xc]
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x14]
push 0x190
push eax
push 0x533fe0
push str.totalTime
push str.root
call ebx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0x1c]
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 0xc]
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x14]
push 0x190
push eax
push 0x533fe0
push str.score
push str.root
call ebx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0x18]
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 0xc]
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x14]
push 0x190
push eax
push 0x533fe0
push 0x5329a4
push str.root
call ebx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esi + 0x28]
call sub.MFC42.DLL_CString::operator_2
mov dword [esi + 0x2c], 1
pop ebx
lea ecx, [esp + 8]
mov dword [esp + 0x1a4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a0
ret
Function at 0x4d7950
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4d795f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x532a88]
test eax, eax
je 0x4d796d
call fcn.004d7800
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x4d7a61
push ebx
push edi
mov edi, edx
shr edi, 3
xor ecx, ecx
mov cl, byte [esi]
mov ebx, eax
shr ebx, 8
sub edx, 8
xor ecx, eax
and ecx, 0xff
mov eax, dword [ecx*4 + 0x539d90]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x539d90]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x539d90]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x539d90]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x539d90]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x539d90]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x539d90]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x539d90]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x4d7987
pop edi
pop ebx
test edx, edx
je 0x4d7a81
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x539d90]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x4d7a65
not eax
pop esi
ret 0xc