Function at 0x558cc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x23c
mov esi, dword [esp + 0x250]
mov ebx, dword [esp + 0x254]
mov edi, dword [esp + 0x264]
mov dword [esp], edi
call fcn.004d9e00
mov dword [esp + 0x28], eax
test eax, eax
js 0x55903b
lea eax, [esp + 0x90]
mov dword [esp], eax
call fcn.004c8260
test esi, esi
je 0x55909e
cmp ebx, 0xffffffff
je 0x55908f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
lea edx, [esp + 0x90]
mov dword [esp], edx
call fcn.004c7dc0
test eax, eax
je 0x559073
mov eax, dword [esp + 0x268]
test eax, eax
je 0x558fc3
mov eax, dword [esp + 0x268]
mov dword [esp + 0x38], eax
mov ebp, dword [esp + 0x26c]
mov dword [esp + 0x3c], 1
lea ebx, [esp + 0x50]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
cmp edx, eax
jg 0x55900d
mov eax, dword [esp + 0x3c]
shr eax, 0x18
mov byte [esp + 0x4c], al
mov eax, dword [esp + 0x3c]
shr eax, 0x10
mov byte [esp + 0x4d], al
mov eax, dword [esp + 0x3c]
shr eax, 8
mov byte [esp + 0x4e], al
mov al, byte [esp + 0x3c]
mov byte [esp + 0x4f], al
lea eax, [esp + 0x90]
mov dword [esp + 4], eax
lea eax, [esp + 0x160]
mov dword [esp], eax
mov dword [esp + 0x20], edx
call fcn.004c8290
test eax, eax
je 0x559073
mov eax, dword [esp + 0x25c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x258]
mov dword [esp + 4], eax
lea eax, [esp + 0x160]
mov dword [esp], eax
call fcn.004c81c0
test eax, eax
mov edx, dword [esp + 0x20]
je 0x559048
mov dword [esp + 8], 4
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
lea eax, [esp + 0x160]
mov dword [esp], eax
mov dword [esp + 0x20], edx
call fcn.004c81c0
test eax, eax
je 0x559048
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
lea eax, [esp + 0x160]
mov dword [esp], eax
call fcn.004c81d0
test eax, eax
je 0x559048
lea eax, [esp + 0x160]
mov dword [esp], eax
call fcn.004c8380
mov edx, dword [esp + 0x20]
mov eax, edx
mov edi, ebp
mov esi, ebx
cmp edx, 4
jae 0x559014
xor ecx, ecx
test al, 2
jne 0x558ff8
test al, 1
jne 0x558fed
cmp dword [esp + 0x260], 1
jle 0x558fb3
mov edi, edx
shr edi, 2
test ebp, 3
sete cl
cmp edx, 5
seta al
and ecx, eax
xor ecx, 1
mov eax, edi
shl eax, 2
mov dword [esp + 0x2c], eax
sete al
or cl, al
mov byte [esp + 0x37], cl
je 0x558fe0
mov dword [esp + 0x30], 0
mov esi, 1
mov dword [esp + 0x24], esi
mov esi, edi
mov edi, edx
jmp 0x558ee0
lea edx, [esp + 0x90]
mov dword [esp + 4], edx
lea eax, [esp + 0x160]
mov dword [esp], eax
call fcn.004c8290
test eax, eax
je 0x559073
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
lea edx, [esp + 0x160]
mov dword [esp], edx
call fcn.004c81c0
test eax, eax
je 0x559048
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
lea eax, [esp + 0x160]
mov dword [esp], eax
call fcn.004c81d0
test eax, eax
je 0x559048
lea edx, [esp + 0x160]
mov dword [esp], edx
call fcn.004c8380
test edi, edi
jle 0x558f9c
cmp byte [esp + 0x37], 0
jne 0x558f86
xor eax, eax
lea esi, [esi]
lea edi, [edi]
mov edx, dword [ebp + eax*4]
xor edx, dword [ebx + eax*4]
mov dword [ebp + eax*4], edx
inc eax
cmp esi, eax
ja 0x558f70
cmp edi, dword [esp + 0x2c]
je 0x558f9c
mov eax, dword [esp + 0x30]
lea esi, [esi]
mov dl, byte [ebx + eax]
xor byte [ebp + eax], dl
inc eax
cmp edi, eax
jg 0x558f90
inc dword [esp + 0x24]
mov edx, dword [esp + 0x260]
cmp dword [esp + 0x24], edx
jne 0x558ee0
mov edx, edi
inc dword [esp + 0x3c]
add ebp, edx
sub dword [esp + 0x38], edx
jne 0x558d6b
lea eax, [esp + 0x90]
mov dword [esp], eax
call fcn.004c8380
mov eax, 1
jmp 0x55903d
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
jmp 0x558ec4
mov al, byte [esi + ecx]
mov byte [edi + ecx], al
jmp 0x558e7d
mov cx, word [esi]
mov word [edi], cx
mov ecx, 2
test al, 1
je 0x558e7d
jmp 0x558fed
mov edx, eax
jmp 0x558d7b
test ebp, 1
jne 0x5590b9
test edi, 2
jne 0x5590a5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
test al, 2
je 0x558e75
jmp 0x558ff8
xor eax, eax
add esp, 0x23c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [esp + 0x90]
mov dword [esp], edx
call fcn.004c8380
lea eax, [esp + 0x160]
mov dword [esp], eax
call fcn.004c8380
xor eax, eax
add esp, 0x23c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [esp + 0x90]
mov dword [esp], edx
call fcn.004c8380
xor eax, eax
add esp, 0x23c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov ebx, eax
jmp 0x558d13
xor ebx, ebx
jmp 0x558d13
mov cx, word [esi]
mov word [edi], cx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x559028
mov al, byte [ebx]
mov byte [ebp], al
lea edi, [ebp + 1]
lea esi, [esp + 0x51]
lea eax, [edx - 1]
jmp 0x559020