Function at 0x1002289b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x18]
push ebx
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 0x1c]
push esi
mov dword [ebp - 0x28], ecx
push edi
mov edi, dword [eax]
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edx
sub ecx, edx
mov dword [ebp - 8], 0x10
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov esi, edx
mov ebx, edx
shr ebx, 0x10
and esi, 0xff0000
or esi, ebx
mov ebx, edx
shl ebx, 0x10
and edx, 0xff00
or ebx, edx
mov edx, dword [ebp - 4]
add dword [ebp - 4], 4
shr esi, 8
shl ebx, 8
or esi, ebx
dec dword [ebp - 8]
mov dword [ecx + edx], esi
jne 0x100228e8
lea ecx, [ebp - 0x120]
mov dword [ebp - 8], 0x34
mov ebx, dword [ecx - 0x34]
mov esi, dword [ecx]
mov edx, dword [ecx - 0x18]
rol esi, 0xf
mov dword [ebp - 4], esi
xor edx, ebx
xor edx, esi
mov esi, dword [ecx - 0x28]
rol esi, 7
mov ebx, edx
rol ebx, 0xf
xor esi, ebx
ror edx, 9
xor esi, edx
xor esi, dword [ecx - 0xc]
add ecx, 4
xor esi, dword [ecx - 0x1c]
xor esi, dword [ecx - 0x38]
xor esi, dword [ebp - 4]
dec dword [ebp - 8]
mov dword [ecx + 8], esi
jne 0x1002292d
xor ecx, ecx
mov edx, dword [ebp + ecx - 0x144]
xor edx, dword [ebp + ecx - 0x154]
add ecx, 4
cmp ecx, 0x100
mov dword [ebp + ecx - 0x258], edx
jl 0x1002296a
and dword [ebp - 4], 0
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 0x20]
mov ecx, edx
rol esi, 0xc
and ecx, 0x8000001f
jns 0x100229a6
dec ecx
or ecx, 0xffffffe0
inc ecx
mov ebx, 0x79cc4519
rol ebx, cl
mov ecx, edx
mov edx, dword [ebp - 0x18]
xor edx, dword [ebp - 0xc]
add ebx, esi
add ebx, dword [ebp - 0x10]
xor edx, dword [ebp - 0x20]
shl ecx, 2
rol ebx, 7
xor esi, ebx
add edx, esi
add edx, dword [ebp + ecx - 0x254]
mov esi, ecx
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x24]
xor ecx, dword [ebp - 0x10]
add ecx, dword [ebp + esi - 0x154]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x24], esi
mov esi, dword [ebp - 0xc]
add ecx, ebx
add ecx, dword [ebp - 0x28]
rol esi, 9
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0xc], esi
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 0x1c]
ror esi, 0xd
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x1c], esi
mov esi, ecx
ror esi, 0xf
mov ebx, ecx
rol ebx, 9
xor esi, ebx
xor esi, ecx
inc dword [ebp - 4]
push 0x10
pop ecx
cmp dword [ebp - 4], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], esi
jl 0x1002298e
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
mov esi, edx
rol esi, 0xc
and ecx, 0x8000001f
jns 0x10022a4d
dec ecx
or ecx, 0xffffffe0
inc ecx
mov ebx, 0x7a879d8a
rol ebx, cl
mov ecx, edx
or ecx, dword [ebp - 0xc]
and edx, dword [ebp - 0xc]
and ecx, dword [ebp - 0x18]
add ebx, esi
add ebx, dword [ebp - 0x10]
or ecx, edx
mov edx, dword [ebp - 4]
add ecx, dword [ebp + edx*4 - 0x254]
rol ebx, 7
add ecx, dword [ebp - 0x24]
xor esi, ebx
add esi, ecx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0x1c]
mov edx, esi
mov esi, dword [ebp - 0x10]
and ebx, esi
mov ecx, esi
not ecx
and ecx, dword [ebp - 0x14]
or ecx, ebx
mov ebx, dword [ebp - 4]
add ecx, dword [ebp + ebx*4 - 0x154]
mov ebx, dword [ebp - 0x18]
add ecx, dword [ebp - 8]
mov dword [ebp - 0x24], ebx
add ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0xc]
rol ebx, 9
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x1c]
ror ebx, 0xd
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], ebx
mov esi, ecx
ror esi, 0xf
mov ebx, ecx
rol ebx, 9
xor esi, ebx
xor esi, ecx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x40
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], esi
jl 0x10022a38
mov ecx, dword [eax + 4]
xor ecx, dword [ebp - 0xc]
xor edi, edx
mov dword [eax + 4], ecx
mov ecx, dword [eax + 8]
xor ecx, dword [ebp - 0x18]
mov dword [eax], edi
mov dword [eax + 8], ecx
mov ecx, dword [eax + 0xc]
xor ecx, dword [ebp - 0x24]
pop edi
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 0x10]
xor ecx, esi
mov dword [eax + 0x10], ecx
mov ecx, dword [eax + 0x14]
xor ecx, dword [ebp - 0x1c]
pop esi
mov dword [eax + 0x14], ecx
mov ecx, dword [eax + 0x18]
xor ecx, dword [ebp - 0x14]
pop ebx
mov dword [eax + 0x18], ecx
mov ecx, dword [eax + 0x1c]
xor ecx, dword [ebp - 0x28]
mov dword [eax + 0x1c], ecx
leave
ret