Function at 0x1001585b
Capabilities:
Encode data using xor

Disassembly:
push 0x64
mov eax, 0x10073236
call fcn.1003bfa0
mov esi, ecx
mov al, byte [esi + 0x20]
mov dword [ebp - 0x58], 0xe10
push 0x3c
pop ecx
push 0x6c
pop ebx
test al, al
je 0x10015a2f
mov eax, dword [esi + 0x24]
test eax, eax
jle 0x1001588c
dec eax
mov dword [esi + 0x24], eax
mov edi, dword [esi + 0x24]
test edi, edi
js 0x10015a21
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 0x10015922
cmp edx, edi
mov edx, eax
jae 0x100158f9
mov cl, 0x7c
mov dword [ebp - 0x38], 0x18594c7c
mov dword [ebp - 0x34], 0x18594c46
mov byte [ebp - 0x30], al
xor cl, byte [ebp + edx - 0x37]
mov byte [ebp + edx - 0x37], cl
inc edx
cmp edx, 7
jae 0x100158f3
mov cl, byte [ebp - 0x38]
jmp 0x100158e0
mov byte [ebp - 0x30], 0
jmp 0x10015972
mov cl, 5
mov dword [ebp - 0x38], 0x61203505
mov dword [ebp - 0x34], 0x61203f
xor cl, byte [ebp + edx - 0x37]
mov byte [ebp + edx - 0x37], cl
inc edx
cmp edx, 6
jae 0x1001591c
mov cl, byte [ebp - 0x38]
jmp 0x10015909
mov byte [ebp - 0x31], 0
jmp 0x10015972
mov ecx, eax
cmp edx, edi
jae 0x10015947
mov dl, 0x29
mov dword [ebp - 0x38], 0x134d0c29
mov dword [ebp - 0x34], 0x4d0c19
xor byte [ebp + ecx - 0x37], dl
inc ecx
cmp ecx, 6
jae 0x1001591c
mov dl, byte [ebp - 0x38]
jmp 0x10015938
mov dl, 0x56
mov word [ebp - 0x38], 0x7356
mov byte [ebp - 0x36], 0x32
mov byte [ebp - 0x35], bl
mov word [ebp - 0x34], 0x3273
mov byte [ebp - 0x32], al
xor byte [ebp + ecx - 0x37], dl
inc ecx
cmp ecx, 5
jae 0x1001596e
mov dl, byte [ebp - 0x38]
jmp 0x1001595f
mov byte [ebp - 0x32], 0
sub esp, 0x18
lea eax, [ebp - 0x37]
mov ecx, esp
push eax
call fcn.10004179
lea eax, [ebp - 0x54]
push eax
call fcn.10003c43
add esp, 0x24
lea ecx, [ebp - 0x2c]
push eax
call fcn.10005f9c
push 0
push 1
lea ecx, [ebp - 0x54]
call fcn.1000402e
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
movaps xmm0, xmmword [0x1008ada0]
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x341a4c32
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 0x100159c5
sub esp, 0x18
mov byte [ebp - 0x40], 0
lea eax, [ebp - 0x53]
mov ecx, esp
push eax
call fcn.10004179
lea eax, [ebp - 0x70]
push eax
call fcn.10003c43
add esp, 0x20
mov byte [ebp - 4], 1
mov edx, eax
mov ecx, dword [esi + 8]
call fcn.1000de6f
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.1000402e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.1000402e
push 0x3c
pop ecx
cmp dword [esi + 0x24], 0
jg 0x10015a2f
and dword [esi + 0x24], 0
mov byte [esi + 0x20], 0
mov al, byte [esi + 0x21]
test al, al
je 0x10015bf8
movzx eax, word [esi + 0x28]
test ax, ax
jle 0x10015a48
dec eax
mov word [esi + 0x28], ax
movzx edi, word [esi + 0x28]
mov eax, edi
test ax, ax
js 0x10015be7
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 0x10015adf
xor ebx, ebx
mov ecx, ebx
cmp ax, di
jae 0x10015ac0
mov dl, 0x54
mov dword [ebp - 0x38], 0x30716454
mov dword [ebp - 0x34], 0x3071646e
mov byte [ebp - 0x30], bl
xor byte [ebp + ecx - 0x37], dl
inc ecx
cmp ecx, 7
jae 0x10015abb
mov dl, byte [ebp - 0x38]
jmp 0x10015aac
mov byte [ebp - 0x30], bl
jmp 0x10015b3f
mov dl, 0x2e
mov dword [ebp - 0x38], 0x4a0b1e2e
mov dword [ebp - 0x34], 0x4a0b14
xor byte [ebp + ecx - 0x37], dl
inc ecx
cmp ecx, 6
jae 0x10015b0a
mov dl, byte [ebp - 0x38]
jmp 0x10015ad0
cmp ax, di
jae 0x10015b0f
mov byte [ebp - 0x38], bl
mov ecx, edx
mov dword [ebp - 0x37], 0x5c560849
mov word [ebp - 0x33], 0x849
mov byte [ebp - 0x31], dl
xor byte [ebp + ecx - 0x37], bl
inc ecx
cmp ecx, 6
jae 0x10015b08
mov bl, byte [ebp - 0x38]
jmp 0x10015af9
xor ebx, ebx
mov byte [ebp - 0x31], bl
jmp 0x10015b3f
push 0x3c
pop eax
xor ebx, ebx
mov word [ebp - 0x38], 0x7d58
mov dl, 0x58
mov byte [ebp - 0x36], al
mov word [ebp - 0x35], 0x7d62
mov ecx, ebx
mov byte [ebp - 0x33], al
mov byte [ebp - 0x32], bl
xor byte [ebp + ecx - 0x37], dl
inc ecx
cmp ecx, 5
jae 0x10015b3c
mov dl, byte [ebp - 0x38]
jmp 0x10015b2d
mov byte [ebp - 0x32], bl
sub esp, 0x18
lea eax, [ebp - 0x37]
mov ecx, esp
push eax
call fcn.10004179
lea eax, [ebp - 0x70]
push eax
call fcn.10003c43
add esp, 0x24
lea ecx, [ebp - 0x2c]
push eax
call fcn.10005f9c
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.1000402e
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
movaps xmm0, xmmword [0x1008af90]
mov ecx, ebx
cmovae eax, dword [ebp - 0x2c]
push eax
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x15433d46
mov word [ebp - 0x40], 0x3b
mov al, byte [ebp + ecx - 0x53]
xor al, byte [ebp - 0x54]
mov byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x14
jb 0x10015b93
sub esp, 0x18
mov byte [ebp - 0x3f], bl
lea eax, [ebp - 0x53]
mov ecx, esp
push eax
call fcn.10004179
lea eax, [ebp - 0x70]
push eax
call fcn.10003c43
add esp, 0x20
mov byte [ebp - 4], 3
mov edx, eax
mov ecx, dword [esi + 0xc]
call fcn.1000de6f
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.1000402e
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.1000402e
jmp 0x10015be9
xor ebx, ebx
cmp word [esi + 0x28], bx
jg 0x10015bf8
xor eax, eax
mov byte [esi + 0x21], bl
mov word [esi + 0x28], ax
call fcn.1003bf4a
ret