Function at 0x40cd50
Capabilities:
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 0x4d6097
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x268
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 - 0x264], edx
mov esi, ecx
mov dword [ebp - 0x26c], esi
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
cmp edi, 0xffffffff
jne 0x40ce27
mov edx, dword [ebx + 0x1c]
cmp edx, 8
jb 0x40d58a
mov ecx, dword [ebx + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ce18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d5b2
push edx
push ecx
call fcn.00490c6c
add esp, 8
jmp 0x40d58a
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
movlpd qword [ebp - 0x278], xmm0
push dword [ebp - 0x274]
push dword [ebp - 0x278]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
push 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
push 0x2d2a8
mov byte [ebp - 0x268], 0
push dword [ebp - 0x268]
push 0x2d2a8
call fcn.0043c170
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x40]
push 0
push ecx
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push 0x2d2a8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0xc0
lea eax, [ebp - 0x1f0]
push 0
push eax
call fcn.004a89c0
add esp, 0xc
lea ecx, [ebp - 0x1f0]
call fcn.0040ca90
mov byte [ebp - 4], 4
lea eax, [ebp - 0x160]
push 1
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x1f0], 0x504eac
mov dword [ebp - 0x1ec], 0x505298
mov dword [ebp - 0x1e8], 0x5055f0
mov dword [ebp - 0x270], eax
call fcn.00444780
push 0
push 0
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x14c], 0x3fffffff
mov dword [ebp - 0x148], 0
call fcn.00436680
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x13c], 0xffffffff
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - method.CryptoPP::BlockCipherFinal_0__class_CryptoPP::Rijndael::Enc_.virtual_0], vtable.CryptoPP::BlockCipherFinal_0__class_CryptoPP::Rijndael::Enc_.0
mov dword [ebp - method.CryptoPP::BlockCipherFinal_0__class_CryptoPP::Rijndael::Enc_.1.virtual_0], vtable.CryptoPP::BlockCipherFinal_0__class_CryptoPP::Rijndael::Enc_.1.0
push 0x20
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1f0]
push dword [ebp - 0x264]
push dword [esi + 8]
push dword [esi + 0xc]
call fcn.00446b60
push 0x38
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.004a89c0
add esp, 0xc
push 0xe4
call fcn.004908ca
add esp, 4
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x270], eax
push 0xe4
push 0
push eax
mov byte [ebp - 4], 8
call fcn.004a89c0
add esp, 0xc
push 0x10
call fcn.004908ca
mov esi, eax
add esp, 4
mov dword [ebp - 0x268], esi
xorps xmm0, xmm0
mov byte [ebp - 4], 9
push 0
mov ecx, esi
movups xmmword [esi], xmm0
call fcn.00444780
push 5
push 0x527040
push 0x10
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x264]
push 0
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x1f0]
push esi
push eax
mov dword [esi], vtable.CryptoPP::StringSinkTemplate_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___.0
mov dword [esi + 4], vtable.CryptoPP::StringSinkTemplate_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___.1.0
call fcn.0044b9a0
push eax
push ecx
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x260]
call fcn.004076c0
push 0
push 0
mov byte [ebp - 4], 0xa
xorps xmm0, xmm0
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
movlpd qword [ebp - 0x278], xmm0
push dword [ebp - 0x274]
push dword [ebp - 0x278]
push edi
call esi
mov eax, dword [ebp - 0x60]
lea ecx, [eax - 0x20]
cmp eax, ecx
jb 0x40d5a8
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
mov dword [ebp - 0x60], ecx
cmovae eax, dword [ebp - 0x70]
push 0
mov byte [eax + ecx], 0
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
push ecx
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x70]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
mov eax, 0xfff83000
mov ecx, 0xffffffff
sub eax, dword [0x520110]
push 0
sbb ecx, dword [0x520114]
push ecx
push eax
push edi
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x268], ecx
call esi
push 0
push 0x4f820f
lea ecx, [ebp - 0x58]
call fcn.00431810
push 0
push 0x4f820f
lea ecx, [ebp - 0x70]
call fcn.00431810
mov edx, dword [ebp - 0x48]
cmp edx, 0x7d000
jb 0x40d10d
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], 0x7d000
cmovae eax, dword [ebp - 0x58]
mov byte [eax + 0x7d000], 0
jmp 0x40d169
mov esi, dword [ebp - 0x44]
mov ecx, 0x7d000
mov eax, esi
sub ecx, edx
sub eax, edx
mov dword [ebp - 0x264], ecx
cmp ecx, eax
ja 0x40d150
lea eax, [ecx + edx]
cmp esi, 0x10
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push 0
lea esi, [eax + edx]
push esi
call fcn.004a89c0
mov eax, dword [ebp - 0x264]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x40d169
push 0
push ecx
mov byte [ebp - 0x264], 0
push dword [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x58]
call fcn.0043c170
cmp dword [ebp - 0x44], 0x10
lea ecx, [ebp - 0x40]
push 0
push ecx
push dword [ebp - 0x48]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0xc0
lea eax, [ebp - 0x130]
mov dword [ebp - 0x3c], 0x36f02070
push 0
push eax
mov dword [ebp - 0x38], 0xbc59244e
mov dword [ebp - 0x34], 0x6f0b0f3a
mov dword [ebp - 0x30], 0x61455539
mov dword [ebp - 0x2c], 0xf718cd9e
mov dword [ebp - 0x28], 0x3b261e12
mov dword [ebp - 0x24], 0x2345902f
mov dword [ebp - 0x20], 0x4b9f6261
call fcn.004a89c0
add esp, 0xc
lea ecx, [ebp - 0x130]
call fcn.0040ca90
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xa0]
push 1
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x130], 0x504eac
mov dword [ebp - 0x12c], 0x505298
mov dword [ebp - 0x128], 0x5055f0
mov dword [ebp - 0x264], eax
call fcn.00444780
push 0
push 0
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x8c], 0x3fffffff
mov dword [ebp - 0x88], 0
call fcn.00436680
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x7c], 0xffffffff
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0xa0], vtable.CryptoPP::BlockCipherFinal_0__class_CryptoPP::Rijndael::Enc_.0
mov dword [ebp - 0x9c], vtable.CryptoPP::BlockCipherFinal_0__class_CryptoPP::Rijndael::Enc_.1.0
push 0x20
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0xe
push eax
mov eax, dword [ebp - 0x26c]
lea ecx, [ebp - 0x130]
push dword [eax + 8]
push dword [eax + 0xc]
call fcn.00446b60
push 0x38
lea eax, [ebp - 0x228]
push 0
push eax
call fcn.004a89c0
add esp, 0xc
push 0xe4
call fcn.004908ca
add esp, 4
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x264], eax
push 0xe4
push 0
push eax
mov byte [ebp - 4], 0xf
call fcn.004a89c0
add esp, 0xc
push 0x10
call fcn.004908ca
add esp, 4
mov esi, eax
mov dword [ebp - 0x274], esi
xorps xmm0, xmm0
mov byte [ebp - 4], 0x10
push 0
mov ecx, esi
movups xmmword [esi], xmm0
call fcn.00444780
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x70]
push 5
push 0x527040
push 0x10
push 0
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x130]
push esi
push eax
mov dword [esi], vtable.CryptoPP::StringSinkTemplate_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___.0
mov dword [esi + 4], vtable.CryptoPP::StringSinkTemplate_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___.1.0
mov byte [ebp - 4], 0xf
call fcn.0044b9a0
push eax
push ecx
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x228]
call fcn.004076c0
push 2
push 0
mov byte [ebp - 4], 0x11
push dword [ebp - 0x268]
push dword [ebp - 0x270]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [ebp - 0x60]
lea ecx, [eax - 0x20]
cmp eax, ecx
jb 0x40d5ad
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
mov dword [ebp - 0x60], ecx
cmovae eax, dword [ebp - 0x70]
push 0
mov byte [eax + ecx], 0
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
push ecx
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x70]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x21c]
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 0x40d3bd
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [ebp - 0xa0]
call fcn.0040cca0
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xf0], 0x4e4508
mov dword [ebp - 0xec], 0x4e455c
mov dword [ebp - 0xd4], 0x4e45a0
mov dword [ebp - 0xc0], 0x4e45d8
call fcn.0042f890
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x120]
mov edx, dword [ebp - 0x11c]
cmp eax, edx
mov esi, dword [ebp - 0x118]
mov edi, esi
cmovb edx, eax
xor al, al
mov ecx, edx
rep stosb byte es:[edi], al
push esi
test edx, edx
je 0x40d42a
call fcn.00467f40
jmp 0x40d42f
call fcn.00467fb0
mov ecx, dword [ebp - 0x254]
add esp, 4
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 0x40d456
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [ebp - 0x160]
call fcn.0040cca0
lea ecx, [ebp - 0x1b0]
mov dword [ebp - method.CryptoPP::GCM_Base::GCTR.1.virtual_0], 0x4e4508
mov dword [ebp - method.CryptoPP::GCM_Base::GCTR.virtual_0], 0x4e455c
mov dword [ebp - method.CryptoPP::GCM_Base::GCTR.2.virtual_0], 0x4e45a0
mov dword [ebp - method.CryptoPP::GCM_Base::GCTR.3.virtual_0], 0x4e45d8
call fcn.0042f890
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x1e0]
mov edx, dword [ebp - 0x1dc]
cmp eax, edx
mov esi, dword [ebp - 0x1d8]
mov edi, esi
cmovb edx, eax
xor al, al
mov ecx, edx
rep stosb byte es:[edi], al
push esi
test edx, edx
je 0x40d4c3
call fcn.00467f40
jmp 0x40d4c8
call fcn.00467fb0
mov edx, dword [ebp - 0x44]
add esp, 4
cmp edx, 0x10
jb 0x40d4ff
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d4f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d5b2
push edx
push ecx
call fcn.00490c6c
add esp, 8
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp edx, 0x10
jb 0x40d541
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40d537
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d5b2
push edx
push ecx
call fcn.00490c6c
add esp, 8
mov edx, dword [ebx + 0x1c]
cmp edx, 8
jb 0x40d58a
mov ecx, dword [ebx + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ce18
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d5b7
jmp 0x40ce18
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.004905eb
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004380a0
call fcn.004380a0
call fcn.004b5172
call fcn.004b5172
int3