Function at 0x44dc50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x5c]
push ebx
push esi
push edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edx
mov byte [ebp - 8], cl
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
xor eax, eax
push fcn.0044dbf0
push ebp
push 0x4135b0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x580780], 0
jne 0x44dccc
mov ecx, dword [str.Internal_Error]
mov edx, 1
mov eax, 0x502d6c
call fcn.00430fb0
mov edx, 0x44dca9
mov ecx, ebp
call fcn.00413470
mov esi, esi
mov eax, dword [ebp - 0xc]
call fcn.0044fe60
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x44dce4
mov eax, dword [eax - 4]
add eax, 1
mov dword [ebp - 0x1c], eax
mov al, byte [ebp + 0xc]
test al, al
je 0x44dcfc
sub al, 3
je 0x44de30
jmp 0x44e150
cmp byte [ebp - 8], 0
jne 0x44dd14
mov ecx, 0x537ef0
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x34]
call fcn.0040bd80
jmp 0x44dd6d
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x30]
mov dl, byte [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0044ee30
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x54]
push eax
mov edx, 0x537ef0
lea eax, [ebp - 0x34]
mov ecx, 1
call fcn.0040bda0
cmp dword [ebp - 0x30], 0
je 0x44dd5c
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
call fcn.00402d40
lea esi, [esi]
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00402d40
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x44dd7a
mov eax, dword [eax - 4]
add eax, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov dword [ebp - 0x14], eax
cmp eax, 0xb
jge 0x44ddc8
mov eax, dword [str.Message_too_long]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], 0xb
lea eax, [ebp - 0x5c]
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, 0x44dd8d
mov ecx, ebp
call fcn.00413470
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
mov edx, 0x537ef0
mov eax, dword [ebp + 8]
mov ecx, 1
call fcn.0040bda0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov byte [eax], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov byte [eax + 1], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
mov byte [eax + edx - 1], 0
mov eax, dword [ebp - 0x14]
lea edx, [eax - 3]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, 2
mov cl, 0xff
call fcn.00402d80
mov eax, dword [ebp + 8]
mov edx, dword [eax]
add edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x34]
call fcn.00402d40
jmp 0x44e170
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x60]
call fcn.00482af0
sub eax, 1
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
add eax, edx
add eax, 2
cmp eax, dword [ebp - 0x18]
jle 0x44de94
mov eax, dword [str.Invalid_salt_length]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], 0xb
lea eax, [ebp - 0x58]
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, 0x44de57
mov ecx, ebp
call fcn.00413470
mov esi, esi
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
cmp dword [eax + 0x10], 0
jle 0x44dee0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
mov edx, 0x537ef0
lea eax, [ebp - 0x44]
mov ecx, 1
call fcn.0040bda0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x44]
mov eax, dword [0x580780]
mov ebx, dword [0x580780]
mov ebx, dword [ebx]
call dword [ebx + 0x14]
mov esi, esi
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
add eax, edx
add eax, 8
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
mov edx, 0x537ef0
lea eax, [ebp - 0x34]
mov ecx, 1
call fcn.0040bda0
mov eax, dword [ebp - 0x34]
xor cl, cl
mov edx, 8
call fcn.00402d80
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x34]
lea edx, [eax + 8]
mov eax, dword [ebp - 4]
call fcn.00402d40
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
cmp dword [eax + 0x10], 0
jle 0x44df54
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
lea edx, [edx + eax + 8]
mov eax, dword [ebp - 0x44]
call fcn.00402d40
lea esi, [esi]
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x5c]
push eax
mov edx, 0x537ef0
lea eax, [ebp - 0x38]
mov ecx, 1
call fcn.0040bda0
mov dl, byte [ebp - 8]
mov eax, 0x56e578
call fcn.004b3ae0
mov dword [ebp - 0x28], eax
xor eax, eax
push fcn.0044dbe0
push ebp
push 0x4135b0
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
call fcn.0049a8e0
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.0044dbe0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x18]
sub eax, edx
sub eax, dword [ebp - 0x1c]
sub eax, 2
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0x14]
add eax, edx
add eax, 1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
mov edx, 0x537ef0
lea eax, [ebp - 0x48]
mov ecx, 1
call fcn.0040bda0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x48]
xor cl, cl
call fcn.00402d80
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x14]
mov byte [eax + edx], 1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
cmp dword [eax + 0x10], 0
jle 0x44e034
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x14]
lea edx, [eax + edx + 1]
mov eax, dword [ebp - 0x44]
call fcn.00402d40
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x5c]
push eax
mov edx, 0x537ef0
lea eax, [ebp - 0x40]
mov ecx, 1
call fcn.0040bda0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
movzx eax, byte [eax + 0xc]
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x38]
call fcn.0044d4a0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
mov edx, 0x537ef0
lea eax, [ebp - 0x3c]
mov ecx, 1
call fcn.0040bda0
mov eax, dword [ebp - 0x20]
sub eax, 1
test eax, eax
jl 0x44e0c0
mov dword [ebp - 0x50], 0xffffffff
lea esi, [esi]
add dword [ebp - 0x50], 1
mov ebx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x50]
mov edx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x40]
mov cl, byte [edx + esi]
mov dl, byte [edi + esi]
xor dl, cl
mov byte [ebx + esi], dl
cmp eax, dword [ebp - 0x50]
jg 0x44e0a0
mov eax, dword [ebp - 0x18]
shl eax, 3
sub eax, dword [ebp - 0x24]
sub eax, 1
test eax, eax
jl 0x44e100
mov dword [ebp - 0x50], 0xffffffff
nop
add dword [ebp - 0x50], 1
mov edx, 0x7f
mov ecx, dword [ebp - 0x50]
shr edx, cl
mov byte [ebp - 0x4c], dl
mov edx, dword [ebp - 0x3c]
mov cl, byte [edx]
mov dl, byte [ebp - 0x4c]
and dl, cl
mov ecx, dword [ebp - 0x3c]
mov byte [ecx], dl
cmp eax, dword [ebp - 0x50]
jg 0x44e0d8
lea esi, [esi]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
push eax
mov edx, 0x537ef0
mov eax, dword [ebp + 8]
mov ecx, 1
call fcn.0040bda0
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x3c]
call fcn.00402d40
mov eax, dword [ebp + 8]
mov edx, dword [eax]
add edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x38]
call fcn.00402d40
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
mov byte [eax + edx - 1], 0xbc
jmp 0x44e170
mov cx, 2
mov edx, 1
mov eax, 0x532bcc
call fcn.0046f9a0
mov edx, 0x44e150
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.0044dbf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8