Function at 0x59b799
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edx, dword [eax]
mov esi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov ecx, 0x6330e4
mov dword [ebp + 0xc], 0x6330e0
lea edi, [eax + 8]
sub dword [ebp + 0xc], eax
mov dword [ebp - 0x10], ecx
sub dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edi
mov ebx, dword [ebp - 8]
mov ecx, esi
not ecx
and ecx, dword [ebp - 4]
and ebx, esi
or ecx, ebx
mov ebx, dword [ebp - 0xc]
add ecx, dword [edi - 8]
add ecx, dword [ebx - 4]
mov ebx, esi
add ecx, edx
mov edx, ecx
shr edx, 0x19
shl ecx, 7
or edx, ecx
add edx, esi
mov ecx, edx
and ebx, edx
not ecx
and ecx, dword [ebp - 8]
or ecx, ebx
mov ebx, dword [ebp - 0xc]
add ecx, dword [edi - 4]
add dword [ebp - 0xc], 0x10
add ecx, dword [ebx]
add ecx, dword [ebp - 4]
mov ebx, ecx
shr ebx, 0x14
shl ecx, 0xc
or ebx, ecx
add ebx, edx
mov ecx, ebx
mov dword [ebp - 4], ebx
not ecx
and ecx, esi
and ebx, edx
or ecx, ebx
mov ebx, dword [ebp + 0xc]
add ecx, dword [ebx + edi]
mov ebx, dword [ebp - 0x10]
add ecx, dword [edi]
add ecx, dword [ebp - 8]
mov edi, ecx
shr edi, 0xf
shl ecx, 0x11
or edi, ecx
add edi, dword [ebp - 4]
mov dword [ebp - 8], edi
mov ecx, edi
mov edi, dword [ebp - 4]
and edi, dword [ebp - 8]
not ecx
and ecx, edx
or ecx, edi
mov edi, dword [ebp - 0x14]
add ecx, dword [edi + ebx]
add edi, 0x10
mov dword [ebp - 0x14], edi
add ecx, dword [edi - 0xc]
add ecx, esi
mov esi, ecx
shl esi, 0x16
shr ecx, 0xa
or esi, ecx
add esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 0x633124
jl 0x59b7d7
xor edi, edi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 4]
not ecx
and ecx, dword [ebp - 8]
and ebx, esi
add edi, 0x10
or ecx, ebx
mov ebx, dword [edi + 0x633110]
add ecx, dword [eax + ebx*4]
mov ebx, dword [ebp - 8]
add ecx, dword [edi + 0x633150]
add ecx, edx
mov edx, ecx
shr edx, 0x1b
shl ecx, 5
or edx, ecx
mov ecx, dword [ebp - 8]
add edx, esi
not ecx
and ecx, esi
and ebx, edx
or ecx, ebx
mov ebx, dword [edi + 0x633114]
add ecx, dword [eax + ebx*4]
add ecx, dword [edi + 0x633154]
add ecx, dword [ebp - 4]
mov ebx, ecx
shr ebx, 0x17
shl ecx, 9
or ebx, ecx
mov ecx, esi
add ebx, edx
not ecx
mov dword [ebp - 4], ebx
and ecx, edx
and ebx, esi
or ecx, ebx
mov ebx, dword [edi + 0x633118]
add ecx, dword [eax + ebx*4]
add ecx, dword [edi + 0x633158]
add ecx, dword [ebp - 8]
mov ebx, ecx
shr ebx, 0x12
shl ecx, 0xe
or ebx, ecx
mov ecx, edx
add ebx, dword [ebp - 4]
not ecx
and ecx, dword [ebp - 4]
mov dword [ebp - 8], ebx
and ebx, edx
or ecx, ebx
mov ebx, dword [edi + 0x63311c]
add ecx, dword [eax + ebx*4]
add ecx, dword [edi + 0x63315c]
add ecx, esi
mov esi, ecx
shl esi, 0x14
shr ecx, 0xc
or esi, ecx
add esi, dword [ebp - 8]
cmp edi, 0x40
jl 0x59b88a
mov edi, dword [ebp - 4]
xor edi, dword [ebp - 8]
xor ecx, ecx
jmp 0x59b953
mov edi, dword [ebp + 0xc]
mov ebx, dword [ecx + 0x6331a0]
add ecx, 0x10
mov dword [ebp + 0xc], ebx
mov ebx, edi
mov edi, dword [ebp + 0xc]
xor ebx, esi
mov edi, dword [eax + edi*4]
add edi, ebx
mov ebx, dword [ebp - 8]
add edi, dword [ecx + 0x6331d0]
xor ebx, esi
add edi, edx
mov edx, edi
shr edx, 0x1c
shl edi, 4
or edx, edi
mov edi, dword [ecx + 0x633194]
add edx, esi
mov edi, dword [eax + edi*4]
xor ebx, edx
add edi, ebx
add edi, dword [ecx + 0x6331d4]
add edi, dword [ebp - 4]
mov ebx, edi
shr ebx, 0x15
shl edi, 0xb
or ebx, edi
mov edi, dword [ecx + 0x633198]
add ebx, edx
mov edi, dword [eax + edi*4]
mov dword [ebp - 4], ebx
xor ebx, esi
xor ebx, edx
add edi, ebx
add edi, dword [ecx + 0x6331d8]
add edi, dword [ebp - 8]
mov ebx, edi
shr ebx, 0x10
shl edi, 0x10
or ebx, edi
mov edi, dword [ebp - 4]
add ebx, dword [ebp - 4]
mov dword [ebp - 8], ebx
xor edi, ebx
mov ebx, dword [ecx + 0x63319c]
mov dword [ebp + 0xc], edi
mov dword [ebp - 0x14], ebx
mov ebx, edi
mov edi, dword [ebp - 0x14]
xor ebx, edx
mov edi, dword [eax + edi*4]
add edi, ebx
mov ebx, dword [ebp - 8]
add edi, dword [ecx + 0x6331dc]
add edi, esi
mov esi, edi
shl esi, 0x17
shr edi, 9
or esi, edi
add esi, ebx
cmp ecx, 0x40
jl 0x59b950
and dword [ebp + 0xc], 0
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 4]
not edi
mov ecx, dword [ecx + 0x633220]
or edi, esi
xor edi, ebx
mov ecx, dword [eax + ecx*4]
add ecx, edi
mov edi, dword [ebp + 0xc]
not ebx
add ecx, dword [edi + 0x633260]
add ecx, edx
mov edx, ecx
shr edx, 0x1a
shl ecx, 6
or edx, ecx
mov ecx, dword [edi + 0x633224]
add edx, esi
mov ecx, dword [eax + ecx*4]
or ebx, edx
xor ebx, esi
add ecx, ebx
add ecx, dword [edi + 0x633264]
add ecx, dword [ebp - 4]
mov ebx, ecx
shr ebx, 0x16
shl ecx, 0xa
or ebx, ecx
mov ecx, dword [edi + 0x633228]
mov edi, esi
add ebx, edx
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 4], ebx
not edi
or edi, ebx
xor edi, edx
add ecx, edi
mov edi, dword [ebp + 0xc]
add ecx, dword [edi + 0x633268]
add ecx, dword [ebp - 8]
mov ebx, ecx
shr ebx, 0x11
shl ecx, 0xf
or ebx, ecx
mov ecx, dword [edi + 0x63322c]
add ebx, dword [ebp - 4]
mov edi, dword [ebp - 4]
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 8], ebx
mov ebx, edx
not ebx
or ebx, dword [ebp - 8]
xor ebx, edi
add ecx, ebx
mov ebx, dword [ebp + 0xc]
add dword [ebp + 0xc], 0x10
add ecx, dword [ebx + 0x63326c]
mov ebx, dword [ebp - 8]
add ecx, esi
mov esi, ecx
shl esi, 0x15
shr ecx, 0xb
or esi, ecx
add esi, ebx
cmp dword [ebp + 0xc], 0x40
jl 0x59ba12
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add ecx, edx
mov dword [eax], ecx
mov ecx, dword [eax + 4]
add ecx, esi
mov dword [eax + 4], ecx
mov ecx, dword [eax + 8]
add ecx, ebx
mov dword [eax + 8], ecx
mov ecx, dword [eax + 0xc]
add ecx, edi
pop edi
pop esi
mov dword [eax + 0xc], ecx
pop ebx
leave
ret