Function at 0x411e40
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41776b
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4262b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x3c]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFile::constructor_void_]
push 0
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call dword [sym.imp.FSUTIL.dll_public:_int___thiscall_AFile::Open_class_AFilePath_const___unsigned_int__class_CFileException__]
test eax, eax
je 0x411ed3
lea ecx, [ebp - 0x3c]
call dword [sym.imp.FSUTIL.dll_public_virtual:_unsigned_long_long_unsigned___int64____thiscall_AFile::GetLength_void_]
mov esi, eax
push esi
call sub.mfc140.dll_Ordinal_265
add esp, 4
lea ecx, [ebp - 0x3c]
mov edi, eax
push esi
push edi
call dword [sym.imp.FSUTIL.dll_public_virtual:_unsigned_int___thiscall_AFile::Read_void___unsigned_int_]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.FSUTIL.dll_public_virtual:_void___thiscall_AFile::Close_void_]
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.0040dd40
add esp, 8
push edi
test eax, eax
jne 0x411ee0
call sub.mfc140.dll_Ordinal_266
add esp, 4
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
sete bl
jmp 0x412010
call sub.mfc140.dll_Ordinal_266
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
mov esi, dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x10], 0
mov ecx, dword [esi + 4]
push eax
push 0
push dword [ebx + 4]
push dword [ebx]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.004160d0
mov edi, eax
test edi, edi
jne 0x411fb1
cmp dword [ebp - 0x10], eax
jne 0x411fb1
lea ecx, [ebp + 0x14]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::constructor_void_]
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 1
call dword [sym.imp.FSUTIL.dll_public:_class_AFilePath____thiscall_AFilePath::GetExecutableDir_void_]
push str.AppLog.bin
lea ecx, [ebp + 0x14]
call dword [0x4180f8]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFile::constructor_void_]
push edi
push 2
lea eax, [ebp + 0x14]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.FSUTIL.dll_public:_int___thiscall_AFile::Open_class_AFilePath_const___unsigned_int__class_CFileException__]
test eax, eax
je 0x411f9d
mov esi, dword [sym.imp.FSUTIL.dll_public_virtual:_void___thiscall_AFile::Write_void_const___unsigned_int_]
lea eax, [ebp - 0x1c]
push 4
push eax
lea ecx, [ebp - 0x2c]
call esi
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x18]
call esi
push 4
push ebx
lea ecx, [ebp - 0x2c]
call esi
push dword [ebx]
lea ecx, [ebp - 0x2c]
push dword [ebx + 4]
call esi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.FSUTIL.dll_public_virtual:_void___thiscall_AFile::Close_void_]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.FSUTIL.dll_public_virtual:_void___thiscall_AFile::destructor_void_]
lea ecx, [ebp + 0x14]
call dword [sym.imp.FSUTIL.dll_public:_void___thiscall_AFilePath::destructor_void_]
jmp 0x411ff3
mov ecx, dword [esi + 4]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ebx, eax
test ebx, ebx
jne 0x411fc9
xor edi, edi
jmp 0x411ff3
mov esi, dword [ebp + 0x10]
push esi
push dword [esi + 4]
push 0
push 1
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ecx, dword [esi + 4]
xor edx, edx
mov eax, dword [ebp - 0x1c]
push ebx
cmp eax, dword [ecx]
sete dl
and edi, edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [ebp - 0x18]
call sub.mfc140.dll_Ordinal_266
add esp, 4
test edi, edi
jne 0x41200b
cmp dword [ebp - 0x10], edi
jne 0x41200b
xor ebx, ebx
jmp 0x412010
mov ebx, 1
lea ecx, [ebp - 0x3c]
call dword [sym.imp.FSUTIL.dll_public_virtual:_void___thiscall_AFile::destructor_void_]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10