Function at 0x4015b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov ecx, 0xffffc1c6
push esi
push ebx
sub esp, 0x9c
mov ebx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
lea ebp, [esp + 0x34]
mov word [esp + 0x50], cx
lea edi, [esp + 0x64]
mov dword [esp + 0x34], 0xc7c3cac3
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x38], 0xc7
mov edx, dword [ebx]
mov dword [esp + 0x18], eax
mov esi, dword [ebx + 4]
mov dword [esp + 0x30], 5
mov eax, dword [0x4e8024]
mov dword [esp + 0x8c], eax
xor eax, eax
lea eax, [esp + 0x4c]
mov byte [esp + 0x39], 0
mov dword [esp + 0x4c], 0xc5c1c2d9
mov dword [esp + 0x48], 6
mov byte [esp + 0x52], 0
mov dword [esp + 0x44], eax
mov eax, edx
mov dword [esp + 0x5c], edi
add eax, esi
setne cl
test edx, edx
sete al
and cl, al
mov byte [esp + 0x17], cl
je 0x401650
mov dword [esp], 0x4a4064
call method.std.__throw_logic_error_char_const_
cmp esi, 0xf
mov dword [esp + 0x28], esi
ja 0x401700
cmp esi, 1
je 0x4017e0
test esi, esi
mov eax, edi
jne 0x40172f
mov dword [esp + 0x60], esi
mov byte [eax + esi], 0
xor eax, eax
mov edx, dword [ebx + 4]
test edx, edx
je 0x401699
mov edx, dword [ebx]
mov ecx, dword [esp + 0x5c]
movzx edx, byte [edx + eax]
xor edx, 0xffffffaa
mov byte [ecx + eax], dl
add eax, 1
cmp dword [ebx + 4], eax
ja 0x401681
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x30]
je 0x401750
mov ebx, dword [esp + 0x5c]
cmp ebx, edi
je 0x4016b7
mov dword [esp], ebx
call sym.operator_delete_void_
mov eax, dword [esp + 0x44]
lea edi, [esp + 0x4c]
cmp eax, edi
je 0x4016cb
mov dword [esp], eax
call sym.operator_delete_void_
mov eax, dword [esp + 0x2c]
cmp eax, ebp
je 0x4016db
mov dword [esp], eax
call sym.operator_delete_void_
mov edi, dword [esp + 0x8c]
xor edi, dword [0x4e8024]
movzx eax, byte [esp + 0x17]
jne 0x4017ee
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x28]
lea ecx, [esp + 0x5c]
mov dword [esp + 4], 0
mov dword [esp + 0x1c], edx
mov dword [esp], eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_create_unsigned_int__unsigned_int_
sub esp, 8
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x5c]
jmp 0x401670
test eax, eax
jne 0x401790
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x74]
mov dword [esp], eax
mov dword [esp + 4], esi
call sym.encrypt_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov eax, dword [esp + 0x78]
cmp eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x74]
je 0x4017b2
lea eax, [esp + 0x7c]
cmp ebx, eax
je 0x4016a7
mov dword [esp], ebx
call sym.operator_delete_void_
jmp 0x4016a7
mov dword [esp + 8], eax
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x2c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._memcmp
test eax, eax
jne 0x4016ab
jmp 0x401754
test eax, eax
mov byte [esp + 0x17], 1
je 0x401776
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._memcmp
test eax, eax
sete byte [esp + 0x17]
jmp 0x401776
movzx eax, byte [edx]
mov byte [esp + 0x64], al
mov eax, edi
jmp 0x401670
call sym.___stack_chk_fail
lea esi, [esi]
lea edi, [edi]