Function at 0x563990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, ecx
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ecx + 0x444]
mov edi, dword [esp + 0x50]
cmp ebx, dword [ecx + 0x448]
je 0x5639b1
mov dword [ecx + 0x448], ebx
mov dword [esp + 0x1c], edi
mov esi, 0x30
jmp 0x563a59
movzx eax, byte [edi]
mov byte [ebx], al
mov edi, dword [ebp + 0x448]
lea ebx, [edi + 1]
lea edi, [esi + 1]
mov esi, dword [ebp + 0x28]
mov dword [ebp + 0x448], ebx
add esi, edi
cmp dword [ebp + 0x44c], ebx
je 0x563b30
movzx edx, byte [esi]
mov byte [ebx], dl
mov ebx, dword [ebp + 0x448]
mov eax, dword [ebp + 0x28]
lea ebx, [ebx + 1]
mov dword [ebp + 0x448], ebx
lea esi, [eax + edi + 1]
cmp dword [ebp + 0x44c], ebx
je 0x563bf8
movzx edx, byte [esi]
mov byte [ebx], dl
mov ebx, dword [ebp + 0x448]
mov ecx, dword [ebp + 0x28]
lea ebx, [ebx + 1]
mov dword [ebp + 0x448], ebx
lea esi, [ecx + edi + 2]
cmp dword [ebp + 0x44c], ebx
je 0x563cc0
movzx edx, byte [esi]
lea esi, [edi + 3]
mov byte [ebx], dl
mov ebx, dword [ebp + 0x448]
lea ebx, [ebx + 1]
mov dword [ebp + 0x448], ebx
cmp edi, 0x1075
je 0x563d7e
mov edi, dword [ebp + 0x28]
add edi, esi
cmp dword [ebp + 0x44c], ebx
jne 0x5639c0
mov ecx, dword [ebp + 0x444]
sub ebx, ecx
cmp ebx, 0x7fffffff
je 0x563fae
mov dword [esp + 0x14], ecx
test ebx, ebx
je 0x563e10
lea edx, [ebx + ebx]
mov eax, 0x7fffffff
mov ecx, 0x7fffffff
cmp edx, eax
cmovbe eax, edx
cmp edx, ebx
cmovb eax, ecx
mov dword [esp], eax
mov dword [esp + 0x10], eax
call sym.operator_new_unsigned_int_
test ebx, ebx
mov edx, eax
movzx eax, byte [edi]
mov edi, dword [esp + 0x14]
mov byte [edx + ebx], al
jle 0x563e2f
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edx
call sym._memmove
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x44c]
mov edi, dword [esp + 0x18]
lea ebx, [edx + ebx + 1]
sub eax, edi
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 0x14], edx
call sym.operator_delete_void__unsigned_int_
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea edi, [esi + 1]
mov esi, dword [ebp + 0x28]
mov dword [ebp + 0x444], edx
mov dword [ebp + 0x448], ebx
add edx, ecx
add esi, edi
mov dword [ebp + 0x44c], edx
cmp dword [ebp + 0x44c], ebx
jne 0x5639e8
lea esi, [esi]
mov edx, dword [ebp + 0x444]
sub ebx, edx
cmp ebx, 0x7fffffff
je 0x563fae
test ebx, ebx
je 0x563e50
lea ecx, [ebx + ebx]
mov eax, 0x7fffffff
mov dword [esp + 0x14], edx
mov edx, 0x7fffffff
cmp ecx, eax
cmovbe eax, ecx
cmp ecx, ebx
cmovb eax, edx
mov dword [esp], eax
mov dword [esp + 0x10], eax
call sym.operator_new_unsigned_int_
movzx ecx, byte [esi]
test ebx, ebx
mov edx, eax
mov byte [eax + ebx], cl
mov eax, dword [esp + 0x14]
jle 0x563e73
mov dword [esp + 8], ebx
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
call sym._memmove
mov edx, dword [esp + 0x14]
mov esi, dword [ebp + 0x44c]
mov eax, dword [esp + 0x18]
lea ebx, [edx + ebx + 1]
sub esi, eax
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [esp + 0x14], edx
call sym.operator_delete_void__unsigned_int_
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov eax, dword [ebp + 0x28]
mov dword [ebp + 0x444], edx
mov dword [ebp + 0x448], ebx
add edx, esi
lea esi, [eax + edi + 1]
mov dword [ebp + 0x44c], edx
cmp dword [ebp + 0x44c], ebx
jne 0x563a0f
lea esi, [esi]
mov ecx, dword [ebp + 0x444]
sub ebx, ecx
cmp ebx, 0x7fffffff
je 0x563fae
test ebx, ebx
je 0x563e90
lea edx, [ebx + ebx]
mov eax, 0x7fffffff
mov dword [esp + 0x14], ecx
mov ecx, 0x7fffffff
cmp edx, eax
cmovbe eax, edx
cmp edx, ebx
cmovb eax, ecx
mov dword [esp], eax
mov dword [esp + 0x10], eax
call sym.operator_new_unsigned_int_
test ebx, ebx
mov ecx, dword [esp + 0x14]
mov edx, eax
movzx eax, byte [esi]
mov byte [edx + ebx], al
jle 0x563eb3
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
call sym._memmove
mov edx, dword [esp + 0x14]
mov esi, dword [ebp + 0x44c]
mov ecx, dword [esp + 0x18]
lea ebx, [edx + ebx + 1]
sub esi, ecx
mov dword [esp + 4], esi
mov dword [esp], ecx
mov dword [esp + 0x14], edx
call sym.operator_delete_void__unsigned_int_
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, dword [ebp + 0x28]
mov dword [ebp + 0x444], edx
mov dword [ebp + 0x448], ebx
add edx, esi
lea esi, [ecx + edi + 2]
mov dword [ebp + 0x44c], edx
cmp dword [ebp + 0x44c], ebx
jne 0x563a36
lea esi, [esi]
mov eax, dword [ebp + 0x444]
sub ebx, eax
cmp ebx, 0x7fffffff
je 0x563fae
test ebx, ebx
je 0x563ed0
lea edx, [ebx + ebx]
mov dword [esp + 0x14], eax
mov eax, 0x7fffffff
mov ecx, 0x7fffffff
cmp edx, eax
cmovbe eax, edx
cmp edx, ebx
cmovb eax, ecx
mov dword [esp], eax
mov dword [esp + 0x10], eax
call sym.operator_new_unsigned_int_
test ebx, ebx
mov ecx, dword [esp + 0x14]
mov edx, eax
movzx eax, byte [esi]
mov byte [edx + ebx], al
jle 0x563ef3
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
call sym._memmove
mov edx, dword [esp + 0x14]
mov esi, dword [ebp + 0x44c]
mov ecx, dword [esp + 0x18]
lea ebx, [edx + ebx + 1]
sub esi, ecx
mov dword [esp + 4], esi
mov dword [esp], ecx
mov dword [esp + 0x14], edx
call sym.operator_delete_void__unsigned_int_
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov dword [ebp + 0x444], edx
mov dword [ebp + 0x448], ebx
add edx, esi
lea esi, [edi + 3]
mov dword [ebp + 0x44c], edx
cmp edi, 0x1075
jne 0x563a59
mov edi, dword [esp + 0x1c]
mov eax, dword [ebp + 0x450]
lea ebx, [ebp + 0x450]
cmp eax, dword [ebp + 0x454]
je 0x563d9c
mov dword [ebp + 0x454], eax
mov edx, dword [ebp + 0x458]
cmp eax, edx
je 0x563f86
mov esi, dword [ebp + 0x460]
add eax, 4
mov dword [eax - 4], esi
mov dword [ebp + 0x454], eax
mov ecx, dword [ebp + 0x460]
shr ecx, 1
mov dword [esp + 0x2c], ecx
cmp edx, eax
je 0x563f60
mov dword [eax], ecx
add eax, 4
mov dword [ebp + 0x454], eax
mov esi, dword [ebp + 0x460]
add esi, esi
mov dword [esp + 0x2c], esi
cmp edx, eax
je 0x563f46
mov dword [eax], esi
add eax, 4
mov dword [ebp + 0x454], eax
mov ebx, edi
cmp bl, 1
je 0x563f0c
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [esp], 1
call sym.operator_new_unsigned_int_
movzx ecx, byte [edi]
mov dword [esp + 0x10], 1
mov edi, dword [esp + 0x14]
mov edx, eax
mov byte [eax], cl
lea ebx, [edx + ebx + 1]
test edi, edi
je 0x563b01
mov eax, dword [ebp + 0x44c]
sub eax, edi
jmp 0x563aed
mov dword [esp], 1
mov dword [esp + 0x14], edx
call sym.operator_new_unsigned_int_
movzx ecx, byte [esi]
mov dword [esp + 0x10], 1
mov edx, eax
mov byte [eax], cl
mov eax, dword [esp + 0x14]
lea ebx, [edx + ebx + 1]
test eax, eax
je 0x563bc7
mov esi, dword [ebp + 0x44c]
sub esi, eax
jmp 0x563bb3
mov dword [esp], 1
mov dword [esp + 0x14], ecx
call sym.operator_new_unsigned_int_
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x14]
mov edx, eax
movzx eax, byte [esi]
mov byte [edx], al
lea ebx, [edx + ebx + 1]
test ecx, ecx
je 0x563c8f
mov esi, dword [ebp + 0x44c]
sub esi, ecx
jmp 0x563c7b
mov dword [esp], 1
mov dword [esp + 0x14], eax
call sym.operator_new_unsigned_int_
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x14]
mov edx, eax
movzx eax, byte [esi]
mov byte [edx], al
lea ebx, [edx + ebx + 1]
test ecx, ecx
je 0x563d57
mov esi, dword [ebp + 0x44c]
sub esi, ecx
jmp 0x563d43
mov edi, dword [ebp + 0x450]
mov byte [ebp + 0x45c], 1
mov ecx, ebp
lea esi, [edi + 4]
lea edx, [edi + 8]
mov dword [esp], esi
mov dword [esp + 4], edx
call method.NTR_MMU.key1_encrypt_unsigned_int__unsigned_int_
mov ecx, ebp
sub esp, 8
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], edi
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
jmp method.NTR_MMU.key1_encrypt_unsigned_int__unsigned_int_
lea ecx, [esp + 0x2c]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ecx, ebx
call method.void_std::vector_unsigned_int__std::allocator_unsigned_int___._M_realloc_insert_unsigned_int____gnu_cxx::__normal_iterator_unsigned_int__std::vector_unsigned_int__std::allocator_unsigned_int_______unsigned_int_
sub esp, 8
jmp 0x563dfa
lea eax, [esp + 0x2c]
mov dword [esp], edx
mov ecx, ebx
mov dword [esp + 4], eax
call method.void_std::vector_unsigned_int__std::allocator_unsigned_int___._M_realloc_insert_unsigned_int____gnu_cxx::__normal_iterator_unsigned_int__std::vector_unsigned_int__std::allocator_unsigned_int_______unsigned_int_
mov edx, dword [ebp + 0x458]
mov eax, dword [ebp + 0x454]
sub esp, 8
jmp 0x563ddb
lea ecx, [ebp + 0x460]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ecx, ebx
call method.void_std::vector_unsigned_int__std::allocator_unsigned_int___._M_realloc_insert_unsigned_int_const____gnu_cxx::__normal_iterator_unsigned_int__std::vector_unsigned_int__std::allocator_unsigned_int_______unsigned_int_const_
mov eax, dword [ebp + 0x454]
mov edx, dword [ebp + 0x458]
sub esp, 8
jmp 0x563dbc
mov dword [esp], 0x615bec
call sym.std::__throw_length_error_char_const_
lea esi, [esi]