Function at 0x100746e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x14], esi
call fcn.10074a50
test eax, eax
jne 0x10074a38
mov eax, dword [ebp + 0x10]
xor edx, edx
cmp dword [esi + 8], 0x200
mov ecx, dword [ebp + 0x14]
push ebx
sete dl
mov dword [esi + 0x34], ecx
mov ebx, eax
mov dword [esi + 0x30], eax
shrd ebx, ecx, 3
and eax, 7
shr ecx, 3
lea edx, [edx*4 + 4]
mov dword [ebp + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 4], edx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
push edi
test ecx, ecx
jb 0x10074845
ja 0x1007474a
cmp ebx, eax
jb 0x10074845
mov edi, dword [ebp + 0xc]
add edx, 0x18
mov dword [ebp + 0xc], edi
lea edx, [esi + edx*4]
mov dword [ebp + 8], edx
lea esp, [esp]
push eax
push edi
push edx
call fcn.101c6b90
mov ebx, dword [esi + 0xc]
add esp, 0xc
mov edi, dword [ebp + 8]
shr ebx, 2
mov dword [ebp - 0x10], 0
lea edx, [ebx - 1]
test edx, edx
je 0x1007479a
mov esi, dword [ebp - 0x10]
mov ecx, dword [edi + esi*4]
mov eax, dword [edi + edx*4]
mov dword [edi + esi*4], eax
inc esi
mov dword [edi + edx*4], ecx
dec edx
cmp edx, esi
ja 0x10074785
mov esi, dword [ebp - 0x14]
test ebx, ebx
je 0x100747c5
mov edi, edi
mov ecx, dword [edi]
lea edi, [edi + 4]
mov edx, ecx
mov eax, ecx
shr edx, 8
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
rol edx, 0x10
mov dword [edi - 4], edx
dec ebx
jne 0x100747a0
mov edx, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
shr edx, 2
add ecx, 0x18
neg edx
mov eax, edx
neg eax
lea edi, [eax + 0x10]
add eax, ecx
lea edi, [esi + edi*4]
mov ebx, edi
lea eax, [esi + eax*4]
sub ebx, eax
lea ecx, [eax + edx*4]
sub edi, eax
jmp 0x100747f0
mov eax, dword [ebx + ecx]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
mov dword [edi + ecx - 4], eax
inc edx
jne 0x100747f0
mov ecx, esi
call fcn.1007e5e0
test eax, eax
jne 0x10074a3f
mov ebx, dword [ebp - 8]
mov eax, dword [esi + 0xc]
sub ebx, eax
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp + 0xc]
sbb ecx, 0
mov edx, dword [ebp + 8]
add edi, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0xc], edi
test ecx, ecx
ja 0x10074760
jb 0x10074840
cmp ebx, eax
jae 0x10074760
mov edx, dword [ebp - 4]
jmp 0x10074848
mov edi, dword [ebp + 0xc]
test ecx, ecx
jne 0x10074850
test ebx, ebx
je 0x10074866
push ebx
lea eax, [edx + 0x18]
lea eax, [esi + eax*4]
push edi
push eax
call fcn.101c6b90
add esp, 0xc
mov dword [esi + 0x14], ebx
add edi, ebx
mov ebx, dword [ebp - 4]
mov edx, dword [esi + 0x14]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], 0
lea ecx, [ebx + 0x18]
lea ecx, [edx + ecx*4]
add ecx, esi
or eax, 0
je 0x1007489b
mov eax, dword [ebp + 0x14]
mov al, byte [eax + 0x102ac7d8]
and al, byte [edi]
mov edi, dword [ebp + 0x14]
or al, byte [edi + 0x102ac7e0]
mov byte [ecx], al
jmp 0x1007489e
mov byte [ecx], 0x80
mov eax, dword [esi + 0xc]
inc ecx
sub eax, edx
dec eax
push eax
push 0
push ecx
call fcn.101c6a70
mov eax, dword [esi + 0xc]
lea ecx, [ebx + 0x18]
add esp, 0xc
shr eax, 2
lea ecx, [esi + ecx*4]
mov dword [ebp + 0xc], ecx
push eax
push ecx
mov ecx, esi
call fcn.10074680
mov edx, dword [esi + 0xc]
mov eax, 0x10
shr edx, 2
neg edx
sub ebx, edx
sub eax, edx
add ebx, 0x18
lea edi, [esi + eax*4]
lea eax, [esi + ebx*4]
mov ebx, edi
sub ebx, eax
lea ecx, [eax + edx*4]
sub edi, eax
lea esp, [esp]
mov eax, dword [ebx + ecx]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
mov dword [edi + ecx - 4], eax
inc edx
jne 0x100748f0
mov ecx, esi
call fcn.1007e5e0
test eax, eax
jne 0x10074a3f
push dword [esi + 0xc]
lea eax, [esi + 0x40]
push eax
push dword [ebp + 0xc]
call fcn.101c6b90
lea ebx, [esi + 0x60]
add esp, 0xc
mov dword [ebx], 1
mov dword [esi + 0x64], 0
cmp dword [esi + 0x18], 4
jne 0x10074945
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x30]
mov dword [esi + ecx*4 + 0x60], eax
mov cl, 0x20
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
call fcn.101c6b70
mov ecx, dword [esi + 0x18]
mov dword [esi + ecx*4 + 0x64], eax
cmp dword [esi + 0x18], 4
jne 0x10074983
mov eax, dword [esi + 0x38]
mov cl, 0x20
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
call fcn.101c6b70
mov ecx, dword [esi + 0x18]
mov dword [esi + ecx*4 + 0x6c], eax
push dword [esi + 0x180]
mov ecx, esi
push ebx
call fcn.100750f0
test eax, eax
je 0x100749cc
add dword [ebx], 2
cmp dword [ebx], 2
jae 0x100749ba
inc dword [esi + 0x64]
jne 0x10074a3f
cmp dword [esi + 0x18], 4
jne 0x100749ba
inc dword [esi + 0x68]
jne 0x100749ba
inc dword [esi + 0x6c]
je 0x10074a3f
push dword [esi + 0x180]
mov ecx, esi
push ebx
call fcn.100750f0
test eax, eax
jne 0x10074995
push dword [esi + 0x180]
lea edi, [esi + 0xf0]
mov ecx, esi
push ebx
push edi
push edi
call fcn.10074b30
mov eax, dword [esi + 0x180]
mov ecx, esi
push dword [eax]
push edi
push ebx
call fcn.1007e2c0
mov eax, dword [esi + 0x180]
mov ecx, esi
push eax
push ebx
push dword [eax]
push ebx
call fcn.100742a0
push dword [esi + 0x180]
mov ecx, esi
push ebx
push edi
push edi
call fcn.10074b30
mov eax, dword [esi + 0x180]
mov ecx, esi
push dword [eax]
push edi
push edi
call fcn.1007e2c0
push dword [esi + 0x10]
mov ecx, esi
push edi
push dword [ebp + 0x18]
call fcn.1007e6e0
pop edi
xor eax, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x14
pop edi
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x14