joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e71
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402e8e
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402e9d
mov ebx, 0x417ce0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402eb2
mov ecx, dword [0x446f98]
add ecx, eax
push ecx
call fcn.00403096
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403064
test eax, eax
je 0x40300f
test byte [ebp + 0x17], 0x80
je 0x402ff8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x413c50
mov dword [ebp - 0xc], eax
call fcn.00405fb1
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40305a
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f02
mov esi, dword [ebp + 0x14]
mov edi, 0x413ce0
push esi
push edi
call fcn.00403064
test eax, eax
je 0x40300f
sub dword [ebp + 0x14], esi
mov dword [0x413c68], edi
mov dword [0x413c6c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x413c50
mov dword [0x413c70], ebx
mov dword [0x413c74], eax
call fcn.00405fd1
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x402ff0
mov esi, dword [0x413c70]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x446ff4], 1
mov edi, eax
je 0x402fa4
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402f71
cmp dword [ebp + 0x14], 0
jne 0x402fa4
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404e34
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402fe5
cmp dword [ebp + 0x10], eax
jne 0x402fcd
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ff4
cmp dword [ebp - 0x10], esi
jne 0x402ff4
add dword [ebp - 4], esi
jmp 0x402fd9
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x413c70]
cmp dword [ebp - 0x14], 1
jne 0x402f25
jmp 0x40305a
cmp dword [ebp + 0x14], eax
jg 0x402ef5
jmp 0x40305a
push 0xfffffffffffffffc
jmp 0x403011
push 0xfffffffffffffffe
jmp 0x403011
test edi, edi
je 0x40304f
cmp dword [ebp + 0x14], esi
jge 0x403004
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403064
test eax, eax
jne 0x403057
push 0xfffffffffffffffd
pop eax
jmp 0x40305d
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40301f
mov esi, dword [ebp + 0x14]
mov edi, 0x413ce0
push esi
push edi
call fcn.00403064
test eax, eax
je 0x40300f
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ff4
cmp esi, dword [ebp + 0x10]
jne 0x402ff4
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403014
jmp 0x40305a
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4052f6
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x407310
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x407300
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405347
xor eax, eax
jmp 0x40536e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40536e
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x405343
call esi
pop esi
leave
ret 4

Function at 0x4053a8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x43e540], 0x44
push eax
xor eax, eax
push 0x43e540
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4053e3
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x40546d
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040571c
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4054a1
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x446fc8], eax
jmp 0x405635
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4054bf
test eax, eax
je 0x4055e0
test byte [ebp + 0xc], 2
je 0x4055e0
mov esi, 0x439d40
push edi
push esi
call fcn.00405b48
test ebx, ebx
je 0x4054dc
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054e2
push edi
call fcn.00405682
cmp byte [edi], 0
jne 0x4054f0
cmp byte [0x439d40], 0x5c
jne 0x4054fb
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4055d6
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405666
cmp byte [eax], 0
je 0x405541
cmp byte [ebp - 0x18], 0
je 0x405541
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405557
mov al, byte [esi + 1]
test al, al
je 0x4055b5
cmp al, 0x2e
jne 0x405557
cmp byte [esi + 2], 0
je 0x4055b5
push esi
push ebx
call fcn.00405b48
test byte [ebp - 0x148], 0x10
je 0x40557c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055b5
push dword [ebp + 0xc]
push edi
call fcn.0040546d
jmp 0x4055b5
push edi
call fcn.00405800
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4055ad
test byte [ebp + 0xc], 4
je 0x4055a5
push edi
push 0xfffffffffffffff1
call fcn.00404e34
push 0
push edi
call fcn.00405896
jmp 0x4055b5
inc dword [0x446fc8]
jmp 0x4055b5
push edi
push 0xfffffffffffffff2
call fcn.00404e34
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40551f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4055e0
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405635
cmp dword [ebp - 8], esi
jne 0x4055f5
inc dword [0x446fc8]
jmp 0x405635
push edi
call fcn.00405e43
test eax, eax
je 0x405635
push edi
call fcn.0040563b
push edi
call fcn.00405800
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40562d
test byte [ebp + 0xc], 4
je 0x4055ed
push edi
push 0xfffffffffffffff1
call fcn.00404e34
push esi
push edi
call fcn.00405896
jmp 0x405635
push edi
push 0xffffffffffffffe5
call fcn.00404e34
pop edi
pop esi
leave
ret 8
Function at 0x40571c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43bd40
push esi
call fcn.00405b48
push esi
call fcn.004056cf
mov edi, eax
test edi, edi
jne 0x40573d
xor eax, eax
jmp 0x40578f
push edi
call fcn.00405daa
test byte [0x446f58], 0x80
je 0x405756
mov al, byte [edi]
test al, al
je 0x405739
cmp al, 0x5c
je 0x405739
sub edi, esi
jmp 0x40576e
call fcn.00405e43
test eax, eax
je 0x405768
test byte [eax], 0x10
je 0x405739
push esi
call fcn.00405682
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40575a
call fcn.0040563b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405800
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40581c
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40581f
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40584e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405892
test edi, edi
jne 0x405859
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40588c
Function at 0x405896
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
call fcn.00405ed4
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4058ba
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4059f3
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43e6c8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x43e6c8
je 0x4058fe
push 1
push 0
push esi
call fcn.0040581f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4059f9
cmp eax, edi
jg 0x4059f9
mov esi, 0x43e140
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4059f9
cmp eax, edi
jg 0x4059f9
push esi
push ebp
push str._s_s_r_n
push 0x43dd40
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x446f50]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405b6a
push 4
push 0xc0000000
push esi
call fcn.0040581f
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x4059f3
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4059ec
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4059ec
cmp edi, dword [esp + 0x18]
jne 0x4059ec
push str._Rename__r_n
push esi
call fcn.00405794
test eax, eax
jne 0x405a00
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405b48
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x43dd40
push eax
call fcn.004057e0
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x446fd0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4093e4
push eax
call fcn.00405794
test eax, eax
je 0x4059b7
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405a27
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405a1c
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4059b9
Function at 0x405a2f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405aa0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405a8f
cmp dword [ebp + 0x14], 1
je 0x405a91
cmp dword [ebp + 0x14], 2
je 0x405a91
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405e6a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x405e8e
xor eax, eax
test eax, eax
je 0x405ea0
cmp byte [ebp + eax - 0x121], 0x5c
je 0x405ea0
xor ecx, ecx
jmp 0x405ea3
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret 4

Function at 0x405f43
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43eacc], 0
push esi
jne 0x405f7a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f54
mov dword [ecx*4 + 0x43eac8], eax
inc ecx
cmp ecx, 0x100
jl 0x405f4f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405fab
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43eac8]
xor eax, esi
inc ecx
dec edx
jne 0x405f8d
pop edi
not eax
pop esi
ret 0xc
Function at 0x404910
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b3248
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0
push eax
call sub.CLRenderNewEngine.dll_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::GetFont_void_
mov eax, dword [esi + 0x28]
add esp, 4
cmp eax, 0xffffffff
je 0x40495d
mov ecx, dword [esi + 0x20]
and ecx, 0xffffff
shl eax, 0x18
or ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x404964
mov edx, dword [esi + 0x20]
mov dword [esp + 0x10], edx
mov al, byte [esi + 0x1c]
mov byte [esp + 0x16], al
call fcn.004041d0
mov eax, dword [eax + 0x10]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call sub.CLRenderNewEngine.dll_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::SetFont_struct_CxImage::_XFONT___struct_HFONT____
mov ecx, dword [eax]
push 0
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], edx
mov ecx, dword [eax - 8]
push ecx
push eax
call sub.CLRenderNewEngine.dll_public:_static_int___cdecl_CxImage::GetTextWidth_char_const___int__struct_HFONT____
push 0
mov edi, eax
call sub.CLRenderNewEngine.dll_public:_static_int___cdecl_CxImage::GetFontHeight_struct_HFONT____
add esp, 0x1c
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push ecx
push eax
mov eax, dword [esp + 0x44]
push edi
push edx
push eax
mov ecx, esi
mov dword [esp + 0x24], 0
call fcn.00404a40
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x30]
push 0
push 0
mov ecx, dword [eax - 8]
push 0
push 0
push 0
push edx
mov edx, dword [esp + 0x24]
push edx
push ecx
push eax
call sub.CLRenderNewEngine.dll_public:_static_void___cdecl_CxImage::DrawTextA_char_const___int__int__int__int__int__unsigned_int__struct_tagRECT_const___struct_HFONT____
lea eax, [esp + 0x34]
push 0
lea ecx, [esp + 0x40]
push eax
push ecx
call sub.CLRenderNewEngine.dll_public:_static_struct_CxImage::_XFONT___cdecl_CxImage::SetFont_struct_CxImage::_XFONT___struct_HFONT____
add esp, 0x30
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call fcn.004ac05e
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10
Function at 0x40e0b0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b3b2b
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x14
test eax, eax
push esi
jne 0x40e108
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.MatchUpgradeAnim
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x24], 0xffffffff
call fcn.00406290
mov ecx, eax
call fcn.00401560
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop esi
add esp, 0x20
ret 4
lea eax, [esp + 8]
push eax
call fcn.004011b0
mov ecx, eax
call fcn.00401810
push 0x20
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov dword [esp + 0x20], 1
je 0x40e13e
mov ecx, eax
call fcn.00402420
mov esi, eax
jmp 0x40e140
xor esi, esi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 8]
sub eax, edx
mov dword [esp + 0x20], 0xffffffff
cdq
sub eax, edx
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
sar ecx, 1
sub eax, 0xe6
sub ecx, 0xe1
push eax
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.data_MatchSystem_upgrade.mif
call sub.MFC42.DLL_CString::CString_2
push ecx
mov dword [esp + 0x30], 2
mov ecx, esp
mov dword [esp + 0x14], esp
push str.MatchUpgradeAnim
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov dword [esp + 0x30], 0xffffffff
call fcn.00402770
push 0x14
push 0
mov ecx, esi
call fcn.00402800
push 2
push 1
push 0
push esi
call fcn.004011b0
mov ecx, eax
call fcn.00401450
mov ecx, dword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x4b3c88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
push 0
push 0
push 0
push edi
lea ecx, [esi + 4]
call sub.CLRenderNewEngine.dll_public:_bool___thiscall_CxImage::CreateImageFromFile_char_const___struct_IDisplay::_SELECT_PARA___unsigned_int__unsigned_long_int__
lea ecx, [esp + 0x30]
call fcn.0040e3f0
push edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0
call fcn.0040e490
push 3
push 0x14
push 0x14
lea eax, [esp + 0x1c]
push 0
push eax
lea ecx, [esp + 0x44]
call fcn.0040e920
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov eax, ebp
mov ecx, dword [esp + 0x1c]
sub eax, edi
mov ebx, dword [esp + 0x14]
cdq
sub eax, edx
sub ecx, ebx
sar eax, 1
add eax, edi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi + 0x2c], eax
mov eax, ecx
cdq
sub eax, edx
add esi, 0x34
sar eax, 1
add eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword [esi - 4], eax
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ecx
lea ecx, [esp + 0x30]
call fcn.0040e400
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x412d30
Capabilities:
Create directory
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b3eb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
lea eax, [esp + 8]
push edi
mov esi, ecx
push eax
call fcn.004ad15f
add esp, 4
push str.Setting_
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004ac100
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll__mkdir]
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
add esp, 4
push ebx
push edx
push str._spet__u.bin
push 0x103
push esi
call dword [sym.imp.MSVCRT.dll__snprintf]
push 0x4d0c34
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x412dbe
mov dword [esi + 0x104], ebx
mov dword [esi + 0x108], 1
jmp 0x412dda
push edi
push 8
add esi, 0x104
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.004ac05e
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x412e00
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, ecx
push 0x4d0c54
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x412e35
push esi
push 8
add edi, 0x104
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop edi
pop esi
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x4b413f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
lea ecx, [esp]
mov dword [esp + 4], 0
mov dword [esp + 8], 0x4d2364
mov dword [esp + 0xc], 0x4d2358
mov dword [esp + 0x10], 0x4d234c
mov dword [esp + 0x14], 0x4d2340
mov dword [esp + 0x18], 0x4d2334
mov dword [esp + 0x1c], 0x4d2324
mov dword [esp + 0x20], 0x4d2314
mov dword [esp + 0x24], 0x4d2304
mov dword [esp + 0x28], 0x4d22f0
mov dword [esp + 0x2c], 0x4d22dc
mov dword [esp + 0x30], 0x4d22c8
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x48]
mov dword [esp + 0x3c], 1
cmp eax, 1
jl 0x419bf5
cmp eax, 0xb
jg 0x419bf5
mov eax, dword [esp + eax*4 + 4]
lea ecx, [esp]
push eax
call sub.MFC42.DLL_CString::operator_1
push esi
mov esi, dword [esp + 0x48]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_4
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x40], 0
call fcn.004ac05e
mov ecx, dword [esp + 0x38]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret 8
Function at 0x419f70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4b4198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov dword [esi + 0x224], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 0x228], edx
push ecx
mov dword [esi + 0x220], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x1d4], ecx
lea edx, [esp + 0x34]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov dword [esp + 0x2c], 0
mov dword [esi], eax
call sub.MFC42.DLL_CString::CString_4
lea edi, [esi + 4]
mov ecx, edi
call fcn.00402c30
push edi
push 0x64
lea eax, [esp + 0x14]
push 0x64
push eax
mov ecx, esi
call fcn.0041a4a0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
sub edi, ecx
lea ecx, [esp + 0x38]
sub ebx, eax
mov eax, dword [esi + 0x228]
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esi + 0x224]
push edx
mov edx, dword [esi + 0x220]
push eax
push ebx
push edi
push ecx
push edx
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
call fcn.00419cb0
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
add esp, 0x1c
mov dword [esi + 0x1e0], ecx
add ecx, ebx
mov dword [esi + 0x1dc], eax
push 0
push 0
add eax, edi
mov dword [esi + 0x1e8], ecx
push 0
push str.data_PetSystem_tip_tipbg.mif
lea ecx, [esi + 0x1fc]
mov dword [esi + 0x1e4], eax
call sub.CLRenderNewEngine.dll_public:_bool___thiscall_CxImage::CreateImageFromFile_char_const___struct_IDisplay::_SELECT_PARA___unsigned_int__unsigned_long_int__
mov eax, dword [esp + 0x44]
lea ecx, [eax + eax*2]
lea ecx, [ecx + ecx*4]
shl ecx, 1
test eax, eax
mov dword [esi + 0x1f4], ecx
jle 0x41a096
mov dword [esi + 0x1f8], 1
push 1
mov ecx, esi
call fcn.0041a250
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], 0xffffffff
call fcn.004ac05e
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 0x1c