Function at 0x5514c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebp, dword [esp + 0x40]
test ebp, ebp
mov eax, 0xfffffffb
je 0x5517b6
mov edx, dword [esp + 0x44]
test edx, edx
je 0x5517b6
mov eax, 0xfffffffb
cmp byte [edx], 1
je 0x5517b6
mov edi, dword [esp + 0x48]
xor eax, eax
test edi, edi
je 0x5517b6
mov ecx, dword [esp + 0x4c]
test ecx, ecx
jle 0x5517b6
mov ebx, dword [esp + 0x50]
mov eax, ecx
shr eax, 7
mov cl, byte [ebp]
cmp cl, 3
je 0x551583
cmp cl, 2
je 0x55174d
mov esi, ebx
mov ebx, eax
mov eax, 0xfffffffb
cmp cl, 1
mov ecx, edi
jne 0x5517b6
mov eax, ebx
test eax, eax
je 0x5517af
lea edi, [edx + 0x50]
inc eax
nop dword [eax + eax]
push esi
push ecx
push dword [edx + 0x4c]
push edi
mov ebx, ecx
mov ebp, eax
call fcn.00550a00
mov eax, ebp
mov ecx, ebx
mov edx, dword [esp + 0x54]
add esp, 0x10
add ecx, 0x10
add esi, 0x10
dec eax
cmp eax, 1
jg 0x551558
jmp 0x5517af
test eax, eax
mov ecx, edi
je 0x5517af
lea esi, [ebp + 1]
lea edi, [edx + 0x140]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edi
nop word cs:[eax + eax]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 8], eax
mov eax, dword [ecx]
mov dword [esp + 0x10], ecx
mov ecx, dword [ecx + 4]
mov dword [ebx + 4], ecx
mov dword [ebx], eax
xor ebx, ebx
nop word cs:[eax + eax]
lea eax, [esp + 0x1c]
push eax
push esi
push dword [edx + 0x4c]
push edi
call fcn.00550a00
add esp, 0x10
movzx edx, byte [esp + 0x1c]
and edx, 0x80
mov ecx, ebx
and ecx, 7
shr edx, cl
mov edi, ebx
sar edi, 3
mov esi, dword [esp + 8]
movzx eax, byte [esi + edi]
xor eax, edx
mov byte [esi + edi], al
movzx eax, byte [ebp + 1]
movzx edx, byte [ebp + 2]
add al, al
mov ah, dl
shr ah, 7
or ah, al
mov byte [ebp + 1], ah
add dl, dl
movzx eax, byte [ebp + 3]
mov ah, al
shr ah, 7
or ah, dl
mov byte [ebp + 2], ah
add al, al
movzx edx, byte [ebp + 4]
mov ah, dl
shr ah, 7
or ah, al
mov byte [ebp + 3], ah
add dl, dl
movzx eax, byte [ebp + 5]
mov ah, al
shr ah, 7
or ah, dl
mov byte [ebp + 4], ah
add al, al
movzx edx, byte [ebp + 6]
mov ah, dl
shr ah, 7
or ah, al
mov byte [ebp + 5], ah
add dl, dl
movzx eax, byte [ebp + 7]
mov ah, al
shr ah, 7
or ah, dl
mov byte [ebp + 6], ah
add al, al
movzx edx, byte [ebp + 8]
mov ah, dl
shr ah, 7
or ah, al
mov byte [ebp + 7], ah
add dl, dl
movzx eax, byte [ebp + 9]
mov ah, al
shr ah, 7
or ah, dl
mov byte [ebp + 8], ah
add al, al
movzx edx, byte [ebp + 0xa]
mov ah, dl
shr ah, 7
or ah, al
mov byte [ebp + 9], ah
add dl, dl
movzx eax, byte [ebp + 0xb]
mov ah, al
shr ah, 7
or ah, dl
mov byte [ebp + 0xa], ah
add al, al
movzx edx, byte [ebp + 0xc]
mov ah, dl
shr ah, 7
or ah, al
mov byte [ebp + 0xb], ah
add dl, dl
movzx eax, byte [ebp + 0xd]
mov ah, al
shr ah, 7
or ah, dl
mov byte [ebp + 0xc], ah
add al, al
movzx edx, byte [ebp + 0xe]
mov ah, dl
shr ah, 7
or ah, al
mov byte [ebp + 0xd], ah
add dl, dl
movzx eax, byte [ebp + 0xf]
mov ah, al
shr ah, 7
or ah, dl
mov byte [ebp + 0xe], ah
add al, al
movzx edx, byte [ebp + 0x10]
mov ah, dl
shr ah, 7
or ah, al
mov byte [ebp + 0xf], ah
movzx eax, byte [esi + edi]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
xor ecx, 7
shr eax, cl
and eax, 1
lea eax, [eax + edx*2]
mov edx, dword [esp + 0x44]
mov byte [ebp + 0x10], al
inc ebx
cmp ebx, 0x80
jne 0x5515d8
mov ebx, dword [esp + 8]
add ebx, 0x10
mov ecx, dword [esp + 0x10]
add ecx, 0x10
mov eax, dword [esp + 0xc]
cmp eax, 1
lea eax, [eax - 1]
jg 0x5515a8
jmp 0x5517af
test eax, eax
mov ecx, edi
je 0x5517af
inc ebp
lea edi, [edx + 0x50]
inc eax
mov esi, ebx
mov ebx, eax
mov eax, dword [ebp]
xor eax, dword [ecx]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 4]
xor eax, dword [ecx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
xor eax, dword [ecx + 8]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
xor eax, dword [ecx + 0xc]
mov dword [esp + 0x28], eax
push esi
lea eax, [esp + 0x20]
push eax
push dword [edx + 0x4c]
push edi
mov ebp, ecx
call fcn.00550a00
mov eax, ebx
mov ebx, esi
mov ecx, ebp
mov edx, dword [esp + 0x54]
add esp, 0x10
dec eax
add ecx, 0x10
cmp eax, 1
mov ebp, ebx
lea ebx, [ebx + 0x10]
jg 0x551758
mov eax, dword [esp + 0x4c]
and eax, 0xffffff80
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret