Function at 0x5b49f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x44]
mov ebp, ecx
test edi, edi
je 0x5b4daa
mov esi, dword [esp + 0x40]
test esi, esi
jne 0x5b4a27
mov ecx, dword [esp + 0x4c]
push str.NULL_passed_to_CBC_decryptor
mov eax, dword [ecx]
call dword [eax + 0x14]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret 0x14
mov ecx, dword [ebp + 0x80]
cmp ecx, 1
ja 0x5b4a55
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov edx, dword [ebp]
push eax
mov eax, dword [esp + 0x40]
push ecx
push edi
push esi
push eax
mov ecx, ebp
call dword [edx + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x14
mov eax, edi
xor edx, edx
div ecx
test edx, edx
je 0x5b4a9b
mov esi, dword [esp + 0x4c]
push str.CBC_decrypt_input_not_a_multiple_of_the_cipher_block_size.
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x14]
push edi
push str.inputLen
mov ecx, esi
call fcn.004f0030
mov eax, dword [ebp + 0x80]
mov ecx, esi
push eax
push str.cipherBlockSize
call fcn.004f0030
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret 0x14
mov dl, byte [0x724abc]
mov eax, edi
mov byte [esp + 0x44], dl
xor edx, edx
div ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x10], eax
call fcn.005a8750
mov ebx, eax
add edi, ebx
mov dword [esp + 0x14], edi
add edi, 0x20
push edi
mov edi, dword [esp + 0x4c]
mov ecx, edi
call fcn.004e0920
test al, al
jne 0x5b4aed
mov ecx, dword [esp + 0x4c]
push str.Unable_to_allocate_CBC_decrypt_output_buffer.
mov eax, dword [ecx]
call dword [eax + 0x14]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x28
ret 0x14
push ebx
mov ecx, edi
call fcn.004ddaa0
mov ebx, eax
mov al, byte [esp + 0x44]
test al, al
je 0x5b4c41
mov ecx, dword [esp + 0x3c]
lea edi, [esp + 0x28]
add ecx, 8
mov dword [esp + 0x4c], esi
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp + 0x80]
mov edx, ecx
mov eax, dword [ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
push edx
mov ecx, ebp
call dword [eax + 0x14]
mov eax, dword [ebp + 0x80]
xor esi, esi
test eax, eax
jbe 0x5b4b71
mov edi, dword [esp + 0x44]
lea eax, [esp + 0x18]
mov ecx, ebx
lea edx, [esp + 0x18]
sub edi, eax
sub ecx, edx
lea eax, [esp + esi + 0x18]
mov dl, byte [edi + eax]
xor dl, byte [eax]
inc esi
mov byte [ecx + eax], dl
mov eax, dword [ebp + 0x80]
cmp esi, eax
jb 0x5b4b5a
mov ecx, dword [ebp + 0x80]
mov eax, dword [esp + 0x40]
add ebx, ecx
lea edx, [ecx + eax]
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x3c], edx
je 0x5b4c11
mov dword [esp + 0x40], eax
mov esi, dword [esp + 0x3c]
mov eax, ecx
lea edi, [esp + 0x28]
mov edx, dword [ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [ebp + 0x80]
xor ecx, ecx
test eax, eax
jbe 0x5b4bf0
mov esi, dword [esp + 0x4c]
lea edx, [esp + 0x18]
mov edi, ebx
lea eax, [esp + 0x18]
sub esi, edx
sub edi, eax
lea eax, [esp + ecx + 0x18]
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc ecx
mov byte [edi + eax], dl
mov eax, dword [ebp + 0x80]
cmp ecx, eax
jb 0x5b4bd9
mov eax, dword [esp + 0x3c]
mov ecx, dword [ebp + 0x80]
mov dword [esp + 0x4c], eax
add eax, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
add ebx, ecx
dec eax
mov dword [esp + 0x40], eax
jne 0x5b4b93
mov eax, dword [ebp + 0x80]
xor ecx, ecx
test eax, eax
jbe 0x5b4d9c
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x4c]
sub esi, eax
mov dl, byte [esi + eax]
inc ecx
mov byte [eax], dl
mov edx, dword [ebp + 0x80]
inc eax
cmp ecx, edx
jb 0x5b4c2b
jmp 0x5b4d9c
mov eax, dword [ebp + 0x80]
cmp eax, 0x10
jne 0x5b4d12
mov edx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push esi
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add ebx, 0x10
mov ecx, dword [eax + 8]
xor ecx, edx
mov edx, dword [eax + 0xc]
xor edx, edi
mov edi, dword [esp + 0x24]
mov dword [ebx - 0x10], ecx
mov dword [ebx - 0xc], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x20]
xor ecx, edx
mov edx, dword [eax + 0x14]
xor edx, edi
mov dword [ebx - 8], ecx
mov ecx, dword [esp + 0x10]
mov dword [ebx - 4], edx
dec ecx
lea edi, [esi + 0x10]
je 0x5b4cf6
mov dword [esp + 0x4c], ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push edi
mov ecx, ebp
call dword [eax + 0x14]
mov edx, dword [esi]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
xor edx, eax
mov eax, dword [esi + 4]
mov dword [ebx], edx
xor eax, ecx
mov dword [ebx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0xc]
mov esi, dword [esp + 0x24]
xor ecx, eax
mov eax, dword [esp + 0x4c]
xor edx, esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov esi, edi
add ebx, 0x10
add edi, 0x10
dec eax
mov dword [esp + 0x4c], eax
jne 0x5b4ca3
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi]
mov dword [eax + 8], ecx
mov edx, dword [esi + 4]
mov dword [eax + 0xc], edx
mov ecx, dword [esi + 8]
mov dword [eax + 0x10], ecx
mov edx, dword [esi + 0xc]
mov dword [eax + 0x14], edx
jmp 0x5b4d9c
cmp eax, 8
jne 0x5b4daa
mov edx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push esi
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
add ebx, 8
mov ecx, dword [eax + 8]
xor ecx, edx
mov edx, dword [eax + 0xc]
xor edx, edi
mov dword [ebx - 8], ecx
mov ecx, dword [esp + 0x10]
mov dword [ebx - 4], edx
dec ecx
lea edi, [esi + 8]
je 0x5b4d91
mov dword [esp + 0x4c], ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push ecx
push edi
mov ecx, ebp
call dword [eax + 0x14]
mov edx, dword [esi]
mov eax, dword [esp + 0x18]
xor edx, eax
mov eax, dword [esi + 4]
mov esi, dword [esp + 0x1c]
mov dword [ebx], edx
xor eax, esi
mov esi, edi
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x4c]
add ebx, 8
add edi, 8
dec eax
mov dword [esp + 0x4c], eax
jne 0x5b4d56
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi]
mov dword [eax + 8], ecx
mov edx, dword [esi + 4]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
push eax
call fcn.004dfd50
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x28
ret 0x14