Function at 0x40148e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x408c17
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x40e01c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 4], esi
mov edi, dword [sym.imp.MSVCR90.dll_rand]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], ecx
call edi
cdq
mov ecx, 0x64
idiv ecx
xor ecx, ecx
mov eax, edx
mov dword [ebp - 0x78], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00407cf1
add esp, 4
push esi
mov ebx, eax
call dword [sym.imp.MSVCR90.dll__time64]
push eax
call dword [sym.imp.MSVCR90.dll_srand]
add esp, 8
cmp esi, dword [ebp - 0x78]
jge 0x401479
call edi
cdq
mov ecx, 0x64
idiv ecx
inc edx
mov dword [ebx + esi*4], edx
inc esi
jmp 0x401463
push 0x40ae10
lea edx, [ebp - 0x74]
push edx
mov dword [ebp - 0x74], 0x2a
call sub.MSVCR90.dll__CxxThrowException
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP90.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::end_void_]
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x68]
mov esi, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
lea esi, [ebp - 0x30]
call fcn.00407b20
push 0x40a2ac
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x4014f6
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.MSVCR90.dll__wtoi]
mov ebx, dword [ebp + 0xc]
add esp, 4
xor esi, esi
mov dword [ebp - 0x6c], eax
test ebx, ebx
jle 0x401532
push esi
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
mov ax, word [eax]
xor ax, word [ebp - 0x6c]
push esi
lea ecx, [ebp - 0x30]
movzx edi, ax
call dword [sym.imp.MSVCP90.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
inc esi
cmp esi, ebx
mov word [eax], di
jl 0x40150c
push ebx
push 0
lea ecx, [ebp - 0xa0]
push ecx
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0x70]
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, 0x40159d
ret