Function at 0x5818a0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
movzx edx, byte [ebx + 3]
movzx ecx, byte [ebx + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebx + 1]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebx]
shl edx, 8
or edx, ecx
movzx ecx, byte [ebx + 7]
push ebp
push esi
movzx esi, byte [ebx + 6]
shl ecx, 8
or ecx, esi
movzx esi, byte [ebx + 5]
movzx ebp, byte [ebx + 0xe]
shl ecx, 8
or ecx, esi
movzx esi, byte [ebx + 4]
push edi
movzx edi, byte [ebx + 0xa]
shl ecx, 8
or ecx, esi
movzx esi, byte [ebx + 0xb]
shl esi, 8
or esi, edi
movzx edi, byte [ebx + 9]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
xor edx, dword [eax]
xor ecx, dword [eax + 4]
shl esi, 8
or esi, edi
movzx edi, byte [ebx + 8]
shl esi, 8
or esi, edi
movzx edi, byte [ebx + 0xf]
xor esi, dword [eax + 8]
shl edi, 8
or edi, ebp
movzx ebp, byte [ebx + 0xd]
movzx ebx, byte [ebx + 0xc]
shl edi, 8
or edi, ebp
shl edi, 8
or edi, ebx
mov ebx, dword [esp + 0x18]
mov ebx, dword [ebx]
xor edi, dword [eax + 0xc]
sar ebx, 1
dec ebx
add eax, 0x10
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x1c], ebx
jne 0x581deb
test ebx, ebx
jle 0x581b8f
lea esp, [esp]
mov ebx, edi
shr ebx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x7218d8]
mov ebp, esi
shr ebp, 0x10
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x7214d8]
mov ebp, ecx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x7210d8]
mov ebp, edx
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x721cd8]
mov ebp, edx
xor ebx, dword [eax]
shr ebp, 8
mov dword [esp + 0x20], ebx
and ebp, 0xff
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x7214d8]
xor ebx, dword [ebp*4 + 0x7218d8]
mov ebp, esi
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x7210d8]
mov ebp, ecx
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x721cd8]
mov ebp, edx
xor ebx, dword [eax + 4]
shr ebp, 0x10
mov dword [esp + 0x18], ebx
mov ebx, ecx
shr ebx, 8
and ebp, 0xff
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x7218d8]
xor ebx, dword [ebp*4 + 0x7214d8]
mov ebp, edi
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x7210d8]
shr ecx, 0x10
and ecx, 0xff
mov ebp, esi
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x721cd8]
shr esi, 8
xor ebx, dword [eax + 8]
shr edx, 0x18
and esi, 0xff
mov ebp, dword [esi*4 + 0x7218d8]
xor ebp, dword [ecx*4 + 0x7214d8]
mov esi, dword [esp + 0x20]
xor ebp, dword [edx*4 + 0x7210d8]
and edi, 0xff
xor ebp, dword [edi*4 + 0x721cd8]
mov ecx, ebx
xor ebp, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xff
mov edx, ebp
shr edx, 8
and edx, 0xff
mov edx, dword [edx*4 + 0x7218d8]
xor edx, dword [ecx*4 + 0x7214d8]
mov ecx, dword [esp + 0x18]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x7210d8]
mov ecx, esi
and ecx, 0xff
xor edx, dword [ecx*4 + 0x721cd8]
mov ecx, ebp
xor edx, dword [eax + 0x10]
shr ecx, 0x10
mov edi, esi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x7214d8]
shr edi, 8
and edi, 0xff
xor ecx, dword [edi*4 + 0x7218d8]
mov edi, ebx
shr edi, 0x18
xor ecx, dword [edi*4 + 0x7210d8]
mov edi, dword [esp + 0x18]
and edi, 0xff
xor ecx, dword [edi*4 + 0x721cd8]
mov edi, dword [esp + 0x18]
shr edi, 8
and edi, 0xff
mov edi, dword [edi*4 + 0x7218d8]
shr esi, 0x10
and esi, 0xff
xor edi, dword [esi*4 + 0x7214d8]
mov esi, ebp
shr esi, 0x18
xor edi, dword [esi*4 + 0x7210d8]
mov esi, ebx
and esi, 0xff
xor edi, dword [esi*4 + 0x721cd8]
xor ecx, dword [eax + 0x14]
xor edi, dword [eax + 0x18]
shr ebx, 8
mov esi, edi
mov edi, dword [esp + 0x18]
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x7218d8]
shr edi, 0x10
and edi, 0xff
xor ebx, dword [edi*4 + 0x7214d8]
mov edi, dword [esp + 0x20]
shr edi, 0x18
xor ebx, dword [edi*4 + 0x7210d8]
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x721cd8]
add eax, 0x20
xor ebx, dword [eax - 4]
mov edi, ebx
mov ebx, dword [esp + 0x1c]
dec ebx
mov dword [esp + 0x1c], ebx
test ebx, ebx
jg 0x581960
mov ebp, esi
shr ebp, 0x10
and ebp, 0xff
mov ebx, edi
shr ebx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x7218d8]
xor ebx, dword [ebp*4 + 0x7214d8]
mov ebp, ecx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x7210d8]
mov ebp, edx
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x721cd8]
mov ebp, edx
xor ebx, dword [eax]
shr ebp, 8
mov dword [esp + 0x20], ebx
and ebp, 0xff
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x7214d8]
xor ebx, dword [ebp*4 + 0x7218d8]
mov ebp, esi
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x7210d8]
mov ebp, ecx
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x721cd8]
mov ebp, edx
xor ebx, dword [eax + 4]
shr ebp, 0x10
mov dword [esp + 0x18], ebx
mov ebx, ecx
shr ebx, 8
and ebp, 0xff
and ebx, 0xff
mov dword [esp + 0x1c], ebp
mov ebp, dword [ebx*4 + 0x7218d8]
mov ebx, dword [esp + 0x1c]
xor ebp, dword [ebx*4 + 0x7214d8]
shr ecx, 0x10
mov ebx, edi
and ecx, 0xff
shr ebx, 0x18
xor ebp, dword [ebx*4 + 0x7210d8]
mov ebx, esi
shr esi, 8
and esi, 0xff
mov esi, dword [esi*4 + 0x7218d8]
xor esi, dword [ecx*4 + 0x7214d8]
mov ecx, dword [esp + 0x18]
shr edx, 0x18
xor esi, dword [edx*4 + 0x7210d8]
and ebx, 0xff
xor ebp, dword [ebx*4 + 0x721cd8]
shr ecx, 0x18
xor ebp, dword [eax + 8]
movzx ecx, byte [ecx + 0x7220d8]
mov edx, ebp
shr edx, 0x10
and edx, 0xff
movzx edx, byte [edx + 0x7220d8]
shl ecx, 8
xor edx, ecx
and edi, 0xff
xor esi, dword [edi*4 + 0x721cd8]
mov edi, dword [esp + 0x20]
xor esi, dword [eax + 0xc]
shl edx, 8
mov ecx, esi
shr ecx, 8
and ecx, 0xff
movzx ecx, byte [ecx + 0x7220d8]
xor edx, ecx
mov ecx, edi
and ecx, 0xff
movzx ecx, byte [ecx + 0x7220d8]
shl edx, 8
xor edx, ecx
mov ecx, esi
shr ecx, 0x10
and ecx, 0xff
movzx ecx, byte [ecx + 0x7220d8]
mov ebx, ebp
shr ebx, 0x18
movzx ebx, byte [ebx + 0x7220d8]
shl ebx, 8
xor ecx, ebx
mov ebx, edi
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x7220d8]
shl ecx, 8
xor ecx, ebx
mov ebx, dword [esp + 0x18]
and ebx, 0xff
movzx ebx, byte [ebx + 0x7220d8]
shr edi, 0x10
and edi, 0xff
movzx edi, byte [edi + 0x7220d8]
shl ecx, 8
xor ecx, ebx
mov ebx, esi
shr ebx, 0x18
movzx ebx, byte [ebx + 0x7220d8]
shl ebx, 8
xor edi, ebx
mov ebx, dword [esp + 0x18]
shr ebx, 8
shl edi, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x7220d8]
xor edi, ebx
shl edi, 8
mov ebx, ebp
and ebx, 0xff
movzx ebx, byte [ebx + 0x7220d8]
xor edi, ebx
xor edi, dword [eax + 0x18]
xor edx, dword [eax + 0x10]
xor ecx, dword [eax + 0x14]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x18]
shr edi, 0x10
and edi, 0xff
movzx ebx, byte [edi + 0x7220d8]
mov edi, dword [esp + 0x20]
shr edi, 0x18
movzx edi, byte [edi + 0x7220d8]
shl edi, 8
shr ebp, 8
xor ebx, edi
and ebp, 0xff
movzx edi, byte [ebp + 0x7220d8]
shl ebx, 8
xor ebx, edi
and esi, 0xff
movzx esi, byte [esi + 0x7220d8]
jmp 0x582281
test ebx, ebx
jle 0x582026
mov ebp, ecx
shr ebp, 8
and ebp, 0xff
mov ebx, esi
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x7225d8]
xor ebx, dword [ebp*4 + 0x7229d8]
mov ebp, edi
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x7221d8]
mov ebp, edx
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x722dd8]
mov ebp, esi
xor ebx, dword [eax]
shr ebp, 8
mov dword [esp + 0x20], ebx
and ebp, 0xff
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x7225d8]
xor ebx, dword [ebp*4 + 0x7229d8]
mov ebp, edx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x7221d8]
mov ebp, ecx
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x722dd8]
mov ebp, edx
xor ebx, dword [eax + 4]
shr ebp, 0x10
mov dword [esp + 0x18], ebx
and ebp, 0xff
mov ebx, edi
shr ebx, 8
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x7229d8]
xor ebx, dword [ebp*4 + 0x7225d8]
mov ebp, ecx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x7221d8]
shr ecx, 0x10
and ecx, 0xff
shr edx, 8
mov ebp, esi
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x722dd8]
mov ebp, dword [ecx*4 + 0x7225d8]
xor ebx, dword [eax + 8]
mov ecx, dword [esp + 0x18]
and edx, 0xff
xor ebp, dword [edx*4 + 0x7229d8]
shr esi, 0x18
xor ebp, dword [esi*4 + 0x7221d8]
shr ecx, 8
and ecx, 0xff
and edi, 0xff
xor ebp, dword [edi*4 + 0x722dd8]
mov edi, dword [esp + 0x20]
xor ebp, dword [eax + 0xc]
mov edx, ebx
shr edx, 0x10
and edx, 0xff
mov edx, dword [edx*4 + 0x7225d8]
xor edx, dword [ecx*4 + 0x7229d8]
mov ecx, ebp
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x7221d8]
mov ecx, edi
and ecx, 0xff
xor edx, dword [ecx*4 + 0x722dd8]
mov ecx, ebp
xor edx, dword [eax + 0x10]
shr ecx, 0x10
mov esi, ebx
shr esi, 8
and ecx, 0xff
mov dword [esp + 0x10], ebp
and esi, 0xff
mov ecx, dword [ecx*4 + 0x7225d8]
xor ecx, dword [esi*4 + 0x7229d8]
mov esi, edi
shr esi, 0x18
xor ecx, dword [esi*4 + 0x7221d8]
mov esi, dword [esp + 0x18]
shr ebp, 8
and esi, 0xff
xor ecx, dword [esi*4 + 0x722dd8]
and ebp, 0xff
mov ebp, dword [ebp*4 + 0x7229d8]
mov esi, edi
shr esi, 0x10
and esi, 0xff
xor ebp, dword [esi*4 + 0x7225d8]
mov esi, dword [esp + 0x18]
shr esi, 0x18
xor ebp, dword [esi*4 + 0x7221d8]
xor ecx, dword [eax + 0x14]
mov esi, ebx
and esi, 0xff
xor ebp, dword [esi*4 + 0x722dd8]
shr edi, 8
xor ebp, dword [eax + 0x18]
and edi, 0xff
mov esi, ebp
mov ebp, dword [esp + 0x18]
shr ebp, 0x10
and ebp, 0xff
mov ebp, dword [ebp*4 + 0x7225d8]
xor ebp, dword [edi*4 + 0x7229d8]
mov edi, dword [esp + 0x10]
shr ebx, 0x18
xor ebp, dword [ebx*4 + 0x7221d8]
mov ebx, dword [esp + 0x1c]
and edi, 0xff
xor ebp, dword [edi*4 + 0x722dd8]
dec ebx
xor ebp, dword [eax + 0x1c]
add eax, 0x20
mov edi, ebp
mov dword [esp + 0x1c], ebx
test ebx, ebx
jg 0x581df3
mov ebx, esi
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x7225d8]
mov ebp, ecx
shr ebp, 8
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x7229d8]
mov ebp, edi
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x7221d8]
mov ebp, edx
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x722dd8]
mov ebp, esi
xor ebx, dword [eax]
shr ebp, 8
mov dword [esp + 0x20], ebx
and ebp, 0xff
mov ebx, edi
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x7225d8]
xor ebx, dword [ebp*4 + 0x7229d8]
mov ebp, edx
shr ebp, 0x18
xor ebx, dword [ebp*4 + 0x7221d8]
mov ebp, ecx
and ebp, 0xff
xor ebx, dword [ebp*4 + 0x722dd8]
mov ebp, edx
xor ebx, dword [eax + 4]
shr ebp, 0x10
mov dword [esp + 0x18], ebx
mov ebx, edi
shr ebx, 8
and ebx, 0xff
and ebp, 0xff
mov dword [esp + 0x1c], ebp
mov ebp, dword [ebx*4 + 0x7229d8]
mov ebx, dword [esp + 0x1c]
xor ebp, dword [ebx*4 + 0x7225d8]
mov ebx, ecx
shr edx, 8
shr ecx, 0x10
and edx, 0xff
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x7225d8]
xor ecx, dword [edx*4 + 0x7229d8]
shr ebx, 0x18
xor ebp, dword [ebx*4 + 0x7221d8]
mov ebx, esi
shr esi, 0x18
xor ecx, dword [esi*4 + 0x7221d8]
and edi, 0xff
xor ecx, dword [edi*4 + 0x722dd8]
and ebx, 0xff
xor ebp, dword [ebx*4 + 0x722dd8]
xor ecx, dword [eax + 0xc]
xor ebp, dword [eax + 8]
mov esi, ecx
shr esi, 0x18
movzx esi, byte [esi + 0x7231d8]
mov edx, ebp
shr edx, 0x10
and edx, 0xff
movzx edx, byte [edx + 0x7231d8]
shl esi, 8
xor edx, esi
mov esi, dword [esp + 0x18]
mov edi, esi
shr edi, 8
and edi, 0xff
movzx edi, byte [edi + 0x7231d8]
shl edx, 8
xor edx, edi
mov edi, dword [esp + 0x20]
mov ebx, edi
shl edx, 8
mov dword [esp + 0x10], ecx
and ebx, 0xff
movzx ebx, byte [ebx + 0x7231d8]
xor edx, ebx
shr ecx, 0x10
and ecx, 0xff
movzx ecx, byte [ecx + 0x7231d8]
mov ebx, edi
shr ebx, 0x18
movzx ebx, byte [ebx + 0x7231d8]
shl ebx, 8
xor ecx, ebx
and esi, 0xff
movzx esi, byte [esi + 0x7231d8]
mov ebx, ebp
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x7231d8]
shl ecx, 8
xor ecx, ebx
mov ebx, dword [esp + 0x18]
shr ebx, 0x18
movzx ebx, byte [ebx + 0x7231d8]
shl ecx, 8
xor ecx, esi
shl ebx, 8
mov esi, edi
shr esi, 0x10
and esi, 0xff
movzx esi, byte [esi + 0x7231d8]
xor esi, ebx
mov ebx, dword [esp + 0x10]
shr ebx, 8
shl esi, 8
and ebx, 0xff
movzx ebx, byte [ebx + 0x7231d8]
xor esi, ebx
shl esi, 8
mov ebx, ebp
and ebx, 0xff
movzx ebx, byte [ebx + 0x7231d8]
xor esi, ebx
xor esi, dword [eax + 0x18]
xor edx, dword [eax + 0x10]
xor ecx, dword [eax + 0x14]
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x18]
shr esi, 0x10
and esi, 0xff
movzx ebx, byte [esi + 0x7231d8]
shr ebp, 0x18
movzx esi, byte [ebp + 0x7231d8]
shl esi, 8
xor ebx, esi
shr edi, 8
and edi, 0xff
movzx esi, byte [edi + 0x7231d8]
shl ebx, 8
xor ebx, esi
mov esi, dword [esp + 0x10]
and esi, 0xff
movzx esi, byte [esi + 0x7231d8]
shl ebx, 8
xor ebx, esi
xor ebx, dword [eax + 0x1c]
mov esi, dword [esp + 0x24]
mov eax, edx
shr eax, 8
mov byte [esi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 2], al
mov byte [esi], dl
shr edx, 0x18
mov eax, ecx
shr eax, 0x10
mov byte [esi + 3], dl
mov byte [esi + 4], cl
mov edx, ecx
shr ecx, 0x18
mov byte [esi + 6], al
mov eax, dword [esp + 0x1c]
shr edx, 8
mov byte [esi + 7], cl
mov ecx, eax
mov byte [esi + 5], dl
mov byte [esi + 8], al
mov edx, eax
shr ecx, 8
shr eax, 0x18
mov byte [esi + 9], cl
mov byte [esi + 0xb], al
mov eax, ebx
mov ecx, ebx
mov byte [esi + 0xc], bl
shr edx, 0x10
shr eax, 8
shr ecx, 0x10
shr ebx, 0x18
pop edi
mov byte [esi + 0xf], bl
mov byte [esi + 0xa], dl
mov byte [esi + 0xd], al
mov byte [esi + 0xe], cl
pop esi
pop ebp
pop ebx
pop ecx
ret