Function at 0x10013d49
Capabilities:
Encode data using xor

Disassembly:
push 0x64
mov eax, 0x1006aaba
call fcn.10035d00
mov esi, ecx
mov al, byte [esi + 0x20]
mov dword [ebp - 0x58], 0xe10
push 0x3c
pop ecx
push 0x74
pop ebx
test al, al
je 0x10013f1c
mov eax, dword [esi + 0x24]
test eax, eax
jle 0x10013d7a
dec eax
mov dword [esi + 0x24], eax
mov edi, dword [esi + 0x24]
test edi, edi
js 0x10013f0e
mov eax, edi
mov dword [ebp - 0x18], 0xf
cdq
idiv dword [ebp - 0x58]
push 0x3c
mov eax, edx
cdq
idiv ecx
mov ecx, eax
mov eax, edi
cdq
pop edi
idiv edi
xor eax, eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x2c], al
push 0xa
pop edi
mov dword [ebp - 4], eax
push edx
push ecx
cmp ecx, edi
jae 0x10013e10
cmp edx, edi
mov edx, eax
jae 0x10013de7
mov cl, 0x2d
mov dword [ebp - 0x38], 0x49081d2d
mov dword [ebp - 0x34], 0x49081d17
mov byte [ebp - 0x30], al
xor cl, byte [ebp + edx - 0x37]
mov byte [ebp + edx - 0x37], cl
inc edx
cmp edx, 7
jae 0x10013de1
mov cl, byte [ebp - 0x38]
jmp 0x10013dce
mov byte [ebp - 0x30], 0
jmp 0x10013e5f
mov cl, 0x2c
mov dword [ebp - 0x38], 0x48091c2c
mov dword [ebp - 0x34], 0x480916
xor cl, byte [ebp + edx - 0x37]
mov byte [ebp + edx - 0x37], cl
inc edx
cmp edx, 6
jae 0x10013e0a
mov cl, byte [ebp - 0x38]
jmp 0x10013df7
mov byte [ebp - 0x31], 0
jmp 0x10013e5f
mov ecx, eax
cmp edx, edi
jae 0x10013e35
mov dl, 0x2a
mov dword [ebp - 0x38], 0x104e0f2a
mov dword [ebp - 0x34], 0x4e0f1a
xor byte [ebp + ecx - 0x37], dl
inc ecx
cmp ecx, 6
jae 0x10013e0a
mov dl, byte [ebp - 0x38]
jmp 0x10013e26
mov dl, 0x51
mov byte [ebp - 0x37], bl
mov byte [ebp - 0x38], dl
mov word [ebp - 0x36], 0x6b35
mov byte [ebp - 0x34], bl
mov word [ebp - 0x33], 0x35
xor byte [ebp + ecx - 0x37], dl
inc ecx
cmp ecx, 5
jae 0x10013e5b
mov dl, byte [ebp - 0x38]
jmp 0x10013e4c
mov byte [ebp - 0x32], 0
sub esp, 0x18
lea eax, [ebp - 0x37]
mov ecx, esp
push eax
call fcn.1000289a
lea eax, [ebp - 0x54]
push eax
call fcn.10007288
add esp, 0x24
lea ecx, [ebp - 0x2c]
push eax
call fcn.100046b8
push 0
push 1
lea ecx, [ebp - 0x54]
call fcn.1000274f
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
movaps xmm0, xmmword [0x100807b0]
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x4d63354b
mov byte [ebp - 0x40], 0
mov al, byte [ebp + ecx - 0x53]
xor al, byte [ebp - 0x54]
mov byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x13
jb 0x10013eb2
sub esp, 0x18
mov byte [ebp - 0x40], 0
lea eax, [ebp - 0x53]
mov ecx, esp
push eax
call fcn.1000289a
lea eax, [ebp - 0x70]
push eax
call fcn.10007288
add esp, 0x20
mov byte [ebp - 4], 1
mov edx, eax
mov ecx, dword [esi + 8]
call fcn.1000c3bb
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.1000274f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.1000274f
push 0x3c
pop ecx
cmp dword [esi + 0x24], 0
jg 0x10013f1c
and dword [esi + 0x24], 0
mov byte [esi + 0x20], 0
mov al, byte [esi + 0x21]
test al, al
je 0x100140dd
movzx eax, word [esi + 0x28]
test ax, ax
jle 0x10013f35
dec eax
mov word [esi + 0x28], ax
movzx edi, word [esi + 0x28]
mov eax, edi
test ax, ax
js 0x100140cc
cwde
cdq
idiv dword [ebp - 0x58]
push 0x3c
mov eax, edx
mov dword [ebp - 0x18], 0xf
cdq
idiv ecx
movzx ecx, ax
mov eax, edi
cwde
cdq
pop edi
idiv edi
movzx eax, dx
xor edx, edx
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0x2c], dl
push 0xa
pop edi
mov dword [ebp - 4], 2
push eax
push ecx
cmp cx, di
jae 0x10013fd8
cmp ax, di
jae 0x10013fad
xor ebx, ebx
mov dword [ebp - 0x38], 0x56170232
mov dl, 0x32
mov dword [ebp - 0x34], 0x56170208
mov byte [ebp - 0x30], bl
mov ecx, ebx
xor byte [ebp + ecx - 0x37], dl
inc ecx
cmp ecx, 7
jae 0x10013fa8
mov dl, byte [ebp - 0x38]
jmp 0x10013f99
mov byte [ebp - 0x30], bl
jmp 0x10014024
mov byte [ebp - 0x38], bl
mov ecx, edx
mov dword [ebp - 0x37], 0x4e105144
mov word [ebp - 0x33], 0x1051
mov byte [ebp - 0x31], dl
xor byte [ebp + ecx - 0x37], bl
inc ecx
cmp ecx, 6
jae 0x10013fd1
mov bl, byte [ebp - 0x38]
jmp 0x10013fc2
xor ebx, ebx
mov byte [ebp - 0x31], bl
jmp 0x10014024
xor ebx, ebx
mov ecx, ebx
cmp ax, di
jae 0x10014000
mov dl, 0x1b
mov dword [ebp - 0x38], 0x217f3e1b
mov dword [ebp - 0x34], 0x7f3e2b
xor byte [ebp + ecx - 0x37], dl
inc ecx
cmp ecx, 6
jae 0x10013fd3
mov dl, byte [ebp - 0x38]
jmp 0x10013ff1
mov dl, 0xb
mov dword [ebp - 0x38], 0x316f2e0b
mov word [ebp - 0x34], 0x6f2e
mov byte [ebp - 0x32], bl
xor byte [ebp + ecx - 0x37], dl
inc ecx
cmp ecx, 5
jae 0x10014021
mov dl, byte [ebp - 0x38]
jmp 0x10014012
mov byte [ebp - 0x32], bl
sub esp, 0x18
lea eax, [ebp - 0x37]
mov ecx, esp
push eax
call fcn.1000289a
lea eax, [ebp - 0x70]
push eax
call fcn.10007288
add esp, 0x24
lea ecx, [ebp - 0x2c]
push eax
call fcn.100046b8
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.1000274f
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
movaps xmm0, xmmword [0x10080ca0]
mov ecx, ebx
cmovae eax, dword [ebp - 0x2c]
push eax
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x13453b40
mov word [ebp - 0x40], 0x3d
mov al, byte [ebp + ecx - 0x53]
xor al, byte [ebp - 0x54]
mov byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x14
jb 0x10014078
sub esp, 0x18
mov byte [ebp - 0x3f], bl
lea eax, [ebp - 0x53]
mov ecx, esp
push eax
call fcn.1000289a
lea eax, [ebp - 0x70]
push eax
call fcn.10007288
add esp, 0x20
mov byte [ebp - 4], 3
mov edx, eax
mov ecx, dword [esi + 0xc]
call fcn.1000c3bb
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.1000274f
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.1000274f
jmp 0x100140ce
xor ebx, ebx
cmp word [esi + 0x28], bx
jg 0x100140dd
xor eax, eax
mov byte [esi + 0x21], bl
mov word [esi + 0x28], ax
call fcn.10035caa
ret