joyce8/EMBER2024-capa huggingface dataset:
Function at 0x491fbe
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x491ff6
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00490065
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049003d
jmp 0x492002
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4936ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4936ee
call fcn.004992ed
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4936ee
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4936e5
xor eax, eax
jmp 0x4936f6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004936fc
pop edi
pop esi
pop ebx
ret 4

Function at 0x49981d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49984b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x499869
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00499783
jmp 0x499869
mov eax, dword [esi + 0x14]
test eax, eax
je 0x499869
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00499783
test edi, edi
mov eax, edi
jne 0x499853
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x406004
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x422a1c], esi
push edi
jne 0x40603e
mov ecx, 0x422a18
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40601a
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422e18
jl 0x406015
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406073
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a18]
xor eax, esi
inc ecx
dec edx
jne 0x406056
pop edi
pop esi
not eax
ret 0xc

Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x402b1c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402b33
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x402b68
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x402b64
cmp edi, eax
jae 0x402b68
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x402b56
cmp edi, eax
jb 0x402b6c
xor eax, eax
jmp 0x402b76
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x4030bc
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x138
mov eax, dword [0x4342ac]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push ebx
xor ebx, ebx
cmp dword [0x43506c], ebx
mov dword [ebp - 0xc4], eax
jne 0x4030ec
xor al, al
jmp 0x4031a9
push esi
push 0x118
lea eax, [ebp - 0xb8]
push ebx
push eax
mov dword [ebp - 0xc0], ebx
mov dword [ebp - 0xbc], 0x11c
call sub.MSVCR80.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0xbc]
push eax
call esi
test eax, eax
jne 0x40314d
push 0x11c
lea eax, [ebp - 0xbc]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xbc]
push eax
mov dword [ebp - 0xbc], 0x114
call esi
cmp dword [ebp - 0xb8], 5
pop esi
jb 0x403188
jne 0x403161
cmp dword [ebp - 0xb4], ebx
je 0x403188
mov eax, dword [0x435060]
cmp eax, ebx
je 0x4030e5
push dword [ebp - 0xc4]
lea ecx, [ebp + 0x60]
push ecx
mov word [ebp + 0x60], 2
call eax
mov dword [ebp - 0xc0], eax
jmp 0x40319e
mov eax, dword [0x435064]
cmp eax, ebx
je 0x4030e5
push dword [ebp - 0xc4]
push ebx
call eax
xor eax, eax
cmp dword [ebp - 0xc0], ebx
sete al
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
pop ebx
call fcn.00411db3
add ebp, 0x74
leave
ret
Function at 0x406c2c
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
sub esp, 0x28c
lea ebp, [esp - 4]
mov eax, dword [0x4342ac]
xor eax, ebp
mov dword [ebp + 0x28c], eax
push 4
mov eax, 0x425d25
call fcn.004233ac
push 6
pop esi
lea eax, [ebp - 0x10]
xor edi, edi
push eax
mov word [ebp + 0x84], di
call fcn.00404a66
lea eax, [ebp + 0x84]
push eax
push edi
push edi
push 0x801a
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x406d0d
push 0x42bff0
lea eax, [ebp + 0x84]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x84]
push eax
lea eax, [ebp - 0x10]
call fcn.0040748d
push dword [ebp - 0x10]
lea esi, [ebp]
call fcn.004074fb
mov byte [ebp - 4], 1
push dword [ebp]
mov ecx, ebx
call dword [0x4271e0]
push dword [sym.imp.MSVCP80.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
push ebx
push dword [sym.imp.MSVCP80.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call dword [sym.imp.MSVCP80.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_ostream_char__struct_std::char_traits_char_____class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406cf9
push edi
lea eax, [ebp + 0x84]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp + 4]
xor esi, esi
cmp dword [ebp], eax
je 0x406d0d
push dword [ebp]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402c0a
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x28c]
xor ecx, ebp
call fcn.00411db3
add ebp, 0x290
leave
ret
Function at 0x40a005
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x130
lea ebp, [esp - 4]
mov eax, dword [0x4342ac]
xor eax, ebp
mov dword [ebp + 0x130], eax
push 0x18
mov eax, 0x42540d
call fcn.004233ac
xor ebx, ebx
lea ecx, [ebp + 0x114]
mov byte [ebp - 0xd], bl
call fcn.00409c4a
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x12c], 0x10
mov eax, dword [ebp + 0x118]
jae 0x40a051
lea eax, [ebp + 0x118]
push ebx
push 0x80
push 3
push ebx
push 1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x40a106
push 0x42c384
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x18], eax
lea eax, [ebp]
push eax
mov dword [ebp], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp + 4], 5
jae 0x40a0c0
push str.GetFileSize
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
jmp 0x40a0d7
push str.GetFileSizeEx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x14]
call eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 8
lea eax, [ebp - 0x24]
push eax
push esi
call sub.MSVCR80.dll_memcpy
mov eax, dword [esi]
add esp, 0xc
push dword [ebp - 0x14]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov byte [ebp - 0xd], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x114]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x130]
xor ecx, ebp
call fcn.00411db3
add ebp, 0x134
leave
ret
Function at 0x40a2eb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x4342ac]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1ac]
push esi
mov esi, dword [ebp + 0x1a8]
push esi
mov dword [ebp - 0x7c], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40a329
xor eax, eax
jmp 0x40a435
push ebx
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
mov edi, 0x104
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov esi, eax
cmp esi, ebx
je 0x40a431
cmp esi, edi
jb 0x40a35c
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x40a431
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jl 0x40a431
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x78]
push edx
lea edx, [ebp - 0x80]
push edx
lea edx, [ebp - 0x6c]
push edx
push ebx
push ebx
push eax
call dword [ecx + 0xc]
cmp eax, ebx
jge 0x40a3ac
mov ecx, eax
and ecx, 0x1fff0000
cmp ecx, 0x70000
jne 0x40a3a0
movzx eax, ax
push eax
jmp 0x40a3a2
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x40a428
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov esi, eax
cmp esi, ebx
jne 0x40a3cf
cmp word [ebp - 0x6c], bx
je 0x40a3cf
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40a405
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea edi, [esi + 1]
cmp edi, dword [ebp + 0x1b0]
jbe 0x40a3f2
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, edi
jmp 0x40a405
push dword [ebp + 0x1b0]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x40a428
mov eax, dword [ebp - 0x74]
push dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp + 0x19c]
xor ecx, ebp
pop esi
call fcn.00411db3
add ebp, 0x1a0
leave
ret 0xc
Function at 0x40b900
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x425a7b
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4342ac]
xor eax, esp
mov dword [esp + 0x90], eax
push ebp
push esi
push edi
mov eax, dword [0x4342ac]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xb4]
mov dword [esp + 0x18], 0
mov eax, dword [0x434fc8]
mov edx, dword [eax + 0xc]
mov ecx, 0x434fc8
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
sub esp, 0x1c
mov dword [esp + 0xc8], 0
mov ecx, esp
mov dword [esp + 0x38], esp
push str.Usage
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0x80
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x30]
push eax
call fcn.0040b6f0
add esp, 0x20
test al, al
jne 0x40b9cf
push 0x42bcb6
xor edi, edi
lea eax, [esp + 0x14]
call fcn.0040be70
push edi
mov ecx, ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0xac], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
jmp 0x40ba5b
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push str.GUID
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ba25
lea eax, [esp + 0x20]
push eax
push 0x42c49c
lea edi, [esp + 0x18]
call fcn.0040c010
mov ecx, dword [esp + 0x1c]
add esp, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
cmp dword [esi - 4], 1
jle 0x40ba44
mov edx, dword [esi - 0xc]
push edx
mov eax, edi
push eax
jmp 0x40ba3b
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi - 4], 1
jle 0x40ba44
mov ecx, dword [esi - 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0040bd10
mov esi, dword [esp + 0x10]
push esi
mov ecx, ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esi - 0x10]
mov dword [esp + 0xac], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ba74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00411db3
add esp, 0xa0
ret
Function at 0x40baa0
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x425a7b
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x4342ac]
xor eax, esp
mov dword [esp + 0x90], eax
push ebp
push esi
push edi
mov eax, dword [0x4342ac]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xb4]
mov dword [esp + 0x18], 0
mov eax, dword [0x434fc8]
mov edx, dword [eax + 0xc]
mov ecx, 0x434fc8
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
sub esp, 0x1c
mov dword [esp + 0xc8], 0
mov ecx, esp
mov dword [esp + 0x38], esp
push str.CRLog
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0x80
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x30]
push eax
call fcn.0040b6f0
add esp, 0x20
test al, al
jne 0x40bb6f
push 0x42bcb6
xor edi, edi
lea eax, [esp + 0x14]
call fcn.0040be70
push edi
mov ecx, ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0xac], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
jmp 0x40bbfb
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push str.GUID
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bbc5
lea eax, [esp + 0x20]
push eax
push 0x42c49c
lea edi, [esp + 0x18]
call fcn.0040c010
mov ecx, dword [esp + 0x1c]
add esp, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x10]
cmp dword [esi - 4], 1
jle 0x40bbe4
mov edx, dword [esi - 0xc]
push edx
mov eax, edi
push eax
jmp 0x40bbdb
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi - 4], 1
jle 0x40bbe4
mov ecx, dword [esi - 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.0040bd10
mov esi, dword [esp + 0x10]
push esi
mov ecx, ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esi - 0x10]
mov dword [esp + 0xac], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bc14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00411db3
add esp, 0xa0
ret
Function at 0x40e480
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4238d9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4342ac]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4342ac]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x3c], 0
je 0x40e526
mov edi, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x40e4ec
call edi
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [esp + 0x18]
jae 0x40e4fb
lea ecx, [esp + 0x18]
cmp byte [ecx + esi], 0x5c
je 0x40e51f
lea esi, [eax - 1]
cmp esi, eax
jbe 0x40e50a
call edi
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x40e519
lea eax, [esp + 0x18]
cmp byte [eax + esi], 0x2f
jne 0x40e526
mov eax, 0x427b60
jmp 0x40e52b
mov eax, 0x427b5c
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x40e545
lea eax, [esp + 0x18]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp], eax
jne 0x40e564
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40e564
xor esi, esi
jmp 0x40e567
lea esi, [ebx + 0x2c]
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00411db3
add esp, 0x2c
ret

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

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0x10
jb 0x40e5af
mov eax, dword [eax + 4]
jmp 0x40e5b2
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40e5e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40e5e2
cmp eax, 0x57
je 0x40e5e2
cmp eax, 0x15
je 0x40e5e2
cmp eax, 3
je 0x40e5e2
cmp eax, 0x7b
je 0x40e5e2
cmp eax, 0x35
jne 0x40e5e5
xor al, al
ret
mov al, 1
ret
Function at 0x40e8b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x423981
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push esi
push edi
mov eax, dword [0x4342ac]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, dword [esp + 0x70]
lea eax, [esp + 0xc]
push eax
mov ecx, edi
call fcn.0040d140
cmp dword [eax + 0x18], 0x10
jb 0x40e8f0
mov eax, dword [eax + 4]
jmp 0x40e8f3
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [esp + 0xc]
mov esi, eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp esi, 0xffffffff
jne 0x40e942
push str.boost::filesystem::is_directory
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0x68], 0
call sub.KERNEL32.dll_GetLastError
push eax
push edi
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x50]
call fcn.0040f330
push eax
mov byte [esp + 0x6c], 1
call fcn.0040d380
mov eax, esi
shr eax, 4
and eax, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x60
ret

Function at 0x40ed20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x423a83
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x4342ac]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
push 0x427d00
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x44]
push edx
push eax
push esi
mov dword [esp + 0x48], 1
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 0x18
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x30], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret

Function at 0x411db3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4342ac]
jne 0x411dbd
repz ret
jmp fcn.0041223b