Function at 0x5590c0
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.004da200
mov dword [esp + 0x28], eax
test eax, eax
js 0x55943b
lea eax, [esp + 0x90]
mov dword [esp], eax
call fcn.004c8660
test esi, esi
je 0x55949e
cmp ebx, 0xffffffff
je 0x55948f
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.004c81c0
test eax, eax
je 0x559473
mov eax, dword [esp + 0x268]
test eax, eax
je 0x5593c3
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 0x55940d
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.004c8690
test eax, eax
je 0x559473
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.004c85c0
test eax, eax
mov edx, dword [esp + 0x20]
je 0x559448
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.004c85c0
test eax, eax
je 0x559448
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
lea eax, [esp + 0x160]
mov dword [esp], eax
call fcn.004c85d0
test eax, eax
je 0x559448
lea eax, [esp + 0x160]
mov dword [esp], eax
call fcn.004c8780
mov edx, dword [esp + 0x20]
mov eax, edx
mov edi, ebp
mov esi, ebx
cmp edx, 4
jae 0x559414
xor ecx, ecx
test al, 2
jne 0x5593f8
test al, 1
jne 0x5593ed
cmp dword [esp + 0x260], 1
jle 0x5593b3
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 0x5593e0
mov dword [esp + 0x30], 0
mov esi, 1
mov dword [esp + 0x24], esi
mov esi, edi
mov edi, edx
jmp 0x5592e0
lea edx, [esp + 0x90]
mov dword [esp + 4], edx
lea eax, [esp + 0x160]
mov dword [esp], eax
call fcn.004c8690
test eax, eax
je 0x559473
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.004c85c0
test eax, eax
je 0x559448
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
lea eax, [esp + 0x160]
mov dword [esp], eax
call fcn.004c85d0
test eax, eax
je 0x559448
lea edx, [esp + 0x160]
mov dword [esp], edx
call fcn.004c8780
test edi, edi
jle 0x55939c
cmp byte [esp + 0x37], 0
jne 0x559386
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 0x559370
cmp edi, dword [esp + 0x2c]
je 0x55939c
mov eax, dword [esp + 0x30]
lea esi, [esi]
mov dl, byte [ebx + eax]
xor byte [ebp + eax], dl
inc eax
cmp edi, eax
jg 0x559390
inc dword [esp + 0x24]
mov edx, dword [esp + 0x260]
cmp dword [esp + 0x24], edx
jne 0x5592e0
mov edx, edi
inc dword [esp + 0x3c]
add ebp, edx
sub dword [esp + 0x38], edx
jne 0x55916b
lea eax, [esp + 0x90]
mov dword [esp], eax
call fcn.004c8780
mov eax, 1
jmp 0x55943d
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
jmp 0x5592c4
mov al, byte [esi + ecx]
mov byte [edi + ecx], al
jmp 0x55927d
mov cx, word [esi]
mov word [edi], cx
mov ecx, 2
test al, 1
je 0x55927d
jmp 0x5593ed
mov edx, eax
jmp 0x55917b
test ebp, 1
jne 0x5594b9
test edi, 2
jne 0x5594a5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
test al, 2
je 0x559275
jmp 0x5593f8
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.004c8780
lea eax, [esp + 0x160]
mov dword [esp], eax
call fcn.004c8780
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.004c8780
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 0x559113
xor ebx, ebx
jmp 0x559113
mov cx, word [esi]
mov word [edi], cx
add edi, 2
add esi, 2
sub eax, 2
jmp 0x559428
mov al, byte [ebx]
mov byte [ebp], al
lea edi, [ebp + 1]
lea esi, [esp + 0x51]
lea eax, [edx - 1]
jmp 0x559420