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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58e9f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 8]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x46d0f7
lea ecx, [ebp + 8]
mov dword [ebp - 4], eax
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x46d24b
push 1
call dword [sym.imp.UxTheme.dll_SetThemeAppProperties]
xor ecx, ecx
push esi
mov dword [ebp - 0x2c], ecx
push esi
mov dword [ebp - 0x28], ecx
lea edx, [ebp + 8]
push ecx
mov dword [ebp - 0x24], ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push edx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x30], esi
call sub.MFC42.DLL_CString::CString_2
call fcn.00401852
mov eax, dword [ebp + 8]
add esp, 0xc
cmp eax, esi
mov ebx, eax
jne 0x46d13c
xor edi, edi
jmp 0x46d16b
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0044e920
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]
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_LoadRegTypeLib]
mov eax, dword [ebp - 0x14]
cmp eax, esi
jne 0x46d193
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x46d24b
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov ebx, eax
xor edi, edi
cmp ebx, esi
jbe 0x46d216
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
push edi
mov edx, dword [eax]
push eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x46d211
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xc]
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
je 0x46d211
cmp dword [ecx + 0x28], 5
jne 0x46d1fa
cmp dword [ebp - 0x30], esi
jne 0x46d1fa
cmp word [ebp - 0x2c], si
jne 0x46d1fa
cmp word [ebp - 0x2a], si
jne 0x46d1fa
mov edx, ecx
mov eax, dword [edx]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x28], eax
mov edx, dword [edx + 0xc]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x46d211
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x4c]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
inc edi
cmp edi, ebx
jb 0x46d1a1
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x46d223
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push eax
call fcn.0046d270
push 7
call dword [sym.imp.UxTheme.dll_SetThemeAppProperties]
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x3c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46f850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58ef10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x2c]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x24], 2
mov word [esp + 0xc], 0
call sub.MFC42.DLL_COleVariant::operator
mov ecx, dword [esp + 0x30]
push 0x633dc4
push ecx
mov byte [esp + 0x28], 3
xor esi, esi
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x46f8b3
push esi
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::GetBuffer
mov esi, dword [eax]
lea edx, [esp + 8]
lea ecx, [esp + 0x28]
push edx
push esi
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov ecx, edi
call fcn.0046f770
lea eax, [esp + 8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc

Function at 0x46f920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58ef4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x38]
push 0x633dc4
push eax
mov dword [esp + 0x30], 2
xor esi, esi
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x46f971
push esi
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::GetBuffer
mov esi, dword [eax]
xor ecx, ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x12], ecx
push edx
mov dword [esp + 0x1a], ecx
push esi
mov dword [esp + 0x22], ecx
mov word [esp + 0x18], 0
mov word [esp + 0x26], cx
push ecx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov ecx, edi
call fcn.0046f7c0
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
cmp word [esp + 0x10], 8
mov byte [esp + 0x28], 3
jne 0x46f9c7
mov eax, dword [esp + 0x18]
lea ecx, [esp + 8]
push eax
call sub.MFC42.DLL_CString::operator_3
mov esi, dword [esp + 0x30]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc

Function at 0x46fcb0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov cl, byte [eax + 0x5a0b50]
xor cl, 0x7d
mov byte [eax + 0x63cc0c], cl
inc eax
cmp eax, 0x6e0e
jb 0x46fcb2
mov eax, 0x63cc0c
ret
Function at 0x46fd20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x58ef99
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
lea esi, [edi + 4]
mov ecx, esi
mov dword [esp + 0x14], esi
call sub.MFC42.DLL_CString::CString_3
xor ebx, ebx
lea ecx, [esi + 4]
mov dword [esp + 0x20], ebx
call sub.MFC42.DLL_CString::CString_3
mov al, byte [esp + 0x28]
mov cl, byte [esp + 0x28]
mov byte [esi + 0xc], al
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov byte [esi + 0x1c], cl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x34], ebx
lea ebx, [edi + 0x3c]
push 0xa
mov ecx, ebx
mov dword [esp + 0x24], 1
call sub.MFC42.DLL_CMapStringToOb::CMapStringToOb
lea ebp, [edi + 0x58]
push 0xa
mov ecx, ebp
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CMapStringToString::CMapStringToString
mov edx, dword [esp + 0x28]
push 0x63cb08
push edx
mov ecx, esi
mov byte [esp + 0x28], 3
mov dword [edi], 0x5a7960
call fcn.00451090
push 1
push 0x1000
mov ecx, ebx
call sub.MFC42.DLL_CMapStringToOb::InitHashTable
push 1
push 0x1000
mov ecx, ebp
call sub.MFC42.DLL_CMapStringToString::InitHashTable
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x633dc4
call sub.MFC42.DLL_CString::CString_1
push esi
mov ecx, edi
call fcn.00470210
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 4
Function at 0x472f80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58f538
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], 0
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x472fc3
mov eax, dword [esi]
jmp 0x472fc5
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 0x472fe1
push 0x624910
push edi
push eax
call fcn.0044f29d
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
test esi, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov word [esp + 0xc], 0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
je 0x473041
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x473041
mov eax, dword [esi]
test eax, eax
je 0x473028
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x473038
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 0x473100
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58f578
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], 0
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x473143
mov eax, dword [esi]
jmp 0x473145
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 0x473166
push 0x624910
push edi
push eax
call fcn.0044f29d
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
test esi, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov word [esp + 0xc], 0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
je 0x4731c6
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x4731c6
mov eax, dword [esi]
test eax, eax
je 0x4731ad
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x4731bd
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 0x474870
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x58f934
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [esp + 0x34]
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call sub.MFC42.DLL_CString::CString_2
lea eax, [edi + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString_2
lea ecx, [edi + 8]
mov byte [esp + 0x2c], 1
push ecx
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::CString_2
lea edx, [edi + 0xc]
lea ecx, [esi + 0xc]
push edx
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [edi + 0x10]
lea ebx, [esi + 0x18]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov ecx, ebx
mov byte [esp + 0x2c], 3
mov dword [esp + 0x34], ebx
call sub.MFC42.DLL_CStringArray::CStringArray
lea edx, [edi + 0x18]
mov ecx, ebx
push edx
mov byte [esp + 0x30], 4
mov dword [ebx], 0x5a07f8
call sub.MFC42.DLL_CStringArray::Copy
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x5a07f8
call fcn.0044e53a
lea ebx, [esi + 0x2c]
mov byte [esp + 0x2c], 5
mov ecx, ebx
mov dword [esp + 0x34], ebx
call sub.MFC42.DLL_CStringArray::CStringArray
add edi, 0x2c
mov ecx, ebx
push edi
mov byte [esp + 0x30], 6
mov dword [ebx], 0x5a07f8
call sub.MFC42.DLL_CStringArray::Copy
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0x5a07f8
call fcn.0044e53a
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x47a750
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x58fc1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [esp + 0x40]
push ebx
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.0047a8b0
mov esi, eax
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0x633dc4
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
mov al, byte [esi]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x24], al
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov edx, dword [ecx]
lea ecx, [esp + 0x24]
push edx
push ebx
push esi
mov byte [esp + 0x48], 1
call dword [sym.imp.MSVCP60.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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::runtime_error::vftable]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
mov byte [esp + 0x3c], 3
cmp eax, ebx
je 0x47a7fb
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x47a7f2
cmp al, 0xff
je 0x47a7f2
dec al
mov byte [ecx], al
jmp 0x47a7fb
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.00537330
mov eax, dword [esp + 0x28]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::runtime_error::vftable]
cmp eax, ebx
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x18], ecx
je 0x47a847
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x47a83e
cmp al, 0xff
je 0x47a83e
dec al
mov byte [ecx], al
jmp 0x47a847
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call dword [sym.imp.MSVCRT.dll_public_virtual:_void___thiscall_exception::destructor_void_]
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x47ed80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5903c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStringArray::CStringArray
xor ebx, ebx
push 0xffffffffffffffff
push 3
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], ebx
call sub.MFC42.DLL_CStringArray::SetSize
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x14]
push eax
push 0x2e
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00401654
mov eax, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::MakeUpper
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push edx
lea ecx, [esi + 0x30c4]
mov dword [esp + 0x10], ebx
call sub.MFC42.DLL_CMapStringToPtr::Lookup
mov eax, dword [esp + 8]
cmp eax, ebx
jne 0x47ee19
xor eax, eax
jmp 0x47ee1c
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x47ee2b
mov dword [esp + 8], ebx
mov esi, dword [esp + 8]
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.0044e53a
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 4
Function at 0x47f3a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x590490
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push 1
push 0x64fb18
lea ecx, [esp + 0x24]
mov dword [esp + 0xc], 0
call sub.MFC42.DLL_CSingleLock::CSingleLock
mov eax, dword [0x64fafc]
mov dword [esp + 0x30], 0
test eax, eax
je 0x47f563
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x4c]
mov bl, 2
jmp 0x47f3f5
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 8]
mov ecx, dword [eax]
test esi, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x28], esi
je 0x47f553
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x47f42b
mov eax, dword [esi + 0x3164]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x47f553
lea ebp, [esi + 0x32ec]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [esi + 4]
push ebp
shl esi, 0x1c
sar esi, 0x1f
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x47f553
push 0x633dc4
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [edi + 4]
mov byte [esp + 0x40], 1
test eax, eax
je 0x47f51a
xor esi, esi
mov edx, dword [edi + 4]
lea ecx, [esp + 0x10]
lea eax, [edx + esi*4]
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
push 0xa
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x4c], bl
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x44], 3
call fcn.0044dfa6
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.004ad910
add esp, 8
push 0xa
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x4c], 4
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x44], 5
call fcn.0044dfa6
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x40], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi + 8]
inc esi
dec eax
cmp esi, eax
jbe 0x47f470
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [edx + 0x3120]
call sub.MFC42.DLL_CString::operator_1
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x4c]
inc eax
mov byte [esp + 0x40], 0
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x47f3f1
pop edi
pop esi
pop ebp
pop ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CSingleLock::Unlock
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x47f990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x590508
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push esi
mov esi, ecx
mov eax, dword [esi + 0x3100]
mov ecx, dword [esi + 0x3104]
mov dx, word [esi + 0x3108]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x310c]
mov dword [esp + 8], ecx
mov cx, word [esi + 0x3110]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x3114]
mov word [esp + 0xc], dx
mov dx, word [esi + 0x3112]
mov word [esp + 0x14], cx
mov ecx, dword [esi + 0x3118]
mov dword [esp + 0x18], eax
mov word [esp + 0x16], dx
mov edx, dword [esi + 0x311c]
lea eax, [esi + 0x3120]
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esi + 0x3124]
mov edx, dword [esi + 0x312c]
mov eax, dword [esi + 0x3128]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x3134]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 0x3138]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
lea ecx, [esi + 0x315c]
xor edx, edx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x50]
or al, 0xf0
cmp ecx, edx
mov dword [esp + 0x48], edx
mov dword [esp + 4], ecx
mov dword [esp + 0x2c], eax
je 0x47fa81
mov eax, dword [esi + 0x3118]
cmp eax, edx
je 0x47fa7b
mov dword [esp + 0x1c], eax
jmp 0x47fa85
mov dword [esp + 0x1c], esi
jmp 0x47fa85
mov dword [esp + 0x1c], edx
lea edx, [esp + 4]
push edx
call fcn.0047be80
add esp, 4
lea ecx, [esp + 0x24]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x48
ret 4
Function at 0x4857c0
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1054
call fcn.0044e920
mov eax, dword [esp + 0x1060]
push ebx
push ebp
push esi
push edi
lea edi, [ecx + 0x64]
test eax, eax
jne 0x4857df
lea edi, [ecx + 0x68]
mov eax, dword [esp + 0x106c]
test eax, eax
jne 0x485888
mov eax, dword [edi]
push 0x6219b4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, dword [edi]
push 0x633dc4
push edi
mov esi, eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 0x10
test eax, eax
je 0x48599c
test esi, esi
je 0x48599c
push 2
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_rewind]
add esp, 0x14
test edi, edi
jg 0x485847
push esi
jmp 0x485993
mov al, byte [esi + 0xc]
mov bl, 0x10
test bl, al
jne 0x485882
mov edi, dword [esp + 0x1068]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 0x1000
lea eax, [esp + 0x6c]
push 1
push eax
call ebp
mov ecx, dword [edi]
add esp, 0x10
lea edx, [esp + 0x64]
push 0
push eax
push edx
push edi
call dword [ecx + 0x10]
test byte [esi + 0xc], bl
je 0x48585d
push esi
jmp 0x485993
lea eax, [esp + 0x64]
add ecx, 0x34
push eax
push 0
call fcn.00467c90
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x633dc4
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x20]
push ecx
call fcn.00486590
add esp, 8
mov ecx, eax
call fcn.00467c90
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push eax
call esi
test eax, eax
lea ecx, [esp + 0x10]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x485915
lea edx, [esp + 0x64]
push edx
push 0
push 0x633dc4
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x633dc4
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x20]
push eax
call fcn.00486590
add esp, 8
mov ecx, eax
call fcn.00467c90
push eax
call esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x64]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::operator
mov edi, dword [edi]
push 0x62262c
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x48599c
mov esi, dword [esp + 0x1068]
lea eax, [esp + 0x1c]
push 1
push eax
mov edx, dword [esi]
push esi
call dword [edx + 0x30]
xor ebx, ebx
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x64]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
push edx
lea eax, [esp + 0x68]
push 0x1000
push eax
push esi
call dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
push ebp
push ecx
lea edx, [esp + 0x6c]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [esp + 0x34]
add esp, 0x10
inc ebx
shr eax, 0xc
cmp ebx, eax
jbe 0x48594e
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1054
ret 0xc