Function at 0x59c0b8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x59c7b0
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x59c7af
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x59c7ae
mov eax, dword [ebx + 0x110]
mov dword [ebp - 0x14], eax
cmp eax, 0xc
je 0x59c0fe
cmp eax, 0xe
je 0x59c0fe
cmp eax, 0x10
jne 0x59c7ae
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
shl ecx, 8
xor ecx, eax
movzx edx, byte [esi + 8]
movzx eax, byte [esi + 2]
shl ecx, 8
xor ecx, eax
shl edx, 8
movzx eax, byte [esi + 3]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 5]
xor ecx, dword [ebx]
mov dword [ebp - 0x10], ecx
movzx ecx, byte [esi + 4]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 6]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 7]
shl ecx, 8
xor ecx, eax
movzx eax, byte [esi + 9]
xor ecx, dword [ebx + 4]
xor edx, eax
movzx eax, byte [esi + 0xa]
shl edx, 8
xor edx, eax
mov dword [ebp + 8], ecx
movzx eax, byte [esi + 0xb]
shl edx, 8
xor edx, eax
movzx eax, byte [esi + 0xd]
xor edx, dword [ebx + 8]
movzx ebx, byte [esi + 0xc]
shl ebx, 8
xor ebx, eax
movzx eax, byte [esi + 0xe]
shl ebx, 8
xor ebx, eax
movzx eax, byte [esi + 0xf]
shl ebx, 8
xor ebx, eax
mov eax, dword [ebp + 0x10]
xor ebx, dword [eax + 0xc]
lea esi, [eax + 0x10]
mov eax, edx
mov dword [ebp - 0xc], esi
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x838c60]
xor ecx, dword [eax*4 + 0x839060]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x838860]
movzx eax, dl
xor ecx, dword [eax*4 + 0x839460]
mov eax, ebx
shr eax, 0x10
mov dword [ebp - 8], ecx
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x838c60]
xor esi, dword [eax*4 + 0x839060]
mov eax, ebx
shr eax, 0x18
xor esi, dword [eax*4 + 0x838860]
movzx eax, bl
mov ebx, dword [ebp + 8]
xor esi, dword [eax*4 + 0x839460]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
mov edx, dword [ecx*4 + 0x838c60]
shr eax, 8
movzx eax, al
mov ecx, dword [ebp - 8]
xor edx, dword [eax*4 + 0x839060]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x838860]
movzx eax, bl
mov ebx, dword [ebp - 0x10]
xor edx, dword [eax*4 + 0x839460]
mov eax, ebx
shr eax, 0x10
xor edx, ecx
xor ecx, esi
xor esi, edx
mov dword [ebp - 8], ecx
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x838c60]
xor ecx, dword [eax*4 + 0x839060]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x838860]
movzx eax, bl
mov ebx, dword [ebp - 8]
xor ecx, dword [eax*4 + 0x839460]
mov eax, esi
and eax, 0xff0000
xor ecx, edx
mov dword [ebp + 8], eax
xor ebx, ecx
mov eax, esi
xor edx, ebx
shr eax, 0x10
xor dword [ebp + 8], eax
mov eax, esi
shr dword [ebp + 8], 8
and eax, 0xff00
shl esi, 0x10
xor eax, esi
rol ebx, 0x10
mov esi, dword [ebp - 0xc]
shl eax, 8
xor dword [ebp + 8], eax
mov eax, edx
shr eax, 8
mov dword [ebp - 4], eax
mov eax, edx
shl eax, 8
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0xff00ff
shl edx, 8
xor eax, edx
mov edx, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, ebx
xor ebx, eax
xor ecx, edx
xor eax, edx
xor ebx, ecx
xor ecx, dword [esi]
mov dword [ebp + 8], eax
mov eax, dword [esi + 4]
xor eax, ebx
mov dword [ebp - 0x10], ecx
xor ebx, dword [esi + 8]
xor edx, eax
mov eax, dword [ebp + 8]
xor eax, dword [esi + 0xc]
add esi, 0x10
sub dword [ebp - 0x14], 2
mov dword [ebp - 4], edx
mov dword [ebp - 8], ebx
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], esi
je 0x59c5ef
mov edi, dword [ebp - 0x14]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ebx, dword [ecx*4 + 0x839460]
mov ecx, dword [ebp - 8]
xor ebx, dword [eax*4 + 0x838860]
mov eax, ecx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x839060]
movzx eax, cl
xor ebx, dword [eax*4 + 0x838c60]
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx ecx, al
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x839460]
mov ecx, dword [ebp + 8]
xor esi, dword [eax*4 + 0x838860]
mov eax, ecx
shr eax, 0x18
xor esi, dword [eax*4 + 0x839060]
movzx eax, cl
xor esi, dword [eax*4 + 0x838c60]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov edx, dword [ecx*4 + 0x839460]
mov ecx, dword [ebp - 4]
xor edx, dword [eax*4 + 0x838860]
mov eax, ecx
shr eax, 0x18
xor edx, dword [eax*4 + 0x839060]
movzx eax, cl
xor edx, dword [eax*4 + 0x838c60]
mov eax, dword [ebp - 0x10]
xor edx, ebx
shr eax, 0x10
xor ebx, esi
movzx ecx, al
xor esi, edx
mov eax, dword [ebp - 0x10]
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x839460]
xor ecx, dword [eax*4 + 0x838860]
mov eax, dword [ebp - 0x10]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x839060]
mov eax, dword [ebp - 0x10]
movzx eax, al
xor ecx, dword [eax*4 + 0x838c60]
mov eax, esi
xor ecx, edx
shl eax, 8
xor ebx, ecx
mov dword [ebp + 8], ecx
xor edx, ebx
mov dword [ebp - 0x14], ebx
mov ebx, esi
mov ecx, edx
shr ebx, 8
and ecx, 0xff0000
xor ebx, eax
shl esi, 8
mov eax, edx
and ebx, 0xff00ff
shr eax, 0x10
xor ebx, esi
xor ecx, eax
mov eax, edx
shr ecx, 8
and eax, 0xff00
shl edx, 0x10
xor eax, edx
mov esi, dword [ebp - 0xc]
shl eax, 8
xor ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
xor ecx, edx
rol eax, 0x10
xor edx, ebx
xor eax, ecx
xor ebx, ecx
xor edx, eax
xor ebx, dword [esi + 0xc]
xor eax, dword [esi]
mov dword [ebp + 8], eax
mov eax, dword [esi + 4]
xor eax, edx
xor edx, dword [esi + 8]
xor ecx, eax
add esi, 0x10
mov dword [ebp - 0x14], ecx
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov dword [ebp - 0xc], esi
mov ecx, dword [ecx*4 + 0x838c60]
xor ecx, dword [eax*4 + 0x839060]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x838860]
movzx eax, dl
xor ecx, dword [eax*4 + 0x839460]
mov eax, ebx
shr eax, 0x10
mov dword [ebp - 8], ecx
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x838c60]
xor esi, dword [eax*4 + 0x839060]
mov eax, ebx
shr eax, 0x18
xor esi, dword [eax*4 + 0x838860]
movzx eax, bl
mov ebx, dword [ebp - 0x14]
xor esi, dword [eax*4 + 0x839460]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [ecx*4 + 0x838c60]
mov ecx, dword [ebp - 8]
xor edx, dword [eax*4 + 0x839060]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x838860]
movzx eax, bl
mov ebx, dword [ebp + 8]
xor edx, dword [eax*4 + 0x839460]
mov eax, ebx
xor edx, ecx
shr eax, 0x10
xor ecx, esi
mov dword [ebp - 8], ecx
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x838c60]
xor ecx, dword [eax*4 + 0x839060]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x838860]
movzx eax, bl
xor ecx, dword [eax*4 + 0x839460]
mov ebx, dword [ebp - 8]
xor esi, edx
mov eax, esi
xor ecx, edx
and eax, 0xff0000
xor ebx, ecx
mov dword [ebp + 8], eax
xor edx, ebx
mov eax, esi
rol ebx, 0x10
shr eax, 0x10
xor dword [ebp + 8], eax
mov eax, esi
shr dword [ebp + 8], 8
and eax, 0xff00
shl esi, 0x10
xor eax, esi
mov esi, dword [ebp - 0xc]
shl eax, 8
xor dword [ebp + 8], eax
mov eax, edx
shr eax, 8
mov dword [ebp - 4], eax
mov eax, edx
shl eax, 8
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0xff00ff
shl edx, 8
xor eax, edx
mov edx, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, ebx
xor ebx, eax
xor ecx, edx
xor eax, edx
xor ebx, ecx
xor ecx, dword [esi]
mov dword [ebp + 8], eax
mov eax, dword [esi + 4]
xor eax, ebx
mov dword [ebp - 0x10], ecx
xor ebx, dword [esi + 8]
xor edx, eax
mov eax, dword [ebp + 8]
xor eax, dword [esi + 0xc]
add esi, 0x10
dec edi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ebx
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], esi
sub edi, 1
jne 0x59c312
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x839460]
shr eax, 8
movzx ecx, al
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x839060]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax*4 + 0x838860]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax*4 + 0x838c60]
or ecx, eax
xor ecx, dword [esi]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 4]
mov eax, ecx
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x839460]
shr eax, 8
movzx ebx, al
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x839060]
shl eax, 8
or ebx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl ebx, 8
movzx eax, byte [eax*4 + 0x838860]
or ebx, eax
movzx eax, cl
mov ecx, dword [ebp - 8]
shl ebx, 8
movzx eax, byte [eax*4 + 0x838c60]
or ebx, eax
mov eax, ecx
shr eax, 0x10
movzx eax, al
xor ebx, dword [esi + 4]
mov eax, dword [eax*4 + 0x839460]
shr eax, 8
movzx edx, al
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x839060]
shl eax, 8
or edx, eax
mov eax, ecx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax*4 + 0x838860]
or edx, eax
movzx eax, cl
shl edx, 8
movzx eax, byte [eax*4 + 0x838c60]
or edx, eax
xor edx, dword [esi + 8]
mov esi, dword [ebp + 8]
mov eax, esi
shr eax, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x839460]
shr eax, 8
movzx ecx, al
mov eax, esi
shr eax, 0x18
movzx eax, byte [eax*4 + 0x839060]
shl eax, 8
or ecx, eax
mov eax, esi
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax*4 + 0x838860]
or ecx, eax
mov eax, esi
mov esi, dword [ebp - 0xc]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax*4 + 0x838c60]
or ecx, eax
xor ecx, dword [esi + 0xc]
mov esi, dword [ebp - 0x14]
mov eax, esi
shr eax, 0x18
mov byte [edi], al
mov eax, esi
shr eax, 0x10
mov byte [edi + 1], al
mov eax, esi
shr eax, 8
mov byte [edi + 2], al
mov eax, esi
mov byte [edi + 3], al
mov eax, ebx
shr eax, 0x18
mov byte [edi + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edi + 5], al
mov eax, ebx
shr eax, 8
mov byte [edi + 6], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 8], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 9], al
mov eax, edx
shr eax, 8
mov byte [edi + 0xa], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [edi + 7], bl
mov byte [edi + 0xb], dl
mov byte [edi + 0xe], al
mov byte [edi + 0xf], cl
pop ebx
pop edi
pop esi
leave
ret