Function at 0x44d6b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x48]
push ebx
push esi
push edi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], edx
mov byte [ebp - 0x28], cl
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
xor eax, eax
push fcn.0044d650
push ebp
push 0x4135b0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x580780], 0
jne 0x44d738
mov ecx, dword [str.Internal_Error]
mov edx, 1
mov eax, 0x502d6c
call fcn.00430fb0
mov edx, 0x44d716
mov ecx, ebp
call fcn.00413470
nop
mov eax, dword [ebp - 0x44]
call fcn.0044fe60
mov dword [ebp - 0x34], eax
mov al, byte [ebp - 0x28]
cmp al, 1
jb 0x44db9c
sub al, 1
je 0x44d768
sub al, 1
je 0x44d884
sub al, 2
je 0x44db38
jmp 0x44db9c
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x44d775
mov eax, dword [eax - 4]
add eax, 1
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
cmp eax, 0xb
jge 0x44d7c4
mov eax, dword [str.Message_too_long]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0xb
lea eax, [ebp - 0x24]
push eax
push 0
push 0xcc
mov ecx, dword [str.An_error_occurred_when_encrypting_data:__s]
mov edx, 1
mov eax, 0x532bcc
call fcn.0046fa60
mov edx, 0x44d786
mov ecx, ebp
call fcn.00413470
lea esi, [esi]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov edx, 0x537ef0
mov eax, dword [ebp - 0x48]
mov ecx, 1
call fcn.0040bda0
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
mov byte [eax], 0
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
mov byte [edx + 1], 2
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
mov eax, dword [ebp - 0x2c]
mov byte [edx + eax - 1], 0
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
add edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
call fcn.00402d40
mov eax, dword [ebp - 0x2c]
lea ecx, [eax - 3]
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
add edx, 2
mov eax, dword [0x580780]
mov ebx, dword [0x580780]
mov ebx, dword [ebx]
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x2c]
lea esi, [eax - 2]
cmp esi, 2
jl 0x44dbbc
mov edi, 1
lea esi, [esi]
nop
add edi, 1
jmp 0x44d86d
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
lea edx, [eax + edi]
mov eax, dword [0x580780]
mov ecx, 1
mov ebx, dword [0x580780]
mov ebx, dword [ebx]
call dword [ebx + 0x14]
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
cmp byte [eax + edi], 0
je 0x44d850
cmp esi, edi
jg 0x44d848
jmp 0x44dbbc
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x44d891
mov eax, dword [eax - 4]
add eax, 1
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x2c]
mov dl, byte [eax + 4]
mov eax, 0x56e578
call fcn.004b3fb0
lea eax, [eax + eax + 2]
cmp eax, dword [ebp - 0x2c]
jle 0x44d8f4
mov eax, dword [str.Message_too_long]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0xb
lea eax, [ebp - 0x24]
push eax
push 0
push 0xcc
mov ecx, dword [str.An_error_occurred_when_encrypting_data:__s]
mov edx, 1
mov eax, 0x532bcc
call fcn.0046fa60
mov edx, 0x44d8b9
mov ecx, ebp
call fcn.00413470
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
mov edx, 0x537ef0
lea eax, [ebp - 4]
mov ecx, 1
call fcn.0040bda0
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x2c]
lea edx, [ebp - 4]
call fcn.004a08c0
mov eax, dword [ebp - 4]
test eax, eax
je 0x44d92c
mov eax, dword [eax - 4]
add eax, 1
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x40]
sub eax, 1
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov edx, 0x537ef0
lea eax, [ebp - 0x1c]
mov ecx, 1
call fcn.0040bda0
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00402d40
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
sub eax, 1
mov edx, eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x40]
xor cl, cl
call fcn.00402d80
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x3c]
mov byte [edx + eax - 1], 1
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
sub edx, dword [ebp - 0x3c]
add edx, eax
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
call fcn.00402d40
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov edx, 0x537ef0
lea eax, [ebp - 0x18]
mov ecx, 1
call fcn.0040bda0
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x40]
mov eax, dword [0x580780]
mov ebx, dword [0x580780]
mov ebx, dword [ebx]
call dword [ebx + 0x14]
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
mov edx, 0x537ef0
lea eax, [ebp - 0x14]
mov ecx, 1
call fcn.0040bda0
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x2c]
movzx eax, byte [eax + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x18]
call fcn.0044d4a0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov edx, 0x537ef0
lea eax, [ebp - 0xc]
mov ecx, 1
call fcn.0040bda0
mov edx, dword [ebp - 0x30]
lea ecx, [edx - 1]
test ecx, ecx
jl 0x44da5c
mov edi, 0xffffffff
lea esi, [esi]
add edi, 1
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov al, byte [eax + edi]
mov dl, byte [edx + edi]
xor dl, al
mov eax, dword [ebp - 0xc]
mov byte [eax + edi], dl
cmp ecx, edi
jg 0x44da40
nop
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
mov edx, 0x537ef0
lea eax, [ebp - 0x10]
mov ecx, 1
call fcn.0040bda0
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x2c]
movzx eax, byte [eax + 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0xc]
call fcn.0044d4a0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov edx, 0x537ef0
lea eax, [ebp - 8]
mov ecx, 1
call fcn.0040bda0
mov edx, dword [ebp - 0x40]
lea ecx, [edx - 1]
test ecx, ecx
jl 0x44dae4
mov edi, 0xffffffff
lea esi, [esi]
nop
add edi, 1
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov al, byte [eax + edi]
mov dl, byte [edx + edi]
xor dl, al
mov eax, dword [ebp - 8]
mov byte [eax + edi], dl
cmp ecx, edi
jg 0x44dac8
nop
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov edx, 0x537ef0
mov eax, dword [ebp - 0x48]
mov ecx, 1
call fcn.0040bda0
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
mov byte [eax], 0
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 8]
call fcn.00402d40
mov eax, dword [ebp - 0x48]
mov edx, dword [eax]
mov eax, dword [ebp - 0x40]
lea edx, [edx + eax + 1]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.00402d40
jmp 0x44dbbc
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x44db45
mov eax, dword [eax - 4]
add eax, 1
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x34], eax
je 0x44db88
mov eax, dword [str.Invalid_message_length]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0xb
lea eax, [ebp - 0x24]
push eax
push 0
push 0xcc
mov ecx, dword [str.An_error_occurred_when_encrypting_data:__s]
mov edx, 1
mov eax, 0x532bcc
call fcn.0046fa60
mov edx, 0x44db4d
mov ecx, ebp
call fcn.00413470
mov ecx, 0x537ef0
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x38]
call fcn.0040bd80
jmp 0x44dbbc
mov cx, 2
mov edx, 1
mov eax, 0x532bcc
call fcn.0046f9a0
mov edx, 0x44db9c
mov ecx, ebp
call fcn.00413470
nop
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0044d650
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4