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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x438068
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
mov ebp, dword [esp + 0x84]
push esi
push edi
mov esi, ecx
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x41a461
mov eax, 0x44e4fc
push eax
lea ecx, [esp + 0x90]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x84], 0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41a4a9
lea ecx, [esp + 0x8c]
mov dword [esp + 0x84], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x41a610
mov ecx, dword [esp + 0x8c]
push ecx
push 0
lea ecx, [esi + 0x474]
call fcn.00429af0
mov ebx, dword [esp + 0x90]
mov edx, eax
mov ecx, 0x1a
xor eax, eax
lea edi, [esp + 0x14]
cmp edx, 1
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x74]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ecx
je 0x41a5e5
cmp edx, 2
je 0x41a5e5
test edx, edx
jne 0x41a5a2
mov dx, word [ebp + 0x10]
lea eax, [esp + 0x8c]
push edx
push eax
mov ecx, esi
call fcn.00422030
mov ecx, dword [esp + 0x8c]
push ecx
push 0
mov ecx, esi
call fcn.00416b20
test eax, eax
mov dword [esp + 0x18], 0x186ad
jne 0x41a5bd
mov edx, 0x44a0ec
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], eax
mov edi, 0x28
lea eax, [esp + 0x2c]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x41a560
mov byte [eax], cl
inc eax
dec edi
jne 0x41a551
jmp 0x41a564
test edi, edi
jne 0x41a565
dec eax
mov edx, dword [esp + 0x8c]
push 1
push 0x449e84
mov byte [eax], 0
push 0x449edc
push edx
lea eax, [esp + 0x20]
push 0x44a080
push eax
push ebx
mov ecx, esi
call fcn.00415410
mov edx, dword [esp + 0x8c]
lea ecx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0041f800
lea ecx, [esp + 0x8c]
mov dword [esp + 0x84], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x41a610
mov eax, dword [esp + 0x8c]
push 1
push 0x44a0fc
push 0x449edc
push eax
lea ecx, [esp + 0x20]
push 0x44a080
push ecx
push ebx
mov ecx, esi
call fcn.00415410
jmp 0x41a5f4
push 4
push 0x186a3
push ebx
mov ecx, esi
call fcn.00419e60
lea ecx, [esp + 0x8c]
mov dword [esp + 0x84], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret 0xc
Function at 0x41b5b0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x1a
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x80]
mov dword [esp + 0x18], 0x186a3
push edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41b747
push edi
push ebx
lea ecx, [esi + 0x474]
call fcn.00429af0
cmp eax, ebx
jge 0x41b60b
push edi
push eax
push 0x44a260
jmp 0x41b69b
cmp eax, 1
je 0x41b619
cmp eax, 2
jne 0x41b747
lea ecx, [esp + 0x80]
mov dword [esp + 0x80], ebx
push ecx
push edi
mov ecx, esi
call fcn.00416be0
mov ebp, eax
mov eax, dword [esp + 0x80]
cmp eax, ebx
jne 0x41b747
cmp ebp, ebx
jge 0x41b6b6
mov edx, 0x449ef0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], ebp
mov ebx, 0x28
lea eax, [esp + 0x2c]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x41b66c
mov byte [eax], cl
inc eax
dec ebx
jne 0x41b65d
jmp 0x41b670
test ebx, ebx
jne 0x41b671
dec eax
push 0
push 0x449ee4
push 0x449f60
push edi
lea edx, [esp + 0x20]
push 0x449f4c
push edx
push 0
mov ecx, esi
mov byte [eax], 0
call fcn.00415410
push edi
push ebp
push 0x44a234
mov eax, dword [esi + 0x528]
push eax
call fcn.004112c0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 4
je 0x41b6e5
push ebx
push 0x449ec4
push 0x449f60
push edi
lea ecx, [esp + 0x20]
push 0x449f4c
push ecx
push ebx
mov ecx, esi
call fcn.00415410
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x6c
ret 4
mov edx, 0x449ef0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0x40000000
mov ebp, 0x28
lea eax, [esp + 0x2c]
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x41b714
mov byte [eax], cl
inc eax
dec ebp
jne 0x41b705
jmp 0x41b718
cmp ebp, ebx
jne 0x41b719
dec eax
push ebx
push 0x449eb8
push 0x449f60
push edi
lea edx, [esp + 0x20]
push 0x449f4c
push edx
push ebx
mov ecx, esi
mov byte [eax], 0
call fcn.00415410
lea eax, [esp + 0x10]
mov ecx, esi
push eax
push edi
call fcn.0041f800
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x6c
ret 4
Function at 0x41c200
Capabilities:
Terminate thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
call fcn.004096c0
mov esi, dword [esp + 0x1c]
mov ebx, eax
mov eax, dword [esi + 0x430]
test eax, eax
jne 0x41c2cc
mov eax, dword [esi + 0x434]
test eax, eax
jne 0x41c2cc
mov edi, dword [esp + 0x20]
test edi, edi
je 0x41c25f
push 0x32
push edi
mov dword [esi + 0x418], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41c25f
push 4
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call fcn.0041fdc0
push 0
call fcn.0040b890
mov ecx, eax
call fcn.0040b830
lea ecx, [esi + 0xc4]
call fcn.004272e0
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jg 0x41c2a4
mov eax, dword [esi + 0x404]
test eax, eax
je 0x41c45a
mov edi, dword [esp + 0x18]
lea ecx, [edi + 0xc4]
call fcn.004272e0
push eax
push 0
mov ecx, edi
call fcn.0041d3b0
mov ecx, esi
call fcn.0041b320
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
push 0
mov ecx, ebx
call fcn.004093b0
mov ecx, dword [esi + 0x434]
mov edx, dword [esi + 0x430]
mov edi, dword [esp + 0x18]
push ecx
push edx
push 0x44a384
mov eax, dword [edi + 0x528]
push eax
call fcn.004112c0
mov eax, dword [esi + 0x424]
mov ebp, dword [esp + 0x30]
add esp, 0x10
test eax, eax
jne 0x41c3da
push 1
mov ecx, edi
call fcn.0041ffc0
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x41c328
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x41c32a
xor eax, eax
mov eax, dword [eax + 0x20]
push 4
push 0x44114c
push 0x44a354
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
mov dword [esp + 0x10], eax
jne 0x41c3d1
mov ebx, 1
push 0x442a0c
push 0x3eb
mov ecx, edi
mov dword [esi + 0x420], ebx
mov dword [esi + 0x424], ebx
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, dword [edi + 0x528]
push 0x44a340
push ecx
call fcn.004112c0
add esp, 8
mov ecx, edi
push 0
push 0x3ef
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
mov ecx, edi
mov edx, dword [esp + 0x24]
push edx
push ebp
push esi
call fcn.0041d120
test eax, eax
jne 0x41c3bb
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret 0x10
mov eax, dword [edi + 0x528]
push 0x44a32c
push eax
call fcn.004112c0
add esp, 8
jmp 0x41c3da
push 0
mov ecx, ebx
call fcn.004093b0
mov ecx, esi
call fcn.0041fdc0
push 0
call fcn.0040b890
mov ecx, eax
call fcn.0040b830
lea ecx, [esi + 0xc4]
call fcn.004272e0
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x1004
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jg 0x41c41b
mov eax, dword [esi + 0x404]
test eax, eax
je 0x41c433
lea ecx, [edi + 0xc4]
call fcn.004272e0
mov edx, dword [esp + 0x10]
push eax
push edx
mov ecx, edi
call fcn.0041d3b0
test ebp, ebp
je 0x41c45a
push 0x32
push ebp
mov dword [esi + 0x418], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41c45a
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call fcn.0041b320
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x41c470
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebx, ebx
call fcn.004096c0
mov esi, dword [esp + 0x18]
mov ecx, dword [esi + 0x430]
test ecx, ecx
jne 0x41c532
mov ecx, dword [esi + 0x434]
test ecx, ecx
jne 0x41c532
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x41c4c6
push 0x32
push edi
mov dword [esi + 0x418], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41c4c6
push 4
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call fcn.0041fdc0
push 0
call fcn.0040b890
mov ecx, eax
call fcn.0040b830
lea ecx, [esi + 0xc4]
call fcn.004272e0
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jg 0x41c50b
mov eax, dword [esi + 0x404]
test eax, eax
je 0x41c6b4
mov edi, dword [esp + 0x14]
lea ecx, [edi + 0xc4]
call fcn.004272e0
push eax
push 0
mov ecx, edi
call fcn.0041d3b0
mov ecx, esi
call fcn.0041b320
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
push 0
mov ecx, eax
call fcn.004093b0
mov ecx, dword [esi + 0x434]
mov edx, dword [esi + 0x430]
mov edi, dword [esp + 0x14]
push ecx
push edx
push 0x44a384
mov eax, dword [edi + 0x528]
push eax
call fcn.004112c0
mov eax, dword [esi + 0x424]
mov ebp, dword [esp + 0x2c]
add esp, 0x10
test eax, eax
jne 0x41c638
push 1
mov ecx, edi
call fcn.0041ffc0
push 0
push 0x7d0
mov ecx, edi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
mov dword [edi + 0x6c], 0
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x41c5aa
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x41c5ac
xor eax, eax
mov eax, dword [eax + 0x20]
push 4
push 0x44114c
push 0x44a354
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ebx, eax
cmp ebx, 6
jne 0x41c638
mov eax, 1
push 0x442a0c
push 0x3eb
mov ecx, edi
mov dword [esi + 0x420], eax
mov dword [esi + 0x424], eax
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov ecx, dword [edi + 0x528]
push 0x44a340
push ecx
call fcn.004112c0
mov edx, dword [esp + 0x28]
add esp, 8
mov ecx, edi
push edx
push ebp
push esi
call fcn.0041d120
test eax, eax
jne 0x41c624
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0x10
mov eax, dword [edi + 0x528]
push 0x44a32c
push eax
call fcn.004112c0
add esp, 8
mov ecx, esi
call fcn.0041fdc0
push 0
call fcn.0040b890
mov ecx, eax
call fcn.0040b830
lea ecx, [esi + 0xc4]
call fcn.004272e0
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x1004
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jg 0x41c679
mov eax, dword [esi + 0x404]
test eax, eax
je 0x41c68d
lea ecx, [edi + 0xc4]
call fcn.004272e0
push eax
push ebx
mov ecx, edi
call fcn.0041d3b0
test ebp, ebp
je 0x41c6b4
push 0x32
push ebp
mov dword [esi + 0x418], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41c6b4
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call fcn.0041b320
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x41d730
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esp + 4]
push esi
cmp eax, 0x7d9
mov esi, ecx
jne 0x41d847
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push 0x44a650
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
call fcn.004150f0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x20]
push 0x7d9
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi + 0x2f8]
test eax, eax
je 0x41d79a
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41d79a
mov ecx, dword [esi + 0x2f8]
push 4
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, esi
call fcn.00414110
test eax, eax
mov dword [esi + 0x78], eax
jne 0x41d7e6
mov eax, dword [0x44f670]
push ecx
test eax, eax
mov ecx, esp
jne 0x41d7cd
mov dword [esp + 0xc], esp
push 0x44a61c
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
call fcn.004150f0
pop esi
ret 4
mov dword [esp + 0xc], esp
push 0x44a5fc
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
call fcn.004150f0
pop esi
ret 4
push 1
push 0x3ef
mov ecx, esi
mov dword [esi + 0x6c], 1
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push 1
push 0x3eb
mov ecx, esi
mov dword [esi + 0x70], 1
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push 0x44a5ec
call sub.MFC42.DLL_CString::CString_3
mov ecx, esi
call fcn.004150f0
mov eax, dword [esi + 0x43c]
test eax, eax
je 0x41d847
mov ecx, esi
call fcn.004164a0
mov ecx, esi
call sub.MFC42.DLL_CWnd::Default
pop esi
ret 4
Function at 0x420530
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x2fc]
mov ecx, 0x41
xor eax, eax
mov edi, esi
push 0x104
push esi
rep stosd dword es:[edi], eax
mov dword [ebx + 0x400], eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4205da
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebx + 0x2fb], 0x5c
je 0x4205da
mov ecx, 0x104
mov eax, esi
cmp byte [eax], 0
je 0x420585
inc eax
dec ecx
jne 0x42057a
jmp 0x4205c8
test ecx, ecx
je 0x4205c8
lea eax, [esp + 0xc]
test eax, eax
je 0x42059a
mov eax, 0x104
sub eax, ecx
jmp 0x42059e
mov eax, dword [esp + 0xc]
mov edx, 0x104
sub edx, eax
lea eax, [eax + esi]
je 0x4205c8
mov edi, 0x4417f4
sub edi, eax
mov cl, byte [edi + eax]
test cl, cl
je 0x4205c0
mov byte [eax], cl
inc eax
dec edx
jne 0x4205b1
jmp 0x4205c4
test edx, edx
jne 0x4205c5
dec eax
mov byte [eax], 0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebx + 0x400], ecx
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x420b80
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43835b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.004039a0
add esp, 8
test eax, eax
je 0x420c9b
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0xc]
mov dword [esp + 0x118], 0
push ecx
push 0x104
push 0x104
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
push 0x4418e4
push 0x441828
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [esp + 8]
push 0x4418e8
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jle 0x420c52
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
mov esi, 0x443710
mov eax, dword [esi + 0x104]
push 1
lea ecx, [esp + 0x10]
push eax
push ecx
lea edx, [esi - 0x104]
push esi
push edx
call fcn.00406ba0
add esp, 0x14
test eax, eax
jne 0x420c22
add esi, 0x20c
cmp esi, 0x4459dc
jb 0x420c57
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x421980
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x108
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
call fcn.00402c90
add esp, 8
test eax, eax
pop edi
jne 0x4219ba
add esp, 0x108
ret
mov ecx, 0x104
lea eax, [esp + 4]
cmp byte [eax], 0
je 0x4219ce
inc eax
dec ecx
jne 0x4219c3
jmp 0x421a14
test ecx, ecx
je 0x421a14
lea edx, [esp]
test edx, edx
je 0x4219e3
mov eax, 0x104
sub eax, ecx
jmp 0x4219e7
mov eax, dword [esp]
mov edx, 0x104
sub edx, eax
lea eax, [esp + eax + 4]
je 0x421a14
push esi
mov esi, 0x44aa40
sub esi, eax
mov cl, byte [esi + eax]
test cl, cl
je 0x421a0b
mov byte [eax], cl
inc eax
dec edx
jne 0x4219fc
jmp 0x421a0f
test edx, edx
jne 0x421a10
dec eax
mov byte [eax], 0
pop esi
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
neg eax
add esp, 0x108
ret
Function at 0x422c00
Capabilities:
Get common file path
Get startup folder

Disassembly:
sub esp, 0x490
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x4a8]
mov ecx, 0xe1
lea edi, [esp + 0x11a]
mov ebp, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov dword [eax], esi
xor eax, eax
mov word [esp + 0x118], si
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push 0x18
push ecx
push esi
stosw word es:[edi], ax
call ebp
mov edi, dword [esp + 0x4a4]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIA]
lea edx, [esp + 0x14]
push edx
push edi
call ebx
test eax, eax
je 0x422c77
mov esi, 1
push 0
lea eax, [esp + 0x18]
push 7
push eax
push 0
call ebp
lea ecx, [esp + 0x14]
push ecx
push edi
call ebx
test eax, eax
je 0x422c95
mov esi, 1
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x118]
push edx
push edi
call fcn.00421a30
test eax, eax
je 0x422cc7
cmp dword [esp + 0x3cc], 0x46
jne 0x422cc7
mov eax, dword [esp + 0x4a8]
mov esi, 1
mov dword [eax], 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x490
ret 8
Function at 0x4249c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x104
lea ecx, [esp]
lea eax, [esp]
push esi
mov esi, 0x104
sub edx, ecx
mov cl, byte [edx + eax]
test cl, cl
je 0x4249e9
mov byte [eax], cl
inc eax
dec esi
jne 0x4249da
jmp 0x4249ed
test esi, esi
jne 0x4249ee
dec eax
lea edx, [esp + 4]
push edi
push edx
mov byte [eax], 0
call dword [sym.imp.MSVCRT.dll__strupr]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + 8]
mov edx, 0x811c9dc5
mov eax, ecx
pop edi
je 0x424a2b
movsx ecx, byte [esi]
imul edx, edx, 0x1000193
xor edx, ecx
inc esi
dec eax
jne 0x424a1c
mov eax, edx
pop esi
add esp, 0x104
ret 4

Function at 0x424bd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x140
push esi
mov esi, dword [esp + 0x148]
test esi, esi
je 0x424c4f
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x424c4f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x424c4f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x424c1e
not al
and eax, 0xff
pop esi
shr eax, 4
and eax, 1
add esp, 0x140
ret
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x424c4f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 4]
pop esi
not al
and eax, 0xff
shr eax, 4
and eax, 1
add esp, 0x140
ret
xor eax, eax
pop esi
add esp, 0x140
ret
Function at 0x4256b0
Capabilities:
Get common file path

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x618
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x4257bc
lea edx, [esp + 0x218]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x425739
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov ebp, dword [sym.imp.SHLWAPI.dll_StrStrIW]
xor edi, edi
mov esi, 0x44ae08
mov eax, dword [esi]
lea ecx, [esp + 0x218]
push eax
lea edx, [esp + 0x424]
push ecx
push edx
call ebx
test eax, eax
je 0x42572d
lea eax, [esp + 0x10]
lea ecx, [esp + 0x420]
push eax
push ecx
call ebp
test eax, eax
jne 0x425777
add esi, 8
inc edi
cmp esi, 0x44ae30
jb 0x425701
mov eax, dword [esp + 0x634]
lea edx, [esp + 0x10]
mov esi, 0x104
sub edx, eax
mov cx, word [edx + eax]
test cx, cx
je 0x42579e
mov word [eax], cx
add eax, 2
dec esi
jne 0x42574b
sub eax, 2
pop edi
pop esi
pop ebp
mov word [eax], 0
mov eax, 1
pop ebx
add esp, 0x618
ret 0xc
mov edx, dword [esp + 0x634]
mov eax, dword [esp + 0x630]
push edx
push eax
call dword [edi*8 + 0x44ae0c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x618
ret 0xc
test esi, esi
jne 0x4257a5
sub eax, 2
pop edi
pop esi
mov word [eax], 0
pop ebp
mov eax, 1
pop ebx
add esp, 0x618
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x618
ret 0xc
Function at 0x4257d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438580
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push ebx
push edi
mov dword [ebp - 0x14], esi
call fcn.00425900
test eax, eax
je 0x4258e7
mov eax, dword [ebx]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4258e0
push 0x2e
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
jne 0x4258e0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CString::CString_4
push edi
lea eax, [ebp - 0x10]
push 0x44af00
push eax
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x10]
push 0
call sub.MFC42.DLL_CString::GetBuffer
mov ebx, eax
test ebx, ebx
jne 0x42586b
xor edi, edi
jmp 0x42589b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0042a4e0
mov edi, esp
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp - 0x14]
lea ecx, [ebp + 8]
push ecx
push edi
mov ecx, esi
call fcn.00425900
test eax, eax
je 0x4258c5
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4258c5
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x4258e9
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8