Function at 0x1001bcaf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
push ebx
push edi
xor ebx, ebx
lea edi, [esi + 0x1d]
movzx eax, byte [edi - 1]
movzx ecx, byte [edi]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 2]
shl eax, 8
or eax, ecx
push 9
mov dword [ebp + ebx*4 - 0x178], eax
lea eax, [ebp - 0x2c]
push eax
push 0xffffffffffffffff
push 0x11d7b4
push 0
push 0
call dword [0x115074]
inc ebx
add edi, 4
cmp ebx, 0x10
jl 0x1001bcbf
call dword [0x11507c]
lea edi, [ebp - 0x170]
mov dword [ebp - 0xc], 0x40
mov eax, dword [edi + 0x2c]
xor eax, dword [edi + 0x18]
push 0x11d7c8
xor eax, dword [edi - 8]
xor eax, dword [edi]
rol eax, 1
mov dword [edi + 0x38], eax
call dword [0x115064]
cmp eax, 0x1f
jbe 0x1001bd3a
push 0x1f
pop eax
shr eax, 2
xor ebx, ebx
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1001bd64
test ebx, ebx
je 0x1001bd56
call dword [0x115088]
add eax, ebx
mov dword [ebp + ebx*4 - 0x38], eax
cmp ebx, 0x22db
ja 0x1001bd64
inc ebx
cmp ebx, dword [ebp - 0x10]
jb 0x1001bd46
add edi, 4
dec dword [ebp - 0xc]
jne 0x1001bd17
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov ebx, dword [esi + 8]
and dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
mov ecx, edi
not ecx
and ecx, dword [ebp - 8]
rol eax, 5
mov edx, ebx
and edx, edi
or ecx, edx
add eax, ecx
mov ecx, dword [ebp - 4]
add eax, dword [ebp + ecx*4 - 0x178]
mov ecx, dword [ebp - 0xc]
lea eax, [eax + ecx + 0x5a827999]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
push 0x1c
mov dword [ebp - 0xc], eax
push 0x11d7d0
lea eax, [ebp - 0x34]
ror edi, 2
mov dword [ebp - 8], ebx
push eax
mov ebx, edi
mov dword [ebp - 0x34], 0x5b
call dword [0x115068]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
jl 0x1001bd87
call dword [0x11507c]
push 0x14
pop eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, ebx
xor edx, edi
rol ecx, 5
add ecx, edx
add ecx, dword [ebp + eax*4 - 0x178]
mov edx, dword [ebp - 0xc]
lea ecx, [ecx + edx + 0x6ed9eba1]
mov edx, dword [ebp - 8]
ror edi, 2
mov dword [ebp - 8], ebx
inc eax
mov ebx, edi
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], ecx
cmp eax, 0x28
jl 0x1001bdf4
push 9
lea eax, [ebp - 0x2c]
push eax
push 0xffffffffffffffff
push 0x11d7d8
push 0
push 0
call dword [0x115074]
mov dword [ebp - 4], 0x28
mov eax, dword [ebp - 0x10]
mov ecx, ebx
or ecx, edi
and ecx, dword [ebp - 8]
mov edx, ebx
and edx, edi
rol eax, 5
add eax, dword [ebp - 0xc]
or ecx, edx
mov edx, dword [ebp - 4]
add ecx, dword [ebp + edx*4 - 0x178]
ror edi, 2
lea eax, [ecx + eax - 0x70e44324]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 8], ebx
push 0x11d7ec
mov dword [ebp - 0xc], eax
mov ebx, edi
call dword [0x115064]
cmp eax, 0x1f
jbe 0x1001be9a
push 0x1f
pop eax
shr eax, 2
xor edi, edi
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1001bebe
test edi, edi
je 0x1001beb0
call dword [0x115088]
cmp edi, 0x22db
ja 0x1001bebe
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x1001bea6
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x3c
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
jl 0x1001be4f
mov dword [ebp - 4], 0x3c
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
xor ecx, ebx
xor ecx, edi
add ecx, dword [ebp + edx*4 - 0x178]
rol eax, 5
add eax, dword [ebp - 0xc]
inc dword [ebp - 4]
lea eax, [ecx + eax - 0x359d3e2a]
mov ecx, dword [ebp - 8]
ror edi, 2
cmp dword [ebp - 4], 0x50
mov dword [ebp - 8], ebx
mov ebx, edi
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], eax
jl 0x1001bedb
add dword [esi], eax
mov eax, dword [ebp - 8]
add dword [esi + 0xc], eax
add dword [esi + 4], edi
add dword [esi + 8], ebx
mov eax, ecx
add dword [esi + 0x10], eax
and dword [esi + 0x5c], 0
pop edi
pop ebx
leave
ret