joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402be0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4067c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [str.ai6FG_8]
mov edx, dword [0x40a164]
mov dword [esp], eax
mov al, byte [0x40a168]
mov dword [esp + 4], edx
lea edx, [esp + 0x2c]
mov byte [esp + 8], al
push edx
lea eax, [esp + 0x34]
lea edx, [esp + 4]
push eax
mov eax, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x38]
push eax
push edx
call fcn.00402aa0
lea ecx, [esp + 0xc]
call fcn.00405bc2
mov eax, dword [esp + 0x34]
push 0
push 0x1001
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x402ca9
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFile::Close
mov eax, dword [esp + 0x30]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CFile::CFile
mov al, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
mov ecx, dword [esp + 0x30]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [esp + 0x1c]
xor al, al
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc

Function at 0x402ce0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4067e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
lea ecx, [esp + 0x10]
call fcn.00405bc2
mov eax, dword [esp + 0x30]
push 0
push 0
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x402d47
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CFile::CFile
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
push esi
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::GetLength
mov esi, eax
push esi
call sub.MFC42.DLL_operatornew
mov ecx, dword [str.ai6FG_8]
mov edx, dword [0x40a164]
add esp, 4
mov edi, eax
mov al, byte [0x40a168]
mov dword [esp + 0xc], ecx
push esi
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], edx
mov byte [esp + 0x1c], al
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::Close
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
lea eax, [esp + 0x10]
push edx
push eax
push esi
push edi
mov ecx, ebx
call fcn.00402b50
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CFile::CFile
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc
Function at 0x404670
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x406c93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3f4
push ebx
push esi
mov dword [esp + 0xc], 0
mov ebx, 1
lea ecx, [esp + 0x410]
mov dword [esp + 0x404], ebx
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x14]
push 0x1f3
push eax
push 0
mov byte [esp + 0x410], 2
mov byte [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
push 0x5c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea edx, [esp + 0x10]
push eax
push 0
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x408], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x404], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x410]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push str._local_
push eax
call esi
add esp, 8
test eax, eax
jne 0x40475b
mov esi, dword [esp + 0x40c]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00405b9e
mov dword [esp + 0xc], ebx
jmp 0x404886
mov edx, dword [esp + 0x410]
push str._system_
push edx
call esi
add esp, 8
test eax, eax
jne 0x404802
push ebp
push edi
lea eax, [esp + 0x210]
push 0x1f3
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x40a2ec
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x210]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x210]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x418]
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x40c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x418]
mov byte [esp + 0x40c], 0
call sub.MFC42.DLL_CString::CString
pop edi
mov eax, esi
pop ebp
jmp 0x4048ac
push str._local_
lea ecx, [esp + 0x414]
call sub.MFC42.DLL_CString::Find
test eax, eax
jne 0x40486f
lea ecx, [esp + 0x10]
push 8
push ecx
lea ecx, [esp + 0x418]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x408], 4
call fcn.00405e26
lea ecx, [esp + 0x10]
mov byte [esp + 0x404], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 8]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, dword [esp + 0x40c]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00405b9e
jmp 0x404882
mov esi, dword [esp + 0x40c]
push 0x40a560
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x404], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x410]
mov byte [esp + 0x404], 0
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x3fc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x400
ret 8
Function at 0x4046b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47eb97
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
mov dword [ebp - 0x10], 0
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 4], 0
call fcn.0040f910
add esp, 4
mov eax, dword [esi + 0x14]
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
cmp eax, 8
jb 0x404700
mov ecx, dword [esi]
test ecx, ecx
je 0x40472b
mov ecx, esi
cmp eax, 8
jb 0x40470d
mov ecx, dword [esi]
cmp word [ecx], 0
je 0x40472b
mov ecx, esi
cmp eax, 8
jb 0x40471c
mov ecx, dword [esi]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404842
lea eax, [ebp - 0x28]
push eax
call fcn.0040fe00
add esp, 4
mov ecx, esi
push eax
call fcn.00402c20
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x404779
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40476f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404853
push edx
push ecx
call fcn.0041b0e9
add esp, 8
mov eax, dword [esi + 0x14]
mov ecx, esi
cmp eax, 8
jb 0x404785
mov ecx, dword [esi]
test ecx, ecx
je 0x4047b0
mov ecx, esi
cmp eax, 8
jb 0x404792
mov ecx, dword [esi]
cmp word [ecx], 0
je 0x4047b0
mov ecx, esi
cmp eax, 8
jb 0x4047a1
mov ecx, dword [esi]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404842
push str.SOFTWAREMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push SysReAllocString
push eax
call fcn.004049d0
add esp, 0xc
mov dword [ebp - 0x10], 3
cmp dword [ebp - 0x18], 0
jne 0x404801
push str.SOFTWAREMicrosoftWindowsShellAssociationsUrlAssociationshttpsUserChoice
lea eax, [ebp - 0x40]
push SysReAllocString
push eax
call fcn.004049d0
add esp, 0xc
lea ecx, [ebp - 0x28]
push eax
call fcn.00402c20
lea ecx, [ebp - 0x40]
call fcn.004015a0
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00402c20
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x404842
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404838
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404858
push edx
push ecx
call fcn.0041b0e9
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004491bf
call fcn.004491bf
int3
Function at 0x404dd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47ec2d
push eax
mov dword fs:[0], esp
sub esp, 0x18
call fcn.004311c0
test eax, eax
je 0x404eb8
cmp byte [ebp + 8], 0
je 0x404e75
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00430b90
add esp, 8
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x10], 8
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x10]
test eax, eax
je 0x404e85
cmp edx, 8
jb 0x404e75
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404e6b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404ec8
push edx
push ecx
call fcn.0041b0e9
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp edx, 8
jb 0x404eb8
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404eae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404ec8
push edx
push ecx
call fcn.0041b0e9
add esp, 8
mov ecx, dword [ebp - 0xc]
xor al, al
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004491bf
int3

Function at 0x405260
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 1
call fcn.00404dd0
add esp, 4
test al, al
jne 0x405277
pop ebp
jmp fcn.00405280
xor eax, eax
pop ebp
ret
Function at 0x405280
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ec65
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.004046b0
add esp, 4
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 4], 0
cmp edx, 8
jb 0x4052c2
test ecx, ecx
je 0x405393
cmp edx, 8
lea eax, [ebp - 0x3c]
cmovae eax, ecx
cmp word [eax], 0
je 0x405393
cmp edx, 8
lea eax, [ebp - 0x3c]
cmovae eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40538d
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
mov byte [ebp - 4], 1
cmp byte [ebp + 8], al
je 0x40531d
lea eax, [ebp - 0x24]
push eax
call fcn.00404120
add esp, 4
push dword [ebp + 0x18]
lea eax, [ebp - 0x24]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004053e0
mov edx, dword [ebp - 0x10]
add esp, 0x18
mov esi, eax
cmp edx, 8
jb 0x405371
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405367
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4053d6
push edx
push ecx
call fcn.0041b0e9
add esp, 8
mov edx, dword [ebp - 0x28]
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
jmp 0x405395
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x3c]
xor esi, esi
cmp edx, 8
jb 0x4053c5
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4053bb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4053d6
push edx
push ecx
call fcn.0041b0e9
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004491bf
int3
Function at 0x4053e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x47ec9d
push eax
mov dword fs:[0], esp
sub esp, 0x60
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
xor edi, edi
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x40540e
mov ecx, dword [esi]
test ecx, ecx
je 0x405592
mov ecx, esi
cmp eax, 8
jb 0x40541f
mov ecx, dword [esi]
cmp word [ecx], di
je 0x405592
mov ecx, esi
cmp eax, 8
jb 0x405431
mov ecx, dword [esi]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405592
xor eax, eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [edi + 0x10], eax
je 0x40552a
push esi
lea eax, [ebp - 0x6c]
push 0x4835b4
push eax
call fcn.00402570
push 0x4835ac
push eax
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
call fcn.00402500
push edi
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
call fcn.004024a0
mov edi, eax
add esp, 0x24
lea eax, [ebp - 0x24]
cmp eax, edi
je 0x40550b
mov edx, dword [ebp - 0x10]
cmp edx, 8
jb 0x4054d9
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4054cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4055a4
push edx
push ecx
call fcn.0041b0e9
add esp, 8
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x24], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x14], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x3c]
call fcn.004015a0
lea ecx, [ebp - 0x54]
call fcn.004015a0
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0
call fcn.004015a0
mov edi, dword [ebp + 0xc]
cmp byte [ebp + 0x10], 0
je 0x40554b
push dword [ebp + 0x1c]
push 0x1e
push 0x32
push 1
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push edi
call fcn.00413530
add esp, 0x20
jmp 0x40555a
push 5
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.004137c0
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov edi, eax
cmp edx, 8
jb 0x405592
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405588
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4055a9
push edx
push ecx
call fcn.0041b0e9
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004491bf
call fcn.004491bf
int3
Function at 0x4055b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47eccd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
xor eax, eax
mov dword [ebp - 0x24], 0
push ebx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00428790
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
call fcn.0041d830
mov edx, dword [ebp - 0x10]
add esp, 8
test eax, eax
mov dword [ebp - 4], 0xffffffff
setne bl
cmp edx, 8
jb 0x40564d
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405643
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4057e4
push edx
push ecx
call fcn.0041b0e9
add esp, 8
test bl, bl
pop ebx
je 0x4057d4
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.0040f910
add esp, 4
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 4], 1
cmp edx, 8
jb 0x40567d
test ecx, ecx
je 0x405791
cmp edx, 8
lea eax, [ebp - 0x3c]
cmovae eax, ecx
cmp word [eax], 0
je 0x405791
cmp edx, 8
lea eax, [ebp - 0x3c]
cmovae eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40578b
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
mov byte [ebp - 4], 2
cmp byte [ebp + 8], al
je 0x4056d8
lea eax, [ebp - 0x24]
push eax
call fcn.00404120
add esp, 4
push dword [ebp + 0x18]
lea eax, [ebp - 0x24]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.004053e0
mov edx, dword [ebp - 0x10]
add esp, 0x18
mov esi, eax
cmp edx, 8
jb 0x405730
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405726
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4057e9
push edx
push ecx
call fcn.0041b0e9
add esp, 8
mov edx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
cmp edx, 8
jb 0x4057c3
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405770
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4057e9
push edx
push ecx
call fcn.0041b0e9
add esp, 8
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x3c]
cmp edx, 8
jb 0x4057c1
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4057b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4057e9
push edx
push ecx
call fcn.0041b0e9
add esp, 8
xor esi, esi
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
xor eax, eax
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004491bf
call fcn.004491bf
int3
Function at 0x4083a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47ec65
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
xor eax, eax
mov dword [ebp - 0x3c], 0
push ebx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00406d20
add esp, 8
cmp dword [ebp - 0x28], 8
jb 0x40840b
cmp dword [ebp - 0x3c], 0
je 0x408470
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0x3c]
cmp edx, 8
cmovae eax, ecx
cmp word [eax], 0
je 0x408470
cmp edx, 8
lea eax, [ebp - 0x3c]
cmovae eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
test eax, eax
je 0x408476
cmp edx, 8
jb 0x408443
test ecx, ecx
je 0x408476
cmp edx, 8
lea eax, [ebp - 0x24]
cmovae eax, ecx
cmp word [eax], 0
je 0x408476
cmp edx, 8
lea eax, [ebp - 0x24]
cmovae eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
test eax, eax
je 0x408476
mov bl, 1
jmp 0x408478
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
xor bl, bl
cmp edx, 8
jb 0x4084a8
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40849e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408503
push edx
push ecx
call fcn.0041b0e9
add esp, 8
mov edx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
cmp edx, 8
jb 0x4084f2
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4084e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408503
push edx
push ecx
call fcn.0041b0e9
add esp, 8
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004491bf
int3

Function at 0x408510
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.004071e0
mov edx, dword [ebp - 4]
add esp, 4
mov ecx, dword [ebp - 0x18]
cmp edx, 8
jb 0x408532
test ecx, ecx
je 0x40855f
cmp edx, 8
lea eax, [ebp - 0x18]
cmovae eax, ecx
cmp word [eax], 0
je 0x40855f
cmp edx, 8
lea eax, [ebp - 0x18]
cmovae eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
test eax, eax
je 0x40855f
mov bl, 1
jmp 0x408561
xor bl, bl
cmp edx, 8
jb 0x408591
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408587
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408598
push edx
push ecx
call fcn.0041b0e9
add esp, 8
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004491bf
int3

Function at 0x4089f0
Capabilities:
Check if file exists

Disassembly:
call fcn.004085a0
call fcn.00408790
jmp fcn.004083a0
Function at 0x409090
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call fcn.00408a00
lea eax, [ebp - 0x18]
push eax
call fcn.004071e0
mov edx, dword [ebp - 4]
add esp, 4
mov ecx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4090b6
test ecx, ecx
je 0x4090ed
cmp edx, 8
lea eax, [ebp - 0x18]
cmovae eax, ecx
cmp word [eax], 0
je 0x4090ed
cmp edx, 8
lea eax, [ebp - 0x18]
cmovae eax, ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4090e7
lea ecx, [ebp - 0x18]
call fcn.004015a0
mov al, 1
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
cmp edx, 8
jb 0x40911d
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409113
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409123
push edx
push ecx
call fcn.0041b0e9
add esp, 8
xor al, al
mov esp, ebp
pop ebp
ret
call fcn.004491bf
int3