Function at 0x40d5c0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6101
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x150
mov eax, dword [0x51f164]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x158], ecx
push 0x8003
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
push 0x8000000
push 3
push 0
mov byte [ebp - 4], 1
lea eax, [ebx + 8]
cmp dword [ebx + 0x1c], 8
push 0
cmovae eax, dword [ebx + 8]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x15c], edi
cmp edi, 0xffffffff
jne 0x40d69b
mov edx, dword [ebx + 0x1c]
cmp edx, 8
jb 0x40da79
mov ecx, dword [ebx + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d68c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40da9c
push edx
push ecx
call fcn.00490c3c
add esp, 8
jmp 0x40da79
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov dword [ebp - 0x3c], 0xf
mov esi, eax
mov dword [ebp - 0x40], ecx
sub esi, dword [0x520110]
mov byte [ebp - 0x50], cl
push ecx
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x38], ecx
movlpd qword [ebp - 0x150], xmm0
push dword [ebp - 0x14c]
push dword [ebp - 0x150]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov byte [ebp - 4], 3
test esi, esi
jne 0x40d702
mov dword [ebp - 0x24], esi
mov byte [ebp + esi - 0x34], 0
jmp 0x40d739
cmp esi, 0xf
ja 0x40d720
push esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], esi
push 0
push eax
call fcn.004a8980
add esp, 0xc
mov byte [ebp + esi - 0x34], 0
jmp 0x40d739
push 0
push esi
mov byte [ebp - 0x14c], 0
lea ecx, [ebp - 0x34]
push dword [ebp - 0x14c]
push esi
call fcn.0043c150
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x38]
push 0
push ecx
push dword [ebp - 0x24]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0xc0
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004a8980
add esp, 0xc
lea ecx, [ebp - 0x110]
call fcn.0040ca90
mov byte [ebp - 4], 4
lea eax, [ebp - 0x80]
push 1
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x110], 0x504e4c
mov dword [ebp - 0x10c], 0x505238
mov dword [ebp - 0x108], 0x505590
mov dword [ebp - 0x14c], eax
call fcn.00444760
push 0
push 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x6c], 0x3fffffff
mov dword [ebp - 0x68], 0
call fcn.00436670
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x5c], 0xffffffff
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x80], vtable.CryptoPP::BlockCipherFinal_0__class_CryptoPP::Rijndael::Enc_.0
mov dword [ebp - 0x7c], vtable.CryptoPP::BlockCipherFinal_0__class_CryptoPP::Rijndael::Enc_.1.0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x110]
mov eax, dword [ebp - 0x158]
push 0x20
push dword [ebp - 0x154]
push dword [eax + 8]
push dword [eax + 0xc]
call fcn.00446b40
push 0x38
lea eax, [ebp - 0x148]
push 0
push eax
call fcn.004a8980
add esp, 0xc
push 0xe4
call fcn.0049089a
mov edi, eax
add esp, 4
mov dword [ebp - 0x158], edi
push 0xe4
push 0
push edi
mov byte [ebp - 4], 8
call fcn.004a8980
add esp, 0xc
push 0x10
call fcn.0049089a
mov esi, eax
add esp, 4
mov dword [ebp - 0x154], esi
xorps xmm0, xmm0
mov byte [ebp - 4], 9
push 0
mov ecx, esi
movups xmmword [esi], xmm0
call fcn.00444760
mov dword [esi], vtable.CryptoPP::StringSinkTemplate_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___.0
push 5
push 0x527040
push 0x10
lea eax, [ebp - 0x50]
mov dword [esi + 4], vtable.CryptoPP::StringSinkTemplate_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___.1.0
push 0
mov dword [esi + 0xc], eax
mov ecx, edi
push esi
lea eax, [ebp - 0x110]
mov byte [ebp - 4], 8
push eax
call fcn.0044b980
push eax
push ecx
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x148]
call fcn.004076c0
mov esi, dword [ebp - 0x15c]
xorps xmm0, xmm0
push 0
push 0
mov byte [ebp - 4], 0xa
movlpd qword [ebp - 0x150], xmm0
push dword [ebp - 0x14c]
push dword [ebp - 0x150]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [ebp - 0x40]
lea ecx, [eax - 0x20]
cmp eax, ecx
jb 0x40da97
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
mov dword [ebp - 0x40], ecx
cmovae eax, dword [ebp - 0x50]
push 0
mov byte [eax + ecx], 0
lea ecx, [ebp - 0x38]
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
push ecx
push dword [ebp - 0x40]
cmovae eax, dword [ebp - 0x50]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - method.CryptoPP::SourceTemplate_class_CryptoPP::StringStore_.virtual_0], vtable.CryptoPP::SourceTemplate_class_CryptoPP::StringStore_.0
mov dword [ebp - method.CryptoPP::SourceTemplate_class_CryptoPP::StringStore_.1.virtual_0], vtable.CryptoPP::SourceTemplate_class_CryptoPP::StringStore_.1.0
test ecx, ecx
je 0x40d948
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [ebp - 0x80]
call fcn.0040cca0
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xd0], 0x4e4508
mov dword [ebp - 0xcc], 0x4e455c
mov dword [ebp - 0xb4], 0x4e45a0
mov dword [ebp - 0xa0], 0x4e45d8
call fcn.0042f880
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x100]
mov edx, dword [ebp - 0xfc]
cmp eax, edx
mov esi, dword [ebp - 0xf8]
mov edi, esi
cmovb edx, eax
xor al, al
mov ecx, edx
rep stosb byte es:[edi], al
push esi
test edx, edx
je 0x40d9b2
call fcn.00467f20
jmp 0x40d9b7
call fcn.00467f90
mov edx, dword [ebp - 0x20]
add esp, 4
cmp edx, 0x10
jb 0x40d9ee
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d9e4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40da9c
push edx
push ecx
call fcn.00490c3c
add esp, 8
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp edx, 0x10
jb 0x40da30
mov ecx, dword [ebp - 0x50]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40da26
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40da9c
push edx
push ecx
call fcn.00490c3c
add esp, 8
mov edx, dword [ebx + 0x1c]
cmp edx, 8
jb 0x40da79
mov ecx, dword [ebx + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d68c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40daa1
jmp 0x40d68c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004905bb
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00438080
call fcn.004b5132
call fcn.004b5132
int3